Changeset 13130
- Timestamp:
- 02/14/2010 01:16:58 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/comments.php
r13129 r13130 1 <div id="comments">2 1 <?php 3 2 // Do not delete these lines 4 $req = get_option( 'require_name_email' ); // Checks if fields are required. 5 if ( 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']) ) 3 if ( ! defined('ABSPATH') ) 6 4 die ( __( 'Please do not load this page directly. Thanks!', 'twentyten' ) ); 7 if ( post_password_required() ) :8 5 ?> 6 <div id="comments"> 7 <?php if ( post_password_required() ) : ?> 9 8 <div class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></div> 10 9 </div><!-- .comments --> … … 21 20 <h3 id="comments-title"><?php comments_number( __('No Responses to', 'twentyten'), __('One Response to', 'twentyten'), __('% Responses to', 'twentyten') );?> <em><?php the_title(); ?></em></h3> 22 21 23 <?php $total_pages = get_comment_pages_count(); if ( $total_pages> 1 ) : // are there comments to navigate through ?>22 <?php if ( get_comment_pages_count() > 1 ) : // are there comments to navigate through ?> 24 23 <div class="navigation"> 25 24 <div class="nav-previous"><?php previous_comments_link( __('← Older Comments', 'twentyten') ); ?></div> … … 32 31 </ol> 33 32 34 <?php $total_pages = get_comment_pages_count(); if ( $total_pages> 1 ) : // are there comments to navigate through ?>33 <?php if ( get_comment_pages_count() > 1 ) : // are there comments to navigate through ?> 35 34 <div class="navigation"> 36 35 <div class="nav-previous"><?php previous_comments_link( __('← Older Comments', 'twentyten') ); ?></div>
Note: See TracChangeset
for help on using the changeset viewer.