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/carousel-3/3-2.php
<?php global $qaleb;?>
<?php if($qaleb['carousel-3-b']=='1'){?>
<section class="carousel-3" style="background:<?php echo $qaleb['carousel-3-b-c']; ?>;">
<div class="container">
<div class="tiitle">
<h3><?php echo $qaleb['carousel-3-b-title']; ?></h3>
</div>
<div class="carousel-tree">
<div class="owl-carousel-3">
  <?php
			  
			  if($qaleb['carousel-3-b-content']=='1'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['carousel-3-b-count'],
				);
			  }else if($qaleb['carousel-3-b-content']=='2'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['carousel-3-b-count'],
					'orderby'	=> 	'rand'
				);
			  }else if($qaleb['carousel-3-b-content']=='3'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['carousel-3-b-count'],
					'tax_query' => array(
                        array(
                            'taxonomy' => 'category',
                            'field'    => 'term_id',
                            'terms'    => $qaleb['carousel-3-b-type-select'],
                        ),
				    ),
				);
			  }
			  
            query_posts($arggs);
            if(have_posts()) : while(have_posts()) : the_post(); ?>
<div class="item barg">
<div class="thumb">
<svg width="42" height="36" viewBox="0 0 38 33" xmlns="http://www.w3.org/2000/svg">
<path d="M0.0343971 1.58909C0.214211 0.600692 1.16221 -0.0581616 2.14334 0.157844C9.94241 1.8749 17.2198 5.45588 23.3472 10.6054C29.4745 15.7549 34.2547 22.3073 37.2886 29.6944C37.6703 30.6237 37.1844 31.6709 36.2417 32.0182C35.299 32.3655 34.2567 31.8811 33.8723 30.9529C31.059 24.1592 26.6493 18.1328 21.0065 13.3905C15.3637 8.6482 8.66817 5.34169 1.49163 3.73975C0.511147 3.52088 -0.14542 2.57749 0.0343971 1.58909Z"></path>
</svg>
<?php if(has_post_thumbnail()){?>
<a href="<?php the_permalink(); ?>"><img src="<?php the_post_thumbnail_url('medium'); ?>" alt="<?php the_title(); ?>"></a>
<?php }else{ ?>
<img src="<?php bloginfo("template_url"); ?>/img/none.png">
<?php } ?>
 </div>
<div class="det">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="daat">
<?php if($qaleb['carousel-3-b-author']=='1'){?><li><i class="fa fa-user" aria-hidden="true"></i> <?php the_author_posts_link(); ?></li><?php } ?>
<?php if($qaleb['carousel-3-b-time']=='1'){?><li><i class="fa fa-clock" aria-hidden="true"></i> <?php the_time(' d F Y ');  ?></li><?php } ?>
<?php if($qaleb['carousel-3-b-views']=='1'){?><li><i class="fa fa-signal" aria-hidden="true"></i> <?php echo getPostViews(get_the_ID()); ?></li><?php } ?>
<?php if($qaleb['carousel-3-b-comments']=='1'){?><li><i class="fa fa-comments" aria-hidden="true"></i> <?php comments_popup_link('0', '1 دیدگاه', '% دیدگاه'); ?></li><?php } ?>
</div>
</div>
</div>
<?php endwhile; endif;  wp_reset_query(); ?>
</div></div>
</div>
</section>
<div class="clearfix"></div>
<?php } ?>