Skip to content
Snippets Groups Projects
Unverified Commit 5d4c663a authored by Michael Lee's avatar Michael Lee Committed by GitHub
Browse files

Merge pull request #490 from ASCWebServices/canini-3

adding section title to templates
parents ddedb8a6 60233ec4
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@
{% set thecont = [] %}
{% set rand = random(56748) %}
{% for item in content|without('field_column_style_2')|without('field_background_color') %}
{% for item in content|without('field_background_color')|without('field_column_title1')|without('field_publish_section_title') %}
{% set thecont = thecont|merge(item) %}
{% endfor %}
......@@ -93,6 +93,9 @@
</div>
{% else %}
{% if content.field_publish_section_title['#items'].value == 1 %}
<h2 class="sec-title">{{ content.field_column_title1.0 }}</h2>
{% endif %}
<div class="col-xs-12 col-f">
{{ thecont[0] }}
</div>
......
......@@ -62,7 +62,7 @@
{% set thecont = [] %}
{% set rand = random(56748) %}
{% for item in content|without('field_column_style_4')|without('field_background_color') %}
{% for item in content|without('field_column_style_4')|without('field_background_color')|without('field_publish_section_title')|without('field_column_title4') %}
{% set thecont = thecont|merge(item) %}
{% endfor %}
......@@ -216,7 +216,9 @@
{% elseif thecont[0]['#paragraph'].type.target_id != 'advanced_callout_box' %}
{% if content.field_publish_section_title['#items'].value == 1 %}
<h2 class="sec-title">{{ content.field_column_title4 }}</h2>
{% endif %}
<div class="{{ leftwidth }} col-l">
{{ thecont[0] }}
</div>
......
......@@ -85,7 +85,7 @@
{% set thecont = [] %}
{% set rand = random(56748) %}
{% for item in content|without('field_column_style_3')|without('field_background_color') %}
{% for item in content|without('field_column_style_3')|without('field_background_color')|without('field_publish_section_title')|without('field_column_title3') %}
{% set thecont = thecont|merge(item) %}
{% endfor %}
......@@ -248,6 +248,9 @@
{% elseif thecont[0]['#paragraph'].type.target_id != 'advanced_callout_box' %}
{% if content.field_publish_section_title['#items'].value == 1 %}
<h2 class="sec-title">{{ content.field_column_title3 }}</h2>
{% endif %}
<div class="{{ leftwidth }} col-l">
{{ thecont[0] }}
</div>
......
......@@ -78,7 +78,7 @@
{% set thecont = [] %}
{% set rand = random(56748) %}
{% for item in content|without('field_column_style_2')|without('field_background_color') %}
{% for item in content|without('field_column_style_2')|without('field_background_color')|without('field_publish_section_title')|without('field_column_title2') %}
{% set thecont = thecont|merge(item) %}
{% endfor %}
......@@ -235,7 +235,9 @@
{% elseif thecont[0]['#paragraph'].type.target_id != 'advanced_callout_box' %}
{% if content.field_publish_section_title['#items'].value == 1 %}
<h2 class="sec-title">{{ content.field_column_title2 }}</h2>
{% endif %}
<div class="{{ leftwidth }} col-l">
{{ thecont[0] }}
</div>
......
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