mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 07:30:23 +00:00
24 lines
673 B
PHP
Executable file
24 lines
673 B
PHP
Executable file
<?php
|
|
/**
|
|
*
|
|
*
|
|
*/
|
|
function DisplayThemeConfig(&$extraFooterScripts)
|
|
{
|
|
$themes = [
|
|
"default" => "RaspAP (default)",
|
|
"hackernews" => "HackerNews",
|
|
"lightsout" => "Lights Out"
|
|
];
|
|
$themeFiles = [
|
|
"default" => "custom.php",
|
|
"hackernews" => "hackernews.css",
|
|
"lightsout" => "lightsout.css"
|
|
];
|
|
$selectedTheme = array_search($_COOKIE['theme'], $themeFiles);
|
|
|
|
echo renderTemplate("themes", compact("themes", "selectedTheme"));
|
|
|
|
$extraFooterScripts[] = array('src'=>'dist/huebee/huebee.pkgd.min.js', 'defer'=>false);
|
|
$extraFooterScripts[] = array('src'=>'app/js/huebee.js', 'defer'=>false);
|
|
}
|