- Timestamp:
- 10/29/2013 04:28:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php
r25970 r25979 158 158 159 159 if ( has_post_thumbnail() ) : 160 $ featured_image = get_the_post_thumbnail( get_the_ID(), 'featured-thumbnail-formatted' );160 $post_thumbnail = get_the_post_thumbnail( get_the_ID(), 'post-thumbnail' ); 161 161 elseif ( $total_images > 0 ) : 162 162 $image = array_shift( $images ); 163 $ featured_image = wp_get_attachment_image( $image, 'featured-thumbnail-formatted' );163 $post_thumbnail = wp_get_attachment_image( $image, 'post-thumbnail' ); 164 164 endif; 165 165 166 if ( ! empty ( $ featured_image) ) :166 if ( ! empty ( $post_thumbnail ) ) : 167 167 ?> 168 <a href="<?php the_permalink(); ?>"><?php echo $ featured_image; ?></a>168 <a href="<?php the_permalink(); ?>"><?php echo $post_thumbnail; ?></a> 169 169 <?php 170 170 endif;
Note: See TracChangeset
for help on using the changeset viewer.