raspap-webgui-mirror/includes/themes.php

23 lines
594 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)",
2021-02-15 22:07:34 +00:00
"hackernews" => "HackerNews"
];
$themeFiles = [
2020-06-30 15:54:30 +00:00
"default" => "custom.php",
2021-02-15 22:07:34 +00:00
"hackernews" => "hackernews.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
}