1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00
raspap-webgui/includes/themes.php

25 lines
673 B
PHP
Raw Permalink Normal View History

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)
{
$themes = [
"default" => "RaspAP (default)",
"hackernews" => "HackerNews",
2020-03-06 19:40:47 +01:00
"lightsout" => "Lights Out"
];
$themeFiles = [
2020-06-30 17:54:30 +02:00
"default" => "custom.php",
"hackernews" => "hackernews.css",
2020-03-06 19:40:47 +01:00
"lightsout" => "lightsout.css"
];
$selectedTheme = array_search($_COOKIE['theme'], $themeFiles);
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
}