mirror of
https://github.com/unraid/webgui.git
synced 2026-02-21 17:29:15 -06:00
Prepare for automatic style sheet loading per page
This commit is contained in:
@@ -680,6 +680,12 @@ if ($themes2) echo "</div>";
|
||||
echo "</div></div>";
|
||||
foreach ($buttons as $button) {
|
||||
annotate($button['file']);
|
||||
// include page specific stylesheets (if existing)
|
||||
$css = "/{$button['root']}/sheets/{$button['name']}";
|
||||
$css_stock = "$css.css";
|
||||
$css_theme = "$css-$theme.css";
|
||||
if (is_file($docroot.$css_stock)) echo '<link type="text/css" rel="stylesheet" href="',autov($css_stock),'">',"\n";
|
||||
if (is_file($docroot.$css_theme)) echo '<link type="text/css" rel="stylesheet" href="',autov($css_theme),'">',"\n";
|
||||
eval('?>'.parse_text($button['text']));
|
||||
}
|
||||
unset($buttons,$button);
|
||||
|
||||
Reference in New Issue
Block a user