Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 71 lines (50 sloc) 2.498 kb
0c012232 »
2012-06-05 Bring in the initial files and folders.
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 *
8ab6ce25 »
2012-08-26 Copy/Paste fail. Update all instances of @package MyLife to @package
8 * @package Picturesque
0c012232 »
2012-06-05 Bring in the initial files and folders.
9 * @subpackage Template
10 * @since 0.1.0
11 * @author Justin Tadlock <justin@justintadlock.com>
d8e7a878 »
2012-07-10 Many, many changes getting this theme ready.
12 * @copyright Copyright (c) 2012, Justin Tadlock
13 * @link http://themehybrid.com/themes/picturesque
0c012232 »
2012-06-05 Bring in the initial files and folders.
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
d8e7a878 »
2012-07-10 Many, many changes getting this theme ready.
30 <h3 id="comments-number" class="comments-header"><?php comments_number( __( 'No Responses', 'picturesque' ), __( 'One Response', 'picturesque' ), __( '% Responses', 'picturesque' ) ); ?></h3>
0c012232 »
2012-06-05 Bring in the initial files and folders.
31
32 <?php if ( get_option( 'page_comments' ) ) : ?>
33 <div class="comments-nav">
d8e7a878 »
2012-07-10 Many, many changes getting this theme ready.
34 <?php previous_comments_link( __( '&larr; Previous', 'picturesque' ) ); ?>
35 <span class="page-numbers"><?php printf( __( 'Page %1$s of %2$s', 'picturesque' ), ( get_query_var( 'cpage' ) ? absint( get_query_var( 'cpage' ) ) : 1 ), get_comment_pages_count() ); ?></span>
36
37 <?php next_comments_link( __( 'Next &rarr;', 'picturesque' ) ); ?>
0c012232 »
2012-06-05 Bring in the initial files and folders.
38 </div><!-- .comments-nav -->
39 <?php endif; ?>
40
41 <?php do_atomic( 'before_comment_list' );// picturesque_before_comment_list ?>
42
43 <ol class="comment-list">
44 <?php wp_list_comments( hybrid_list_comments_args() ); ?>
45 </ol><!-- .comment-list -->
46
47 <?php do_atomic( 'after_comment_list' ); // picturesque_after_comment_list ?>
48
49 <?php endif; ?>
50
51 <?php if ( pings_open() && !comments_open() ) : ?>
52
53 <p class="comments-closed pings-open">
d8e7a878 »
2012-07-10 Many, many changes getting this theme ready.
54 <?php printf( __( 'Comments are closed, but <a href="%s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', 'picturesque' ), esc_url( get_trackback_url() ) ); ?>
0c012232 »
2012-06-05 Bring in the initial files and folders.
55 </p><!-- .comments-closed .pings-open -->
56
57 <?php elseif ( !comments_open() ) : ?>
58
59 <p class="comments-closed">
d8e7a878 »
2012-07-10 Many, many changes getting this theme ready.
60 <?php _e( 'Comments are closed.', 'picturesque' ); ?>
0c012232 »
2012-06-05 Bring in the initial files and folders.
61 </p><!-- .comments-closed -->
62
63 <?php endif; ?>
64
65 </div><!-- #comments -->
66
67 <?php comment_form(); // Loads the comment form. ?>
68
69 </div><!-- .comments-wrap -->
70
71 </div><!-- #comments-template -->
Something went wrong with that request. Please try again.