improved theme dropdown, selected theme detection

This commit is contained in:
glaszig
2019-08-19 01:24:13 +01:00
parent b93763cef8
commit 259d3838b5
2 changed files with 13 additions and 22 deletions

View File

@@ -9,11 +9,7 @@
<div class="row">
<div class="form-group col-md-6">
<label for="code"><?php echo _("Select a theme"); ?></label>
<select class="form-control" id="theme-select"><?php echo _("Select a Theme"); ?>
<option value="default" class="theme-link"<?php echo $cselected; ?>>RaspAP (default)</option>
<option value="hackernews" class="theme-link"<?php echo $hselected; ?>>HackerNews</option>
<option value="terminal" class="theme-link"<?php echo $tselected; ?>>Terminal</option>
</select>
<?php SelectorOptions("theme", $themes, $selectedTheme, "theme-select") ?>
</div>
</div>