<?php get_header(); ?>
<?php global $qaleb;?>
<div id="President">
<div class="container">
<section id="entry-content">
<?php get_template_part('inc/templates/slider-photo'); ?>
<div class="polist">
<div class="title"><h3><?php the_archive_title(); ?></h3></div>
<?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?>
<div class="grid">
<div class="thumbnail">
<?php if(has_post_thumbnail()){?>
<a href="<?php the_permalink(); ?>"><img src="<?php the_post_thumbnail_url('loop-1'); ?>" alt="<?php the_title(); ?>"></a>
<?php }else{ ?>
<img src="<?php bloginfo("template_url"); ?>/img/none.png">
<?php } ?>
<a href="<?php the_permalink(); ?>" class="overlayy"><div class="textt"><i class="fa fa-camera" aria-hidden="true"></i></div></a>
</div>
<div class="det">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="detbot">
<div class="iico"><a href="<?php the_permalink(); ?>"><i class="fa fa-file-image-o"></i></a></div>
<?php if(get_post_meta( get_the_ID(), 'number-photo', true )!=null){ ?><div class="dato"><?php echo get_post_meta( get_the_ID(), 'number-photo', true ); ?></div><?php } ?>
</div>
</div>
<?php endwhile;
				else:
				echo "<b>چیزی یافت نشد !</b>";
				 endif; ?>
<?php if (function_exists("pagination")){ pagination($additional_loop->max_num_pages); } ?>	
</div>
</section>
<section id="entry-saidbar">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar-single') ) : ?><?php endif; ?>
</section>
</div>
<div class="lin"></div>
</div>
<?php get_footer(); ?>