HEX
Server: Apache/2
System: Linux localhost 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
User: rasad (1007)
PHP: 7.4.33
Disabled: shell_exec,system,passthru,exec,popen,ini_restore,socket_create,socket_create_listen,socket_create_pair,socket_listen,socket_bind,symlink,link,pfsockopen,ini_alter,dl,pcntl_exec,pcntl_fork,proc_close,proc_open,proc_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_uname,show_source,getfile,mkfifo
Upload Files
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');">&times;</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 } ?>