Twenty Fourteen: full-width page template should display a full-width featured image, except for mobile. Fixes #25925, props iamtakashi.
Built from https://develop.svn.wordpress.org/trunk@26098 git-svn-id: http://core.svn.wordpress.org/trunk@26013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
323b7c4627
commit
68491fafb3
|
@ -173,10 +173,10 @@ function twentyfourteen_post_thumbnail() {
|
||||||
|
|
||||||
<div class="post-thumbnail">
|
<div class="post-thumbnail">
|
||||||
<?php
|
<?php
|
||||||
if ( is_active_sidebar( 'sidebar-2' ) || wp_is_mobile() )
|
if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'full-width-page.php' ) ) && ! wp_is_mobile() )
|
||||||
the_post_thumbnail( 'post-thumbnail' );
|
|
||||||
else
|
|
||||||
the_post_thumbnail( 'post-thumbnail-full-width' );
|
the_post_thumbnail( 'post-thumbnail-full-width' );
|
||||||
|
else
|
||||||
|
the_post_thumbnail( 'post-thumbnail' );
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -184,10 +184,10 @@ function twentyfourteen_post_thumbnail() {
|
||||||
|
|
||||||
<a class="post-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>">
|
<a class="post-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>">
|
||||||
<?php
|
<?php
|
||||||
if ( is_active_sidebar( 'sidebar-2' ) || wp_is_mobile() )
|
if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'full-width-page.php' ) ) && ! wp_is_mobile() )
|
||||||
the_post_thumbnail( 'post-thumbnail' );
|
|
||||||
else
|
|
||||||
the_post_thumbnail( 'post-thumbnail-full-width' );
|
the_post_thumbnail( 'post-thumbnail-full-width' );
|
||||||
|
else
|
||||||
|
the_post_thumbnail( 'post-thumbnail' );
|
||||||
?>
|
?>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue