feat: add categories list to search

main
Barış Soner Uşaklı 4 years ago
parent 7b1e96025c
commit 8121a21c14

@ -16,6 +16,7 @@
<option value="titlesposts">[[search:titles-posts]]</option>
<option value="titles">[[search:titles]]</option>
<option value="posts">[[global:posts]]</option>
<option value="categories">[[global:header.categories]]</option>
{{{if privileges.search:users}}}
<option value="users">[[global:users]]</option>
{{{end}}}
@ -207,6 +208,14 @@
<!-- IMPORT partials/tags_list.tpl -->
<!-- ENDIF tags.length -->
{{{ if categories.length }}}
<ul class="categories">
{{{each categories}}}
<!-- IMPORT partials/categories/item.tpl -->
{{{end}}}
</ul>
{{{ end }}}
<!-- IMPORT partials/paginator.tpl -->
</div>
</div>

Loading…
Cancel
Save