aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/admin.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-01-29 13:39:28 +0100
committervincent-peugnet <v.peugnet@free.fr>2019-01-29 13:39:28 +0100
commit5e1ca86211da0439003303cf3e0741edf31bced4 (patch)
tree99fb2548f6eab18b510c9e5850af2459b05d1401 /app/view/templates/admin.php
parentbd2ddfda3a922766ea2165963f2b2386066deeb2 (diff)
downloadwcms-5e1ca86211da0439003303cf3e0741edf31bced4.tar.gz
wcms-5e1ca86211da0439003303cf3e0741edf31bced4.zip
home redirect
Diffstat (limited to 'app/view/templates/admin.php')
-rw-r--r--app/view/templates/admin.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/app/view/templates/admin.php b/app/view/templates/admin.php
index 605063b..bd37464 100644
--- a/app/view/templates/admin.php
+++ b/app/view/templates/admin.php
@@ -16,6 +16,38 @@
<input type="submit" value="Update configuration">
+ <h2>Home page</h2>
+
+ <p>Here you can set the home-page view for visitors.</p>
+
+ <div class="radio">
+ <input type="radio" name="homepage" value="default" id="default" <?= Config::homepage() === 'default' ? 'checked' : '' ?>>
+ <label for="default">default</label>
+ </div>
+
+ <div class="radio">
+ <input type="radio" name="homepage" value="search" id="searchbar" <?= Config::homepage() === 'search' ? 'checked' : '' ?>>
+ <label for="searchbar">search bar</label>
+ </div>
+
+ <div class="radio">
+ <input type="radio" name="homepage" value="redirect" id="redirect" <?= Config::homepage() === 'redirect' ? 'checked' : '' ?>>
+ <label for="redirect">redirect to page</label>
+ </div>
+
+ <select name="homeredirect" id="homeredirect">
+ <option value="" <?= Config::homeredirect() === null ? 'selected' : '' ?>>--select page to redirect--</option>
+
+ <?php
+ foreach ($artlist as $art) {
+ ?>
+ <option value="<?= $art ?>" <?= Config::homeredirect() === $art ? 'selected' : '' ?>><?= $art ?></option>
+ <?php
+ }
+
+
+ ?>
+ </select>
<h2>Page creation</h2>