You are here

cctags-vocname.html.twig in cctags 8

{#/**#}
{#* $vocname 	-- array vocabulary name#}
{#* $vid   	-- array vocabulary vid#}
{#* $terms   	-- array counts terms in current vocabulary#}
{#* $mode 	-- mixed or group#}
{#* $is_out       -- array counts terms#}
*/
<div class="clearfix">
    {% if vocname %}
        <div class="cctags vocname">
            {% set i = 0 %}
            {% for key,name in vocname %}
                if ($i>0)
                {% if i > 0 %}
                    {% set vname = '&nbsp;::&nbsp;' ~ name %}
                {% else %}
                    {% set vname = name %}
                {% endif %}
                {% set i = i + 1 %}
                {% if (( (mode == 'group') and (is_out.vid.key ==1) ) || (mode == 'mixed')) %}
                    <span class="cctags vocname vid-{{ vid.key }}">
                        {{ render_var(vname) }}
                </span>
                {% endif %}
            {% endfor %}
        </div>
    {% endif %}
</div>

File

templates/cctags-vocname.html.twig
View source
  1. {#/**#}
  2. {#* $vocname -- array vocabulary name#}
  3. {#* $vid -- array vocabulary vid#}
  4. {#* $terms -- array counts terms in current vocabulary#}
  5. {#* $mode -- mixed or group#}
  6. {#* $is_out -- array counts terms#}
  7. */
  8. <div class="clearfix">
  9. {% if vocname %}
  10. <div class="cctags vocname">
  11. {% set i = 0 %}
  12. {% for key,name in vocname %}
  13. if ($i>0)
  14. {% if i > 0 %}
  15. {% set vname = '&nbsp;::&nbsp;' ~ name %}
  16. {% else %}
  17. {% set vname = name %}
  18. {% endif %}
  19. {% set i = i + 1 %}
  20. {% if (( (mode == 'group') and (is_out.vid.key ==1) ) || (mode == 'mixed')) %}
  21. <span class="cctags vocname vid-{{ vid.key }}">
  22. {{ render_var(vname) }}
  23. </span>
  24. {% endif %}
  25. {% endfor %}
  26. </div>
  27. {% endif %}
  28. </div>