Updated to use the new standardsheets variable
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<?PHP /* $Id$ */
|
||||
|
||||
/// We use PHP so we can do value substitutions into the styles
|
||||
/// This PHP script is used because it provides a place for setting
|
||||
/// up any necessary variables, and lets us include raw CSS files.
|
||||
/// The output of this script should be a completely standard CSS file.
|
||||
|
||||
if (!isset($themename)) {
|
||||
$themename = NULL;
|
||||
@@ -8,10 +10,24 @@
|
||||
|
||||
$nomoodlecookie = true;
|
||||
require_once("../../config.php");
|
||||
$themeurl = style_sheet_setup(filemtime("styles.php"), 300, $themename);
|
||||
|
||||
include ("./styles_layout.css");
|
||||
include ("./styles_font.css");
|
||||
include ("./styles_color.css");
|
||||
// include ("./styles_block.css");
|
||||
?>
|
||||
$subsheets = array('styles_layout', 'styles_font', 'styles_color');
|
||||
|
||||
/// There should be no need to touch the following
|
||||
|
||||
$lastmodified = filemtime('styles.php');
|
||||
|
||||
foreach ($subsheets as $subsheet) {
|
||||
$lastmodifiedsub = filemtime($subsheet.'.css');
|
||||
if ($lastmodifiedsub > $lastmodified) {
|
||||
$lastmodified = $lastmodifiedsub;
|
||||
}
|
||||
}
|
||||
|
||||
$themeurl = style_sheet_setup($lastmodifiedsub, 600, $themename);
|
||||
|
||||
foreach ($subsheets as $subsheet) {
|
||||
include_once($subsheet.'.css');
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user