1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00
raspap-webgui/includes/themes.php
2020-03-06 18:40:47 +00:00

22 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"));
}