diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-12-17 15:34:20 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-12-17 15:34:20 +0100 |
commit | 1a7a60ea3efde53ac2c3b07ca914483cfc25a827 (patch) | |
tree | ac1f09d4d041c19501dd211df451d8d35ef55c47 /app/view/templates | |
parent | 300cf1cc8399d29f61052c0ad09ba1cca2d04d4d (diff) | |
download | wcms-1a7a60ea3efde53ac2c3b07ca914483cfc25a827.tar.gz wcms-1a7a60ea3efde53ac2c3b07ca914483cfc25a827.zip |
media
Diffstat (limited to 'app/view/templates')
-rw-r--r-- | app/view/templates/info.php | 2 | ||||
-rw-r--r-- | app/view/templates/media.php | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/app/view/templates/info.php b/app/view/templates/info.php index 4da3819..d86bdc1 100644 --- a/app/view/templates/info.php +++ b/app/view/templates/info.php @@ -203,7 +203,7 @@ You can use any of them, only one or all at the same time, as you prefer. <p>You can create a html list of links pointing to all the pages using this tag.</p> <blockquote> - %%<i>tag</i>%% + %TAG:<i>__tag__</i>% </blockquote> <p>Let's suppose we are in page3 and we have page2, page3, page5, using this tag, this will output :</p> diff --git a/app/view/templates/media.php b/app/view/templates/media.php index 706a160..613efd1 100644 --- a/app/view/templates/media.php +++ b/app/view/templates/media.php @@ -53,16 +53,18 @@ treecount($dirlist, 'media', 0, 'media', $dir); <h2><?= $dir ?></h2> +Print the whole content of the folder using this code : <span><code>%MEDIA:<?= str_replace('\\', '/', substr($dir, strlen(Model::MEDIA_DIR))) ?>%</code></span> + <form id="addfolder" action="<?= $this->url('mediafolder') ?>" method="post"> <label for="foldername">📂 New folder</label> - <input type="text" name="foldername" id="foldername" placeholder="folder name" > + <input type="text" name="foldername" id="foldername" placeholder="folder name" required> <input type="hidden" name="dir" value="<?= $dir ?>"> <input type="submit" value="create folder"> </form> <form id=addmedia action="<?= $this->url('mediaupload') ?>" method="post" enctype="multipart/form-data"> <label for="file">🚀 Upload file(s)</label> - <input type='file' id="file" name='file[]' multiple> + <input type='file' id="file" name='file[]' multiple required> <input type="hidden" name="dir" value="<?= $dir ?>"> <input type="submit" value="upload"> </form> @@ -91,7 +93,7 @@ foreach ($medialist as $media) { <?php } elseif ($media->type() == 'other') { ?> - [<?= $media->id() ?>.<?= $media->extension() ?>](<?= $media->getincludepath() ?>) + [<?= $media->id() ?>](<?= $media->getincludepath() ?>) <?php } else { echo $media->getincludepath(); |