HEX
Server: nginx/1.16.1
System: Linux VM-0-14-centos 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User: www (1000)
PHP: 8.3.31
Disabled: 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
Upload Files
File: /www/wwwroot/www.sceybwg.com/wp-content/themes/Modular/template/full-page.php
<?php

/**
 * Template Name: 全宽页面(无侧边栏)
 * @Author: 大胡子
 * @Email:  dahuzi@xintheme.com
 * @Link:   www.xintheme.com
 * @Date:   2023-08-19 17:00:02
 * @Last Modified by:   dahuzi
 * @Last Modified time: 2024-01-16 23:01:49
 */

//头部
get_header();

//如果有设置特色图片 显示Banner图片
if( has_post_thumbnail() ){
	echo '<div class="page-banner">';
	echo '<img loading="lazy" src="'.get_the_post_thumbnail_url().'" alt="'.dahuzi_get_image_alt(get_the_post_thumbnail_url()).'" />';
	echo '<div class="banner-text">';
	echo '<div class="container">';
	echo '<h1>'.get_the_title().'</h1>';
	if(has_excerpt()){
		echo the_excerpt();
	}
	echo '</div>';
	echo '</div>';
	echo '</div>';
}

//面包屑导航+搜索框
get_template_part( 'template/archive', 'search' );

?>
<div class="page-section">
	<div class="container">
		<div class="clearfix">
			<div class="page-main">
				<div class="post-content">
					<?php
					//没有设置特色图片的时候 显示标题
					if( !has_post_thumbnail() ){?>
						<div class="post-title">
							<h1><?php the_title();?></h1>
						</div>
					<?php }?>
					<div class="post-body">
					<?php
					/* Start the Loop */
					while ( have_posts() ) : the_post();
						the_content();
					endwhile; // End of the loop.?>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<?php
get_footer();