image_size_input_fields

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

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: