wp/wp-content/themes/twentythirteen/content.php
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 7 cf61fcea0001
equal deleted inserted replaced
4:346c88efed21 5:5e2f62d02dcd
    10  */
    10  */
    11 ?>
    11 ?>
    12 
    12 
    13 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    13 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    14 	<header class="entry-header">
    14 	<header class="entry-header">
    15 		<?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
    15 		<?php if ( has_post_thumbnail() && ! post_password_required() && ! is_attachment() ) : ?>
    16 		<div class="entry-thumbnail">
    16 		<div class="entry-thumbnail">
    17 			<?php the_post_thumbnail(); ?>
    17 			<?php the_post_thumbnail(); ?>
    18 		</div>
    18 		</div>
    19 		<?php endif; ?>
    19 		<?php endif; ?>
    20 
    20 
    36 	<div class="entry-summary">
    36 	<div class="entry-summary">
    37 		<?php the_excerpt(); ?>
    37 		<?php the_excerpt(); ?>
    38 	</div><!-- .entry-summary -->
    38 	</div><!-- .entry-summary -->
    39 	<?php else : ?>
    39 	<?php else : ?>
    40 	<div class="entry-content">
    40 	<div class="entry-content">
    41 		<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?>
    41 		<?php
    42 		<?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
    42 			/* translators: %s: Name of current post */
       
    43 			the_content( sprintf(
       
    44 				__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
       
    45 				the_title( '<span class="screen-reader-text">', '</span>', false )
       
    46 			) );
       
    47 
       
    48 			wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
       
    49 		?>
    43 	</div><!-- .entry-content -->
    50 	</div><!-- .entry-content -->
    44 	<?php endif; ?>
    51 	<?php endif; ?>
    45 
    52 
    46 	<footer class="entry-meta">
    53 	<footer class="entry-meta">
    47 		<?php if ( comments_open() && ! is_single() ) : ?>
    54 		<?php if ( comments_open() && ! is_single() ) : ?>