2021-11-13 09:42:07 +00:00
|
|
|
{% from 'simple/icons.html' import icon_big %}
|
|
|
|
{%- set category_icons = {
|
|
|
|
'general': 'search-outline',
|
|
|
|
'images': 'image-outline',
|
|
|
|
'videos': 'play-outline',
|
|
|
|
'news': 'newspaper-outline',
|
|
|
|
'map': 'location-outline',
|
|
|
|
'music': 'musical-notes-outline',
|
|
|
|
'it': 'layers-outline',
|
|
|
|
'science': 'school-outline',
|
|
|
|
'files': 'file-tray-full-outline',
|
|
|
|
'social media': 'people-outline',
|
2021-11-13 14:08:54 +00:00
|
|
|
} -%}
|
2021-10-26 21:11:51 +00:00
|
|
|
<div id="categories" class="search_categories">{{- '' -}}
|
2017-02-12 14:06:01 +00:00
|
|
|
<div id="categories_container">
|
|
|
|
{%- for category in categories -%}
|
2021-11-13 09:42:07 +00:00
|
|
|
<div class="category"><input type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}"{% if category in selected_categories %} checked="checked"{% endif %}/>
|
|
|
|
<label for="checkbox_{{ category|replace(' ', '_') }}" class="tooltips">
|
|
|
|
{{- icon_big(category_icons[category]) if category in category_icons else icon_big('globe-outline') -}}
|
|
|
|
<div class="category_name">{{- _(category) -}}</div>
|
|
|
|
</label>
|
|
|
|
</div>
|
2017-02-12 14:06:01 +00:00
|
|
|
{%- endfor -%}
|
|
|
|
{%- if display_tooltip %}<div class="help">{{ _('Click on the magnifier to perform search') }}</div>{% endif -%}
|
|
|
|
</div>{{- '' -}}
|
|
|
|
</div>
|