Definition:
function image_size_input_fields( $post, $check = '' ) {}
Retrieve HTML for the size radio buttons with the specified one checked.
Parameters
- unknown_type $post
- unknown_type $check
Source code
function image_size_input_fields( $post, $check = '' ) {
// get a list of the actual pixel dimensions of each possible intermediate version of this image
$size_names = array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full Size'));
if ( empty($check) )
$check = get_user_setting('imgsize', 'medium');
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}";
2003

February 12, 2011 


No comments yet... Be the first to leave a reply!