- Timestamp:
- 10/08/2013 09:21:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php
r25088 r25735 144 144 add_action( 'edit_category', 'twentyfourteen_category_transient_flusher' ); 145 145 add_action( 'save_post', 'twentyfourteen_category_transient_flusher' ); 146 147 /** 148 * Displays featured image with appropriate html tag. 149 * 150 * @return void 151 */ 152 function twentyfourteen_featured_thumbnail() { 153 if ( ! post_password_required() ) : 154 if ( has_post_thumbnail() && is_singular() ) : 155 ?> 156 <div class="attachment-featured-thumbnail"> 157 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 158 </div> 159 <?php 160 else : 161 ?> 162 <a href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>" class="attachment-featured-thumbnail"> 163 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 164 </a> 165 <?php 166 endif; 167 endif; 168 }
Note: See TracChangeset
for help on using the changeset viewer.