Skip to content

Commit

Permalink
Merge pull request #343 from Oksydan/preparation-for-new-menu-module
Browse files Browse the repository at this point in the history
Changes to theme in preparation for new menu module
  • Loading branch information
Oksydan authored Nov 27, 2023
2 parents f0f02ea + cb300d5 commit 3ac291f
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 207 deletions.
1 change: 0 additions & 1 deletion _dev/css/theme/components/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
@import "customer/index";
@import "cart/index";
@import "cms/index";
@import "menu/index";
@import "404/index";
@import "newsletter/index";
@import "homeslider/index";
Expand Down
1 change: 0 additions & 1 deletion _dev/css/theme/components/menu/_index.scss

This file was deleted.

144 changes: 0 additions & 144 deletions _dev/css/theme/components/menu/_mainmenu.scss

This file was deleted.

4 changes: 0 additions & 4 deletions _dev/js/theme/components/header/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DOMReady } from '../../../utils/DOM/DOMHelpers';
import useTopMenu from './useTopMenu';
import useStickyElement from '../useStickyElement';

const initStickyHeader = () => {
Expand All @@ -14,8 +13,5 @@ const initStickyHeader = () => {
};

DOMReady(() => {
const { init: initTopMenu } = useTopMenu('.js-main-menu');

initTopMenu();
initStickyHeader();
});
42 changes: 0 additions & 42 deletions _dev/js/theme/components/header/useTopMenu.js

This file was deleted.

2 changes: 2 additions & 0 deletions config/theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@ global_settings:
- is_shoppingcart
- is_imageslider
- is_searchbar
- is_mainmenu
to_disable:
- blockreassurance
- ps_searchbar
- ps_shoppingcart
- ps_imageslider
- blockwishlist
- ps_mainmenu
hooks:
modules_to_hook:
displayNav1:
Expand Down
2 changes: 1 addition & 1 deletion templates/_partials/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
href="#"
role="button"
data-bs-toggle="offcanvas"
data-bs-target="#mobile_top_menu_wrapper"
data-bs-target="#mobile_menu_offcanvas"
>
<div class="header-top__icon-container">
<span class="header-top__icon material-icons">menu</span>
Expand Down
2 changes: 0 additions & 2 deletions templates/_partials/mobile-modals.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

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

{include file="_partials/modal-menu.tpl"}

{include file="_partials/modal-filters.tpl"}
12 changes: 0 additions & 12 deletions templates/_partials/modal-menu.tpl

This file was deleted.

2 changes: 2 additions & 0 deletions templates/layouts/layout-both-columns.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@
{include file="_partials/page-loader.tpl"}
{/block}

{hook h='displayMobileMenu'}

</body>

</html>

0 comments on commit 3ac291f

Please sign in to comment.