Skip to content
Snippets Groups Projects
Commit b56ce870 authored by Igor Biki's avatar Igor Biki
Browse files

ISTWCMS-4818 Reformatting _layout.twig file.

parent f15ca0f8
No related branches found
No related tags found
2 merge requests!63Tag 3.0.1,!58Feature/istwcms 4818 ibiki ofis module
......@@ -18,54 +18,54 @@
{% for i in 1..num_of_blocks %}
{% set section_name = section_names[loop.index] %}
{% set section_name = section_names[loop.index] %}
{% if inverted_l_left or inverted_l_right %}
{% if loop.index == 1 %}
<div class="uw-inverted-l--left-side">
{% endif %}
{% if inverted_l_left or inverted_l_right %}
{% if loop.index == 1 %}
<div class="uw-inverted-l--left-side">
{% endif %}
{% if inverted_l_left and loop.index == 2 %}
<div class="uw-inverted-l--right-side">
{% if inverted_l_left and loop.index == 2 %}
<div class="uw-inverted-l--right-side">
{% endif %}
{% if inverted_l_right and loop.index == 4 %}
<div class="uw-inverted-l--right-side">
{% endif %}
<div class="uw-inverted-l--right-side">
{% endif %}
{% endif %}
{% endif %}
<div
{% if pattern_lab %}
{% set region_classes = 'layout__region ' ~ 'layout__region--' ~ section_name %}
class="{{ region_classes }}"
{% else %}
{{ region_attributes[section_name].addClass('layout__region', 'layout__region--' ~ section_name) }}
{% endif %}
>
<div
{% if pattern_lab %}
{% set region_classes = 'layout__region ' ~ 'layout__region--' ~ section_name %}
class="{{ region_classes }}"
{% else %}
{{ region_attributes[section_name].addClass('layout__region', 'layout__region--' ~ section_name) }}
{% endif %}
>
{% if pattern_lab %}
{{ section_name }} column
{% else %}
{{ content[section_name] }}
{% endif %}
</div>
{% if pattern_lab %}
{{ section_name }} column
{% else %}
{{ content[section_name] }}
{% endif %}
</div>
{% if inverted_l_left or inverted_l_right %}
{% if inverted_l_left %}
{% if inverted_l_left or inverted_l_right %}
{% if inverted_l_left %}
{% if loop.index == 1 or loop.index == 4 %}
</div>
{% endif %}
</div>
{% endif %}
{% endif %}
{% if inverted_l_right %}
{% if loop.index == 3 or loop.index == 4 %}
</div>
{% endif %}
{% endif %}
{% if loop.index == 3 or loop.index == 4 %}
</div>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
</section>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment