'full' =>
__( 'Full Size'
),
) );
if ( empty( $check ) ) { $check =
get_user_setting( 'imgsize', 'medium'
);
} $output = array
();
foreach ( $size_names as $size =>
$label ) { $downsize =
image_downsize( $post->ID,
$size );
$checked = '';
// Is this size selectable?
$enabled =
( $downsize[3
] || 'full' ===
$size );
$css_id = "image-size-{
$size}-{
$post->ID
}";
// If this size is the default but that's not available, don't select it.
if ( $size ==
$check ) { if ( $enabled ) { $checked = " checked='checked'";
} else {