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/slider.php
<?php global $qaleb;?>
<?php if($qaleb['slider-main-ac']=='1'){?>
<div class="<?php if($qaleb['smt']=='2'){?>pou<?php } ?> owl-carousel-1" style="overflow:hidden;">
  <?php  if($qaleb['slider-main-content']=='1'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['slider-main-count'],
				);
			  }else if($qaleb['slider-main-content']=='2'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['slider-main-count'],
					'orderby'	=> 	'rand'
				);
			  }else if($qaleb['slider-main-content']=='3'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['slider-main-count'],
					'tax_query' => array(
                        array(
                            'taxonomy' => 'category',
                            'field'    => 'term_id',
                            'terms'    => $qaleb['slider-main-type-select'],
                        ),
				    ),
				);
			  }
			  
            query_posts($arggs);
            if(have_posts()) : while(have_posts()) : the_post(); ?>
<div class="item<?php if($qaleb['smt']=='1'){?> sliderr<?php }else{ ?> slideer<?php } ?>">
<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 } ?>
<?php if($qaleb['smt']=='1'){?><?php }else{ ?></div><?php } ?>
<div class="det">
<?php if($qaleb['sliderr-i-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>
<?php if($qaleb['sliderr-i-excerpt']=='1'){?>
<div class="lead">
	<?php if(get_post_meta( get_the_ID(), 'lead', true )!=null){ ?>
		<?php echo get_post_meta( get_the_ID(), 'lead', true ); ?>
			<?php } else { ?>
		<?php the_excerpt(); ?>
	<?php } ?>
</div>
<?php } ?>
<div class="daat">
<?php if($qaleb['sliderr-i-author']=='1'){?><li><i class="fa fa-user" aria-hidden="true"></i> <?php the_author_posts_link(); ?></li><?php } ?>
<?php if($qaleb['sliderr-i-time']=='1'){?><li><i class="fa fa-clock" aria-hidden="true"></i> <?php the_time(' d F Y ');  ?></li><?php } ?>
<?php if($qaleb['sliderr-i-views']=='1'){?><li><i class="fa fa-signal" aria-hidden="true"></i> <?php echo getPostViews(get_the_ID()); ?></li><?php } ?>
<?php if($qaleb['sliderr-i-comments']=='1'){?><li><i class="fa fa-comments" aria-hidden="true"></i> <?php comments_popup_link('0', '1 دیدگاه', '% دیدگاه'); ?></li><?php } ?>
</div>
</div>
<?php if($qaleb['smt']=='1'){?></div><?php }else{ ?><?php } ?>
</div>
<?php endwhile; endif;  wp_reset_query(); ?>
</div>	
<div class="clearfix"></div>
<?php if($qaleb['smt']=='1'){?><style>.sid-right .owl-dot span {background: rgba(255,255,255,.4);}.sid-right .owl-dot span:hover{background:rgba(255, 255, 255, 0.55);}</style><?php } ?>
<?php } ?>