Tabber in Tabber

{% if module.header %}

{{ module.header }}

{% endif %}
{% for item in module.add_tab_item %}
{% if item.icon.src %} {% set sizeAttrs = 'width="{{ item.icon.width }}" height="{{ item.icon.height }}"' %} {% if item.icon.size_type == 'auto' %} {% set sizeAttrs = 'style="max-width: 100%; height: auto;"' %} {% elif item.icon.size_type == 'auto_custom_max' %} {% set sizeAttrs = 'width="{{ item.icon.max_width }}" height="{{ item.icon.max_height }}" style="max-width: 100%; height: auto;"' %} {% endif %} {% set loadingAttr = item.icon.loading != 'disabled' ? 'loading="{{ item.icon.loading }}"' : '' %} {{ item.icon.alt }} {% endif %}

{{ item.title }}

{% endfor %}
{% for item in module.add_tab_item %}

{{ item.title }}

{% for item2 in item.inner_tabber_group %}
{% if item2.content_type == "image" %}
{% if item2.image.src %} {% set sizeAttrs = 'width="{{ item2.image.width }}" height="{{ item2.image.height }}"' %} {% if item2.image.size_type == 'auto' %} {% set sizeAttrs = 'style="max-width: 100%; height: auto;"' %} {% elif item2.image.size_type == 'auto_custom_max' %} {% set sizeAttrs = 'width="{{ item2.image.max_width }}" height="{{ item2.image.max_height }}" style="max-width: 100%; height: auto;"' %} {% endif %} {% set loadingAttr = item2.image.loading != 'disabled' ? 'loading="{{ item2.image.loading }}"' : '' %} {{ item2.image.alt }} {% endif %} {% if item2.image_caption %}
{{ item2.image_caption }}
{% endif %}
{% endif %} {% if item2.content_type == "content" %}
{{ item2.content }}
{% endif %}
{% endfor %}
{% endfor %}

Comments

Popular posts from this blog

Numbered Pagination in HubDB

Dynamic Pages Number Pagination in HubDB (Listing)