File: /disk001/machen/www/support/wp-content/themes/learnmore/inc/functions/post-thumbnail.php
<?php
if ( ! function_exists( 'learnmore_post_thumbnail' ) ) :
/**
* Displays an optional post thumbnail.
*
* Wraps the post thumbnail in an anchor element on index views, or a div
* element when on single views.
*
* @package LearnMore
*/
function learnmore_post_thumbnail() {
if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) {
return;
} ?>
<div class="post-thumbnail">
<?php the_post_thumbnail(); ?>
</div><!-- .post-thumbnail -->
<?php
}
endif;