File Editor
Directories:
.. (Back)
Files:
_content-post-header.php
_index-featured.php
_index.php
_post-slider.php
content-audio.php
content-gallery.php
content-image.php
content-link.php
content-page.php
content-portfolio.php
content-quote.php
content-video.php
content.php
template-blank-1.php
template-blank-2.php
template-blank-3.php
template-blank-4.php
template-blank-5.php
template-blank-6.php
template-blank-7.php
template-blank-8.php
template-layout-content-sidebar.php
template-layout-full-width.php
template-layout-portfolio.php
template-layout-sidebar-content.php
woocommerce.php
wp-404.php
wp-bbpress.php
wp-buddypress.php
wp-comments.php
wp-index.php
wp-page.php
wp-sidebar.php
wp-single-x-portfolio.php
wp-single.php
Create New File
Create
Edit File: wp-comments.php
<?php // ============================================================================= // VIEWS/ETHOS/WP-COMMENTS.PHP // ----------------------------------------------------------------------------- // The area of the page that contains both current comments and the comment // form. The actual display of comments is handled by a callback to // x_comment(). // ============================================================================= $req = get_option( 'require_name_email' ); $aria_req = ( $req ? " aria-required='true' required='required'" : '' ); // // 1. If the current post is protected by a password and the visitor has not // yet entered the password, we will return early without loading the // comments. // if ( post_password_required() ) return; // 1 ?> <div id="comments" class="x-comments-area"> <?php if ( have_comments() ) : ?> <h2 class="h-comments-title"><span><?php _e( 'Comments' , '__x__' ); ?></span></h2> <ol class="x-comments-list"> <?php wp_list_comments( array( 'callback' => 'x_ethos_comment', 'style' => 'ol' ) ); ?> </ol> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> <nav id="comment-nav-below" class="navigation" role="navigation"> <h1 class="visually-hidden"><?php _e( 'Comment navigation', '__x__' ); ?></h1> <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', '__x__' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', '__x__' ) ); ?></div> </nav> <?php endif; ?> <?php if ( ! comments_open() && get_comments_number() ) : ?> <p class="nocomments"><?php _e( 'Comments are closed.' , '__x__' ); ?></p> <?php endif; ?> <?php endif; ?> <?php comment_form( array( 'comment_notes_before' => '', 'comment_notes_after' => '', 'id_submit' => 'entry-comment-submit', 'label_submit' => __( 'Submit' , '__x__' ), 'title_reply' => '<span>' . __( 'Leave a Comment</span>' , '__x__' ) . '</span>', 'comment_field' => '<p class="comment-form-comment">' . '<label for="comment">' . _x( 'Comment', 'noun', '__x__' ) . '</label>' . '<textarea id="comment" name="comment" cols="45" rows="8" placeholder="' . _x( 'Your Comment *', 'noun', '__x__' ) . '"' . $aria_req . '></textarea>' . '</p>' ) ); ?> </div>
Save Changes
Rename File
Rename