Back to PhocaDownloadFile class

Method getCSSPath

public static
getCSSPath
(mixed $type, mixed $rel = 0)

Method getCSSPath - Source code

public static function getCSSPath($type, $rel = 0)
{
    $paths = PhocaDownloadPath::getPathMedia();
    if ($rel == 1) {
        if ($type == 1) {
            return $paths->media_css_rel . 'main/';
        } else {
            return $paths->media_css_rel . 'custom/';
        }
    } else {
        if ($type == 1) {
            return Path::clean($paths->media_css_abs . 'main/');
        } else {
            return Path::clean($paths->media_css_abs . 'custom/');
        }
    }
}