Skip to content
Newer
Older
100644 59 lines (41 sloc) 2.12 KB
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revis…
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 Hybrid
9 * @subpackage Template
10 */
11
eceb041 Crazy amounts of updates to bring this up to date with Hybrid Core.
greenshady authored
12 /* Kill the page if trying to access this template directly. */
13 if ( 'comments.php' == basename( $_SERVER['SCRIPT_FILENAME'] ) )
6d68626 @justintadlock Switch all calls of hybrid_get_textdomain() to 'hybrid'.
authored
14 die( __( 'Please do not load this page directly. Thanks!', 'hybrid' ) );
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revis…
greenshady authored
15
eceb041 Crazy amounts of updates to bring this up to date with Hybrid Core.
greenshady authored
16 /* If a post password is required or no comments are given and comments/pings are closed, return. */
17 if ( post_password_required() || ( !have_comments() && !comments_open() && !pings_open() ) )
18 return;
19 ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revis…
greenshady authored
20
21 <div id="comments-template">
22
23 <?php if ( have_comments() ) : ?>
24
25 <div id="comments">
26
6d68626 @justintadlock Switch all calls of hybrid_get_textdomain() to 'hybrid'.
authored
27 <h3 id="comments-number" class="comments-header"><?php comments_number( sprintf( __( 'No responses to %1$s', 'hybrid' ), the_title( '&#8220;', '&#8221;', false ) ), sprintf( __( 'One response to %1$s', 'hybrid' ), the_title( '&#8220;', '&#8221;', false ) ), sprintf( __( '%1$s responses to %2$s', 'hybrid' ), '%', the_title( '&#8220;', '&#8221;', false ) ) ); ?></h3>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revis…
greenshady authored
28
779262b Get rid of a ton of deprecated Hybrid Core calls and start bringing t…
greenshady authored
29 <?php do_atomic( 'before_comment_list' ); // Before comment list hook ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revis…
greenshady authored
30
31 <ol class="comment-list">
32 <?php wp_list_comments( hybrid_list_comments_args() ); ?>
33 </ol><!-- .comment-list -->
34
779262b Get rid of a ton of deprecated Hybrid Core calls and start bringing t…
greenshady authored
35 <?php do_atomic( 'after_comment_list' ); // After comment list hook ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revis…
greenshady authored
36
37 <?php if ( get_option( 'page_comments' ) ) : ?>
eceb041 Crazy amounts of updates to bring this up to date with Hybrid Core.
greenshady authored
38 <div class="comment-navigation comment-pagination paged-navigation">
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revis…
greenshady authored
39 <?php paginate_comments_links(); ?>
40 </div><!-- .comment-navigation -->
41 <?php endif; ?>
42
43 </div><!-- #comments -->
44
45 <?php else : ?>
46
47 <?php if ( pings_open() && !comments_open() ) : ?>
48
49 <p class="comments-closed pings-open">
6d68626 @justintadlock Switch all calls of hybrid_get_textdomain() to 'hybrid'.
authored
50 <?php printf( __( 'Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', 'hybrid' ), trackback_url( '0' ) ); ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revis…
greenshady authored
51 </p><!-- .comments-closed .pings-open -->
52
53 <?php endif; ?>
54
55 <?php endif; ?>
56
57 <?php comment_form(); // Load the comment form. ?>
58
59 </div><!-- #comments-template -->
Something went wrong with that request. Please try again.