wp/wp-content/themes/twentyfourteen/content.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
    19 			<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
    19 			<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
    20 		</div>
    20 		</div>
    21 		<?php
    21 		<?php
    22 			endif;
    22 			endif;
    23 
    23 
    24 			if ( is_single() ) :
    24 if ( is_single() ) :
    25 				the_title( '<h1 class="entry-title">', '</h1>' );
    25 	the_title( '<h1 class="entry-title">', '</h1>' );
    26 			else :
    26 			else :
    27 				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
    27 				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
    28 			endif;
    28 			endif;
    29 		?>
    29 		?>
    30 
    30 
    31 		<div class="entry-meta">
    31 		<div class="entry-meta">
    32 			<?php
    32 			<?php
    33 				if ( 'post' == get_post_type() )
    33 			if ( 'post' == get_post_type() ) {
    34 					twentyfourteen_posted_on();
    34 				twentyfourteen_posted_on();
       
    35 			}
    35 
    36 
    36 				if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
    37 			if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
    37 			?>
    38 			?>
    38 			<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
    39 			<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
    39 			<?php
    40 			<?php
    40 				endif;
    41 				endif;
    41 
    42 
    50 	</div><!-- .entry-summary -->
    51 	</div><!-- .entry-summary -->
    51 	<?php else : ?>
    52 	<?php else : ?>
    52 	<div class="entry-content">
    53 	<div class="entry-content">
    53 		<?php
    54 		<?php
    54 			/* translators: %s: Name of current post */
    55 			/* translators: %s: Name of current post */
    55 			the_content( sprintf(
    56 			the_content(
    56 				__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
    57 				sprintf(
    57 				the_title( '<span class="screen-reader-text">', '</span>', false )
    58 					__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
    58 			) );
    59 					the_title( '<span class="screen-reader-text">', '</span>', false )
       
    60 				)
       
    61 			);
    59 
    62 
    60 			wp_link_pages( array(
    63 			wp_link_pages(
    61 				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    64 				array(
    62 				'after'       => '</div>',
    65 					'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    63 				'link_before' => '<span>',
    66 					'after'       => '</div>',
    64 				'link_after'  => '</span>',
    67 					'link_before' => '<span>',
    65 			) );
    68 					'link_after'  => '</span>',
       
    69 				)
       
    70 			);
    66 		?>
    71 		?>
    67 	</div><!-- .entry-content -->
    72 	</div><!-- .entry-content -->
    68 	<?php endif; ?>
    73 	<?php endif; ?>
    69 
    74 
    70 	<?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
    75 	<?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>