| [ Index ] |
PHP Cross Reference of PageLines Framework |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * COMMENTS 4 * 5 * The template for displaying Comments. 6 * 7 * @package PageLines Framework 8 * @since 1.0 9 * 10 * @link http://www.pagelines.com/ 11 * @link http://www.pagelines.com/tour 12 * 13 * @author PageLines http://www.pagelines.com/ 14 * @copyright Copyright (c) 2012, PageLines hello@pagelines.com 15 * 16 * @internal last revised February 23, 2012 17 * @version 2.1.1 18 */ 19 20 if(!have_comments() && !comments_open()) 21 return; 22 23 ?> 24 25 <div id="comments" class="wp-comments"> 26 <div class="wp-comments-pad"> 27 <?php 28 29 /* Stop the rest of comments.php from being processed, 30 * but don't kill the script entirely -- we still have 31 * to fully load the template. 32 */ 33 if ( post_password_required() ){ 34 printf('<p class="nopassword">%s</p></div></div>', __( 'This post is password protected. Enter the password to view any comments.', 'pagelines' ) ); 35 return; 36 37 } 38 39 if ( have_comments() ) : ?> 40 <h3 id="comments-title"><?php 41 printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'pagelines' ), 42 number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' ); 43 ?></h3> 44 45 <ol class="commentlist"> 46 <?php wp_list_comments(array('avatar_size' => 65)); ?> 47 </ol> 48 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> 49 <div class="navigation fix"> 50 <div class="alignleft"><?php previous_comments_link( __( "<span class='meta-nav'>←</span> Older Comments", 'pagelines' ) ); ?></div> 51 <div class="alignright"><?php next_comments_link( __( "Newer Comments <span class='meta-nav'>→</span>", 'pagelines' ) ); ?></div> 52 </div> <!-- .navigation --> 53 <?php endif; // check for comment navigation ?> 54 55 56 <?php else : // or, if we don't have comments: 57 58 /* If there are no comments and comments are closed, 59 * let's leave a little note, shall we? 60 */ 61 if ( ! comments_open() ) : 62 ?> 63 <p class="nocomments"><?php _e('Comments are closed.', 'pagelines');?></p> 64 <?php endif; // end ! comments_open() ?> 65 66 <?php 67 endif; // end have_comments() 68 69 comment_form(); ?> 70 </div> 71 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sat Apr 6 23:00:27 2013 | Cross-referenced by PHPXref 0.7.1 |