<?php global $qaleb;?>
<div class="clearfix"></div>
<div class="boxx">
<div class="tit">
<h4><span><?php echo $qaleb['b-2-title']; ?></span></h4>
</div>
<div class="aa">
<div class="right">
<?php
				if($qaleb['b-2-content']=='1'){
				$gargs = array(
                    'post_type' => 'post',
					'posts_per_page' => 1,
				);
			  }else if($qaleb['b-2-content']=='2'){
				$gargs = array(
                    'post_type' => 'post',
					'posts_per_page' => 1,
					'orderby'	=> 	'rand'
				);
			  }else if($qaleb['b-2-content']=='3'){
				$gargs = array(
                    'post_type' => 'post',
					'posts_per_page' => 1,
					'tax_query' => array(
                        array(
                            'taxonomy' => 'category',
                            'field'    => 'term_id',
                            'terms'    => $qaleb['b-2-type-select'],
                        ),
				    ),
				);
			  }

                query_posts($gargs);
			
            if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php if($qaleb['boxe-b'] == '1'){?><div class="datee"><span><?php the_time('d');  ?></span><b><?php the_time('F');  ?></b></div><?php } ?>
<?php get_template_part('inc/loop-right'); ?>
<?php endwhile; endif; wp_reset_query(); ?>
</div>

<div class="left">
<?php
				if($qaleb['b-2-content']=='1'){
				$gargs = array(
                    'post_type' => 'post',
					'posts_per_page' => $qaleb['b-2-count'],
					'offset' => 1,
				);
			  }else if($qaleb['b-2-content']=='2'){
				$gargs = array(
                    'post_type' => 'post',
					'posts_per_page' => $qaleb['b-2-count'],
					'offset' => 1,
					'orderby'	=> 	'rand'
				);
			  }else if($qaleb['b-2-content']=='3'){
				$gargs = array(
                    'post_type' => 'post',
					'posts_per_page' => $qaleb['b-2-count'],
					'offset' => 1,
					'tax_query' => array(
                        array(
                            'taxonomy' => 'category',
                            'field'    => 'term_id',
                            'terms'    => $qaleb['b-2-type-select'],
                        ),
				    ),
				);
			  }

                query_posts($gargs);
			
            if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php get_template_part('inc/loop-left'); ?>	
<?php endwhile; endif; wp_reset_query(); ?>			
</div>
</div>
</div><!------------boxx------------->
<div class="clearfix"></div>