Fix incorrect nesting of tags, replace vhs menu viewhelper
This commit is contained in:
@@ -129,6 +129,15 @@ page {
|
|||||||
titleField = title
|
titleField = title
|
||||||
as = mobilenav
|
as = mobilenav
|
||||||
}
|
}
|
||||||
|
70 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
|
||||||
|
70 {
|
||||||
|
special = directory
|
||||||
|
special.value = {$plugin.tx_eptheme.settings.footerNavPid}
|
||||||
|
levels = 2
|
||||||
|
expandAll = 1
|
||||||
|
titleField = title
|
||||||
|
as = footernav
|
||||||
|
}
|
||||||
}
|
}
|
||||||
settings < plugin.tx_eptheme.settings
|
settings < plugin.tx_eptheme.settings
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<html data-namespace-typo3-fluid="true" lang="en"
|
<html data-namespace-typo3-fluid="true" lang="en"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
|
|
||||||
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
|
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
|
||||||
|
|
||||||
<div class="bg-ep-primary-dark sbw:bg-sbw-primary-80 uch:bg-uch-primary-80 mt-8">
|
<div class="bg-ep-primary-dark sbw:bg-sbw-primary-80 uch:bg-uch-primary-80 mt-8">
|
||||||
@@ -9,8 +8,7 @@
|
|||||||
</f:if>
|
</f:if>
|
||||||
<div class="py-4 relative">
|
<div class="py-4 relative">
|
||||||
<div class="container grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 pb-4">
|
<div class="container grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 pb-4">
|
||||||
<v:menu pageUid="{settings.footerNavPid}" levels="2" expandAll="true">
|
<f:for each="{footernav}" as="menuheader">
|
||||||
<f:for each="{menu}" as="menuheader" iteration="iteration">
|
|
||||||
<div data-controller="collapse"
|
<div data-controller="collapse"
|
||||||
data-collapse-until-value="991">
|
data-collapse-until-value="991">
|
||||||
<span class="headline--4 text-white hidden md:block">
|
<span class="headline--4 text-white hidden md:block">
|
||||||
@@ -21,28 +19,18 @@
|
|||||||
data-action="collapse#toggle">
|
data-action="collapse#toggle">
|
||||||
{menuheader.title}
|
{menuheader.title}
|
||||||
</button>
|
</button>
|
||||||
<v:menu pageUid="{menuheader.uid}" useShortcutUid="true" as="submenu">
|
<f:if condition="{menuheader.children}">
|
||||||
<ul class="list-disc text-white mb-0 pl-4"
|
<ul class="list-disc text-white mb-0 pl-4"
|
||||||
data-collapse-target="container">
|
data-collapse-target="container">
|
||||||
<f:for each="{submenu}" as="submenuitem">
|
<f:for each="{menuheader.children}" as="submenuitem">
|
||||||
<f:if condition="{submenuitem.doktype} == 3">
|
|
||||||
<f:then>
|
|
||||||
<li>
|
<li>
|
||||||
<a class="text-white" href="{submenuitem.url}" target="_blank" title="{submenuitem.linktext}">{submenuitem.title}</a>
|
<a class="text-white" href="{submenuitem.link}"{f:if(condition: '{submenuitem.doktype} == 3', then: ' target="_blank"')} title="{submenuitem.linktext}">{submenuitem.title}</a>
|
||||||
</li>
|
</li>
|
||||||
</f:then>
|
|
||||||
<f:else>
|
|
||||||
<li>
|
|
||||||
<a class="text-white" href="{f:uri.typolink(parameter: submenuitem.uid)}" title="{submenuitem.linktext}">{submenuitem.title}</a>
|
|
||||||
</li>
|
|
||||||
</f:else>
|
|
||||||
</f:if>
|
|
||||||
</f:for>
|
</f:for>
|
||||||
</ul>
|
</ul>
|
||||||
</v:menu>
|
</f:if>
|
||||||
</div>
|
</div>
|
||||||
</f:for>
|
</f:for>
|
||||||
</v:menu>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="hidden md:block container border-t border-white pt-4">
|
<div class="hidden md:block container border-t border-white pt-4">
|
||||||
<div class="grid grid-cols-2 gap-16">
|
<div class="grid grid-cols-2 gap-16">
|
||||||
@@ -98,7 +86,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="bg-ep-primary-dark sbw:bg-sbw-primary-dark pt-4 pb-16 md:py-4 text-sm lg:text-base text-white">
|
<div class="bg-ep-primary-dark sbw:bg-sbw-primary-dark pt-4 pb-16 md:py-4 text-sm lg:text-base text-white">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-4">
|
<div class="grid grid-cols-1 md:grid-cols-12 gap-4">
|
||||||
@@ -177,6 +165,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<button type="button"
|
<button type="button"
|
||||||
data-controller="scroll-top"
|
data-controller="scroll-top"
|
||||||
data-action="scroll-top#scroll"
|
data-action="scroll-top#scroll"
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<html data-namespace-typo3-fluid="true" lang="en"
|
<html data-namespace-typo3-fluid="true" lang="en"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
|
|
||||||
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"
|
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"
|
||||||
xmlns:ep="http://typo3.org/ns/EP/EpTheme/ViewHelpers">
|
xmlns:ep="http://typo3.org/ns/EP/EpTheme/ViewHelpers">
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user