mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 09:00:25 +00:00
21 lines
482 B
PHP
Executable file
21 lines
482 B
PHP
Executable file
<?php
|
|
/**
|
|
*
|
|
*
|
|
*/
|
|
function DisplayThemeConfig()
|
|
{
|
|
$themes = [
|
|
"default" => "RaspAP (default)",
|
|
"hackernews" => "HackerNews",
|
|
"lightsout" => "Lights Out"
|
|
];
|
|
$themeFiles = [
|
|
"default" => "custom.css",
|
|
"hackernews" => "hackernews.css",
|
|
"lightsout" => "lightsout.css"
|
|
];
|
|
$selectedTheme = array_search($_COOKIE['theme'], $themeFiles);
|
|
|
|
echo renderTemplate("themes", compact("themes", "selectedTheme"));
|
|
}
|