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 | |
parent | d46c05b12b9dcd65d2d9cd230bf45b5bdf6fa8bd (diff) | |
download | wcms-0660c99cb9e2dae3b0e41975f643609231258147.tar.gz wcms-0660c99cb9e2dae3b0e41975f643609231258147.zip |
minor changes
Diffstat (limited to 'app/view/templates')
-rw-r--r-- | app/view/templates/edit.php | 4 | ||||
-rw-r--r-- | app/view/templates/edittabs.php | 14 | ||||
-rw-r--r-- | app/view/templates/home.php | 2 | ||||
-rw-r--r-- | app/view/templates/layout.php | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/app/view/templates/edit.php b/app/view/templates/edit.php index a729302..8071964 100644 --- a/app/view/templates/edit.php +++ b/app/view/templates/edit.php @@ -19,7 +19,7 @@ <div id="workspace"> <?php $this->insert('editleftbar', ['art' => $art, 'tablist' => $tablist, 'artlist' => $artlist, 'showleftpanel' => $showleftpanel]) ?> - <?php $this->insert('edittabs', ['tablist' => $tablist, 'opentab' => $art->interface()]) ?> + <?php $this->insert('edittabs', ['tablist' => $tablist, 'opentab' => $art->interface(), 'template' => $art->template()]) ?> <?php $this->insert('editrightbar', ['art' => $art, 'artlist' => $artlist, 'showrightpanel' => $showrightpanel, 'fonts' => $fonts]) ?> </div> @@ -29,4 +29,4 @@ </section> </body> -<?php $this->stop() ?>
\ No newline at end of file +<?php $this->stop('page') ?>
\ No newline at end of file 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>'; diff --git a/app/view/templates/home.php b/app/view/templates/home.php index a11f9e3..0d09238 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -74,7 +74,7 @@ <td><a title="<?= $item->tag('string') ?>"><?= $item->tag('sort') ?></a></td> <td><?= $item->description() ?></td> <td><?= $item->linkto('sort') ?></td> - <td><?= $item->linkfrom('sort') ?></td> + <td><a title="<?= $item->linkfrom('string') ?>" ><?= $item->linkfrom('sort') ?></a></td> <td><?= $item->datemodif('hrdi') ?></td> <td><?= $item->datecreation('hrdi') ?></td> <td><?= $item->secure('string') ?></td> diff --git a/app/view/templates/layout.php b/app/view/templates/layout.php index c20264d..4131350 100644 --- a/app/view/templates/layout.php +++ b/app/view/templates/layout.php @@ -7,8 +7,6 @@ <link rel="shortcut icon" href="./media/logo.png" type="image/x-icon"> <title><?= $title ?></title> <link rel="stylesheet" href="<?= $css ?>"> - <?=$this->section('customhead')?> - <?=$this->section('arthead')?> </head> |