From ae106954bea391fad948c718f6b1b3d1701b83b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Tue, 1 Sep 2020 11:23:23 +0200 Subject: [PATCH] Add config to hide area/top navigation --- .../TypoScript/constants.typoscript | 2 + .../Configuration/TypoScript/setup.typoscript | 1 + .../Resources/Private/Partials/Topnav.html | 52 +++++++++++-------- 3 files changed, 32 insertions(+), 23 deletions(-) diff --git a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript index c6bb559b..4f112056 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript +++ b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript @@ -120,6 +120,8 @@ plugin.tx_eptheme { searchPageHeaderImage = # cat=eptheme/500/160; type=string; label=Rating widget label ratingWidgetLabel = Reisebewertung + # cat=eptheme/500/170; type=boolean; label=Hide area/top navigation + hideAreaNavigation = 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 274442fe..e1f39696 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript +++ b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript @@ -77,6 +77,7 @@ plugin.tx_eptheme { datePickerPresets < plugin.tx_epproducts.settings.datePickerPresets searchPageHeaderImage = {$plugin.tx_eptheme.settings.searchPageHeaderImage} ratingWidgetLabel = {$plugin.tx_eptheme.settings.ratingWidgetLabel} + hideAreaNavigation = {$plugin.tx_eptheme.settings.hideAreaNavigation} 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/Partials/Topnav.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Topnav.html index 4772d3c7..a5bfcd1a 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Topnav.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Topnav.html @@ -2,28 +2,34 @@ {namespace ep=EP\EpTheme\ViewHelpers}
- - Bereich wechseln - - + + + + + Bereich wechseln + + + + +