'the-bootstrap-image-meta', 'description' => __( 'Displays meta information on image attachment pages', 'the-bootstrap' ) ) ); } /** * Displays the widget content * * @author Konstantin Obeland * @since 1.1.0 - 08.03.2012 * @access public * * @param array $args * @param array $instance * * @return void */ public function widget( $args, $instance ) { if ( is_attachment() ) { extract( $args ); $title = apply_filters( 'widget_title', empty($instance['title'] ) ? __( 'Info', 'the-bootstrap' ) : $instance['title'] ); $image_meta = wp_get_attachment_metadata(); echo $before_widget . $before_title . $title . $after_title; ?>
f/
mm
1 ) { echo "1/"; if ( number_format_i18n( ( 1 / $image_meta['image_meta']['shutter_speed'] ), 1 ) == number_format_i18n( ( 1 / $image_meta['image_meta']['shutter_speed'] ), 0 ) ) { printf( __( '%d sec.', 'the-bootstrap' ), number_format_i18n( ( 1 / $image_meta['image_meta']['shutter_speed'] ), 0, '.', '' ) ); } else { printf( __( '%d sec.', 'the-bootstrap' ), number_format_i18n( ( 1 / $image_meta['image_meta']['shutter_speed'] ), 1, '.', '' ) ); } } else { printf( __( '%d sec.', 'the-bootstrap' ), number_format_i18n( $image_meta['image_meta']['shutter_speed'] ) ); } ?>
' ) ) : ?>
' ); ?>
'', ) ); ?>