diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-12-04 20:39:48 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-12-04 20:39:48 +0100 |
commit | 42e89ac398bdf2a98167b0b71123c98e297b2130 (patch) | |
tree | 623c5e42d9b40a7372f17c070e2b39f52dc44ed1 /app/view/templates/editleftbar.php | |
parent | dd14929505e3fd0bc1710ed757b501d3ec1f6ca1 (diff) | |
download | wcms-42e89ac398bdf2a98167b0b71123c98e297b2130.tar.gz wcms-42e89ac398bdf2a98167b0b71123c98e297b2130.zip |
editor right bar
Diffstat (limited to 'app/view/templates/editleftbar.php')
-rw-r--r-- | app/view/templates/editleftbar.php | 78 |
1 files changed, 57 insertions, 21 deletions
diff --git a/app/view/templates/editleftbar.php b/app/view/templates/editleftbar.php index 2f184af..73468bf 100644 --- a/app/view/templates/editleftbar.php +++ b/app/view/templates/editleftbar.php @@ -24,37 +24,73 @@ <input type="time" name="ptime" value="<?= $art->date('ptime') ?>" id="time"> </fieldset> </details> - <details> + <details open> <summary>Advanced</summary> <fieldset> <h3>Template options</h3> - <ul> + <label for="templatebody">BODY template</label> + <select name="templatebody" id="templatebody"> + <option value="" <?= empty($art->templatebody()) ? 'selected' : '' ?>>--no template--</option> + <?php + foreach ($artlist as $template) { + ?> + <option value="<?= $template ?>" <?= $art->templatebody() === $template ? 'selected' : '' ?>><?= $template ?></option> + <?php + } + ?> + </select> + + + <label for="templatecss">CSS template</label> + <select name="templatecss" id="templatecss"> + <option value="" <?= empty($art->templatecss()) ? 'selected' : '' ?>>--no template--</option> + <?php + foreach ($artlist as $template) { + ?> + <option value="<?= $template ?>" <?= $art->templatecss() === $template ? 'selected' : '' ?>><?= $template ?></option> + <?php + } + ?> + </select> + <?php - foreach ($tablist as $element => $value) { - if(isset($art->template()[$element])) { - $template = $art->template()[$element]; - } else { - $template = ''; - } - echo '<li>'; - echo '<label for="'.$element.'template">'.$element.'</label>'; - echo '<select name="template['.$element.']" id="'.$element.'template">'; + if(!empty($art->templatecss())) { ?> - <option value="" <?= $template === '' ? 'selected' : '' ?>>--no template--</option> + <div class="subtemplate"> + <input type="checkbox" name="iquickcss" id="iquickcss"> + <label for="iquickcss">Quickcss</label> + </div> + <div class="subtemplate"> + <input type="checkbox" name="iexternalcss" id="iexternalcss"> + <label for="iexternalcss">External CSS</label> + </div> + <div class="subtemplate"> + <input type="checkbox" name="iicon" id="iicon"> + <label for="iicon">Page Icon</label> + </div> <?php - foreach ($artlist as $artid ) { - - ?> - <option value="<?= $artid ?>" <?= $template === $artid ? 'selected' : '' ?>><?= $artid ?></option> - <?php - } - echo '</select>'; - echo '</li>'; } + ?> + + <label for="templatejavascript">Javascript template</label> + <select name="templatejavascript" id="templatejavascript"> + <option value="" <?= empty($art->templatejavascript()) ? 'selected' : '' ?>>--no template--</option> + <?php + foreach ($artlist as $template) { + ?> + <option value="<?= $template ?>" <?= $art->templatejavascript() === $template ? 'selected' : '' ?>><?= $template ?></option> + <?php + } ?> - </ul> + </select> + <div class="subtemplate"> + <input type="checkbox" name="iexternaljs" id="iexternaljs"> + <label for="iexternaljs">external js</label> + </div> + + </fieldset> </details> <details id="editcss" open> |