wp_expand_dimensions [ WordPress Function ]
wp_expand_dimensions ( $example_width, $example_height, $max_width, $max_height )
| Parameters: |
|
| Uses: | |
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: wp_shrink_dimensions, wp_constrain_dimensions, wp_explain_nonce, wp_preload_dialogs, wp_kses_version
Based on a supplied width/height example, return the biggest possible dimensions based on the max width/height.
Source
<?php
function wp_expand_dimensions( $example_width, $example_height, $max_width, $max_height ) {
$example_width = (int) $example_width;
$example_height = (int) $example_height;
$max_width = (int) $max_width;
$max_height = (int) $max_height;
return wp_constrain_dimensions( $example_width * 1000000, $example_height * 1000000, $max_width, $max_height );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- wp_expand_dimensions
Function and Method Cross Reference. wp_expand_dimensions(). Defined at: / wp-includes/media.php -> line 1364. Referenced 1 times: ...
phpxref.ftwr.co.uk - Docs for page media.php
return: First item is the width, the second item is the height. since: 2.5.0; usedby: wp_expand_dimensions() - This function passes the widths and the heights.
phpdoc.wordpress.org - PHPXref.com - WordPress 3.0.1 - /wp-includes/media.php source
Aug 19, 2010 ... PHPXref.com - WordPress 3.0.1 - /wp-includes/media.php source.
phpxref.com - The Elgg Community: embed chinese video url in iZap video
list( $width, $height ) = wp_expand_dimensions( 480, 400, $attr['width'], $attr[' height'] ); } return apply_filters( 'embed_youku', '<embed ...
community.elgg.org