File: /home/rasad/domains/rasadeardakan.ir/private_html/wp-content/themes/ofogh/inc/slider-big.php
<?php global $qaleb;?>
<?php if($qaleb['slider-big-ac']=='1'){?><div class="container">
<section class="<?php if($qaleb['bigo']=='1'){?>slider-big<?php }else{ ?>slider-bigo<?php } ?>" style="background:<?php echo $qaleb['sbc']; ?>;">
<div class="<?php if($qaleb['slider-big-ab']=='1'){?>owl-carousel-1<?php } ?>">
<div class="container">
<?php
if($qaleb['slider-big-content']=='1'){
$arggs = array(
'post_type' => 'post',
'posts_per_page' => 4,
);
}else if($qaleb['slider-big-content']=='2'){
$arggs = array(
'post_type' => 'post',
'posts_per_page' => 4,
'orderby' => 'rand'
);
}else if($qaleb['slider-big-content']=='3'){
$arggs = array(
'post_type' => 'post',
'posts_per_page' => 4,
'tax_query' => array(
array(
'taxonomy' => 'category',
'field' => 'term_id',
'terms' => $qaleb['slider-big-type-select'],
),
),
);
}
query_posts($arggs);
if(have_posts()) : while(have_posts()) : the_post(); ?>
<div class="item">
<div class="thumb">
<?php if(has_post_thumbnail()){?>
<a href="<?php the_permalink(); ?>"><img src="<?php the_post_thumbnail_url('big'); ?>" alt="<?php the_title(); ?>"></a>
<?php }else{ ?>
<img src="<?php bloginfo("template_url"); ?>/img/none.png">
<?php } ?>
<div class="det">
<?php if($qaleb['slider-big-rott']=='1'){?><?php if(get_post_meta( get_the_ID(), 'meta-text-1', true )!=null){ ?><div class="rott"><?php echo get_post_meta( get_the_ID(), 'meta-text-1', true ); ?></div><?php } ?><?php } ?>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="daat">
<?php if($qaleb['slider-big-author']=='1'){?><li><i class="fa fa-user" aria-hidden="true"></i> <?php the_author_posts_link(); ?></li><?php } ?>
<?php if($qaleb['slider-big-time']=='1'){?><li><i class="fa fa-clock" aria-hidden="true"></i> <?php the_time(' d F Y '); ?></li><?php } ?>
<?php if($qaleb['slider-big-views']=='1'){?><li><i class="fa fa-signal" aria-hidden="true"></i> <?php echo getPostViews(get_the_ID()); ?></li><?php } ?>
<?php if($qaleb['slider-big-comments']=='1'){?><li><i class="fa fa-comments" aria-hidden="true"></i> <?php comments_popup_link('0', '1 دیدگاه', '% دیدگاه'); ?></li><?php } ?>
</div>
</div>
</div>
</div>
<?php endwhile; endif; wp_reset_query(); ?>
</div>
<?php if($qaleb['slider-big-ab']=='1'){?>
<div class="container">
<?php
if($qaleb['slider-big-content']=='1'){
$arggs = array(
'post_type' => 'post',
'posts_per_page' => 4,
'offset' => 4,
);
}else if($qaleb['slider-big-content']=='2'){
$arggs = array(
'post_type' => 'post',
'posts_per_page' => 4,
'offset' => 4,
'orderby' => 'rand'
);
}else if($qaleb['slider-big-content']=='3'){
$arggs = array(
'post_type' => 'post',
'posts_per_page' => 4,
'offset' => 4,
'tax_query' => array(
array(
'taxonomy' => 'category',
'field' => 'term_id',
'terms' => $qaleb['slider-big-type-select'],
),
),
);
}
query_posts($arggs);
if(have_posts()) : while(have_posts()) : the_post(); ?>
<div class="item">
<div class="thumb">
<?php if(has_post_thumbnail()){?>
<a href="<?php the_permalink(); ?>"><img src="<?php the_post_thumbnail_url('big'); ?>" alt="<?php the_title(); ?>"></a>
<?php }else{ ?>
<img src="<?php bloginfo("template_url"); ?>/img/none.png">
<?php } ?>
<div class="det">
<?php if($qaleb['slider-big-rott']=='1'){?><?php if(get_post_meta( get_the_ID(), 'meta-text-1', true )!=null){ ?><div class="rott"><?php echo get_post_meta( get_the_ID(), 'meta-text-1', true ); ?></div><?php } ?><?php } ?>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="daat">
<?php if($qaleb['slider-big-author']=='1'){?><li><i class="fa fa-user" aria-hidden="true"></i> <?php the_author_posts_link(); ?></li><?php } ?>
<?php if($qaleb['slider-big-time']=='1'){?><li><i class="fa fa-clock" aria-hidden="true"></i> <?php the_time(' d F Y '); ?></li><?php } ?>
<?php if($qaleb['slider-big-views']=='1'){?><li><i class="fa fa-signal" aria-hidden="true"></i> <?php echo getPostViews(get_the_ID()); ?></li><?php } ?>
<?php if($qaleb['slider-big-comments']=='1'){?><li><i class="fa fa-comments" aria-hidden="true"></i> <?php comments_popup_link('0', '1 دیدگاه', '% دیدگاه'); ?></li><?php } ?>
</div>
</div>
</div>
</div>
<?php endwhile; endif; wp_reset_query(); ?>
</div>
<?php } ?>
</div>
</section></div>
<div class="clearfix"></div>
<?php } ?>