I think that's everything; perfect flow achieved
This commit is contained in:
parent
2850589004
commit
44b4b33d38
1 changed files with 27 additions and 13 deletions
|
@ -104,24 +104,38 @@
|
||||||
|
|
||||||
{% set bust_out = false %}
|
{% set bust_out = false %}
|
||||||
{% set busted_out = false %}
|
{% set busted_out = false %}
|
||||||
|
{% set walls_up = false %}
|
||||||
|
|
||||||
{% if content.field_body_paragraph %}
|
{% if content.field_body_paragraph %}
|
||||||
{% for i, paragraph in content.field_body_paragraph if i|first != '#' %}
|
{% for i, paragraph in content.field_body_paragraph if i|first != '#' %}
|
||||||
{% if i is not same as(title_paragraph_index) %}
|
{% if i is not same as(title_paragraph_index) %}
|
||||||
{% if paragraph.field_style_escape_flow is not empty %}
|
{% if paragraph.field_style_escape_flow is not empty %}
|
||||||
{% set bust_out = paragraph.field_style_escape_flow %}
|
{% set bust_out = paragraph.field_style_escape_flow %}
|
||||||
{% endif %}
|
|
||||||
{% if bust_out != true %}
|
|
||||||
{{ paragraph }}
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if bust_out != true and busted_out != true %}
|
||||||
|
{# We need to be in the flow but the lugeslide walls aren't up yet #}
|
||||||
<section class="section" data-headerbg="light">
|
<section class="section" data-headerbg="light">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="flow content">
|
<div class="flow content">
|
||||||
<!-- Unexpected extra content -->
|
{% set walls_up = true %}
|
||||||
{{ content|without('field_body_paragraph', 'field_authors', 'uid', 'created') }}
|
{% elseif bust_out == true and walls_up == true %}
|
||||||
|
{# We need to take the content flow sides down before our paragraph #}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
{% set walls_up = false %}
|
||||||
|
{% endif %}
|
||||||
|
{{ paragraph }}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<!-- Unexpected extra content -->
|
||||||
|
{{ content|without('field_body_paragraph', 'field_authors', 'uid', 'created') }}
|
||||||
|
|
||||||
|
{% if walls_up == true %}
|
||||||
|
{# If the flow sides are still up after all is said and done, close 'em up. #}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue