2013-07-29 00:55:10 +02:00
< ? php
/**
2013-10-12 00:02:11 +02:00
* The template for displaying featured posts on the front page
*
2013-07-29 00:55:10 +02:00
* @ package WordPress
* @ subpackage Twenty_Fourteen
2013-10-12 00:02:11 +02:00
* @ since Twenty Fourteen 1.0
2013-07-29 00:55:10 +02:00
*/
2024-10-02 21:03:19 +02:00
2013-07-29 00:55:10 +02:00
?>
2013-08-15 05:13:29 +02:00
< article id = " post-<?php the_ID(); ?> " < ? php post_class (); ?> >
2013-12-05 23:09:10 +01:00
< a class = " post-thumbnail " href = " <?php the_permalink(); ?> " >
2013-10-30 15:39:10 +01:00
< ? php
2020-01-29 01:45:18 +01:00
// Output the featured image.
2017-12-01 00:11:00 +01:00
if ( has_post_thumbnail () ) :
2020-05-16 20:42:12 +02:00
if ( 'grid' === get_theme_mod ( 'featured_content_layout' ) ) {
2017-12-01 00:11:00 +01:00
the_post_thumbnail ();
} else {
the_post_thumbnail ( 'twentyfourteen-full-width' );
}
2013-10-30 15:39:10 +01:00
endif ;
?>
2013-07-29 00:55:10 +02:00
</ a >
2013-10-30 15:39:10 +01:00
< header class = " entry-header " >
2020-04-05 05:02:11 +02:00
< ? php if ( in_array ( 'category' , get_object_taxonomies ( get_post_type () ), true ) && twentyfourteen_categorized_blog () ) : ?>
2013-10-30 15:39:10 +01: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-15 05:13:29 +02:00
2017-12-01 00:11:00 +01:00
< ? php the_title ( '<h1 class="entry-title"><a href="' . esc_url ( get_permalink () ) . '" rel="bookmark">' , '</a></h1>' ); ?>
2013-10-30 15:39:10 +01:00
</ header ><!-- . entry - header -->
2019-04-16 03:30:53 +02:00
</ article ><!-- #post-<?php the_ID(); ?> -->