From 64ba22b8bec240827822f9f83793dd32ef71cb01 Mon Sep 17 00:00:00 2001
From: Joshua Nicholson <94021017+jnicholCU@users.noreply.github.com>
Date: Mon, 11 Nov 2024 07:42:28 +0900
Subject: [PATCH 1/5] Additional footer style
Added secondary footer style of "Homepage Layout" so that the homepage's footer can have it's own settings. Only accessible through "advanced" layout options.
---
.../regions/region--site-information.html.twig | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/templates/regions/region--site-information.html.twig b/templates/regions/region--site-information.html.twig
index e0e18244..baa3691b 100755
--- a/templates/regions/region--site-information.html.twig
+++ b/templates/regions/region--site-information.html.twig
@@ -32,6 +32,22 @@
-
- {{ page.above_content }}
+
+
+
+ {{ page.above_content }}
+
{% endif %}
@@ -273,15 +275,21 @@
{% endif %}
{% if page.below_content|render %}
-
-
- {{ page.below_content }}
+
+
+
+ {{ page.below_content }}
+
{% endif %}
{% if page.second_below_content|render %}
-
- {{ page.second_below_content }}
+
+
+
+ {{ page.second_below_content }}
+
+
{% endif %}
From 2ad0cc24319c4ee47e2c66c9f9c6b7601e298433 Mon Sep 17 00:00:00 2001
From: Joshua Nicholson <94021017+jnicholCU@users.noreply.github.com>
Date: Mon, 11 Nov 2024 08:50:34 +0900
Subject: [PATCH 3/5] Homepage
update
Added if conditional and settings for hiding the `` for the Homepage use case
---
boulder_base.theme | 1 +
config/install/boulder_base.settings.yml | 1 +
templates/layout/page.html.twig | 48 ++++++++++++------------
3 files changed, 27 insertions(+), 23 deletions(-)
diff --git a/boulder_base.theme b/boulder_base.theme
index 6583f3b2..241c62d7 100755
--- a/boulder_base.theme
+++ b/boulder_base.theme
@@ -166,6 +166,7 @@ function boulder_base_preprocess_page(array &$variables) {
$variables['ucb_footer_menu_default_links'] = theme_get_setting('ucb_footer_menu_default_links');
$variables['show_breadcrumb'] = theme_get_setting('ucb_breadcrumb_nav');
$variables['theme_path'] = base_path() . $variables['directory'];
+ $variables['ucb_homepage_header'] = theme_get_setting('ucb_homepage_header');
$variables['ucb_campus_header_color'] = theme_get_setting('ucb_campus_header_color');
$variables['ucb_header_color'] = $headerColor = theme_get_setting('ucb_header_color');
$variables['ucb_be_boulder'] = theme_get_setting('ucb_be_boulder');
diff --git a/config/install/boulder_base.settings.yml b/config/install/boulder_base.settings.yml
index aea88b87..35492b24 100644
--- a/config/install/boulder_base.settings.yml
+++ b/config/install/boulder_base.settings.yml
@@ -9,6 +9,7 @@ favicon:
use_default: 0
path: /themes/custom/boulder_base/favicon.png
mimetype: image/png
+ucb_homepage_header: 1
ucb_campus_header_color: '1'
ucb_header_color: '3'
ucb_sidebar_position: right
diff --git a/templates/layout/page.html.twig b/templates/layout/page.html.twig
index 7ad6c83f..064624f0 100644
--- a/templates/layout/page.html.twig
+++ b/templates/layout/page.html.twig
@@ -157,33 +157,35 @@
{% if site_search.0 %}
{% include '@boulder_base/includes/ucb-search-modal.html.twig' %}
{% endif %}
-