wp/wp-content/themes/twentytwelve/content.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
    15 		<div class="featured-post">
    15 		<div class="featured-post">
    16 			<?php _e( 'Featured post', 'twentytwelve' ); ?>
    16 			<?php _e( 'Featured post', 'twentytwelve' ); ?>
    17 		</div>
    17 		</div>
    18 		<?php endif; ?>
    18 		<?php endif; ?>
    19 		<header class="entry-header">
    19 		<header class="entry-header">
    20 			<?php if ( ! post_password_required() && ! is_attachment() ) :
    20 			<?php
       
    21 			if ( ! post_password_required() && ! is_attachment() ) :
    21 				the_post_thumbnail();
    22 				the_post_thumbnail();
    22 			endif; ?>
    23 			endif;
       
    24 			?>
    23 
    25 
    24 			<?php if ( is_single() ) : ?>
    26 			<?php if ( is_single() ) : ?>
    25 			<h1 class="entry-title"><?php the_title(); ?></h1>
    27 			<h1 class="entry-title"><?php the_title(); ?></h1>
    26 			<?php else : ?>
    28 			<?php else : ?>
    27 			<h1 class="entry-title">
    29 			<h1 class="entry-title">
    40 			<?php the_excerpt(); ?>
    42 			<?php the_excerpt(); ?>
    41 		</div><!-- .entry-summary -->
    43 		</div><!-- .entry-summary -->
    42 		<?php else : ?>
    44 		<?php else : ?>
    43 		<div class="entry-content">
    45 		<div class="entry-content">
    44 			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
    46 			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
    45 			<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
    47 			<?php
       
    48 			wp_link_pages(
       
    49 				array(
       
    50 					'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ),
       
    51 					'after'  => '</div>',
       
    52 				)
       
    53 			);
       
    54 ?>
    46 		</div><!-- .entry-content -->
    55 		</div><!-- .entry-content -->
    47 		<?php endif; ?>
    56 		<?php endif; ?>
    48 
    57 
    49 		<footer class="entry-meta">
    58 		<footer class="entry-meta">
    50 			<?php twentytwelve_entry_meta(); ?>
    59 			<?php twentytwelve_entry_meta(); ?>