{% set overflow = overflow is defined ? 'nav-overflow-tabs' : '' %} {% if verticalTabColWidth is not defined %} {% set verticalTabColWidth = 3 %} {% endif %} {% set verticalContentColWidth = 12 - verticalTabColWidth %} {% set vertical, button = vertical is defined ? vertical : '', button is defined ? button : [] %} {% if vertical is not empty %}
{% endif %}
{% if button is not empty %}
{{ button.text }} {% if button.extra is not empty %}{{ button.extra }}{% endif %}
{% endif %} {% for tabKey, tab in tabs %} {% set class = (tab.class is defined and tab.class is not empty) ? ' ' ~ tab.class : '' %} {% if tab.attr is defined and tab.attr is iterable %} {% set attr = [] %} {% for key, val in tab.attr %} {% set attr = aatr|merge({0: key ~"=\"" ~ val ~ "\""}) %} {% endfor %} {% set tab = tab|merge({'attr': attr|join(' ')}) %} {% endif %} {% set attr = (tab.attr is defined and tab.attr is not empty) ? ' ' ~ tab['attr'] : '' %} {% if tab['icon'] is not defined %} {% if tab.published is defined and tab['published'] is not empty %} {% set tab = tab|merge({'icon': 'ri-checkbox-circle-line text-success'}) %} {% else %} {% set tab = tab|merge({'icon': 'ri-checkbox-circle-line text-secondary'}) %} {% endif %} {% endif %}
  • {{ tab['name'] }} {% if tab.icon is not empty %} {% endif %}
  • {% endfor %}
    {% for tab in tabs %} {% set containerClass = (tab.containerClass is defined and tab['containerClass'] is not empty) ? ' ' ~ tab['containerClass'] : '' %} {% if tab['containerAttr'] is defined and tab['containerAttr'] is iterable %} {% set attr = [] %} {% for key, val in tab['containerAttr'] %} {% set attr = attr|merge([key ~ "=\"" ~ val ~ "\""]) %} {% endfor %} {% set tab = tab|merge({'containerAttr': attr|join(' ')}) %} {% endif %} {% set containerAttr = (tab['containerAttr'] is not empty) ? ' ' ~ tab['containerAttr'] : '' %}
    {{ tab['content']|raw }}
    {% endfor %} {% if noContentKey is defined and noContentKey is not empty %}
    {{ noContentKey|trans }}
    {% endif %}
    {% if vertical is not empty %}
    {% endif %}