This commit is contained in:
parent
8ec9928ab9
commit
58ed1a3fb8
2 changed files with 17 additions and 28 deletions
|
|
@ -6,9 +6,11 @@ de la vérité et de la justice.</p>
|
|||
<span class="icon"><?= svg('assets/icons/search.svg') ?></span>
|
||||
<input type="text" id="search" class="input" placeholder="Rechercher" list="keywords-list">
|
||||
<datalist id="keywords-list">
|
||||
<?php foreach (page('database')->keywords()->split() as $keyword): ?>
|
||||
<option value="<?= esc($keyword) ?>">
|
||||
<?php endforeach ?>
|
||||
<?php if ($db = page('database')): ?>
|
||||
<?php foreach ($db->keywords()->split() as $keyword): ?>
|
||||
<option value="<?= esc($keyword) ?>">
|
||||
<?php endforeach ?>
|
||||
<?php endif ?>
|
||||
</datalist>
|
||||
</form>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue