Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 43 lines (34 sloc) 1.01 kb
<?php
/**
* Comments template.
*
* @package Inkblot
* @see https://codex.wordpress.org/Template_Hierarchy
*/
?>
<section id="comments">
<?php
print inkblot_widgetized('comment-header');
if (post_password_required()) :
// a password is required to view this post
else :
if (have_comments()) : ?>
<header class="comments-header">
<h1><?php comments_number(); ?></h1>
</header><!-- .comments-header -->
<?php
wp_list_comments(array(
'style' => 'div',
'avatar_size' => 64,
'callback' => 'inkblot_start_comment',
'end-callback' => 'inkblot_end_comment'
));
print inkblot_comments_nav(get_theme_mod('paged_comments', true));
elseif ( ! comments_open() and get_comments_number() and post_type_supports(get_post_type(), 'comments')) :
// comments are closed, but the post has and supports comments
endif;
comment_form();
endif;
print inkblot_widgetized('comment-footer');
?>
</section><!-- #comments -->
Jump to Line
Something went wrong with that request. Please try again.