Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 52 lines (35 sloc) 0.972 kb
61e1d95 Added comments and comment styling
ModLearning Team authored
1 <div id="comments">
2 <?php if ( post_password_required() ) : ?>
3 <div class="alert-box alert">
4 This post is password protected. Enter the password to view comments.
5 </div>
6
7 </div>
8 <?php
9
10 return;
11 endif;
12 ?>
13
14
15 <?php if (have_comments()) : ?>
16
17 <h3 id="comments">
18 <?php comments_number('No Comments', 'One Comment', '% Comments' );?>
19 </h3>
20
21
22 <ul>
23 <?php wp_list_comments( array(
24 'avatar_size' => 60,
25 'style' => 'ul',
26 'type' => 'comment',
27 'callback' => 'yeti_comments'
28 )); ?>
29 </ul>
30
31 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
32 <nav id="comment-nav">
33 <ul class="clearfix">
34 <li><?php previous_comments_link() ?></li>
35 <li><?php next_comments_link() ?></li>
36 </ul>
37 </nav>
38 <?php endif; ?>
39
40 <?php else : ?>
41
7c473b5 Fixed styling issue with comments
ModLearning Team authored
42 <div class="panel callout">No Comments Yet!</div>
43
61e1d95 Added comments and comment styling
ModLearning Team authored
44
45 <?php endif; ?>
46
47 <?php comment_form(); ?>
48
49 </div>
50
51
Something went wrong with that request. Please try again.