/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/revslider/includes
NameSizeModeActions
EspressoDev/-0755rm
external/-0755rm
aq-resizer.class.php79570644editdlrm
backwards.php14780644editdlrm
basic-css.php118500644editdlrm
cache.class.php59100644editdlrm
coloreasing.class.php65580644editdlrm
colorpicker.class.php156610644editdlrm
cssparser.class.php254930644editdlrm
data.class.php773380644editdlrm
em-integration.class.php59010644editdlrm
extension.class.php65300644editdlrm
external-sources.class.php553640644editdlrm
favorite.class.php12700644editdlrm
functions.class.php409490644editdlrm
globals.class.php25540644editdlrm
googlefonts.php2032580644editdlrm
index.php270644editdlrm
navigation.class.php196040644editdlrm
navigations.php1035660644editdlrm
object-library.class.php529170644editdlrm
output.class.php3245030644editdlrm
page-template.class.php40670644editdlrm
slide.class.php1148720644editdlrm
slider.class.php804190644editdlrm
update.class.php67770644editdlrm
woocommerce.class.php37640644editdlrm
wpml.class.php55770644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/revslider/includes/aq-resizer.class.php (7957B)
resize( $width, $height, $crop ) ) ) return false; $resized_file = $editor->save(); if ( ! is_wp_error( $resized_file ) ) { $resized_rel_path = str_replace( $upload_dir, '', $resized_file['path'] ); $img_url = $upload_url . $resized_rel_path; } else { return false; } } } // Okay, leave the ship. if ( true === $upscale ) remove_filter( 'image_resize_dimensions', array( $this, 'aq_upscale' ) ); // Return the output. if ( $single ) { // str return. $image = $img_url; } else { // array return. $image = array ( 0 => $img_url, 1 => $dst_w, 2 => $dst_h ); } return $image; } /** * Callback to overwrite WP computing of thumbnail measures */ function aq_upscale( $default, $orig_w, $orig_h, $dest_w, $dest_h, $crop ) { if ( ! $crop ) return null; // Let the wordpress default function handle this. // Here is the point we allow to use larger image size than the original one. $aspect_ratio = $orig_w / $orig_h; $new_w = $dest_w; $new_h = $dest_h; if ( ! $new_w ) { $new_w = intval( $new_h * $aspect_ratio ); } if ( ! $new_h ) { $new_h = intval( $new_w / $aspect_ratio ); } $size_ratio = max( $new_w / $orig_w, $new_h / $orig_h ); $crop_w = round( $new_w / $size_ratio ); $crop_h = round( $new_h / $size_ratio ); $s_x = floor( ( $orig_w - $crop_w ) / 2 ); $s_y = floor( ( $orig_h - $crop_h ) / 2 ); return array( 0, 0, (int) $s_x, (int) $s_y, (int) $new_w, (int) $new_h, (int) $crop_w, (int) $crop_h ); } } } if(!function_exists('rev_aq_resize')){ /** * 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 rev_aq_resize($url, $width = null, $height = null, $crop = null, $single = true, $upscale = false){ /* WPML Fix */ if ( defined( 'ICL_SITEPRESS_VERSION' ) ){ global $sitepress; $url = $sitepress->convert_url( $url, $sitepress->get_default_language() ); } /* WPML Fix */ $aq_resize = Rev_Aq_Resize::getInstance(); $image = $aq_resize->process( $url, $width, $height, $crop, $single, $upscale ); return (!empty($image) || $image === false) ? $image : $url; } }