/** * This is just a tiny wrapper function for the class above so that there is no * need to change any code in your own WP themes. Usage is still the same :) */ function ess_aq_resize($url, $width = null, $height = null, $crop = null, $single = true, $upscale = false) { $aq_resize = Ess_Aq_Resize::getInstance(); $img = $aq_resize->process($url, $width, $height, $crop, $single, $upscale); if ($single) { return $img == '' ? $url : $img; } else { return empty($img) ? $url : $img; } }
/** * This is just a tiny wrapper function for the class above so that there is no * need to change any code in your own WP themes. Usage is still the same :) */ function ess_aq_resize($url, $width = null, $height = null, $crop = null, $single = true, $upscale = false) { $aq_resize = Ess_Aq_Resize::getInstance(); return $aq_resize->process($url, $width, $height, $crop, $single, $upscale); }