Make WordPress Core

Changeset 26098


Ignore:
Timestamp:
11/12/2013 04:46:31 PM (10 years ago)
Author:
lancewillett
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php

    r26034 r26098  
    174174    <div class="post-thumbnail">
    175175    <?php
    176         if ( is_active_sidebar( 'sidebar-2' ) || wp_is_mobile() )
     176        if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'full-width-page.php' ) ) && ! wp_is_mobile() )
     177            the_post_thumbnail( 'post-thumbnail-full-width' );
     178        else
    177179            the_post_thumbnail( 'post-thumbnail' );
    178         else
    179             the_post_thumbnail( 'post-thumbnail-full-width' );
    180180    ?>
    181181    </div>
     
    185185    <a class="post-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>">
    186186    <?php
    187         if ( is_active_sidebar( 'sidebar-2' ) || wp_is_mobile() )
     187        if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'full-width-page.php' ) ) && ! wp_is_mobile() )
     188            the_post_thumbnail( 'post-thumbnail-full-width' );
     189        else
    188190            the_post_thumbnail( 'post-thumbnail' );
    189         else
    190             the_post_thumbnail( 'post-thumbnail-full-width' );
    191191    ?>
    192192    </a>
Note: See TracChangeset for help on using the changeset viewer.