File: /home/dh_5jabqq/bermudashipwreckarchive.com/wp-content/themes/accelerate/inc/post-formats.php
<?php
/**
* Display the Post Format.
*
* @package ThemeGrill
* @subpackage Accelerate
* @since Accelerate 1.0
*/
?>
<?php if ( has_post_format( 'image' ) ) :
if ( has_post_thumbnail() ) {
$image = '';
$title_attribute = the_title_attribute( 'echo=0' );
$image .= '<figure class="post-featured-image">';
$image .= '<a href="' . get_permalink() . '" title="' . $title_attribute . '">';
$image .= get_the_post_thumbnail( $post->ID, 'featured-blog-large', array(
'title' => $title_attribute,
'alt' => $title_attribute,
) ) . '</a>';
$image .= '</figure>';
echo $image;
}
endif;
?>