<?php global $qaleb;?>
<?php if($qaleb['slider-1-ac']=='1'){?>
<div class="slider-1">
<div class="owl-carousel owl-theme">
  <?php
			  
			  if($qaleb['slider-1-content']=='1'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['slider-1-count'],
				);
			  }else if($qaleb['slider-1-content']=='2'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['slider-1-count'],
					'orderby'	=> 	'rand'
				);
			  }else if($qaleb['slider-1-content']=='3'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['slider-1-count'],
					'tax_query' => array(
                        array(
                            'taxonomy' => 'category',
                            'field'    => 'term_id',
                            'terms'    => $qaleb['slider-1-type-select'],
                        ),
				    ),
				);
			  }
			  
            query_posts($arggs);
            if(have_posts()) : while(have_posts()) : the_post(); ?>	
<article class="item">
<div class="thumbnail">
<?php if($qaleb['slider-1-d']=='1'){?>
<div class="calendar-small">
<div class="s-date"><?php the_time('d');  ?></div>
<div class="s-month"> <?php the_time('F');  ?></div>
</div>
<?php } ?>
<a href="<?php the_permalink(); ?>">
<?php if(has_post_thumbnail()){?>
<img src="<?php the_post_thumbnail_url('loop3'); ?>" alt="<?php the_title(); ?>">
<?php }else{ ?>
<img src="<?php bloginfo("template_url"); ?>/img/none.png">
<?php } ?>
</a>
<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 } ?>
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
</div>
</div>
</article>
<?php endwhile; endif; wp_reset_query(); ?>		  
</div>
</div>	  
<?php } ?>	