taxonomylist.html.twig 464 B

12345678910
  1. {% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
  2. {% if taxlist %}
  3. <span class="tags">
  4. {% for tax,value in taxlist[taxonomy] %}
  5. {% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
  6. <a class="label label-rounded {{ label_class }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
  7. {% endfor %}
  8. </span>
  9. {% endif %}