src/Ubiquity/assets/AssetsManager.php
public static function getUrl($resource, $absolute = false) {
		if (strpos ( $resource, '//' ) !== false) {
			return $resource;
		}
		if ($absolute) {
			return self::$siteURL . self::ASSETS_FOLDER . $resource;
		}
		return ltrim ( self::ASSETS_FOLDER, '/' ) . $resource;
	}
public static function getUrl($resource, $absolute = false) {
		if (strpos ( $resource, '//' ) !== false) {
			return $resource;
		}
		if ($absolute) {
			return self::$siteURL . self::ASSETS_FOLDER . $resource;
		}
		return ltrim ( self::ASSETS_FOLDER, '/' ) . $resource;
	}
public static function getUrl ( $ resource , $ absolute = false ) { if ( strpos ( $ resource , '//' ) !== false ) { return $ resource ; } if ( $ absolute ) { return self :: $ siteURL . self :: ASSETS_FOLDER . $ resource ; } return ltrim ( self :: ASSETS_FOLDER , '/' ) . $ resource ; }
Returns the absolute or relative url to the resource.

@param string $resource
@param boolean $absolute
@return string
Returns the absolute or relative url to the resource .