Skip to content

Commit 3ac291f

Browse files
authored
Merge pull request #343 from Oksydan/preparation-for-new-menu-module
Changes to theme in preparation for new menu module
2 parents f0f02ea + cb300d5 commit 3ac291f

File tree

10 files changed

+5
-207
lines changed

10 files changed

+5
-207
lines changed

_dev/css/theme/components/_index.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
@import "customer/index";
33
@import "cart/index";
44
@import "cms/index";
5-
@import "menu/index";
65
@import "404/index";
76
@import "newsletter/index";
87
@import "homeslider/index";

_dev/css/theme/components/menu/_index.scss

Lines changed: 0 additions & 1 deletion
This file was deleted.

_dev/css/theme/components/menu/_mainmenu.scss

Lines changed: 0 additions & 144 deletions
This file was deleted.

_dev/js/theme/components/header/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { DOMReady } from '../../../utils/DOM/DOMHelpers';
2-
import useTopMenu from './useTopMenu';
32
import useStickyElement from '../useStickyElement';
43

54
const initStickyHeader = () => {
@@ -14,8 +13,5 @@ const initStickyHeader = () => {
1413
};
1514

1615
DOMReady(() => {
17-
const { init: initTopMenu } = useTopMenu('.js-main-menu');
18-
19-
initTopMenu();
2016
initStickyHeader();
2117
});

_dev/js/theme/components/header/useTopMenu.js

Lines changed: 0 additions & 42 deletions
This file was deleted.

config/theme.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,14 @@ global_settings:
5757
- is_shoppingcart
5858
- is_imageslider
5959
- is_searchbar
60+
- is_mainmenu
6061
to_disable:
6162
- blockreassurance
6263
- ps_searchbar
6364
- ps_shoppingcart
6465
- ps_imageslider
6566
- blockwishlist
67+
- ps_mainmenu
6668
hooks:
6769
modules_to_hook:
6870
displayNav1:

templates/_partials/header.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
href="#"
5757
role="button"
5858
data-bs-toggle="offcanvas"
59-
data-bs-target="#mobile_top_menu_wrapper"
59+
data-bs-target="#mobile_menu_offcanvas"
6060
>
6161
<div class="header-top__icon-container">
6262
<span class="header-top__icon material-icons">menu</span>

templates/_partials/mobile-modals.tpl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

22
{include file="_partials/modal-search.tpl"}
33

4-
{include file="_partials/modal-menu.tpl"}
5-
64
{include file="_partials/modal-filters.tpl"}

templates/_partials/modal-menu.tpl

Lines changed: 0 additions & 12 deletions
This file was deleted.

templates/layouts/layout-both-columns.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@
120120
{include file="_partials/page-loader.tpl"}
121121
{/block}
122122

123+
{hook h='displayMobileMenu'}
124+
123125
</body>
124126

125127
</html>

0 commit comments

Comments
 (0)