wp/wp-content/themes/twentytwelve/content.php
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 7 cf61fcea0001
equal deleted inserted replaced
4:346c88efed21 5:5e2f62d02dcd
    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 the_post_thumbnail(); ?>
    20 			<?php if ( ! post_password_required() && ! is_attachment() ) :
       
    21 				the_post_thumbnail();
       
    22 			endif; ?>
       
    23 
    21 			<?php if ( is_single() ) : ?>
    24 			<?php if ( is_single() ) : ?>
    22 			<h1 class="entry-title"><?php the_title(); ?></h1>
    25 			<h1 class="entry-title"><?php the_title(); ?></h1>
    23 			<?php else : ?>
    26 			<?php else : ?>
    24 			<h1 class="entry-title">
    27 			<h1 class="entry-title">
    25 				<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
    28 				<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>