Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 67 lines (45 sloc) 2.126 kb
7c50385 Adding the initial Prototype 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
6 * templates. The hierarchy for these templates is $comment_type.php, comment.php.
7 *
8 * @package News
9 * @subpackage Template
10 */
11
12 if ( 'comments.php' == basename( $_SERVER['SCRIPT_FILENAME'] ) )
13 die( __( 'Please do not load this page directly. Thanks!', hybrid_get_textdomain() ) );
14
15 if ( post_password_required() || ( !have_comments() && !comments_open() && !pings_open() ) )
16 return;
17 ?>
18
19 <div id="comments-template">
20
21 <div class="comments-wrap">
22
23 <div id="comments">
24
25 <?php if ( have_comments() ) : ?>
26
27 <h3 id="comments-number" class="comments-header"><?php comments_number( __( 'No Responses', hybrid_get_textdomain() ), __( 'One Response', hybrid_get_textdomain() ), __( '% Responses', hybrid_get_textdomain() ) ); ?></h3>
28
29 <?php hybrid_before_comment_list(); // Before comment list hook ?>
30
31 <ol class="comment-list">
32 <?php wp_list_comments( hybrid_list_comments_args() ); ?>
33 </ol><!-- .comment-list -->
34
35 <?php hybrid_after_comment_list(); // After comment list hook ?>
36
37 <?php if ( get_option( 'page_comments' ) ) : ?>
38 <div class="comment-navigation paged-navigation">
39 <?php paginate_comments_links(); ?>
40 </div><!-- .comment-navigation -->
41 <?php endif; ?>
42
43 <?php else : ?>
44
45 <?php if ( pings_open() && !comments_open() ) : ?>
46
47 <p class="comments-closed pings-open">
48 <?php printf( __( 'Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', hybrid_get_textdomain() ), trackback_url( '0' ) ); ?>
49 </p><!-- .comments-closed .pings-open -->
50
51 <?php elseif ( !comments_open() ) : ?>
52
53 <p class="comments-closed">
54 <?php _e( 'Comments are closed.', hybrid_get_textdomain() ); ?>
55 </p><!-- .comments-closed -->
56
57 <?php endif; ?>
58
59 <?php endif; ?>
60
61 </div><!-- #comments -->
62
63 <?php comment_form(); // Load the comment form. ?>
64
65 </div><!-- .comments-wrap -->
66
67 </div><!-- #comments-template -->
Something went wrong with that request. Please try again.