';
if ( wp_attachment_is_image() ) {
echo wp_get_attachment_link( 0, 'post-thumbnail', false );
} elseif ( 0 === strpos( $post->post_mime_type, 'video' ) ) {
$meta = wp_get_attachment_metadata( get_the_ID() );
$atts = array( 'src' => wp_get_attachment_url() );
if ( ! empty( $meta['width'] ) && ! empty( $meta['height'] ) ) {
$atts['width'] = (int) $meta['width'];
$atts['height'] = (int) $meta['height'];
}
echo wp_video_shortcode( $atts );
} elseif ( 0 === strpos( $post->post_mime_type, 'audio' ) ) {
echo wp_audio_shortcode( array( 'src' => wp_get_attachment_url() ) );
}
if ( $caption ) {
printf( '
';
}
?>
' ', $caption );
echo '' . __( 'Pages:', 'museum' ),
'after' => '
',
) );
?>