<?php
/*
Template Name: قالب تمام عرض
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> dir="rtl">
<head>
<?php if (is_home()) { ?>
<title><?php bloginfo('name'); ?></title>
<?php } else { ?>
    <title><?php wp_title(''); ?> | <?php bloginfo('name'); ?></title>
<?php } global $qaleb; 
if($qaleb['favicon_uploader']['url'] != ''){
?>
<?php } ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="fa">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<meta name="description" content="<?php bloginfo('description'); ?>"/>
<link rel="shortcut icon" href="<?php echo $qaleb['favicon_uploader']['url']; ?>" />
<link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php bloginfo('template_url'); ?>/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/menu.js"></script>
<?php wp_head(); ?>
<?php get_template_part('inc/style'); ?>
</head>
<body>
<?php if($qaleb['blank']=='1'){?><base target="_blank"><?php } ?>
<?php if($qaleb['menu-ac']=='1'){?>
<div class="top-m">
<div class="container">
<?php if($qaleb['header-nav-1']=='1'){?><div class="top-nav-1"><?php wp_nav_menu( array( 'theme_location' => 'top-nav-1' )); ?></div><?php } ?>
<?php if($qaleb['header-socials']=='1'){?><ul class="header-social"><?php get_template_part('inc/social'); ?></ul> <?php } ?>
</div>
</div>
<?php } ?>
<header id="header">
    <div class="container">
      <div id="logo">
      <a href="<?php bloginfo('url'); ?>">
    <?php if($qaleb['logo-or-title'] == '1'){?>
      <img src="<?php echo $qaleb['siteicon_uploader']['url']; ?>" alt="<?php echo bloginfo("name");?>">
     <?php }else{ ?>
     <h1><?php echo bloginfo("name");?></h1>
	 <span><?php bloginfo('description'); ?></span>
     <?php } ?>
      </a>
      </div><!-- logo --> 
        <div class="pull-left hidden-sm hidden-xs clearfix" id="social-icons">
            <ul class="clearfix">
                <li>
				<?php if($qaleb['searchform-ac']=='1'){?>
                    <form role="search" method="get" class="searchform" action="<?php echo home_url(); ?>">
                        <input type="text" class="search-field"
                            placeholder="<?php global $qaleb; echo $qaleb['search-text'];?>" value="" name="s" />
                    </form>
					<?php } ?>
                </li>
				<li><?php wp_nav_menu( array( 'theme_location' => 'top-nav-2' )); ?></li>
            </ul>
             <div id="date">
             <?php if(function_exists('jdate')) { ?>
             <?php if($qaleb['jalali']=='1'){?> <?php echo jdate ('l, j F , Y') ; ?><?php } ?>
             <?php } else { ?>
             <?php if($qaleb['jalali']=='1'){?> افزونه جلالی را نصب کنید.<?php } ?>
			 <?php } ?>
			 <br>		 
                <?php if($qaleb['milad']=='1'){?> <span style="font-family:Arial;font-size:12px;"><?php echo date ('l, j F , Y') ; ?></span>  <?php } ?>
            </div>
        </div><!--/#social-icons-->
    </div><!--/.container-fluid-->
</header>

<div class="container">
<?php if($qaleb['mega-or-nave'] == '1'){?>
<?php get_template_part('inc/nave'); ?>
<?php }else{ ?>
<?php get_template_part('inc/mega'); ?>
<?php } ?>
<div class="menu-bottom"><span class="fa fa-bars navbar-c-toggle menu-show" style="float:right" ></span></div>
</div>
<div id="lin-10"></div>
<div class="menu-hidden menu-show" id="menu-risponsive">
<div id="lin-top"><center><form role="search" method="get" class="searchform" action="<?php echo home_url(); ?>">
<input type="text" class="search-field" placeholder="<?php global $qaleb; echo $qaleb['search-text'];?>" value="" name="s" /></form>
<ul class="header-social"><?php get_template_part('inc/social'); ?></ul></center></div>		
<?php wp_nav_menu(array('theme_location' => 'primary-mob')); ?>
</div>
<div class="wrapper">
<div class="container">
<div class="page-big">
<?php global $qaleb;?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<section class="single">
<header><h2 class="single-post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2><br></header>
<div class="post-content clearfix">
<p><?php the_content(); ?></p>
<div class="page-bottom">
</div>
</div>
<!---->
<div id="lin-10"></div>
</section>
<?php endwhile; else : ?><?php endif; ?>	   
</div></div>  </div> 
<?php get_footer(); ?>