public function getUrl($path, $imagestyle_id = null, $absolute = false)
    {
        if (empty($path)) {
            return $this->getPlaceholder($imagestyle_id, $absolute);
        }

        if (isset($imagestyle_id)) {
            $suffix = preg_replace('/^image\//', '', gplcart_path_normalize($path));
            $path = GC_DIR_IMAGE_CACHE . "/$imagestyle_id/$suffix";
        }

        return $this->url->image($path);
    }
public function getUrl($path, $imagestyle_id = null, $absolute = false)
    {
        if (empty($path)) {
            return $this->getPlaceholder($imagestyle_id, $absolute);
        }

        if (isset($imagestyle_id)) {
            $suffix = preg_replace('/^image\//', '', gplcart_path_normalize($path));
            $path = GC_DIR_IMAGE_CACHE . "/$imagestyle_id/$suffix";
        }

        return $this->url->image($path);
    }
public function getUrl ( $ path , $ imagestyle_id = null , $ absolute = false ) { if ( empty ( $ path ) ) { return $ this -> getPlaceholder ( $ imagestyle_id , $ absolute ) ; } if ( isset ( $ imagestyle_id ) ) { $ suffix = preg_replace ( '/^image\//' , '' , gplcart_path_normalize ( $ path ) ) ; $ path = GC_DIR_IMAGE_CACHE . "/$imagestyle_id/$suffix" ; } return $ this -> url -> image ( $ path ) ; }
Returns a string containing the image cache URL
@param string $path
@param null|string|int $imagestyle_id
@param bool $absolute
@return string
Returns a string containing the image cache URL