PHP Classes

File: comments.php

Recommend this page to a friend!
  Classes of Joko Prasetyo   kciaotime WordPress Theme   comments.php   Download  
File: comments.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: kciaotime WordPress Theme
WordPress theme to customize different page parts
Author: By
Last change:
Date: 1 year ago
Size: 1,241 bytes
 

Contents

Class file image Download
<?php if ( post_password_required() ) { ?>
<p class="alert-error"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'kciao' ); ?></p>
    <?php return; } ?>

    <?php if ( have_comments() ) { ?>
<div id="comments">
           
            <h3 id="comments-title"><?php
            printf
( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'kciao' ),
           
number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
           
?></h3>
           
            <ol class="commentlist">
              <?php wp_list_comments( array( 'kciao_comment' ) ); ?>
</ol>
           
            <?php if ( get_comment_pages_count() > 1 ) { ?>
<div class="navigation clearfix">
                    <div class="alignleft"><?php previous_comments_link( __( '<span class="fa fa-chevron-left"></span> Older Comments', 'kciao' ) ); ?></div>
                    <div class="alignright"><?php next_comments_link( __( 'Newer Comments <span class="fa fa-chevron-right"></span>', 'kciao' ) ); ?></div>
                </div><!-- .navigation .clearfix -->
            <?php } ?>

        </div><!-- #comments -->
    <?php } ?>

    <?php comment_form(); ?>