Find Best Office Desks

Need a perfect way to do your work at home? Or your office needs some desks to complete the rooms? Well, every people must need to find office desks to do the work both at home or at the office. Choosing desks for office’s work should consider for some aspects to find the right one. […]

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top
/** * Получает информацию обо всех зарегистрированных размерах картинок. * * @global $_wp_additional_image_sizes * @uses get_intermediate_image_sizes() * * @param boolean [$unset_disabled = true] Удалить из списка размеры с 0 высотой и шириной? * @return array Данные всех размеров. */ function get_image_sizes( $unset_disabled = true ) { $wais = & $GLOBALS['_wp_additional_image_sizes']; $sizes = array(); foreach ( get_intermediate_image_sizes() as $_size ) { if ( in_array( $_size, array('thumbnail', 'medium', 'medium_large', 'large') ) ) { $sizes[ $_size ] = array( 'width' => get_option( "{$_size}_size_w" ), 'height' => get_option( "{$_size}_size_h" ), 'crop' => (bool) get_option( "{$_size}_crop" ), ); } elseif ( isset( $wais[$_size] ) ) { $sizes[ $_size ] = array( 'width' => $wais[ $_size ]['width'], 'height' => $wais[ $_size ]['height'], 'crop' => $wais[ $_size ]['crop'], ); } // size registered, but has 0 width and height if( $unset_disabled && ($sizes[ $_size ]['width'] == 0) && ($sizes[ $_size ]['height'] == 0) ) unset( $sizes[ $_size ] ); } return $sizes; } die( print_r( get_image_sizes() ) );