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)
|
2019-04-10 08:37:35 +00:00
|
|
|
{
|
2019-08-19 00:24:13 +00:00
|
|
|
$themes = [
|
|
|
|
"default" => "RaspAP (default)",
|
2021-02-15 22:07:34 +00:00
|
|
|
"hackernews" => "HackerNews"
|
2019-08-19 00:24:13 +00:00
|
|
|
];
|
|
|
|
$themeFiles = [
|
2020-06-30 15:54:30 +00:00
|
|
|
"default" => "custom.php",
|
2021-02-15 22:07:34 +00:00
|
|
|
"hackernews" => "hackernews.css"
|
2019-08-19 00:24:13 +00:00
|
|
|
];
|
|
|
|
$selectedTheme = array_search($_COOKIE['theme'], $themeFiles);
|
2019-04-10 08:37:35 +00:00
|
|
|
|
2019-08-19 00:24:13 +00:00
|
|
|
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
|
|
|
}
|