Current Path : /var/www/ya/wp-content/themes/youthy/ |
Current File : /var/www/ya/wp-content/themes/youthy/comments.php |
<div class="comments-inner"> <h3 id="respond-title"><?php comments_number( __( 'Comments (0)','meanthemes' ), __( 'Comments (1)','meanthemes' ), __( 'Comments (%)','meanthemes' ) ); ?></h3></div> <aside class="comments"> <?php if ( post_password_required() ) : ?> <p class="nopassword"><?php esc_html( _e( 'This post is password protected. Enter the password to view any comments.', 'meanthemes' ) ); ?></p> <?php return; endif; ?> </aside> <?php if ( have_comments() ) : ?> <?php if ( get_comment_pages_count() > 1 && get_theme_mod( 'page_comments' ) ) : ?> <div class="navigation"> <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'meanthemes' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'meanthemes' ) ); ?></div> </div> <?php endif; ?> <div class="comments-inner"><ol class="commentlist"> <?php wp_list_comments( array( 'callback' => 'post_comments' ) ); ?> </ol></div> <?php if ( get_comment_pages_count() > 1 && get_theme_mod( 'page_comments' ) ) : ?> <div class="navigation"> <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'meanthemes' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'meanthemes' ) ); ?></div> </div> <?php endif; ?> <?php else : if ( ! comments_open() ) : ?> <p class="nocomments"><?php esc_html( _e( 'Comments are closed.', 'meanthemes' ) ); ?></p> <?php endif; ?> <?php endif; ?> <?php $aria_req = ( $req ? " aria-required='true'" : '' ); $form_args = array( 'title_reply' => __( 'Leave a comment', 'meanthemes'), 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published. Required fields are marked <span class="required">*</span>' , 'meanthemes' ) . '</p>', 'comment_notes_after' => '', 'comment_field' => '<p class="comment-form-comment"><label class="hidden" for="comment">' . __( 'Comment', 'meanthemes' ) . '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" placeholder="'. __( 'Comment', 'meanthemes' ) .'">' . '</textarea></p>', 'label_submit' => __( 'Post Comment' , 'meanthemes' ), 'fields' => apply_filters( 'comment_form_default_fields', array( 'author' => '<p class="comment-form-author">' . '<label class="hidden" for="author">' . __( 'Name', 'meanthemes' ) . '</label> ' . ( $req ? '<span class="required hidden">*</span>' : '' ) . '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' placeholder="' . __( 'Name', 'meanthemes' ) . '" /></p>', 'email' => '<p class="comment-form-email"><label class="hidden" for="email">' . __( 'Email', 'meanthemes' ) . '</label> ' . ( $req ? '<span class="required hidden">*</span>' : '' ) . '<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' placeholder="' . __( 'Email', 'meanthemes' ) . '" /></p>', 'url' => '<p class="comment-form-url"><label class="hidden" for="url">' . __( 'Website', 'meanthemes' ) . '</label>' . '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" placeholder="' . __( 'Website', 'meanthemes' ) . '" /></p>' ) ), ); ?> <?php comment_form( $form_args ); ?>