/** * generates cropped image link * * @param $url * @return string */ public static function show($url) { $name = AFile::get_file_name_with_its_url($url); return \App\Config\Config::theme() . "/core/app/helpers/Crop/croped/croped-" . $name; }