raspap-webgui-mirror/includes/themes.php

22 lines
482 B
PHP
Raw Normal View History

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