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