文件操作 - comments.php
返回文件管理
返回主菜单
删除本文件
文件: /home/tecnoht/public_html/falegnameriabartesaghi--it/wp-content/themes/architek/comments.php
编辑文件内容
<?php /** * @package WordPress * @subpackage Architek */ if ( ! function_exists( 'architek_handcraftedwp_comment' ) ) : function architek_handcraftedwp_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case '' : default: ?> <li <?php comment_class(); ?> id="li-comment-<?php esc_attr(comment_ID()); ?>"> <article id="comment-<?php esc_attr(comment_ID()); ?>" class="comment" role="article"> <div class="comment-author vcard"> <div class="authoravatar"> <?php echo get_avatar( $comment, 70 ); ?> </div> <div class="authorname-metas"> <?php printf( esc_html__( '%s','architek'), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?> <div class="metas-comments"> <p class="blog-date"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><time pubdate datetime="<?php comment_time( 'c' ); ?>"> <?php printf( esc_html__( '%1$s at %2$s', 'architek' ), get_comment_date(), get_comment_time() ); ?> </time></a></p> <p><?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?></p> </div> </div> </div><!-- .comment-author .vcard --> <div class="comment-block"> <div class="comment-body"><?php wp_kses(comment_text(), 'post'); ?></div> <?php if ( $comment->comment_approved == '0' ) : ?> <u><?php esc_html_e( 'Your comment is awaiting moderation.', 'architek' ); ?></u> <br /> <?php endif; ?> </div> </article><!-- #comment-## --> <?php break; case 'pingback' : case 'trackback' : ?> <li class="post pingback"> <p><?php esc_html_e( 'Pingback:', 'architek' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( esc_html__('(Edit)', 'architek'), ' ' ); ?></p> <?php break; endswitch; } endif; // ends check for architek_handcraftedwp_comment() if ( post_password_required( get_the_ID() ) ) return; ?> <div id="comments"> <?php if ( post_password_required() ) : ?> <div class="nopassword"><?php esc_html_e( 'This post is password protected. Enter the password to view any comments.', 'architek' ); ?></div> </div><!-- .comments --> <?php return; endif; ?> <?php // You can start editing here -- including this comment! ?> <?php if ( have_comments() ) : ?> <h3 id="comments-title"> <?php printf( _n( 'One Comment %2$s', '%1$s Comments %2$s</div>' , get_comments_number(), 'architek' ), number_format_i18n( get_comments_number() ), '<span class"title">"' . wp_kses(get_the_title(), 'post') . '"</span>' ); ?> </h3> <ol class="commentlist"> <?php wp_list_comments( array( 'callback' => 'architek_handcraftedwp_comment' ) ); ?> </ol> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> <nav id="comment-nav-below" role="article"> <div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'architek' ) ); ?></div> <div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'architek' ) ); ?></div> </nav> <?php endif; // check for comment navigation ?> <?php else : // this is displayed if there are no comments so far ?> <?php if ( comments_open() ) : // If comments are open, but there are no comments ?> <?php else : // or, if we don't have comments: /* If there are no comments and comments are closed, * let's leave a little note, shall we? * But only on posts! We don't really need the note on pages. */ if ( ! comments_open() && ! is_page() ) : ?> <p class="nocomments"><?php esc_html_e( 'Comments are closed.', 'architek' ); ?></p> <?php endif; // end ! comments_open() && ! is_page() ?> <?php endif; ?> <?php endif; ?> <?php comment_form(); ?> </div><!-- #comments -->
修改文件时间
将文件时间修改为当前时间的前一年
删除文件