'.
'';
// The image that is normally shown using 'the_content' is too small -
// instead, draw up our own image that better fits the width.
$image_info = getimagesize( $post->guid );
$alt_text = \ski\media::get_attachment_alt_text( $post->ID );
if ( empty( $alt_text ) ) $alt_text = get_the_title();
if ( wp_attachment_is_image() )
{
echo
'
'.
'
guid.'" '.
'alt="'.$alt_text.'" '.
'title="'.get_the_title().'" '.
$image_info[3].
' />'.
'
';
// Put together the postmeta into a single line.
echo
''.
'