2013-07-28 18:55:10 -04:00
< ? php
/**
2013-10-11 18:02:11 -04:00
* The template for displaying featured posts on the front page
*
2013-07-28 18:55:10 -04:00
* @ package WordPress
* @ subpackage Twenty_Fourteen
2013-10-11 18:02:11 -04:00
* @ since Twenty Fourteen 1.0
2013-07-28 18:55:10 -04:00
*/
?>
2013-08-14 23:13:29 -04:00
< article id = " post-<?php the_ID(); ?> " < ? php post_class (); ?> >
2013-10-30 10:39:10 -04:00
< a class = " post-thumbnail " href = " <?php the_permalink(); ?> " rel = " <?php the_ID(); ?> " >
< ? php
if ( has_post_thumbnail () ) :
if ( 'grid' == get_theme_mod ( 'featured_content_layout' ) )
2013-11-13 23:50:11 -05:00
the_post_thumbnail ();
2013-10-30 10:39:10 -04:00
else
2013-11-13 23:50:11 -05:00
the_post_thumbnail ( 'twentyfourteen-full-width' );
2013-10-30 10:39:10 -04:00
endif ;
?>
2013-07-28 18:55:10 -04:00
</ a >
2013-10-30 10:39:10 -04:00
< header class = " entry-header " >
2013-11-08 00:31:09 -05:00
< ? php if ( in_array ( 'category' , get_object_taxonomies ( get_post_type () ) ) && twentyfourteen_categorized_blog () ) : ?>
2013-10-30 10:39:10 -04:00
< div class = " entry-meta " >
< span class = " cat-links " >< ? php echo get_the_category_list ( _x ( ', ' , 'Used between list items, there is a space after the comma.' , 'twentyfourteen' ) ); ?> </span>
</ div ><!-- . entry - meta -->
< ? php endif ; ?>
2013-08-14 23:13:29 -04:00
2013-10-30 10:39:10 -04:00
< ? php the_title ( '<h1 class="entry-title"><a href="' . esc_url ( get_permalink () ) . '" rel="bookmark">' , '</a></h1>' ); ?>
</ header ><!-- . entry - header -->
2013-08-14 23:13:29 -04:00
</ article ><!-- #post-## -->