trAvis - MANAGER
Edit File: comments.php
<?php if ( post_password_required() ) { return; } if ( comments_open() || get_comments_number()) : ?> <div class="edgtf-comment-holder clearfix" id="comments"> <div class="edgtf-comment-number"> <div class="edgtf-comment-number-inner"> <h3><?php comments_number( esc_html__('No Comments','baristawp'), '1'.esc_html__(' Comment ','baristawp'), '% '.esc_html__(' Comments ','baristawp')); ?></h3> </div> </div> <div class="edgtf-comments"> <?php if ( have_comments() ) : ?> <ul class="edgtf-comment-list"> <?php wp_list_comments(array( 'callback' => 'barista_edge_comment')); ?> </ul> <?php endif; ?> <?php if( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' )) : ?> <p><?php esc_html_e('Sorry, the comment form is closed at this time.', 'baristawp'); ?></p> <?php endif; ?> </div> </div> <?php $barista_edge_variable_commenter = wp_get_current_commenter(); $barista_edge_variable_req = get_option( 'require_name_email' ); $barista_edge_variable_aria_req = ( $barista_edge_variable_req ? " aria-required='true'" : '' ); $barista_edge_variable_args = array( 'id_form' => 'commentform', 'id_submit' => 'submit_comment', 'title_reply'=> esc_html__( 'Post a Comment','baristawp' ), 'title_reply_to' => esc_html__( 'Post a Reply to %s','baristawp' ), 'cancel_reply_link' => esc_html__( 'Cancel Reply','baristawp' ), 'label_submit' => esc_html__( 'Submit','baristawp' ), 'comment_field' => '<textarea id="comment" placeholder="'.esc_html__( 'Comment','baristawp' ).'" name="comment" cols="45" rows="8" aria-required="true"></textarea>', 'comment_notes_before' => '', 'comment_notes_after' => '', 'fields' => apply_filters( 'comment_form_default_fields', array( 'author' => '<div class="edgtf-two-columns-50-50 clearfix"><div class="edgtf-two-columns-50-50-inner clearfix"><div class="edgtf-column"><div class="edgtf-column-inner"><input id="author" name="author" placeholder="'. esc_html__( 'Name','baristawp' ) .'" type="text" value="' . esc_attr( $barista_edge_variable_commenter['comment_author'] ) . '"' . $barista_edge_variable_aria_req . ' /></div></div>', 'email' => '<div class="edgtf-column"><div class="edgtf-column-inner"><input id="email" name="email" placeholder="'. esc_html__( 'E-mail','baristawp' ) .'" type="text" value="' . esc_attr( $barista_edge_variable_commenter['comment_author_email'] ) . '"' . $barista_edge_variable_aria_req . ' /></div></div></div></div>' ) ) ); if(is_user_logged_in()){ $barista_edge_variable_args['class_form'] = 'edgtf-comment-registered-user'; $barista_edge_variable_args['title_reply_before'] = '<h3 id="reply-title" class="comment-reply-title edgtf-comment-reply-title-registered">'; } ?> <?php if(get_comment_pages_count() > 1){ ?> <div class="edgtf-comment-pager"> <p><?php paginate_comments_links(); ?></p> </div> <?php } ?> <div class="edgtf-comment-form"> <?php comment_form($barista_edge_variable_args); ?> </div> <?php endif; ?>