<?php global $qaleb;?>
<?php if($qaleb['slider-small-ac']=='1'){?>
<div class="boxx">
<div class="slide" id="slide2">
<div class="slde">
<?php
			  
			  if($qaleb['slider-small-content']=='1'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['slider-small-count'],
				);
			  }else if($qaleb['slider-small-content']=='2'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['slider-small-count'],
					'orderby'	=> 	'rand'
				);
			  }else if($qaleb['slider-small-content']=='3'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['slider-small-count'],
					'tax_query' => array(
                        array(
                            'taxonomy' => 'category',
                            'field'    => 'term_id',
                            'terms'    => $qaleb['slider-small-type-select'],
                        ),
				    ),
				);
			  }
			  
            query_posts($arggs);
            if(have_posts()) : while(have_posts()) : the_post(); ?>
<div class="item">
<div class="archiv-t">
<div class="thumbnail">
<?php if(has_post_thumbnail()){?>
<a href="<?php the_permalink(); ?>"><img src="<?php the_post_thumbnail_url('slider'); ?>" alt="<?php the_title(); ?>"></a>
<?php }else{ ?>
<img src="<?php bloginfo("template_url"); ?>/img/none.png">
<?php } ?>
</div>
<div class="det">
<?php if(get_post_meta( get_the_ID(), 'meta-text-1', true )!=null){ ?><span><?php echo get_post_meta( get_the_ID(), 'meta-text-1', true ); ?></span> <?php } ?>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p><?php if(get_meta('lead') != false) : echo get_meta('lead'); else : the_excerpt(); endif; ?> </p>
</div></div>
<div class="llinn"></div>
</div>
<?php endwhile; endif;  wp_reset_query(); ?>
</div>
<i class="fa fa-chevron-right nexicon" aria-hidden="true"></i>
<i class="fa fa-chevron-left previcon" aria-hidden="true"></i>
</div></div>
<?php } ?>