Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 63 lines (43 sloc) 2.019 kB
7c50385 Adding the initial Prototype files and folders.
greenshady authored
1 <?php
2 /**
3 * Comments Template
4 *
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
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.
7c50385 Adding the initial Prototype files and folders.
greenshady authored
7 *
839713b Updates galore for the Prototype theme.
greenshady authored
8 * @package Prototype
7c50385 Adding the initial Prototype files and folders.
greenshady authored
9 * @subpackage Template
10 */
11
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
12 /* If a post password is required or no comments are given and comments/pings are closed, return. */
7c50385 Adding the initial Prototype files and folders.
greenshady authored
13 if ( post_password_required() || ( !have_comments() && !comments_open() && !pings_open() ) )
14 return;
15 ?>
16
17 <div id="comments-template">
18
19 <div class="comments-wrap">
20
21 <div id="comments">
22
23 <?php if ( have_comments() ) : ?>
24
f11b428 @justintadlock Change all instances of hybrid_get_textdomain() to 'prototype'.
authored
25 <h3 id="comments-number" class="comments-header"><?php comments_number( __( 'No Responses', 'prototype' ), __( 'One Response', 'prototype' ), __( '% Responses', 'prototype' ) ); ?></h3>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
26
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
27 <?php do_atomic( 'before_comment_list' );// prototype_before_comment_list ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
28
29 <ol class="comment-list">
30 <?php wp_list_comments( hybrid_list_comments_args() ); ?>
31 </ol><!-- .comment-list -->
32
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
33 <?php do_atomic( 'after_comment_list' ); // prototype_after_comment_list ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
34
35 <?php if ( get_option( 'page_comments' ) ) : ?>
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
36 <div class="comment-navigation comment-pagination">
7c50385 Adding the initial Prototype files and folders.
greenshady authored
37 <?php paginate_comments_links(); ?>
38 </div><!-- .comment-navigation -->
39 <?php endif; ?>
40
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
41 <?php endif; ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
42
43 <?php if ( pings_open() && !comments_open() ) : ?>
44
45 <p class="comments-closed pings-open">
f11b428 @justintadlock Change all instances of hybrid_get_textdomain() to 'prototype'.
authored
46 <?php printf( __( 'Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', 'prototype' ), get_trackback_url() ); ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
47 </p><!-- .comments-closed .pings-open -->
48
49 <?php elseif ( !comments_open() ) : ?>
50
51 <p class="comments-closed">
f11b428 @justintadlock Change all instances of hybrid_get_textdomain() to 'prototype'.
authored
52 <?php _e( 'Comments are closed.', 'prototype' ); ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
53 </p><!-- .comments-closed -->
54
55 <?php endif; ?>
56
57 </div><!-- #comments -->
58
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
59 <?php comment_form(); // Loads the comment form. ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
60
61 </div><!-- .comments-wrap -->
62
63 </div><!-- #comments-template -->
Something went wrong with that request. Please try again.