示例#1
0
 /**
  * @param array $styles
  * @return array
  */
 public static function findStylesheetFiles($styles)
 {
     // Read the selected theme from the config file
     $theme = OC_Util::getTheme();
     $locator = new \OC\Template\CSSResourceLocator(OC::$server->getLogger(), $theme, array(OC::$SERVERROOT => OC::$WEBROOT), array(OC::$THIRDPARTYROOT => OC::$THIRDPARTYWEBROOT));
     $locator->find($styles);
     return $locator->getResources();
 }
示例#2
0
 /**
  * @param array $styles
  * @return array
  */
 public static function findStylesheetFiles($styles)
 {
     // Read the selected theme from the config file
     $theme = OC_Util::getTheme();
     // Read the detected formfactor and use the right file name.
     $fext = self::getFormFactorExtension();
     $locator = new \OC\Template\CSSResourceLocator($theme, $fext, array(OC::$SERVERROOT => OC::$WEBROOT), array(OC::$THIRDPARTYROOT => OC::$THIRDPARTYWEBROOT));
     $locator->find($styles);
     return $locator->getResources();
 }