Make WordPress Core

Ticket #25925: 25925.diff

File 25925.diff, 1.2 KB (added by iamtakashi, 11 years ago)
  • wp-content/themes/twentyfourteen/inc/template-tags.php

     
    173173
    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>
    182182
     
    184184
    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>
    193193