diff --git a/.ddev/config.yaml b/.ddev/config.yaml index 29c74fa1..002e142e 100644 --- a/.ddev/config.yaml +++ b/.ddev/config.yaml @@ -3,7 +3,7 @@ name: ep-reisen type: typo3 docroot: public php_version: "7.3" -webserver_type: nginx-fpm +webserver_type: apache-cgi router_http_port: "80" router_https_port: "443" xdebug_enabled: false diff --git a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript index f894c0a3..1c762159 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript +++ b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/constants.typoscript @@ -14,6 +14,8 @@ plugin.tx_eptheme { topNavPid = # cat=eptheme/200/110; type=string; label=Main navigation PID mainNavPid = + # cat=eptheme/200/115; type=string; label=Mobile navigation PID + mobileNavPid = # cat=eptheme/200/120; type=string; label=Footer navigation PID footerNavPid = # cat=eptheme/200/130; type=string; label=Default homepage UID diff --git a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript index 2a66c9cd..de133d8c 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript +++ b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript @@ -31,6 +31,7 @@ plugin.tx_eptheme { settings { footerNavPid = {$plugin.tx_eptheme.settings.footerNavPid} mainNavPid = {$plugin.tx_eptheme.settings.mainNavPid} + mobileNavPid = {$plugin.tx_eptheme.settings.mobileNavPid} topNavPid = {$plugin.tx_eptheme.settings.topNavPid} legalNoticePageUid = {$plugin.tx_eptheme.settings.legalNoticePageUid} termsAndConditionsPageUid = {$plugin.tx_eptheme.settings.termsAndConditionsPageUid} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/_app.js b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/_app.js index 30c33579..068cdaa8 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/_app.js +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/_app.js @@ -122,7 +122,7 @@ new Vue({ this.searchBoxVisible = false; }, toggleMobileNavigation () { - $('#ep-navbar-burger-menu').collapse('toggle'); + $('[data-mobile-menu]').collapse('toggle'); }, toggleAreaNavigation () { const $nav = $('.area-nav'); 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 e240312b..e0344091 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Mainnav.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Mainnav.html @@ -8,7 +8,12 @@