forked from arnabwahid/wordpress-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomments.php
More file actions
62 lines (46 loc) · 1.96 KB
/
comments.php
File metadata and controls
62 lines (46 loc) · 1.96 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/*
The comments page for Bones
*/
// Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if ( post_password_required() ) { ?>
<div class="alert alert-info"><?php _e("This post is password protected. Enter the password to view comments.","wpbootstrap"); ?></div>
<?php
return;
}
?>
<!-- You can start editing here. -->
<?php if ( have_comments() ) : ?>
<?php if ( ! empty($comments_by_type['comment']) ) : ?>
<h3 id="comments"><?php comments_number('<span>' . __("No","wpbootstrap") . '</span> ' . __("Responses","wpbootstrap") . '', '<span>' . __("One","wpbootstrap") . '</span> ' . __("Response","wpbootstrap") . '', '<span>%</span> ' . __("Responses","wpbootstrap") );?> <?php _e("to","wpbootstrap"); ?> “<?php the_title(); ?>”</h3>
<nav id="comment-nav">
<ul class="clearfix">
<li><?php previous_comments_link( __("Older comments","wpbootstrap") ) ?></li>
<li><?php next_comments_link( __("Newer comments","wpbootstrap") ) ?></li>
</ul>
</nav>
<ol class="commentlist">
<?php wp_list_comments('type=comment&callback=wp_bootstrap_comments'); ?>
</ol>
<?php endif; ?>
<?php if ( ! empty($comments_by_type['pings']) ) : ?>
<h3 id="pings">Trackbacks/Pingbacks</h3>
<ol class="pinglist">
<?php wp_list_comments('type=pings&callback=list_pings'); ?>
</ol>
<?php endif; ?>
<nav id="comment-nav">
<ul class="clearfix">
<li><?php previous_comments_link( __("Older comments","wpbootstrap") ) ?></li>
<li><?php next_comments_link( __("Newer comments","wpbootstrap") ) ?></li>
</ul>
</nav>
<?php if ( ! comments_open() ) : ?>
<p class="alert alert-info"><?php _e("Comments are closed","wpbootstrap"); ?>.</p>
<?php endif; ?>
<?php endif; ?>
<?php if ( comments_open() ) : ?>
<?php comment_form(); ?>
<?php endif; // if you delete this the sky will fall on your head ?>