raspap-webgui-mirror/includes/themes.php

27 lines
530 B
PHP
Raw Normal View History

2017-10-06 23:08:06 +00:00
<?php
/**
*
*
*/
function DisplayThemeConfig()
{
$cselected = '';
$hselected = '';
$tselected = '';
switch ($_COOKIE['theme']) {
case "custom.css":
$cselected = ' selected="selected"';
break;
case "hackernews.css":
$hselected = ' selected="selected"';
break;
case "terminal.css":
$tselected = ' selected="selected"';
break;
}
2019-08-18 22:35:58 +00:00
echo renderTemplate("themes", compact("cselected", "hselected", "tselected"));
2017-10-06 23:08:06 +00:00
}