403Webshell
Server IP : 112.74.42.100  /  Your IP : 216.73.216.142
Web Server : nginx/1.20.2
System : Linux iZwz96lx4pjqiy84w4hni7Z 5.10.134-17.3.al8.x86_64 #1 SMP Thu Oct 31 14:29:57 CST 2024 x86_64
User : www ( 1000)
PHP Version : 8.0.26
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/wwwroot/sanxuany.cn/wp-content/themes/ioswallow/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/sanxuany.cn/wp-content/themes/ioswallow/template-top.php
<?php
/*
 * @Template Name: 推荐文章
 * 
 * @Author: iowen
 * @Author URI: https://www.iowen.cn/
 * @Date: 2021-08-07 21:18:11
 * @LastEditors: iowen
 * @LastEditTime: 2024-03-24 17:02:02
 * @FilePath: /ioswallow/template-top.php
 * @Description: 
 */
if ( ! defined( 'ABSPATH' ) ) { exit; }
?>
<?php get_header(); ?>
<?php io_page_head_html() ?>
	<div id="content">
		<div class="ioc_cat_list">
			<?php
				$paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;
				$args = array(
					//'meta_key' => '_cms_top',
					'meta_query' => array(
						array(
							'key' => '_cms_top',  
							'value' => '',  
							'compare' => '!='
						)
					),
					'orderby'   => 'date',
					'paged' => $paged
				); 
			$the_query = new WP_Query( $args );  
			if ( !$the_query ->have_posts() ) : ?> 
			<div class="text-center py-5"> 
				<div class="nothing"> </div>
				<p><?php _e('没有推荐内容,请到文章开启推荐选项','i_theme'); ?></p>
			</div>
			<?php elseif ( $the_query ->have_posts() ) : ?>
			<?php while ( $the_query ->have_posts() ) : $the_query ->the_post(); ?>
			<article class="blog-post row load-posts wow fadeInUp" data-wow-duration="1s"  data-wow-delay="0.3s">
				<div class="blog-post-thumbnail-zone col-12 col-lg-4 col-md-4">
					<a href="<?php the_permalink(); ?>">
						<?php  echo io_get_thumbnail('medium','blog-post-thumbnail') ?>
					</a>
				</div>
				<div class="blog-post-text-zone col-12 col-lg-8 col-md-8">
					<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
					<div class="meta">
						<?php io_entry_meta(true) ?>
					</div>
					<p>
					<?php echo io_strimwidth($post, 170) ?>
					</p>
				</div>
			</article>
			<?php endwhile; endif; wp_reset_postdata();?>
		</div>
		<?php //io_page_nav($the_query ->max_num_pages)?>
	</div>
</main>
<?php io_post_archive_nav($the_query ->max_num_pages) ?>
<?php get_footer(); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit