2017-10-06 23:08:06 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2020-02-15 17:57:46 +00:00
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
2019-04-10 08:37:35 +00:00
|
|
|
function DisplayThemeConfig()
|
|
|
|
{
|
2019-08-19 00:24:13 +00:00
|
|
|
$themes = [
|
|
|
|
"default" => "RaspAP (default)",
|
|
|
|
"hackernews" => "HackerNews",
|
2020-03-06 18:40:47 +00:00
|
|
|
"lightsout" => "Lights Out"
|
2019-08-19 00:24:13 +00:00
|
|
|
];
|
|
|
|
$themeFiles = [
|
|
|
|
"default" => "custom.css",
|
|
|
|
"hackernews" => "hackernews.css",
|
2020-03-06 18:40:47 +00:00
|
|
|
"lightsout" => "lightsout.css"
|
2019-08-19 00:24:13 +00:00
|
|
|
];
|
|
|
|
$selectedTheme = array_search($_COOKIE['theme'], $themeFiles);
|
2019-04-10 08:37:35 +00:00
|
|
|
|
2019-08-19 00:24:13 +00:00
|
|
|
echo renderTemplate("themes", compact("themes", "selectedTheme"));
|
2017-10-06 23:08:06 +00:00
|
|
|
}
|