[ Index ] |
WordPress Cross Reference |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * The template for displaying Comments 4 * 5 * The area of the page that contains comments and the comment form. 6 * 7 * @package WordPress 8 * @subpackage Twenty_Fourteen 9 * @since Twenty Fourteen 1.0 10 */ 11 12 /* 13 * If the current post is protected by a password and the visitor has not yet 14 * entered the password we will return early without loading the comments. 15 */ 16 if ( post_password_required() ) { 17 return; 18 } 19 ?> 20 21 <div id="comments" class="comments-area"> 22 23 <?php if ( have_comments() ) : ?> 24 25 <h2 class="comments-title"> 26 <?php 27 printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentyfourteen' ), 28 number_format_i18n( get_comments_number() ), get_the_title() ); 29 ?> 30 </h2> 31 32 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> 33 <nav id="comment-nav-above" class="navigation comment-navigation" role="navigation"> 34 <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1> 35 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div> 36 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div> 37 </nav><!-- #comment-nav-above --> 38 <?php endif; // Check for comment navigation. ?> 39 40 <ol class="comment-list"> 41 <?php 42 wp_list_comments( array( 43 'style' => 'ol', 44 'short_ping' => true, 45 'avatar_size'=> 34, 46 ) ); 47 ?> 48 </ol><!-- .comment-list --> 49 50 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> 51 <nav id="comment-nav-below" class="navigation comment-navigation" role="navigation"> 52 <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1> 53 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div> 54 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div> 55 </nav><!-- #comment-nav-below --> 56 <?php endif; // Check for comment navigation. ?> 57 58 <?php if ( ! comments_open() ) : ?> 59 <p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfourteen' ); ?></p> 60 <?php endif; ?> 61 62 <?php endif; // have_comments() ?> 63 64 <?php comment_form(); ?> 65 66 </div><!-- #comments -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Mar 25 01:41:18 2014 | WordPress honlapkészítés: online1.hu |