Fix invalid HTML on CSS page. Fix ConfigModel.
This commit is contained in:
parent
42a752a8aa
commit
0e34bd3119
@ -37,6 +37,7 @@ class ConfigModel {
|
|||||||
$c->baseUrl = $row['base_url'];
|
$c->baseUrl = $row['base_url'];
|
||||||
$c->basePath = $row['base_path'];
|
$c->basePath = $row['base_path'];
|
||||||
$c->itemsPerPage = (int) $row['items_per_page'];
|
$c->itemsPerPage = (int) $row['items_per_page'];
|
||||||
|
$c->cssId = (int) $row['css_id'];
|
||||||
$c->strictAccessibility = (bool) $row['strict_accessibility'];
|
$c->strictAccessibility = (bool) $row['strict_accessibility'];
|
||||||
$c->showTickMood = (bool) $row['show_tick_mood'];
|
$c->showTickMood = (bool) $row['show_tick_mood'];
|
||||||
}
|
}
|
||||||
|
@ -8,18 +8,16 @@
|
|||||||
<legend>Manage</legend>
|
<legend>Manage</legend>
|
||||||
<div class="fieldset-items">
|
<div class="fieldset-items">
|
||||||
<label for="selectCssFile">Select CSS File</label>
|
<label for="selectCssFile">Select CSS File</label>
|
||||||
<select id="selectCssFile" name="selectCssFile" value=<?= $config->cssId ?>>
|
<select id="selectCssFile" name="selectCssFile">
|
||||||
<option value="">Default</option>
|
<option value="" <?php if(!$config->cssId): ?>selected<?php endif; ?>>Default</option>
|
||||||
<?php foreach ($customCss as $cssFile): ?>
|
<?php foreach ($customCss as $cssFile): ?>
|
||||||
<?php
|
<?php
|
||||||
if ($cssFile['id'] == $config->cssId){
|
if ((int) $cssFile['id'] == $config->cssId){
|
||||||
$cssDescription = $cssFile['description'];
|
$cssDescription = $cssFile['description'];
|
||||||
$selected = "selected";
|
$selected = "selected";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
<option value="<?= $cssFile['id'] ?>"<?= isset($selected) ? $selected : ""?>>
|
||||||
<option value=<?= $cssFile['id'] ?>
|
|
||||||
<?= isset($selected) ? $selected : ""?>>
|
|
||||||
<?=Util::escape_html($cssFile['filename'])?>
|
<?=Util::escape_html($cssFile['filename'])?>
|
||||||
</option>
|
</option>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user