2017-10-07 01:08:06 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2020-02-15 18:57:46 +01:00
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
2020-06-30 17:54:30 +02:00
|
|
|
function DisplayThemeConfig(&$extraFooterScripts)
|
2019-04-10 10:37:35 +02:00
|
|
|
{
|
2019-08-19 02:24:13 +02:00
|
|
|
$themes = [
|
|
|
|
"default" => "RaspAP (default)",
|
|
|
|
"hackernews" => "HackerNews",
|
2020-03-06 19:40:47 +01:00
|
|
|
"lightsout" => "Lights Out"
|
2019-08-19 02:24:13 +02:00
|
|
|
];
|
|
|
|
$themeFiles = [
|
2020-06-30 17:54:30 +02:00
|
|
|
"default" => "custom.php",
|
2019-08-19 02:24:13 +02:00
|
|
|
"hackernews" => "hackernews.css",
|
2020-03-06 19:40:47 +01:00
|
|
|
"lightsout" => "lightsout.css"
|
2019-08-19 02:24:13 +02:00
|
|
|
];
|
|
|
|
$selectedTheme = array_search($_COOKIE['theme'], $themeFiles);
|
2019-04-10 10:37:35 +02:00
|
|
|
|
2019-08-19 02:24:13 +02:00
|
|
|
echo renderTemplate("themes", compact("themes", "selectedTheme"));
|
2020-06-30 17:54:30 +02:00
|
|
|
|
|
|
|
$extraFooterScripts[] = array('src'=>'dist/huebee/huebee.pkgd.min.js', 'defer'=>false);
|
|
|
|
$extraFooterScripts[] = array('src'=>'app/js/huebee.js', 'defer'=>false);
|
2017-10-07 01:08:06 +02:00
|
|
|
}
|