wp/wp-content/themes/twentyfourteen/content-featured-post.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
    10 
    10 
    11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    12 	<a class="post-thumbnail" href="<?php the_permalink(); ?>">
    12 	<a class="post-thumbnail" href="<?php the_permalink(); ?>">
    13 	<?php
    13 	<?php
    14 		// Output the featured image.
    14 		// Output the featured image.
    15 		if ( has_post_thumbnail() ) :
    15 	if ( has_post_thumbnail() ) :
    16 			if ( 'grid' == get_theme_mod( 'featured_content_layout' ) ) {
    16 		if ( 'grid' == get_theme_mod( 'featured_content_layout' ) ) {
    17 				the_post_thumbnail();
    17 			the_post_thumbnail();
    18 			} else {
    18 		} else {
    19 				the_post_thumbnail( 'twentyfourteen-full-width' );
    19 			the_post_thumbnail( 'twentyfourteen-full-width' );
    20 			}
    20 		}
    21 		endif;
    21 		endif;
    22 	?>
    22 	?>
    23 	</a>
    23 	</a>
    24 
    24 
    25 	<header class="entry-header">
    25 	<header class="entry-header">
    27 		<div class="entry-meta">
    27 		<div class="entry-meta">
    28 			<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
    28 			<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
    29 		</div><!-- .entry-meta -->
    29 		</div><!-- .entry-meta -->
    30 		<?php endif; ?>
    30 		<?php endif; ?>
    31 
    31 
    32 		<?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">','</a></h1>' ); ?>
    32 		<?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?>
    33 	</header><!-- .entry-header -->
    33 	</header><!-- .entry-header -->
    34 </article><!-- #post-## -->
    34 </article><!-- #post-## -->