37 lines
1.0 KiB
Twig
37 lines
1.0 KiB
Twig
|
|
{% if "events" in page.url %}
|
|
{% set filter = true %}
|
|
{% set filterstart = 0 %}
|
|
{% set filterend = 5 %}
|
|
|
|
{% set taxlist = page.collection.taxonomylist.get %}
|
|
|
|
{% if taxlist %}
|
|
{% set taxlist_taxonomy = taxlist[taxonomy] %}
|
|
|
|
{% if filter %}
|
|
{% set taxlist_taxonomy = taxlist_taxonomy|slice(filterstart,filterend) %}
|
|
{% endif %}
|
|
|
|
<span class="tags">
|
|
{% for tax,value in taxlist_taxonomy %}
|
|
<a href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax|e('url') }}">{{ tax }}</a>
|
|
{% endfor %}
|
|
</span>
|
|
{% endif %}
|
|
|
|
|
|
{% else %}
|
|
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
|
|
{% endif %}
|
|
|
|
|
|
{% if taxlist %}
|
|
<span class="tags">2
|
|
{% for tax,value in taxlist[taxonomy] %}
|
|
{% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
|
|
<a class="label label-rounded {{ label_class }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
|
|
{% endfor %}
|
|
</span>
|
|
{% endif %}
|