Ticket #26221: 26221.patch
File 26221.patch, 1.5 KB (added by , 11 years ago) |
---|
-
wp-content/themes/twentyfourteen/inc/template-tags.php
165 165 add_action( 'save_post', 'twentyfourteen_category_transient_flusher' ); 166 166 167 167 /** 168 * Display an optional post thumbnail on a single view.168 * Display an optional post thumbnail. 169 169 * 170 * Adds an anchor element to the post thumbnail, when on171 * index views, and a div element when on a single view.170 * Wraps the post thumbnail in an anchor element on index 171 * views, or a div element when on single views. 172 172 * 173 173 * @since Twenty Fourteen 1.0 174 174 * … … 184 184 185 185 <div class="post-thumbnail"> 186 186 <?php 187 if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) && ! wp_is_mobile()) {187 if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) ) { 188 188 the_post_thumbnail( 'twentyfourteen-full-width' ); 189 189 } else { 190 190 the_post_thumbnail(); … … 196 196 197 197 <a class="post-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>"> 198 198 <?php 199 if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) && ! wp_is_mobile()) {199 if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) ) { 200 200 the_post_thumbnail( 'twentyfourteen-full-width' ); 201 201 } else { 202 202 the_post_thumbnail();