aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-01-17 19:14:36 +0100
committervincent-peugnet <v.peugnet@free.fr>2020-01-17 19:14:36 +0100
commit8e10d770c74acdbb5795e8fc73fd220b900d75aa (patch)
treead2be14770a02a9507da11c7e0b174329ee37d34 /app/view/templates
parent19b603a228a63ae91d45a16dc104f795ea0cd244 (diff)
downloadwcms-8e10d770c74acdbb5795e8fc73fd220b900d75aa.tar.gz
wcms-8e10d770c74acdbb5795e8fc73fd220b900d75aa.zip
new feature : sleep time per page
Diffstat (limited to 'app/view/templates')
-rw-r--r--app/view/templates/editleftbar.php9
-rw-r--r--app/view/templates/homemenu.php5
2 files changed, 13 insertions, 1 deletions
diff --git a/app/view/templates/editleftbar.php b/app/view/templates/editleftbar.php
index c901c14..8302090 100644
--- a/app/view/templates/editleftbar.php
+++ b/app/view/templates/editleftbar.php
@@ -152,7 +152,11 @@
</fieldset>
</details>
- <details id="advanced" <?= !empty($page->externalcss()) || !empty($page->customhead()) ? 'open' : '' ?>>
+
+
+
+
+ <details id="advanced" <?= !empty($page->externalcss()) || !empty($page->customhead()) || !empty($page->sleep()) ? 'open' : '' ?>>
<summary>Advanced</summary>
@@ -176,6 +180,9 @@
<label for="customhead">Custom head</label>
<textarea name="customhead" wrap="off" spellcheck="false" rows="<?= $page->customhead('int') ?>"><?= $page->customhead() ?></textarea>
+ <label for="sleep">Sleep time (seconds)</label>
+ <input type="number" name="sleep" id="sleep" value="<?= $page->sleep() ?>" min="0" max="180">
+
</fieldset>
</details>
diff --git a/app/view/templates/homemenu.php b/app/view/templates/homemenu.php
index 21f9af8..8431e50 100644
--- a/app/view/templates/homemenu.php
+++ b/app/view/templates/homemenu.php
@@ -124,6 +124,11 @@
?> </select>
<label for="templatejavascript">Javascript</label>
</br>
+ <strong>Advanced</strong>
+ </br>
+ <input type="number" name="datas[sleep]" id="sleep" min="0" max="180">
+ <label for="sleep">Sleep time (seconds)</label>
+ </br>
<strong>Author</strong>
</br>
<select name="addauthor" id="addauthor">