Add setting to disable searchbar globally

This commit is contained in:
Björn Fromme
2022-05-29 11:43:27 +02:00
parent 0732e5b5a7
commit 9e6fa1b16d
5 changed files with 28 additions and 13 deletions
@@ -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
@@ -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}
@@ -4,7 +4,7 @@
<f:render partial="Mainnav" section="Main" arguments="{_all}"/>
<f:render partial="HeaderSlider" arguments="{_all}"/>
<f:if condition="{data.tx_eptheme_hide_searchbar}">
<f:if condition="{data.tx_eptheme_hide_searchbar} || {settings.hideSearchbar}">
<f:else>
<f:cObject typoscriptObjectPath="lib.searchBar"/>
</f:else>
@@ -14,6 +14,10 @@
<f:render partial="ContactBar" arguments="{_all}"/>
<f:render partial="Topnav" arguments="{_all}"/>
<f:render partial="Mobilenav" section="Main" arguments="{_all}"/>
<f:render partial="Search/MobileSearch" arguments="{_all}"/>
<f:if condition="{data.tx_eptheme_hide_searchbar} || {settings.hideSearchbar}">
<f:else>
<f:render partial="Search/MobileSearch" arguments="{_all}"/>
</f:else>
</f:if>
<f:render partial="Config" arguments="{_all}" />
</html>
@@ -4,7 +4,7 @@
<f:render partial="Mainnav" section="Main" arguments="{_all}"/>
<f:render partial="HeaderSliderSmall" arguments="{_all}"/>
<f:if condition="{data.tx_eptheme_hide_searchbar}">
<f:if condition="{data.tx_eptheme_hide_searchbar} || {settings.hideSearchbar}">
<f:else>
<f:cObject typoscriptObjectPath="lib.searchBar"/>
</f:else>
@@ -16,6 +16,10 @@
<f:render partial="ContactBar" arguments="{_all}"/>
<f:render partial="Topnav" arguments="{_all}"/>
<f:render partial="Mobilenav" section="Main" arguments="{_all}"/>
<f:render partial="Search/MobileSearch" arguments="{_all}"/>
<f:if condition="{data.tx_eptheme_hide_searchbar} || {settings.hideSearchbar}">
<f:else>
<f:render partial="Search/MobileSearch" arguments="{_all}"/>
</f:else>
</f:if>
<f:render partial="Config" arguments="{_all}" />
</html>
@@ -17,15 +17,19 @@
<f:render section="FirstLevel" arguments="{_all}"/>
</div>
<div class="flex lg:hidden items-center space-x-4">
<button type="button"
class="focus:outline-none text-gray-800"
data-controller="overlay-toggle"
data-overlay-toggle-id-value="mobile-search"
data-action="overlay-toggle#invokeToggle">
<svg class="w-8 h-8 text-gray-800">
<use href="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/icons_sprite.svg')}#icon-search"></use>
</svg>
</button>
<f:if condition="{settings.hideSearchbar}">
<f:else>
<button type="button"
class="focus:outline-none text-gray-800"
data-controller="overlay-toggle"
data-overlay-toggle-id-value="mobile-search"
data-action="overlay-toggle#invokeToggle">
<svg class="w-8 h-8 text-gray-800">
<use href="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/icons_sprite.svg')}#icon-search"></use>
</svg>
</button>
</f:else>
</f:if>
<button type="button"
class="focus:outline-none text-gray-800"
data-controller="overlay-toggle"