Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 70 lines (50 sloc) 2.456 kB
2aa8890 Importing the initial My Life theme files and folders.
greenshady authored
1 <?php
2 /**
3 * Comments Template
4 *
5 * Lists comments and calls the comment form. Individual comments have their own templates. The
6 * hierarchy for these templates is $comment_type.php, comment.php.
7 *
8 * @package MyLife
9 * @subpackage Template
10 * @since 0.1.0
11 * @author Justin Tadlock <justin@justintadlock.com>
7d67bf4 @justintadlock Bring copyright version up to date and version bump to 0.3.0.
authored
12 * @copyright Copyright (c) 2011 - 2013, Justin Tadlock
2aa8890 Importing the initial My Life theme files and folders.
greenshady authored
13 * @link http://themehybrid.com/themes/my-life
14 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
15 */
16
17 /* If a post password is required or no comments are given and comments/pings are closed, return. */
18 if ( post_password_required() || ( !have_comments() && !comments_open() && !pings_open() ) )
19 return;
20 ?>
21
22 <div id="comments-template">
23
24 <div class="comments-wrap">
25
26 <div id="comments">
27
28 <?php if ( have_comments() ) : ?>
29
30 <h3 id="comments-number" class="comments-header"><?php comments_number( __( 'No Responses', 'my-life' ), __( 'One Response', 'my-life' ), __( '% Responses', 'my-life' ) ); ?></h3>
31
32 <?php if ( get_option( 'page_comments' ) ) : ?>
33 <div class="comments-nav">
34 <span class="page-numbers"><?php printf( __( 'Page %1$s of %2$s', 'my-life' ), ( get_query_var( 'cpage' ) ? absint( get_query_var( 'cpage' ) ) : 1 ), get_comment_pages_count() ); ?></span>
35 <?php previous_comments_link(); ?>
36 <?php next_comments_link(); ?>
37 </div><!-- .comments-nav -->
38 <?php endif; ?>
39
40 <?php do_atomic( 'before_comment_list' );// my-life_before_comment_list ?>
41
42 <ol class="comment-list">
43 <?php wp_list_comments( hybrid_list_comments_args() ); ?>
44 </ol><!-- .comment-list -->
45
46 <?php do_atomic( 'after_comment_list' ); // my-life_after_comment_list ?>
47
48 <?php endif; ?>
49
50 <?php if ( pings_open() && !comments_open() ) : ?>
51
52 <p class="comments-closed pings-open">
53 <?php printf( __( 'Comments are closed, but <a href="%s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', 'my-life' ), esc_url( get_trackback_url() ) ); ?>
54 </p><!-- .comments-closed .pings-open -->
55
56 <?php elseif ( !comments_open() ) : ?>
57
58 <p class="comments-closed">
59 <?php _e( 'Comments are closed.', 'my-life' ); ?>
60 </p><!-- .comments-closed -->
61
62 <?php endif; ?>
63
64 </div><!-- #comments -->
65
66 <?php comment_form(); // Loads the comment form. ?>
67
68 </div><!-- .comments-wrap -->
69
70 </div><!-- #comments-template -->
Something went wrong with that request. Please try again.