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

                query_posts($gargs);
			
            if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php get_template_part('inc/blok-f-right'); ?>
<?php endwhile; endif; wp_reset_query(); ?>

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

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