diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-11-28 07:58:55 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-11-28 07:58:55 +0100 |
commit | 0660c99cb9e2dae3b0e41975f643609231258147 (patch) | |
tree | 247deb88055b330e063179dec3d74465eb9cccac /app/view/templates/edittabs.php | |
parent | d46c05b12b9dcd65d2d9cd230bf45b5bdf6fa8bd (diff) | |
download | wcms-0660c99cb9e2dae3b0e41975f643609231258147.tar.gz wcms-0660c99cb9e2dae3b0e41975f643609231258147.zip |
minor changes
Diffstat (limited to 'app/view/templates/edittabs.php')
-rw-r--r-- | app/view/templates/edittabs.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/app/view/templates/edittabs.php b/app/view/templates/edittabs.php index 4980354..5d74ef1 100644 --- a/app/view/templates/edittabs.php +++ b/app/view/templates/edittabs.php @@ -3,12 +3,14 @@ <?php foreach ($tablist as $key => $value) { echo '<div class="tab">'; - if ($key == $opentab) { - echo '<input name="interface" type="radio" value="'.$key.'" id="tab' . $key . '" class="checkboxtab" checked>'; - } else { - echo '<input name="interface" type="radio" value="'.$key.'" id="tab' . $key . '" class="checkboxtab">'; - } - echo '<label for="tab' . $key . '">' . $key . '</label>'; + ?> + + <input name="interface" type="radio" value="<?= $key ?>" id="tab<?= $key ?>" class="checkboxtab" <?= $key == $opentab ? 'checked' : '' ?> > + + <label for="tab<?= $key ?>"><?= empty($template[$key]) ? $key : '<a class="templatetooltip" title="'.$template[$key].'" >*</a>'.$key ?> </label> + + <?php + echo '<div class="content">'; if ($key == $opentab) { echo '<textarea name="' . $key . '" id="' . $key . '" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" autofocus >' . $value . '</textarea>'; |