/** * Returns path to attachment relative to upload_dir. * * @param type $abspath * @return string '2014/01/img.jpg' */ function wpcf_image_normalize_attachment($abspath) { WPCF_Loader::loadView('image'); return Types_Image_Utils::getInstance()->normalizeAttachment($abspath); }
/** * Construct. * * @return type */ private function __construct() { self::$__cache = new Types_Cache(); self::$__utils = Types_Image_Utils::getInstance(); }