raspap-webgui-mirror/includes/themes.php

25 lines
673 B
PHP
Raw Normal View History

2017-10-06 23:08:06 +00:00
<?php
/**
2020-02-15 17:57:46 +00:00
*
*
*/
2020-06-30 15:54:30 +00:00
function DisplayThemeConfig(&$extraFooterScripts)
{
$themes = [
"default" => "RaspAP (default)",
"hackernews" => "HackerNews",
2020-03-06 18:40:47 +00:00
"lightsout" => "Lights Out"
];
$themeFiles = [
2020-06-30 15:54:30 +00:00
"default" => "custom.php",
"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"));
2020-06-30 15:54:30 +00:00
$extraFooterScripts[] = array('src'=>'dist/huebee/huebee.pkgd.min.js', 'defer'=>false);
$extraFooterScripts[] = array('src'=>'app/js/huebee.js', 'defer'=>false);
2017-10-06 23:08:06 +00:00
}