parentsheets) or $THEME->parentsheets === true) { // Use all the sheets we have $THEME->sheets = array('styles_layout', 'styles_fonts', 'styles_color', 'styles_moz'); } else if (empty($THEME->parentsheets)) { // We can stop right now! exit; } else { // Use the provided subset only $THEME->sheets = $THEME->parentsheets; } } /// Work out the last modified date for this theme foreach ($THEME->sheets as $sheet) { $sheetmodified = filemtime($sheet.'.css'); if ($sheetmodified > $lastmodified) { $lastmodified = $sheetmodified; } } /// Print out the entire style sheet style_sheet_setup($lastmodified, $lifetime); foreach ($THEME->sheets as $sheet) { echo "/***** $sheet.css start *****/\n\n"; include_once($sheet.'.css'); echo "\n\n/***** $sheet.css end *****/\n\n"; } ?>