aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates
diff options
context:
space:
mode:
Diffstat (limited to 'app/view/templates')
-rw-r--r--app/view/templates/info.php2
-rw-r--r--app/view/templates/media.php8
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();