diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-05-18 09:48:08 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-05-18 09:48:08 +0200 |
commit | ceff73a9a7ab210034e5d8b0452d18135ce7137d (patch) | |
tree | cd23bfabe459b79f3ce7b2eb922f7974be5dd8a9 /app/view/templates | |
parent | 7baf75c9ee6a7ab3eaa8d35cb4709430426721cb (diff) | |
parent | 6ab276cf38e20266862e97a7beffec562d35bef0 (diff) | |
download | wcms-ceff73a9a7ab210034e5d8b0452d18135ce7137d.tar.gz wcms-ceff73a9a7ab210034e5d8b0452d18135ce7137d.zip |
Merge branch 'master' of https://github.com/vincent-peugnet/wcms
Diffstat (limited to 'app/view/templates')
-rw-r--r-- | app/view/templates/edittabs.php | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/app/view/templates/edittabs.php b/app/view/templates/edittabs.php index c890677..cc7739f 100644 --- a/app/view/templates/edittabs.php +++ b/app/view/templates/edittabs.php @@ -1,25 +1,24 @@ <div class="tabs"> -<?php -foreach ($tablist as $key => $value) { - echo '<div class="tab">'; - ?> +<?php foreach ($tablist as $key => $value) { ?> +<div class="tab"> <input name="interface" type="radio" value="<?= $key ?>" id="tab<?= $key ?>" class="checkboxtab" <?= $key == $opentab ? 'checked' : '' ?> > <label for="tab<?= $key ?>" <?= empty($templates[$key]) ? '' : 'title="template : '.$templates[$key].'" ' ?> class="<?= empty($templates[$key]) ? '' : 'template' ?> <?= empty($value) ? '' : 'edited' ?>"><?= $key ?> </label> - <?php + <div class="content"> - echo '<div class="content">'; - if ($key == $opentab) { - echo '<textarea name="' . $key . '" id="edit' . $key . '" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" autofocus >' . $value . '</textarea>'; - } else { - echo '<textarea name="' . $key . '" id="edit' . $key . '" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">' . $value . '</textarea>'; - } - echo '</div>'; - echo '</div>'; -} -?> + <textarea name="<?= $key ?>" + id="edit<?= $key ?>" + autocomplete="off" + autocorrect="off" + autocapitalize="off" + spellcheck="false" + <?= $key == $opentab ? 'autofocus' : '' ?> + ><?= $this->e($value) ?></textarea> + </div> +</div> +<?php } ?> </div>
\ No newline at end of file |