|
@@ 182-193 (lines=12) @@
|
| 179 |
|
* @param array $styles |
| 180 |
|
* @return array |
| 181 |
|
*/ |
| 182 |
|
static public function findStylesheetFiles($styles) { |
| 183 |
|
// Read the selected theme from the config file |
| 184 |
|
$theme = OC_Util::getTheme(); |
| 185 |
|
|
| 186 |
|
$locator = new \OC\Template\CSSResourceLocator( |
| 187 |
|
OC::$server->getLogger(), |
| 188 |
|
$theme, |
| 189 |
|
array( OC::$SERVERROOT => OC::$WEBROOT ), |
| 190 |
|
array( OC::$THIRDPARTYROOT => OC::$THIRDPARTYWEBROOT )); |
| 191 |
|
$locator->find($styles); |
| 192 |
|
return $locator->getResources(); |
| 193 |
|
} |
| 194 |
|
|
| 195 |
|
/** |
| 196 |
|
* @param array $scripts |
|
@@ 199-210 (lines=12) @@
|
| 196 |
|
* @param array $scripts |
| 197 |
|
* @return array |
| 198 |
|
*/ |
| 199 |
|
static public function findJavascriptFiles($scripts) { |
| 200 |
|
// Read the selected theme from the config file |
| 201 |
|
$theme = OC_Util::getTheme(); |
| 202 |
|
|
| 203 |
|
$locator = new \OC\Template\JSResourceLocator( |
| 204 |
|
OC::$server->getLogger(), |
| 205 |
|
$theme, |
| 206 |
|
array( OC::$SERVERROOT => OC::$WEBROOT ), |
| 207 |
|
array( OC::$THIRDPARTYROOT => OC::$THIRDPARTYWEBROOT )); |
| 208 |
|
$locator->find($scripts); |
| 209 |
|
return $locator->getResources(); |
| 210 |
|
} |
| 211 |
|
|
| 212 |
|
public function generateAssets() { |
| 213 |
|
$assetDir = \OC::$server->getConfig()->getSystemValue('assetdirectory', \OC::$SERVERROOT); |