taxonomylist.html.twig 495 B

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