HEX
Server: Apache
System: Linux qxu1650030446-7ccdf98f65-f6m2q 4.19.91-21.al7.x86_64 #1 SMP Wed Sep 2 19:47:49 CST 2020 x86_64
User: ()
PHP: 7.2.15
Disabled: chmod,exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,dl,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,socket_create_listen,socket_create_pair,socket_create,socket_get_option,socket_getpeername,socket_getsockname,socket_last_error,socket_listen,socket_read,socket_recv,socket_recvfrom,socket_select,socket_send,socket_sendto,socket_set_block,socket_set_nonblock,socket_set_option,socket_shutdown,socket_strerror,socket_write,stream_socket_client,stream_socket_server,pfsockopen,disk_total_space,disk_free_space,chown,diskfreespace,getrusage,get_current_user,getmyuid,getmypid,dl,leak,listen,chgrp,link,symlink,dlopen,proc_nice,proc_get_stats,proc_terminate,shell_exec,sh2_exec,posix_getpwuid,posix_getgrgid,posix_kill,ini_restore,mkfifo,dbmopen,dbase_open,filepro,filepro_rowcount,posix_mkfifo,putenv,sleep,fsockopen
Upload Files
File: /usr/home/qxu1650030446/htdocs/wp-content/themes/aly/archive-news.php
<?php 
/*
Template Name: 资讯中心
Author: 畔游科技  
Version: 1.0  
*/
get_header(); ?>  
<div class="page-banner">
	<picture>
        <source srcset="<?php echo of_get_option( 'm_banner_news'); ?>" media="(max-width:768px)" alt="资讯中心">
		<img src="<?php echo of_get_option( 'banner_news'); ?>" alt="资讯中心">
    </picture>
</div>
<div class="page-path">
    <div class="path-box container-width">
        <img src="<?php bloginfo('template_url'); ?>/images/home-ico.png" alt="首页"> 您当前的位置:<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="首页">首页</a> <b>»</b> <span>资讯中心</span></div>
    </div>
</div>
<!---------------- main ---------------->
<div class="container-width clearfix">
	<div class="pg-news-title">
		<ul class="clearfix casesTit">
			<?php wp_list_cats('sort_column=id&optioncount=0&hierarchical=1&hide_empty=0&child_of=1'); ?>
		</ul>
	</div>
	<div class="pg-news">
		<ul class="clearfix">
			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
				<li>
					<div class="pg-news-box-pic">
						<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
							<?php if ( has_post_thumbnail() ) { ?>
								<img src="<?php echo wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large')[0]; ?>" alt="<?php the_title(); ?>">
							<?php } else {?>
								<img src="<?php bloginfo('template_url'); ?>/images/news/news-thum.png" alt="<?php the_title(); ?>">
							<?php } ?>
						</a>	
					</div>
					<div class="pg-news-box-content">
						<h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
						<div class="pg-news-meta">
							<p><img src="<?php bloginfo('template_url'); ?>/images/time-ico.png" alt="发布时间"> <?php the_time('Y-m-d'); ?></p>
							<p><img src="<?php bloginfo('template_url'); ?>/images/view-ico.png" alt="浏览量"> <?php get_post_views($post -> ID); ?></p>
						</div>
						<p><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 200, '……'); ?></p>
						<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_url'); ?>/images/arr-ico.png" alt="更多"></a>
					</div>
				</li>
			<?php endwhile; endif; ?>
			<ul class="pg-code">
				<?php get_pagenavi(); ?>
			</ul>
		</ul>
	</div>
</div>
<?php get_footer(); ?>