<?php global $qaleb;?>
<?php if($qaleb['sound-slider'] == '1'){ ?>
<div class="slider-1">
<div class="owl-carousel owl-theme">
<?php
			  
			  if($qaleb['sound-content']=='1'){
				$arggs = array(
					'post_type' => 'sound',
					'posts_per_page' => $qaleb['sound-count'],
				);
			  }else if($qaleb['sound-content']=='2'){
				$arggs = array(
					'post_type' => 'sound',
					'posts_per_page' => $qaleb['sound-count'],
					'orderby'	=> 	'rand'
				);
			  }else if($qaleb['sound-content']=='3'){
				$arggs = array(
					'post_type' => 'sound',
					'posts_per_page' => $qaleb['sound-count'],
					'tax_query' => array(
                        array(
                            'taxonomy' => 'sound_category',
                            'field'    => 'term_id',
                            'terms'    => $qaleb['sound-type-select'],
                        ),
				    ),
				);
			  }
			  
            query_posts($arggs);
            if(have_posts()) : while(have_posts()) : the_post(); ?>
<article class="item">
<div class="thumbnail">
<div class="calendar-small">
<div class="s-date"><?php the_time('d');  ?></div>
<div class="s-month"> <?php the_time('F');  ?></div>
</div>
<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(), 'time-sound', true )!=null){ ?><span><i class="fa fa-clock-o"></i> <?php echo get_post_meta( get_the_ID(), 'time-sound', 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 } ?>	