File: /home/rasad/domains/rasadeardakan.ir/private_html/wp-content/themes/ofogh/inc/news-ticker.php
<?php global $qaleb;?>
<?php if($qaleb['news-ac']=='1'){?>
<div class="news-tiker" style="border-radius:<?php echo $qaleb['news-radius']; ?>px;<?php if($qaleb['fixed-ac']=='1'){?>position:fixed;bottom:<?php echo $qaleb['news-opt']; ?>px;<?php } ?>margin:<?php echo $qaleb['news-opt']; ?>px auto;<?php if($qaleb['container-ac']=='1'){?>width:100%;<?php } ?>" id="closa">
<?php if($qaleb['close-ac']=='1'){?><div class="clos" onclick="document.getElementById('closa').classList.toggle('closeing');">×</div><?php } ?>
<?php if($qaleb['ads-ac']=='1'){?>
<div class="tiker-top" style="background:<?php echo $qaleb['ads-background']; ?>;">
<div class="container">
<div class="ttitle"><?php echo $qaleb['ads-ac-title']; ?></div>
<div class="contt"><a href="<?php echo $qaleb['ads-ac-site']; ?>"><?php echo $qaleb['ads-ac-cont']; ?></a></div>
</div>
</div>
<?php } ?>
<?php if($qaleb['tiker-ac']=='1'){?>
<div class="wrap">
<div class="container">
<?php if($qaleb['tiker-ac-bolt']=='1'){?><div class="titlle"><?php echo $qaleb['tiker-ac-titlle']; ?></div><?php } ?>
<div class="js-conveyor-example">
<ul>
<?php
if($qaleb['tiker-content']=='1'){
$arggs = array(
'post_type' => 'post',
'posts_per_page' => $qaleb['tiker-count'],
);
}else if($qaleb['tiker-content']=='2'){
$arggs = array(
'post_type' => 'post',
'posts_per_page' => $qaleb['tiker-count'],
'orderby' => 'rand'
);
}else if($qaleb['tiker-content']=='3'){
$arggs = array(
'post_type' => 'post',
'posts_per_page' => $qaleb['tiker-count'],
'tax_query' => array(
array(
'taxonomy' => 'category',
'field' => 'term_id',
'terms' => $qaleb['tiker-type-select'],
),
),
);
}
query_posts($arggs);
if(have_posts()) : while(have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink()?>" title="<?php the_title(); ?>"><img src="<?php echo $qaleb['tiker_uploader']['url']; ?>"><?php the_title(); ?></a></li>
<?php endwhile; endif; wp_reset_query(); ?>
</ul>
</div>
</div></div>
<script>
$(function() {
$('.js-conveyor-example').jConveyorTicker({reverse_elm: true});
});
</script>
<?php } ?>
</div>
<?php } ?>