<div class="medd">
<?php get_header(); ?>
<div id="post-media">
<section class="media-section">
        <div class="container">
            <div class="row">
                <div class="container">
                    <div class="row">
                        <div class="col-xs-12 col-md-8">	
            <section id="carousel14" class="box top showcase slider has-desc has-kicker has-carousel full-image no-indicators has-carousel" style="" data-conf="{&quot;items&quot;:1,&quot;auto&quot;:7000,&quot;fx&quot;:false,&quot;autoHeight&quot;:false,&quot;controls&quot;:true,&quot;paging&quot;:false,&quot;pagingHeader&quot;:false}">

                <div>
                    <ul>		
<?php
$wp_query = new WP_Query(array('post_type' => 'media','posts_per_page'=> '3' ));
while ($wp_query->have_posts()) : $wp_query->the_post();
?>
 <li class="photo">
                  <figure><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
                   <?php if(has_post_thumbnail()){?>
				   <img src="<?php the_post_thumbnail_url('img-755'); ?>" alt="<?php the_title(); ?>"> <?php }else{ ?>
                   <img src="<?php bloginfo("template_url"); ?>/img/225.png">
                    <?php } ?>
                    </a></figure>
                 <div class="desc">
                 <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
                  </div>
                  </li>	 
<?php
endwhile;
wp_reset_query();
?>
 </ul>
</div>               
</section>
</div>

<div class="col-xs-12 col-md-4">
            <section id="box113" class="box media-section vertical videos lazy-player">
                <div>
                    <ul>			
<?php
$wp_query = new WP_Query(array('post_type' => 'media','posts_per_page'=> '2','offset'=> '3' ));
while ($wp_query->have_posts()) : $wp_query->the_post();
?>

                      <li class="video">
                     <figure><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">     
					 <?php if(has_post_thumbnail()){?>
				   <img src="<?php the_post_thumbnail_url('img-410'); ?>" alt="<?php the_title(); ?>"> <?php }else{ ?>
                   <img src="<?php bloginfo("template_url"); ?>/img/225.png">
                    <?php } ?>
					</a></figure>
                   <div class="desc"><h3><a href="<?php the_permalink(); ?>" title=" <?php the_title(); ?>"><?php the_title(); ?></a></h3></div>
                    </li>
<?php
endwhile;
wp_reset_query();
?>
</ul></div></section></div></div></div></div></div></section>

<div class="container">

<div id="spical">
<div id="post-media-balans">
<div class="cmdark_title"><b> <?php the_archive_title(); ?></b></div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="a-main-media-contain">
<div class="a-contain-image">
<a href="<?php the_permalink(); ?>">
<?php if(has_post_thumbnail()){?><img src="<?php the_post_thumbnail_url('img-293'); ?>" alt="<?php the_title(); ?>"> <?php }else{ ?>
<img src="<?php bloginfo("template_url"); ?>/img/none.png">
<?php } ?></a>
</div>
<div class="a-contain-title"><h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2></div>
<div class="dark-meta">
<?php if($qaleb['singl-date-ac']=='1'){?><b><i class="fa fa-calendar-o" aria-hidden="true"></i> <?php the_time('d M Y'); ?></b><?php } ?>
<?php if($qaleb['singl-view-ac']=='1'){?><span><i class="fa fa-eye" aria-hidden="true"></i> <?php echo get_post_views (get_the_ID()); ?></span><?php } ?>
</div></div>
<?php endwhile; endif; ?>
<?php if (function_exists("pagination")) { pagination($additional_loop->max_num_pages); } ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>
</div>