{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}

{% if taxlist %}
<div data-toggle="buttons" class="btn-group">
    <label class="btn btn-default">
      <a class="filter" href="#" data-filter="">Tous</a>
    </label>
    {% for tax,value in taxlist[taxonomy] %}
        {% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
          <label class="btn btn-default">
            <a class="filter" href="#" data-filter="{{ tax }}">{{tax}}</a>
          </label>
    {% endfor %}
  </div>
{% endif %}
