You appear to be a bot. Output may be restricted
Description
Validate the thumbnail size, returning appropriate value for subsequent calls
Usage
$mixed = bw_get_thumbnail_size( $atts );
Parameters
- $atts
- ( array ) required – containing the required specification for "thumbnail"
Returns
mixed as below false for thumbnail="none" string for thumbnail="thumbnail|medium|large|full" thumbnail for "Y" or "T" ( from torf = True or False ) array for anything else e.g. 150 or 250×150 or 250×0Source
File name: oik/includes/bw_images.incLines:
1 to 25 of 25
function bw_get_thumbnail_size( $atts ) { $thumbnail = bw_array_get( $atts, 'thumbnail', 'thumbnail' ); // post_id = bw_array_get( $atts, "post_id", null ); **?** unused 2013/06/21 switch ( $thumbnail ) { case 'none': $thumbnail = false; break; case 'full': case 'thumbnail': case 'medium': case 'large': break; default: $torf = bw_validate_torf( $thumbnail ); if ( $torf ) { $thumbnail = 'thumbnail'; } else { $thumbnail = bw_get_image_size( $thumbnail ); } } //bw_trace2( $thumbnail ); return( $thumbnail ); }View on GitHub View on Trac