Ejemplo n.º 1
0
 /**
  * Get the resolved absolute URL for a stylesheet
  * 
  * @param string $path
  * @return string
  */
 private function resolveStylesheetUrl($path)
 {
     $websource = WebsourceManager::singleton()->getWebsource($this->get(ThemeRegistry::WEBSOURCE));
     if (strpos($path, ThemeRegistry::WEBSOURCE) === 0) {
         return $websource->getAccessUrl(substr($path, strlen(ThemeRegistry::WEBSOURCE)));
     } else {
         // normalizing makes sure that whatever\\comes/in gets/out/properly
         return ROOT_URL . FsUtils::normalizePath($path);
     }
 }