<?php global $qaleb;?>
<div class="wi_n wi_n_five a-1 clearfix">
<div class="ttit"><h3><?php echo $qaleb['a-1-title']; ?></h3>
<div class="contrl">
<span class="button-next">
<svg width="14px" height="24px" viewBox="-2 -2 14 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs></defs>
<polyline stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" fill="none" points="0 0 10 10 0 20"></polyline>
</svg>
</span>
<span class="button-prev">
<svg width="14px" height="24px" viewBox="-2 -2 14 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs></defs>
<polyline stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" fill="none" points="10 0 0 10 10 20"></polyline>
</svg>
 </span>
</div>
</div>
<div class="polist">
<?php
			  
			  if($qaleb['a-1-content']=='1'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['a-1-count'],
				);
			  }else if($qaleb['a-1-content']=='2'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['a-1-count'],
					'orderby'	=> 	'rand'
				);
			  }else if($qaleb['a-1-content']=='3'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['a-1-count'],
					'tax_query' => array(
                        array(
                            'taxonomy' => 'category',
                            'field'    => 'term_id',
                            'terms'    => $qaleb['a-1-type-select'],
                        ),
				    ),
				);
			  }
			  
            query_posts($arggs);
            if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php get_template_part('inc/loop/loop-2'); ?>	
 <?php endwhile; endif;  wp_reset_query(); ?>
</div>
</div>