diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-04-28 14:20:10 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-04-28 20:21:34 +0200 |
commit | 98514a4e0037aa0879e45bbad660aeda8837c624 (patch) | |
tree | a574e7cf6a53150e1d960fc9b4520a49567b04bd /app/view | |
parent | cba95c5eb19a33654a6f0995c6f9e0885b7afc20 (diff) | |
download | wcms-98514a4e0037aa0879e45bbad660aeda8837c624.tar.gz wcms-98514a4e0037aa0879e45bbad660aeda8837c624.zip |
add session as controller var
Diffstat (limited to 'app/view')
-rw-r--r-- | app/view/templates/media.php | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/app/view/templates/media.php b/app/view/templates/media.php index faa1dd3..a5b8c68 100644 --- a/app/view/templates/media.php +++ b/app/view/templates/media.php @@ -67,10 +67,50 @@ $this->layout('layout', ['title' => 'media', 'stylesheets' => [$css . 'home.css' <section> <div class="block"> - <h2>/<?= $mediaopt->dir() ?></h2> + <h2> + /<?= $mediaopt->dir() ?> + <span class="right"><a href="?display=list" <?= $display === 'list' ? 'style="color: white"' : '' ?> >list</a> / <a href="?display=gallery" <?= $display === 'gallery' ? 'style="color: white"' : '' ?> >gallery</a></span> + </h2> <div class="scroll"> + + <?php if($display === 'gallery') { ?> + + + <!-- ___________________ GALLERY _________________________ --> + + + <ul id="gallery"> + <?php foreach ($medialist as $media) { ?> + + <li title="<?= $media->size('hr') ?> | <?= $media->uid('name') ?> | <?= $media->permissions() ?> + "> + <div class="thumbnail"> + <label for="media_<?= $media->id() ?>"> + <?= $media->type() == 'image' ? '<img src="' . $media->getfullpath() . '">' : $media->getsymbol() ?> + </label> + </div> + + <div class="meta"> + <input type="checkbox" name="id[]" value="<?= $media->getfulldir() ?>" form="mediaedit" id="media_<?= $media->id() ?>"> + <label for="media_<?= $media->id() ?>"><?= $media->id() ?></label> + <code><?= $media->getcode() ?></code> + </div> + + </li> + + <?php } ?> + </ul> + + + <?php } else { ?> + + + + <!-- ___________________ L I S T _________________________ --> + + <table id="medialist"> <tr> <th id="checkall">x</th> @@ -104,6 +144,8 @@ $this->layout('layout', ['title' => 'media', 'stylesheets' => [$css . 'home.css' } ?> + <?php } ?> + </div> </table> |