Changeset 26098
- Timestamp:
- 11/12/2013 04:46:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php
r26034 r26098 174 174 <div class="post-thumbnail"> 175 175 <?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 177 179 the_post_thumbnail( 'post-thumbnail' ); 178 else179 the_post_thumbnail( 'post-thumbnail-full-width' );180 180 ?> 181 181 </div> … … 185 185 <a class="post-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>"> 186 186 <?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 188 190 the_post_thumbnail( 'post-thumbnail' ); 189 else190 the_post_thumbnail( 'post-thumbnail-full-width' );191 191 ?> 192 192 </a>
Note: See TracChangeset
for help on using the changeset viewer.