mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-21189 yui2/3 combo loader implemented - yay! admin settings in the next commit; yui libs stored in more standard locations
This commit is contained in:
parent
60f2c8666a
commit
aa42314ded
842 changed files with 137 additions and 12 deletions
|
@ -618,7 +618,7 @@ class theme_config {
|
|||
|
||||
// legacy YUI2 stylesheets, YUI3 stylesheets are loaded on the fly
|
||||
$yui2_sheets = "\n\n/*** Standard YUI2 sheets ***/\n\n";
|
||||
$items = new DirectoryIterator("$CFG->libdir/yui/$CFG->yui2version/assets/skins/sam");
|
||||
$items = new DirectoryIterator("$CFG->libdir/yui/$CFG->yui2version/build/assets/skins/sam");
|
||||
foreach ($items as $item) {
|
||||
if ($item->isDot() or !$item->isFile()) {
|
||||
continue;
|
||||
|
@ -627,14 +627,13 @@ class theme_config {
|
|||
if (substr($filename, -4) !== '.css') {
|
||||
continue;
|
||||
}
|
||||
$yui2_sheets .= file_get_contents("$CFG->libdir/yui/$CFG->yui2version/assets/skins/sam/$filename");
|
||||
$yui2_sheets .= file_get_contents("$CFG->libdir/yui/$CFG->yui2version/build/assets/skins/sam/$filename");
|
||||
}
|
||||
unset($item);
|
||||
unset($items);
|
||||
|
||||
// search for all images in yui2 CSS and serve them through the yui_image.php script
|
||||
$yui2_sheets = preg_replace('/([a-z-]+)\.(png|gif)/', 'yui_image.php?file='.$CFG->yui2version.'/$1.$2', $yui2_sheets);
|
||||
$css['yui2'][] = $this->post_process($yui2_sheets);
|
||||
$css['yui2'][] = preg_replace('/([a-z-]+)\.(png|gif)/', 'yui_image.php?file='.$CFG->yui2version.'/$1.$2', $yui2_sheets);
|
||||
|
||||
// get all plugin sheets
|
||||
$excludes = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue