aboutsummaryrefslogtreecommitdiff
path: root/app/view
diff options
context:
space:
mode:
Diffstat (limited to 'app/view')
-rw-r--r--app/view/templates/home.php8
-rw-r--r--app/view/templates/homeopt.php2
2 files changed, 7 insertions, 3 deletions
diff --git a/app/view/templates/home.php b/app/view/templates/home.php
index 33bca81..482ce17 100644
--- a/app/view/templates/home.php
+++ b/app/view/templates/home.php
@@ -24,7 +24,7 @@
<main class="home">
- <?php $this->insert('homeopt', ['opt' => $opt, 'user' => $user]) ?>
+ <?php $this->insert('homeopt', ['opt' => $opt, 'user' => $user, 'display' => $display]) ?>
<section class="pages">
@@ -39,8 +39,10 @@
<div id="deepsearchbar">
<form action="" method="get">
<input type="hidden" name="display" value="map">
- <input type="checkbox" name="hideorphans" value="1" id="hideorphans" <?= $hideorphans ? 'checked' : '' ?>>
- <label for="hideorphans">hide orphans pages</label>
+ <input type="checkbox" name="showorphans" value="1" id="showorphans" <?= $showorphans ? 'checked' : '' ?>>
+ <label for="showorphans">show orphans pages</label>
+ <input type="checkbox" name="showredirection" value="1" id="showredirection" <?= $showredirection ? 'checked' : '' ?>>
+ <label for="showredirection">show redirections</label>
<select name="layout" id="layout">
<?= options(Wcms\Model::MAP_LAYOUTS, $layout) ?>
</select>
diff --git a/app/view/templates/homeopt.php b/app/view/templates/homeopt.php
index d1f70da..ed7315d 100644
--- a/app/view/templates/homeopt.php
+++ b/app/view/templates/homeopt.php
@@ -159,6 +159,8 @@
</div>
+ <input type="hidden" name="display" value="<?= $display ?>">
+
<input type="submit" name="submit" value="filter">
⬅<input type="submit" name="submit" value="reset">