文件操作 - comments.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/themes/ms-lms-starter-theme/comments.php
编辑文件内容
<?php if ( post_password_required() ) { return; } ?> <div> <?php if ( have_comments() ) : ?> <h3 class="comments-title"> <?php comments_number(); ?> </h3> <ul class="comment-list"> <?php wp_list_comments( array( 'style' => 'ul', 'short_ping' => true, 'avatar_size' => 78, 'callback' => 'starter_comment', ) ); ?> </ul> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> <nav class="navigation comment-navigation" role="navigation"> <h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'starter-text-domain' ); ?></h2> <div class="nav-links"> <?php $prev_link = get_previous_comments_link( esc_html__( 'Older Comments', 'starter-text-domain' ) ); $next_link = get_next_comments_link( esc_html__( 'Newer Comments', 'starter-text-domain' ) ); if ( $prev_link ) { printf( '<div class="nav-previous">%s</div>', esc_url( $prev_link ) ); } if ( $next_link ) { printf( '<div class="nav-next">%s</div>', esc_url( $next_link ) ); } ?> </div> </nav> <?php endif; endif; comment_form( array( 'comment_notes_before' => '', 'comment_notes_after' => '', ) ); if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?> <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'starter-text-domain' ); ?></p> <?php endif; ?> </div>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件