wp-content/themes/twentyfourteen/inc/template-tags.php:190Display an optional post thumbnail.
function twentyfourteen_post_thumbnail() { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( is_singular() ) : ?> <div class="post-thumbnail"> <?php if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) ) { the_post_thumbnail( 'twentyfourteen-full-width' ); } else { the_post_thumbnail(); } ?> </div> <?php else : ?> <a class="post-thumbnail" href="<?php the_permalink(); ?>" aria-hidden="true"> <?php if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) ) { the_post_thumbnail( 'twentyfourteen-full-width' ); } else { the_post_thumbnail( 'post-thumbnail', array( 'alt' => get_the_title() ) ); } ?> </a> <?php endif; // End is_singular(). }Introduced in Twenty Fourteen 1.4 Was made 'pluggable', or overridable.. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentyfourteen/inc/template-tags.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.