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
*/
?>
2013-08-15 05:13:29 +02:00
< article id = " post-<?php the_ID(); ?> " < ? php post_class (); ?> >
2013-10-30 15:39:10 +01:00
< a class = " post-thumbnail " href = " <?php the_permalink(); ?> " rel = " <?php the_ID(); ?> " >
< ? php
if ( has_post_thumbnail () ) :
2013-11-19 00:11:10 +01:00
if ( 'grid' == get_theme_mod ( 'featured_content_layout' ) ) {
2013-11-14 05:50:11 +01:00
the_post_thumbnail ();
2013-11-19 00:11:10 +01:00
} else {
2013-11-14 05:50:11 +01:00
the_post_thumbnail ( 'twentyfourteen-full-width' );
2013-11-19 00:11:10 +01:00
}
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 " >
2013-11-08 06:31:09 +01:00
< ? php if ( in_array ( 'category' , get_object_taxonomies ( get_post_type () ) ) && 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
2013-10-30 15:39:10 +01:00
< ? php the_title ( '<h1 class="entry-title"><a href="' . esc_url ( get_permalink () ) . '" rel="bookmark">' , '</a></h1>' ); ?>
</ header ><!-- . entry - header -->
2013-08-15 05:13:29 +02:00
</ article ><!-- #post-## -->