init
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<move element="logo"
|
||||
destination="header-wrapper"
|
||||
before="-"/>
|
||||
<move element="navigation.sections"
|
||||
destination="header-wrapper"
|
||||
after="logo"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0"?>
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceBlock name="navigation.sections">
|
||||
<block class="Magento\Framework\View\Element\Template"
|
||||
name="store.menu"
|
||||
group="navigation-sections"
|
||||
template="Magento_Theme::html/container.phtml">
|
||||
<arguments>
|
||||
<argument name="title" translate="true" xsi:type="string">Menu</argument>
|
||||
</arguments>
|
||||
<block class="Magento\Theme\Block\Html\Topmenu"
|
||||
name="catalog.topnav"
|
||||
template="Esun_MegaMenu::html/topmenu.phtml"
|
||||
ttl="3600"
|
||||
before="-">
|
||||
<arguments>
|
||||
<argument name="view_model" xsi:type="object">Esun\MegaMenu\ViewModel\MegaMenuData</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</block>
|
||||
</referenceBlock>
|
||||
<move element="logo"
|
||||
destination="header-wrapper"
|
||||
before="-"/>
|
||||
<move element="navigation.sections"
|
||||
destination="header-wrapper"
|
||||
after="logo"/>
|
||||
</body>
|
||||
</page>
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0"?>
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceBlock name="catalog.topnav">
|
||||
<arguments>
|
||||
<argument name="view_model" xsi:type="object">Esun\MegaMenu\ViewModel\MegaMenuData</argument>
|
||||
</arguments>
|
||||
<action method="setTemplate">
|
||||
<argument name="template" xsi:type="string">Esun_MegaMenu::html/topmenu.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
Reference in New Issue
Block a user