<?php /** * The template for displaying Comments. * * 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 milestone_lite_comment() which is * located in the inc/template-tags.php file. * * @package Milestone Lite */ /* * 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; ?> <div id="comments" class="comments-area"> <?php if ( have_comments() ) : ?> <h2 class="comments-title"> <?php $comments_number = get_comments_number(); if ( 1 === $comments_number ) { /* translators: %s: post title */ printf( esc_html__( 'One thought on “%s”','milestone-lite' ), esc_html(get_the_title()) ); } else { printf( esc_html( /* translators: 1: number of comments, 2: post title */ _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $comments_number, 'comments title', 'milestone-lite' ) ), esc_html (number_format_i18n( $comments_number ) ), esc_html(get_the_title()) ); } ?> </h2> <?php the_comments_navigation(); ?> <ol class="comment-list"> <?php wp_list_comments( array( 'style' => 'ol', 'short_ping' => true, 'avatar_size' => 42, ) ); ?> </ol><!-- .comment-list --> <?php the_comments_navigation(); ?> <?php endif; // Check for have_comments(). ?> <?php // If comments are closed and there are comments, let's leave a little note, shall we? if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?> <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'milestone-lite' ); ?></p> <?php endif; ?> <?php comment_form( array( 'title_reply_before' => '<h2 id="reply-title" class="comment-reply-title">', 'title_reply_after' => '</h2>', ) ); ?> </div><!-- .comments-area -->
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
css | Folder | 0777 |
|
|
customize-pro | Folder | 0777 |
|
|
images | Folder | 0777 |
|
|
inc | Folder | 0777 |
|
|
js | Folder | 0777 |
|
|
languages | Folder | 0777 |
|
|
404.php | File | 822 B | 0644 |
|
archive.php | File | 1.2 KB | 0644 |
|
category.php | File | 1.34 KB | 0644 |
|
comments.php | File | 2.22 KB | 0644 |
|
content-index.php | File | 174.94 KB | 0644 |
|
content-page.php | File | 721 B | 0644 |
|
content-single.php | File | 1.33 KB | 0644 |
|
content.php | File | 1.84 KB | 0644 |
|
editor-style.css | File | 4.37 KB | 0644 |
|
footer.php | File | 1.53 KB | 0644 |
|
functions.php | File | 8.49 KB | 0644 |
|
functionsbak.php | File | 7.99 KB | 0644 |
|
header.php | File | 7.54 KB | 0644 |
|
image.php | File | 3.85 KB | 0644 |
|
index.php | File | 2.01 KB | 0644 |
|
license.txt | File | 34.31 KB | 0644 |
|
logo.jpg | File | 174.94 KB | 0644 |
|
no-results.php | File | 1005 B | 0644 |
|
page.php | File | 1.16 KB | 0644 |
|
readme.txt | File | 2.72 KB | 0644 |
|
screenshot.png | File | 332.1 KB | 0644 |
|
search.php | File | 1.14 KB | 0644 |
|
searchform.php | File | 564 B | 0644 |
|
sidebar.php | File | 1.13 KB | 0644 |
|
single.php | File | 956 B | 0644 |
|
style.css | File | 21.52 KB | 0644 |
|
template-full-width.php | File | 1.59 KB | 0644 |
|
woocommerce.php | File | 205 B | 0644 |
|