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/single-download.php
<?php

/**
 * Template: Download 文章页面
 * @Author: 大胡子
 * @Email:  dahuzi@xintheme.com
 * @Link:   www.xintheme.com
 * @Date:   2023-08-19 17:00:02
 * @Last Modified by:   dahuzi
 * @Last Modified time: 2024-07-05 23:21:16
 */

//头部
get_header();

//Banner
get_template_part( 'template/banner', 'download' );

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

//文章扩展设置
$single_date = wpjam_theme_get_setting('single_date');
$single_views = wpjam_theme_get_setting('single_views');
$single_indent = wpjam_theme_get_setting('single_indent');
?>
<div class="page-section">
    <div class="container">
        <div class="clearfix">
            <?php
            //download侧边栏
            if (is_active_sidebar('widget_download')){?>
                <div class="sidebar-widget <?php echo get_theme_sidebar_class();?>">
                <?php dynamic_sidebar('widget_download');?>
                </div>
            <?php }?>

            <div class="page-main">
                <div class="post-content">
                    <div class="post-title">
                        <h1><?php the_title();?></h1>
                        <p>
                            <?php
                            //发布时间
                            if ( !empty($single_date) ){
                                echo '<span>'.__( '发布时间:', 'modular_theme' ).get_the_date().'</span>';
                            }
                            //浏览量
                            if ( !empty($single_views) ){
                                echo '<span>'.__( '浏览量:', 'modular_theme' ).wpjam_get_post_views(get_the_ID()).'</span>';
                            }
                            //编辑文章
                            edit_post_link('[编辑文章]');
                            ?>
                        </p>
                    </div>
                    <div class="post-body">
                    <?php
                    /* Start the Loop */
                    while ( have_posts() ) : the_post();
                        the_excerpt();
                    endwhile; // End of the loop.?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php
//页脚
get_footer();