| Line | |
|---|
| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | // if password is required |
|---|
| 4 | if ( post_password_required() ) { |
|---|
| 5 | return; |
|---|
| 6 | } |
|---|
| 7 | |
|---|
| 8 | // if post has comments |
|---|
| 9 | if ( have_comments() ) : ?> |
|---|
| 10 | |
|---|
| 11 | <h2 class="comment-title"> |
|---|
| 12 | <?php comments_number( esc_html__( '0 Comments', 'ashe' ), esc_html__( 'One Comment', 'ashe' ), esc_html__( '% Comments', 'ashe' ) ); ?> |
|---|
| 13 | </h2> |
|---|
| 14 | |
|---|
| 15 | <ul class="commentslist" > |
|---|
| 16 | <?php wp_list_comments( 'callback=ashe_comments' ); ?> |
|---|
| 17 | </ul> |
|---|
| 18 | |
|---|
| 19 | <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> |
|---|
| 20 | <div class="comments-nav-section"> |
|---|
| 21 | <p class="fl"></p> |
|---|
| 22 | <p class="fr"></p> |
|---|
| 23 | |
|---|
| 24 | <div> |
|---|
| 25 | <div class="default-previous"> |
|---|
| 26 | <?php previous_comments_link( '<i class="fa fa-long-arrow-left" ></i> '. esc_html__( 'Older Comments', 'ashe' ) ); ?> |
|---|
| 27 | </div> |
|---|
| 28 | |
|---|
| 29 | <div class="default-next"> |
|---|
| 30 | <?php next_comments_link( esc_html__( 'Newer Comments', 'ashe' ) . ' <i class="fa fa-long-arrow-right" ></i>' ); ?> |
|---|
| 31 | </div> |
|---|
| 32 | |
|---|
| 33 | <div class="clear"></div> |
|---|
| 34 | </div> |
|---|
| 35 | </div> |
|---|
| 36 | <?php |
|---|
| 37 | endif; |
|---|
| 38 | |
|---|
| 39 | // have_comments() |
|---|
| 40 | endif; |
|---|
| 41 | |
|---|
| 42 | // Form |
|---|
| 43 | comment_form([ |
|---|
| 44 | 'title_reply' => esc_html__( 'Leave a Reply', 'ashe' ), |
|---|
| 45 | 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . esc_html__( 'Comment', 'ashe' ) . '</label><textarea name="comment" id="comment" cols="45" rows="8" maxlength="65525" required="required" spellcheck="false"></textarea></p>', |
|---|
| 46 | 'label_submit' => esc_html__( 'Post Comment', 'ashe' ) |
|---|
| 47 | ]); |
|---|
| 48 | |
|---|
| 49 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.