tagslist.html.twig 600 B

12345678910111213141516171819
  1. {% set taxlist = taxonomylist.get() %}
  2. {% if taxlist %}
  3. <ul class="tags">
  4. {% for tag,value in taxlist[taxonomy] %}
  5. {% set active = uri.param(taxonomy) == tag ? ' active' : '' %}
  6. {% if not loop.first and display == "inline" %}
  7. <span>-</span>
  8. {% endif %}
  9. <li class="{{ active }}">
  10. <a
  11. class="tag-{{ catlist[(tag|e('url'))] }}{{ active }}"
  12. href="{{ base_url }}{{ taxonomy }}{{ config.system.param_sep }}{{ tag|e('url') }}">
  13. <span>{{ tag }}</sapn>
  14. </a>
  15. </li>
  16. {% endfor %}
  17. </ul>
  18. {% endif %}