From 9dd3797690c9213456d979928c003aec359d7cd0 Mon Sep 17 00:00:00 2001 From: Brian Canini <canini.16@osu.edu> Date: Tue, 26 Apr 2022 11:29:01 -0400 Subject: [PATCH] adding section titles to advanced callout boxes --- .../templates/paragraph/paragraph--columns_four.html.twig | 6 ++++++ .../templates/paragraph/paragraph--columns_three.html.twig | 6 ++++++ .../templates/paragraph/paragraph--columns_two.html.twig | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/web/themes/asc_bootstrap/templates/paragraph/paragraph--columns_four.html.twig b/web/themes/asc_bootstrap/templates/paragraph/paragraph--columns_four.html.twig index dbbb219b49..a2d30299df 100644 --- a/web/themes/asc_bootstrap/templates/paragraph/paragraph--columns_four.html.twig +++ b/web/themes/asc_bootstrap/templates/paragraph/paragraph--columns_four.html.twig @@ -80,6 +80,9 @@ {% if page_content_type == 'landing_page' %} <div class="container"> {% endif %} + {% if content.field_publish_section_title['#items'].value == 1 %} + <h2 class="sec-title">{{ content.field_column_title4 }}</h2> + {% endif %} <div class="carousel-inner adv-call-mob-inner" role="listbox"> @@ -124,6 +127,9 @@ {% if page_content_type == 'landing_page' %} <div class="container"> {% endif %} + {% if content.field_publish_section_title['#items'].value == 1 %} + <h2 class="sec-title">{{ content.field_column_title4 }}</h2> + {% endif %} <div class="carousel-inner" role="listbox"> diff --git a/web/themes/asc_bootstrap/templates/paragraph/paragraph--columns_three.html.twig b/web/themes/asc_bootstrap/templates/paragraph/paragraph--columns_three.html.twig index 5b5cdecbba..65d9934058 100644 --- a/web/themes/asc_bootstrap/templates/paragraph/paragraph--columns_three.html.twig +++ b/web/themes/asc_bootstrap/templates/paragraph/paragraph--columns_three.html.twig @@ -101,6 +101,9 @@ {% if page_content_type == 'landing_page' %} <div class="container"> + {% if content.field_publish_section_title['#items'].value == 1 %} + <h2 class="sec-title">{{ content.field_column_title3 }}</h2> + {% endif %} <div class="carousel-inner adv-call-mob-inner" role="listbox"> @@ -168,6 +171,9 @@ {% if page_content_type == 'landing_page' %} <div class="container"> {% endif %} + {% if content.field_publish_section_title['#items'].value == 1 %} + <h2 class="sec-title">{{ content.field_column_title3 }}</h2> + {% endif %} <div class="carousel-inner" role="listbox"> diff --git a/web/themes/asc_bootstrap/templates/paragraph/paragraph--columns_two.html.twig b/web/themes/asc_bootstrap/templates/paragraph/paragraph--columns_two.html.twig index 45f49ec700..46ed9b562f 100644 --- a/web/themes/asc_bootstrap/templates/paragraph/paragraph--columns_two.html.twig +++ b/web/themes/asc_bootstrap/templates/paragraph/paragraph--columns_two.html.twig @@ -100,6 +100,9 @@ {% if page_content_type == 'landing_page' %} <div class="container"> + {% if content.field_publish_section_title['#items'].value == 1 %} + <h2 class="sec-title">{{ content.field_column_title2 }}</h2> + {% endif %} <div class="carousel-inner adv-call-mob-inner" role="listbox"> {% for item in thecont|slice(0, contcount) %} @@ -165,6 +168,9 @@ {% if page_content_type == 'landing_page' %} <div class="container"> {% endif %} + {% if content.field_publish_section_title['#items'].value == 1 %} + <h2 class="sec-title">{{ content.field_column_title2 }}</h2> + {% endif %} <div class="carousel-inner{% if contcount > 2 %} controls-spacing{% endif %}" role="listbox"> -- GitLab