Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 69 lines (48 sloc) 2.464 kB
74eeed1 Importing the theme files and switching back to Hybrid Core trunk.
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 Retro-fitted
9 * @subpackage Template
10 */
11
12 /* Kill the page if trying to access this template directly. */
13 if ( 'comments.php' == basename( $_SERVER['SCRIPT_FILENAME'] ) )
2a48f90 @justintadlock Update text strings to use the 'retro-fitted' textdomain instead of h…
authored
14 die( __( 'Please do not load this page directly. Thanks!', 'retro-fitted' ) );
74eeed1 Importing the theme files and switching back to Hybrid Core trunk.
greenshady authored
15
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 ?>
20
21 <div id="comments-template">
22
23 <div class="comments-wrap">
24
25 <div id="comments">
26
27 <?php if ( have_comments() ) : ?>
28
2a48f90 @justintadlock Update text strings to use the 'retro-fitted' textdomain instead of h…
authored
29 <h3 id="comments-number" class="comments-header"><?php comments_number( __( 'No Responses', 'retro-fitted' ), __( 'One Response', 'retro-fitted' ), __( '% Responses', 'retro-fitted' ) ); ?></h3>
74eeed1 Importing the theme files and switching back to Hybrid Core trunk.
greenshady authored
30
31 <?php do_atomic( 'before_comment_list' );// retro-fitted_before_comment_list ?>
32
33 <?php if ( get_option( 'page_comments' ) ) : ?>
34 <div class="comments-nav">
2a48f90 @justintadlock Update text strings to use the 'retro-fitted' textdomain instead of h…
authored
35 <span class="page-numbers"><?php printf( __( 'Page %1$s of %2$s', 'retro-fitted' ), ( get_query_var( 'cpage' ) ? absint( get_query_var( 'cpage' ) ) : 1 ), get_comment_pages_count() ); ?></span>
74eeed1 Importing the theme files and switching back to Hybrid Core trunk.
greenshady authored
36 <?php previous_comments_link(); ?>
37 <?php next_comments_link(); ?>
38 </div><!-- .comments-nav -->
39 <?php endif; ?>
40
41 <ol class="comment-list">
42 <?php wp_list_comments( hybrid_list_comments_args() ); ?>
43 </ol><!-- .comment-list -->
44
45 <?php do_atomic( 'after_comment_list' ); // retro-fitted_after_comment_list ?>
46
47 <?php endif; ?>
48
49 <?php if ( pings_open() && !comments_open() ) : ?>
50
51 <p class="comments-closed pings-open">
2a48f90 @justintadlock Update text strings to use the 'retro-fitted' textdomain instead of h…
authored
52 <?php printf( __( 'Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', 'retro-fitted' ), get_trackback_url() ); ?>
74eeed1 Importing the theme files and switching back to Hybrid Core trunk.
greenshady authored
53 </p><!-- .comments-closed .pings-open -->
54
55 <?php elseif ( !comments_open() ) : ?>
56
57 <p class="comments-closed">
2a48f90 @justintadlock Update text strings to use the 'retro-fitted' textdomain instead of h…
authored
58 <?php _e( 'Comments are closed.', 'retro-fitted' ); ?>
74eeed1 Importing the theme files and switching back to Hybrid Core trunk.
greenshady authored
59 </p><!-- .comments-closed -->
60
61 <?php endif; ?>
62
63 </div><!-- #comments -->
64
65 <?php comment_form(); // Loads the comment form. ?>
66
67 </div><!-- .comments-wrap -->
68
69 </div><!-- #comments-template -->
Something went wrong with that request. Please try again.