2017-10-06 23:08:06 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
2019-04-10 08:37:35 +00:00
|
|
|
function DisplayThemeConfig()
|
|
|
|
{
|
|
|
|
|
|
|
|
$cselected = '';
|
|
|
|
$hselected = '';
|
|
|
|
$tselected = '';
|
|
|
|
|
|
|
|
switch ($_COOKIE['theme']) {
|
|
|
|
case "custom.css":
|
|
|
|
$cselected = ' selected="selected"';
|
|
|
|
break;
|
|
|
|
case "hackernews.css":
|
|
|
|
$hselected = ' selected="selected"';
|
|
|
|
break;
|
|
|
|
case "terminal.css":
|
|
|
|
$tselected = ' selected="selected"';
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
2017-10-06 23:08:06 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<div class="panel panel-primary">
|
2017-10-23 19:51:34 +00:00
|
|
|
<div class="panel-heading"><i class="fa fa-wrench fa-fw"></i> <?php echo _("Change Theme"); ?></div>
|
2017-10-06 23:08:06 +00:00
|
|
|
<div class="panel-body">
|
|
|
|
|
2019-08-07 21:16:56 +00:00
|
|
|
<h4><?php echo _("Theme settings"); ?></h4>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-06 23:08:06 +00:00
|
|
|
|
|
|
|
<form action="?page=system_info" method="POST">
|
2019-08-14 00:41:20 +00:00
|
|
|
<?php echo CSRFTokenFieldTag() ?>
|
2017-10-23 19:51:34 +00:00
|
|
|
<input type="button" class="btn btn-outline btn-primary" value="<?php echo _("Refresh"); ?>" onclick="document.location.reload(true)" />
|
2017-10-06 23:08:06 +00:00
|
|
|
</form>
|
|
|
|
|
|
|
|
</div><!-- /.panel-body -->
|
|
|
|
</div><!-- /.panel-primary -->
|
|
|
|
</div><!-- /.col-lg-12 -->
|
|
|
|
</div><!-- /.row -->
|
2019-04-10 08:37:35 +00:00
|
|
|
<?php
|
2017-10-06 23:08:06 +00:00
|
|
|
}
|
|
|
|
|