From 9e6fa1b16da079cfadeb6d1d99e0ed24f1d2a0f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Sun, 29 May 2022 11:43:15 +0200 Subject: [PATCH] Add setting to disable searchbar globally --- .../TypoScript/constants.typoscript | 2 ++ .../Configuration/TypoScript/setup.typoscript | 1 + .../Private/Layouts/Page/Frontpage.html | 8 +++++-- .../Private/Layouts/Page/Subpage.html | 8 +++++-- .../Resources/Private/Partials/Mainnav.html | 22 +++++++++++-------- 5 files changed, 28 insertions(+), 13 deletions(-) diff --git a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript index fcec04fb..f39e7c86 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript +++ b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript @@ -126,6 +126,8 @@ plugin.tx_eptheme { ratingWidgetLabel = Reisebewertung # cat=eptheme/500/170; type=boolean; label=Hide area/top navigation hideAreaNavigation = 0 + # cat=eptheme/500/170; type=boolean; label=Hide searchbar + hideSearchbar = 0 # cat=eptheme/800/100; type=boolean; label=Show 'skipass inklusive' badge showSkipassBadge = 1 diff --git a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript index 42ce332c..f6c950bb 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript +++ b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript @@ -56,6 +56,7 @@ plugin.tx_eptheme { searchPageHeaderImage = {$plugin.tx_eptheme.settings.searchPageHeaderImage} ratingWidgetLabel = {$plugin.tx_eptheme.settings.ratingWidgetLabel} hideAreaNavigation = {$plugin.tx_eptheme.settings.hideAreaNavigation} + hideSearchbar = {$plugin.tx_eptheme.settings.hideSearchbar} showSkipassBadge = {$plugin.tx_eptheme.settings.showSkipassBadge} forcePartnerIdSelect = {$plugin.tx_eptheme.settings.forcePartnerIdSelect} contactFormToEmail = {$plugin.tx_eptheme.settings.contactFormToEmail} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Layouts/Page/Frontpage.html b/public/typo3conf/ext/ep_theme/Resources/Private/Layouts/Page/Frontpage.html index 205e5243..ce4df0b2 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Layouts/Page/Frontpage.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Layouts/Page/Frontpage.html @@ -4,7 +4,7 @@ - + @@ -14,6 +14,10 @@ - + + + + + diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Layouts/Page/Subpage.html b/public/typo3conf/ext/ep_theme/Resources/Private/Layouts/Page/Subpage.html index 94b8d6a0..9b04e84f 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Layouts/Page/Subpage.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Layouts/Page/Subpage.html @@ -4,7 +4,7 @@ - + @@ -16,6 +16,10 @@ - + + + + + diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Mainnav.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Mainnav.html index d797aa7b..029453a3 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Mainnav.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Mainnav.html @@ -17,15 +17,19 @@
- + + + + +