From 41101ff35669f65d3869442d96f18193b5b53e5b Mon Sep 17 00:00:00 2001 From: James O'Toole Date: Fri, 2 Jun 2023 15:20:23 -0700 Subject: [PATCH] Add additional theme footer option fro Shared Research Platforms --- templates/includes/footer.clf7.html.twig | 2 + .../includes/footer.unit.shared.html.twig | 80 +++++++++++++++++++ theme-settings.php | 1 + 3 files changed, 83 insertions(+) create mode 100644 templates/includes/footer.unit.shared.html.twig diff --git a/templates/includes/footer.clf7.html.twig b/templates/includes/footer.clf7.html.twig index 7dfe76c..dfd6c2e 100644 --- a/templates/includes/footer.clf7.html.twig +++ b/templates/includes/footer.clf7.html.twig @@ -10,6 +10,8 @@ {% include '@kraken/includes/footer.unit.portfolio.html.twig' %} {% elseif vpr_unit is same as('cluster') %} {% include '@kraken/includes/footer.unit.cluster.html.twig' %} +{% elseif vpr_unit is same as('shared') %} + {% include '@kraken/includes/footer.unit.shared.html.twig' %} {% elseif vpr_unit is same as('research') %} {% include '@kraken/includes/footer.unit.research.html.twig' %} {% else %} diff --git a/templates/includes/footer.unit.shared.html.twig b/templates/includes/footer.unit.shared.html.twig new file mode 100644 index 0000000..9b30077 --- /dev/null +++ b/templates/includes/footer.unit.shared.html.twig @@ -0,0 +1,80 @@ + +
+ diff --git a/theme-settings.php b/theme-settings.php index e813458..afc4cf9 100755 --- a/theme-settings.php +++ b/theme-settings.php @@ -220,6 +220,7 @@ function kraken_form_system_theme_settings_alter(&$form, FormStateInterface &$fo '#options' => [ 'portfolio' => t('Portfolio'), 'cluster' => t('Cluster'), + 'shared' => t('Shared Research Platforms'), 'research' => t('Main Research Website'), '' => t('None'), ],