2019-04-02 19:54:29 +02:00
|
|
|
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
|
2019-05-09 00:26:27 +02:00
|
|
|
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
|
|
|
|
|
2019-04-02 19:54:29 +02:00
|
|
|
|
2019-12-20 11:30:26 +01:00
|
|
|
{% import _self as macro %}
|
2019-04-02 19:54:29 +02:00
|
|
|
{% if taxlist %}
|
2019-04-10 16:38:49 +02:00
|
|
|
<div class="btn-toolbar filters">
|
2019-04-08 18:00:38 +02:00
|
|
|
<div data-toggle="buttons" class="btn-group">
|
2019-12-20 11:30:26 +01:00
|
|
|
{% set active = uri.param(taxonomy) == tax? 'active' : '' %}
|
|
|
|
<label class="{{active}} btn btn-default tous" data-filter="">
|
|
|
|
|
|
|
|
{% if page.template == "articles" %}
|
|
|
|
<a class="{{ active }}" href="{{ page.url }}">Tous</a>
|
|
|
|
{% else %}
|
|
|
|
<input type="radio" name="options">
|
|
|
|
Tous
|
|
|
|
{% endif %}
|
2019-04-08 18:00:38 +02:00
|
|
|
</label>
|
2019-06-19 16:33:20 +02:00
|
|
|
|
|
|
|
{% for tax,value in taxlist[taxonomy] %}
|
2019-12-20 11:30:26 +01:00
|
|
|
{% set active = uri.param(taxonomy) == tax? 'active' : '' %}
|
2019-04-02 19:54:29 +02:00
|
|
|
{% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
|
2019-12-20 11:30:26 +01:00
|
|
|
<label class="{{ active }} btn btn-default {{ macro.pageLinkName(tax) }}" data-filter="{{tax}}">
|
|
|
|
{% if page.template == "articles" %}
|
|
|
|
<a class="{{ active }}" href="{{ page.url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
|
|
|
|
{% else %}
|
|
|
|
<input type="radio" name="options" >
|
|
|
|
{{tax}}
|
|
|
|
{% endif %}
|
2019-06-19 16:33:20 +02:00
|
|
|
</label>
|
|
|
|
{% endfor %}
|
2019-05-27 17:03:03 +02:00
|
|
|
</div>
|
2019-12-20 11:30:26 +01:00
|
|
|
{% if page.template == 'archive' %}
|
|
|
|
<div class="btn-group ">
|
|
|
|
<label class="btn-default archive">
|
|
|
|
<a href="/{{page.parent.title|lower}}">{{page.parent.title}}</a>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
{% elseif page.template == 'calendrier' %}
|
|
|
|
<div class="btn-group ">
|
|
|
|
<label class="btn-default archive">
|
2019-06-19 16:33:20 +02:00
|
|
|
<a href="{{page.url}}/archive">Archive</a>
|
2019-12-20 11:30:26 +01:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2019-04-10 16:38:49 +02:00
|
|
|
</div>
|
|
|
|
|
2019-04-02 19:54:29 +02:00
|
|
|
{% endif %}
|