File Editor
Directories:
.. (Back)
assets
customizer
framework
frontpage
languages
lib
template_parts
Files:
404.php
author.php
category.php
comments.php
footer.php
functions.php
header.php
index.php
page.php
readme.txt
search.php
sidebar.php
single.php
style.css
style_core.css
tag.php
woocommerce.php
Create New File
Create
Edit File: comments.php
<?php /** * The Comment section for Optimizer * * Displays the Comment section in posts and pages. * * @package Optimizer * * @since Optimizer 1.0 */ global $optimizer;?> <?php //If Password Protected, DO NOT LOAD if ( post_password_required() ) { ?> <p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.', 'optimizer'); ?></p> <?php return; } ?> <!-- THE COMMENTS/PING TEMPLATE START --> <?php if ( have_comments() ) : ?> <?php if ( ! empty($comments_by_type['comment']) ) : ?> <!--COMMENT RESPONSE COUNT START--> <h3 id="comments"> <?php comments_number(__( 'No Responses', 'optimizer'), __('One Response', 'optimizer'), __('% Responses', 'optimizer'));?> to “<a><?php the_title(); ?></a>” </h3> <!--COMMENT RESPONSE COUNT END--> <!--COMMENTS LIST START--> <ul class="commentlist"> <!--Comments callback from functions.php--> <?php wp_list_comments('type=comment&callback=optimizer_comment');?> </ul> <!--Comments page navigation--> <div class="navigation"> <?php paginate_comments_links( array('prev_text' => '«', 'next_text' => '»')) ?> </div> <!--COMMENTS LIST END--> <?php endif; ?> <!--PINGS START--> <?php if ( ! empty($comments_by_type['pings']) ) : ?> <!--PINGS Title--> <h3 id="comments_ping"><?php _e('Trackbacks & Pings', 'optimizer'); ?></h3> <!--PINGS LIST START--> <ul class="commentlist" id="ping"> <?php wp_list_comments('type=pings&callback=optimizer_ping'); ?> </ul> <div class="navigation"><?php paginate_comments_links( array('prev_text' => '«', 'next_text' => '»')) ?></div> <!--PINGS LIST END--> <?php endif; ?> <!--PINGS END-> <?php else : // this is displayed if there are no comments so far ?> <?php if ('open' == $post->comment_status) : ?> <!-- If comments are open, but there are no comments. --> <?php else : // comments are closed ?> <!-- If comments are closed. --> <?php if ( !is_page() ) { ?><p class="nocomments"><?php _e('Comments are closed.', 'optimizer'); ?></p><?php } ?> <?php endif; ?> <?php endif; ?> <!--COMMENT FORM START--> <?php comment_form(); ?> <!--COMMENT FORM END-->
Save Changes
Rename File
Rename