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
*/
2024-10-02 15:03:19 -04:00
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-12-05 17:09:10 -05:00
< a class = " post-thumbnail " href = " <?php the_permalink(); ?> " >
2013-10-30 10:39:10 -04:00
< ? php
2020-01-28 19:45:18 -05:00
// Output the featured image.
2017-11-30 18:11:00 -05:00
if ( has_post_thumbnail () ) :
2020-05-16 14:42:12 -04:00
if ( 'grid' === get_theme_mod ( 'featured_content_layout' ) ) {
2017-11-30 18:11:00 -05:00
the_post_thumbnail ();
} else {
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 " >
2020-04-04 23:02:11 -04:00
< ? php if ( in_array ( 'category' , get_object_taxonomies ( get_post_type () ), true ) && 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
2017-11-30 18:11:00 -05:00
< ? php the_title ( '<h1 class="entry-title"><a href="' . esc_url ( get_permalink () ) . '" rel="bookmark">' , '</a></h1>' ); ?>
2013-10-30 10:39:10 -04:00
</ header ><!-- . entry - header -->
2019-04-15 21:30:53 -04:00
</ article ><!-- #post-<?php the_ID(); ?> -->