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

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