This commit is contained in:
2025-04-09 23:23:10 +02:00
11 changed files with 5629 additions and 35 deletions

View File

@@ -2615,7 +2615,7 @@
"appagebuilder.php": { "appagebuilder.php": {
"type": "-", "type": "-",
"size": 156814, "size": 156814,
"lmtime": 1744214277279, "lmtime": 1744231547038,
"modified": false "modified": false
}, },
"classes": { "classes": {
@@ -2657,8 +2657,8 @@
}, },
"ApPageBuilderShortcodeModel.php": { "ApPageBuilderShortcodeModel.php": {
"type": "-", "type": "-",
"size": 11670, "size": 11469,
"lmtime": 1742913423000, "lmtime": 1744230348017,
"modified": false "modified": false
}, },
"ApPageSetting.php": { "ApPageSetting.php": {
@@ -2974,8 +2974,8 @@
}, },
"AdminApPageBuilderProfiles.php": { "AdminApPageBuilderProfiles.php": {
"type": "-", "type": "-",
"size": 32437, "size": 33672,
"lmtime": 1743458949576, "lmtime": 1744233542078,
"modified": false "modified": false
}, },
"AdminApPageBuilderShortcode.php": { "AdminApPageBuilderShortcode.php": {
@@ -3662,8 +3662,8 @@
}, },
"form.js": { "form.js": {
"type": "-", "type": "-",
"size": 34884, "size": 34911,
"lmtime": 1742913520000, "lmtime": 1744233477935,
"modified": false "modified": false
}, },
"home.js": { "home.js": {
@@ -3955,8 +3955,8 @@
"front": { "front": {
"CmsController.php": { "CmsController.php": {
"type": "-", "type": "-",
"size": 2647, "size": 2639,
"lmtime": 1742913531000, "lmtime": 1744231254822,
"modified": false "modified": false
}, },
"index.php": { "index.php": {
@@ -4721,8 +4721,8 @@
}, },
"form.js": { "form.js": {
"type": "-", "type": "-",
"size": 34884, "size": 34911,
"lmtime": 1742913615000, "lmtime": 1744233477937,
"modified": false "modified": false
}, },
"home.js": { "home.js": {
@@ -5991,8 +5991,8 @@
}, },
"header.tpl": { "header.tpl": {
"type": "-", "type": "-",
"size": 1721, "size": 1719,
"lmtime": 1742913796000, "lmtime": 1744233477939,
"modified": false "modified": false
}, },
"index.php": { "index.php": {
@@ -6981,7 +6981,85 @@
} }
}, },
"leobootstrapmenu": {}, "leobootstrapmenu": {},
"leofeature": {}, "leofeature": {
"classes": {},
"config_pl.xml": {
"type": "-",
"size": 545,
"lmtime": 0,
"modified": false
},
"config.xml": {
"type": "-",
"size": 548,
"lmtime": 0,
"modified": false
},
"controllers": {},
"css": {},
"errors.log": {
"type": "-",
"size": 2104,
"lmtime": 0,
"modified": false
},
"img": {},
"index.php": {
"type": "-",
"size": 1269,
"lmtime": 0,
"modified": false
},
"install": {},
"js": {},
"leofeature.php": {
"type": "-",
"size": 118159,
"lmtime": 0,
"modified": false
},
"logo.gif": {
"type": "-",
"size": 1139,
"lmtime": 0,
"modified": false
},
"logo.png": {
"type": "-",
"size": 2118,
"lmtime": 0,
"modified": false
},
"logo.webp": {
"type": "-",
"size": 994,
"lmtime": 0,
"modified": false
},
"mails": {},
"psajax.php": {
"type": "-",
"size": 4388,
"lmtime": 1744233477940,
"modified": false
},
"psajax_review.php": {
"type": "-",
"size": 5930,
"lmtime": 0,
"modified": false
},
"Readme.md": {
"type": "-",
"size": 13,
"lmtime": 0,
"modified": false
},
"sql": {},
"translations": {},
"upgrade": {},
"views": {}
},
"leoproductsearch": {}, "leoproductsearch": {},
"leoquicklogin": {}, "leoquicklogin": {},
"leoslideshow": {}, "leoslideshow": {},
@@ -7022,7 +7100,18 @@
"ps_customtext": {}, "ps_customtext": {},
"ps_dataprivacy": {}, "ps_dataprivacy": {},
"ps_emailalerts": {}, "ps_emailalerts": {},
"ps_emailsubscription": {}, "ps_emailsubscription": {
"views": {
"js": {
"ps_emailsubscription.js": {
"type": "-",
"size": 1998,
"lmtime": 1744233271115,
"modified": false
}
}
}
},
"ps_eventbus": {}, "ps_eventbus": {},
"ps_facetedsearch": {}, "ps_facetedsearch": {},
"ps_faviconnotificationbo": {}, "ps_faviconnotificationbo": {},
@@ -7525,7 +7614,49 @@
"ybc_widget": {} "ybc_widget": {}
}, },
"nov": {}, "nov": {},
"override": {}, "override": {
"controllers": {
"front": {
"AuthController.php": {
"type": "-",
"size": 1045,
"lmtime": 0,
"modified": false
},
"CartController.php": {
"type": "-",
"size": 3024,
"lmtime": 0,
"modified": false
},
"CmsController.php": {
"type": "-",
"size": 17501,
"lmtime": 1744231335695,
"modified": false
},
"index.php": {
"type": "-",
"size": 1316,
"lmtime": 0,
"modified": false
},
"listing": {},
"OrderController.php": {
"type": "-",
"size": 1439,
"lmtime": 0,
"modified": false
},
"ProductController.php": {
"type": "-",
"size": 970,
"lmtime": 0,
"modified": false
}
}
}
},
"pdf": {}, "pdf": {},
".php_cs.dist": { ".php_cs.dist": {
"type": "-", "type": "-",
@@ -7710,8 +7841,8 @@
}, },
"layout-both-columns.tpl": { "layout-both-columns.tpl": {
"type": "-", "type": "-",
"size": 4917, "size": 5049,
"lmtime": 1741698107804, "lmtime": 1744233477979,
"modified": false "modified": false
}, },
"layout-content-only.tpl": { "layout-content-only.tpl": {
@@ -7766,8 +7897,8 @@
}, },
"page.tpl": { "page.tpl": {
"type": "-", "type": "-",
"size": 2356, "size": 2311,
"lmtime": 1744214079423, "lmtime": 1744230878513,
"modified": false "modified": false
}, },
"_partials": {}, "_partials": {},
@@ -7790,20 +7921,20 @@
"components": {}, "components": {},
"custom.css": { "custom.css": {
"type": "-", "type": "-",
"size": 1472, "size": 2662,
"lmtime": 0, "lmtime": 0,
"modified": true "modified": true
}, },
"dr_materac.css": { "dr_materac.css": {
"type": "-", "type": "-",
"size": 83268, "size": 104133,
"lmtime": 1740080147191, "lmtime": 1744233563106,
"modified": false "modified": false
}, },
"dr_materac.css.map": { "dr_materac.css.map": {
"type": "-", "type": "-",
"size": 31361, "size": 233655,
"lmtime": 1740080147192, "lmtime": 1744233516832,
"modified": false "modified": false
}, },
"dr_materac.css.sync-conflict-20231027-200011-EDGUH2C.map": { "dr_materac.css.sync-conflict-20231027-200011-EDGUH2C.map": {
@@ -7814,8 +7945,8 @@
}, },
"dr_materac.scss": { "dr_materac.scss": {
"type": "-", "type": "-",
"size": 99257, "size": 106592,
"lmtime": 1740080147193, "lmtime": 1744233516206,
"modified": false "modified": false
}, },
"dr_materac.sync-conflict-20231027-195749-EDGUH2C.css": { "dr_materac.sync-conflict-20231027-195749-EDGUH2C.css": {
@@ -7852,8 +7983,20 @@
"js": { "js": {
"custom.js": { "custom.js": {
"type": "-", "type": "-",
"size": 28857, "size": 30087,
"lmtime": 1720343668083, "lmtime": 1744233477978,
"modified": false
},
"index.php": {
"type": "-",
"size": 1279,
"lmtime": 0,
"modified": false
},
"theme.js": {
"type": "-",
"size": 173541,
"lmtime": 0,
"modified": false "modified": false
} }
} }

View File

@@ -112,6 +112,12 @@ class AdminApPageBuilderProfilesController extends ModuleAdminControllerCore
public function initPageHeaderToolbar() public function initPageHeaderToolbar()
{ {
$this->context->controller->addJs(__PS_BASE_URI__.'js/jquery/jquery-3.5.1.min.js');
// $this->context->controller->addJquery();
$this->context->controller->addJqueryUI('ui.sortable'); // FILE FORM.js required this
$this->context->controller->addJqueryUI('ui.draggable'); // FILE FORM.js required this
$this->context->controller->addJs(apPageHelper::getJsAdminDir().'admin/form.js');
$this->page_header_toolbar_btn['SaveAndStay'] = array( $this->page_header_toolbar_btn['SaveAndStay'] = array(
'href' => 'javascript:void(0);', 'href' => 'javascript:void(0);',

View File

@@ -19,6 +19,8 @@ function updateListIdFullSlider() {
$("#total_slider").val(listId); $("#total_slider").val(listId);
} }
$(document).ready(function() { $(document).ready(function() {
console.log("ready!");
$("#modal_form").draggable({ $("#modal_form").draggable({
handle: ".modal-header" handle: ".modal-header"
}); });

View File

@@ -19,6 +19,8 @@ function updateListIdFullSlider() {
$("#total_slider").val(listId); $("#total_slider").val(listId);
} }
$(document).ready(function() { $(document).ready(function() {
console.log("ready");
$("#modal_form").draggable({ $("#modal_form").draggable({
handle: ".modal-header" handle: ".modal-header"
}); });

View File

@@ -6,7 +6,6 @@
* @description: ApPageBuilder is module help you can build content for your shop * @description: ApPageBuilder is module help you can build content for your shop
*} *}
<!-- @file modules\appagebuilder\views\templates\hook\header --> <!-- @file modules\appagebuilder\views\templates\hook\header -->
<script> <script>
/** /**
* List functions will run when document.ready() * List functions will run when document.ready()

View File

@@ -17,7 +17,7 @@ require_once(dirname(__FILE__).'/../../config/config.inc.php');
require_once(dirname(__FILE__).'/../../init.php'); require_once(dirname(__FILE__).'/../../init.php');
include_once(dirname(__FILE__).'/leofeature.php'); include_once(dirname(__FILE__).'/leofeature.php');
include_once(dirname(__FILE__).'/classes/LeofeatureProduct.php'); include_once(dirname(__FILE__).'/../classes/LeofeatureProduct.php');
$module = new Leofeature(); $module = new Leofeature();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -5605,4 +5605,22 @@ body {
.zoomContainer { .zoomContainer {
border: none !important; border: none !important;
}
.leo-top-menu {
ul.navbar-nav.megamenu {
>li.nav-item {
// &.dropdown {
&:nth-last-child(2) {
.dropdown-menu.level1 {
ul {
grid-template-columns: repeat(3, 270px);
}
}
}
// }
}
}
} }

View File

@@ -1050,4 +1050,25 @@ $(document).ready(function(){
$(headerNav).removeClass('fixed'); $(headerNav).removeClass('fixed');
} }
}) })
}) })
$(document).ready(function () {
$('.nav-item.parent.dropdown').on('mouseenter', function () {
var $submenu = $(this).find('.dropdown-menu');
if ($submenu.length) {
$submenu.css({ left: '', right: '', transform: '' });
var submenuRect = $submenu[0].getBoundingClientRect();
var windowWidth = $(window).width();
if (submenuRect.right > windowWidth) {
$submenu.attr('style', 'left: 50% !important; right: auto !important; transform: translateX(-50%) !important;');
} else if (submenuRect.left < 0) {
$submenu.attr('style', 'left: 50% !important; right: auto !important; transform: translateX(-50%) !important;');
} else {
$submenu.css({ left: '', right: '', transform: '' });
}
}
});
});

View File

@@ -31,7 +31,7 @@
{/block} {/block}
</head> </head>
<body id="{$page.page_name}" class="{$page.body_classes|classnames}{if isset($LEO_LAYOUT_MODE)} {$LEO_LAYOUT_MODE}{/if}{if isset($USE_FHEADER) && $USE_FHEADER} keep-header{/if}"> <body id="{$page.page_name}" class="1 {$page.body_classes|classnames}{if isset($LEO_LAYOUT_MODE)} {$LEO_LAYOUT_MODE}{/if}{if isset($USE_FHEADER) && $USE_FHEADER} keep-header{/if}">
<!-- Google Tag Manager (noscript) --> <!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MJDZPHD" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MJDZPHD" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>