public
Description: An elegant, flexible WordPress theme
Homepage: http://tarskitheme.com/
Clone URL: git://github.com/ionfish/tarski.git
tarski / comments.php
100644 43 lines (36 sloc) 1.576 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* @package WordPress
* @subpackage Tarski
*/
 
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die('This page should not be loaded directly.');
 
if (post_password_required()) return;
 
if (have_comments() || comments_open()) { ?>
<div id="comments-header">
<div class="clearfix">
<h2 class="title"><?php comments_number(__('No comments', 'tarski'), __('1 comment', 'tarski'), __('% comments', 'tarski')); ?></h2>
<?php if (comments_open()) { ?>
<p class="comments-feed"><a href="<?php echo get_post_comments_feed_link(); ?>"><?php _e('Comments feed for this article', 'tarski'); ?></a></p>
<?php } ?>
</div>
<?php if (pings_open()) { ?>
<p class="trackback-link"><?php printf(__('Trackback link: %s', 'tarski'),
'<a href="' . get_trackback_url() . '">' . urldecode(get_trackback_url()) . '</a>') .'</p>'; ?></p>
<?php } ?>
</div>
<?php if (have_comments()) { ?>
<ol id="comments" class="clearfix">
<?php wp_list_comments(array('style' => 'ol', 'walker' => new TarskiCommentWalker)); ?>
</ol>
<?php $page_links = paginate_comments_links(array(
'type' => 'array', 'echo' => false,
'prev_text' => __('&lsaquo; Previous', 'tarski'),
'next_text' => __('Next &rsaquo;', 'tarski')));
 
if ($page_links) echo '<p id="comment-paging">' . join(' &middot; ', $page_links) . '</p>';
}
 
if (comments_open())
include_once(TARSKIDISPLAY . '/respond.php');
else
echo '<p id="comments-closed"><em>' . __('Comments are now closed.', 'tarski') . '</em></p>';
} ?>