Browse code

Initial commit

Benjamin Roth authored on16/03/2023 20:22:35
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,45 @@
1
+<?php $this->extend('block_unsearchable'); ?>
2
+
3
+<?php $this->block('content'); ?>
4
+
5
+<form<?php if ($this->action): ?> action="<?= $this->action ?>"<?php endif; ?> method="get">
6
+    <div class="formbody">
7
+        <div class="widget widget-text">
8
+            <div class="input-group">
9
+                <input type="search" placeholder="Suche..." name="keywords"
10
+                       id="ctrl_keywords_<?= $this->uniqueId ?>"
11
+                       class="text form-control"
12
+                       value="<?= $this->keyword ?>">
13
+                <div class="input-group-append">
14
+                    <button type="submit" id="ctrl_submit_<?= $this->uniqueId ?>"
15
+                            class="btn btn-primary submit"><i class="far fa-search"></i></button>
16
+                </div>
17
+            </div>
18
+        </div>
19
+
20
+        <?php if ($this->advanced): ?>
21
+            <div class="widget widget-radio">
22
+                <fieldset class="radio_container">
23
+                    <legend class="invisible"><?= $this->optionsLabel ?></legend>
24
+                    <span><input type="radio" name="query_type" id="matchAll_<?= $this->uniqueId ?>" class="radio"
25
+                                 value="and"<?php if ('and' == $this->queryType): ?> checked<?php endif; ?>> <label
26
+                                for="matchAll_<?= $this->uniqueId ?>"><?= $this->matchAll ?></label></span>
27
+                    <span><input type="radio" name="query_type" id="matchAny_<?= $this->uniqueId ?>" class="radio"
28
+                                 value="or"<?php if ('or' == $this->queryType): ?> checked<?php endif; ?>> <label
29
+                                for="matchAny_<?= $this->uniqueId ?>"><?= $this->matchAny ?></label></span>
30
+                </fieldset>
31
+            </div>
32
+        <?php endif; ?>
33
+    </div>
34
+</form>
35
+
36
+<?php if ($this->header): ?>
37
+    <p class="header"><?= $this->header ?></p>
38
+    <?php if ($this->keywordHint): ?>
39
+        <p class="info"><?= $this->keywordHint ?></p>
40
+    <?php endif; ?>
41
+<?php endif; ?>
42
+
43
+<?= $this->results . $this->pagination ?>
44
+
45
+<?php $this->endblock(); ?>