From 9746bbe5ece2ff485e6be0489d80264ff01e8a29 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Tue, 3 Jan 2023 18:27:53 +0100 Subject: [PATCH] Fix CSS et JS Path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Corrige les chemins des fichiers JS et CSS qui ne sont pas chargés --- classicblocks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classicblocks.php b/classicblocks.php index 5841cd9..4f48f4a 100644 --- a/classicblocks.php +++ b/classicblocks.php @@ -49,9 +49,9 @@ public function uninstall() public function hookdisplayHeader($params) { - $this->context->controller->registerStylesheet('modules-homeslider', 'modules/' . $this->name . '/css/homeslider.css', ['media' => 'all', 'priority' => 150]); - $this->context->controller->registerJavascript('modules-responsiveslides', 'modules/' . $this->name . '/js/responsiveslides.min.js', ['position' => 'bottom', 'priority' => 150]); - $this->context->controller->registerJavascript('modules-homeslider', 'modules/' . $this->name . '/js/homeslider.js', ['position' => 'bottom', 'priority' => 150]); + $this->context->controller->registerStylesheet('modules-homeslider', 'modules/' . $this->name . '/views/css/homeslider.css', ['media' => 'all', 'priority' => 150]); + $this->context->controller->registerJavascript('modules-responsiveslides', 'modules/' . $this->name . '/views/js/responsiveslides.min.js', ['position' => 'bottom', 'priority' => 150]); + $this->context->controller->registerJavascript('modules-homeslider', 'modules/' . $this->name . '/views/js/homeslider.js', ['position' => 'bottom', 'priority' => 150]); } public function hookActionRegisterThemeSettings()