Twenty Fourteen: full-width page template should display a full-width featured image, except for mobile. Fixes #25925, props iamtakashi.

git-svn-id: https://develop.svn.wordpress.org/trunk@26098 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Lance Willett 2013-11-12 16:46:31 +00:00
parent cc0f0d8c6e
commit 4b63213b62

View File

@ -173,10 +173,10 @@ function twentyfourteen_post_thumbnail() {
<div class="post-thumbnail">
<?php
if ( is_active_sidebar( 'sidebar-2' ) || wp_is_mobile() )
the_post_thumbnail( 'post-thumbnail' );
else
if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'full-width-page.php' ) ) && ! wp_is_mobile() )
the_post_thumbnail( 'post-thumbnail-full-width' );
else
the_post_thumbnail( 'post-thumbnail' );
?>
</div>
@ -184,10 +184,10 @@ function twentyfourteen_post_thumbnail() {
<a class="post-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>">
<?php
if ( is_active_sidebar( 'sidebar-2' ) || wp_is_mobile() )
the_post_thumbnail( 'post-thumbnail' );
else
if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'full-width-page.php' ) ) && ! wp_is_mobile() )
the_post_thumbnail( 'post-thumbnail-full-width' );
else
the_post_thumbnail( 'post-thumbnail' );
?>
</a>