From c6353a8bbe499fa358f17f87778041769ef5a943 Mon Sep 17 00:00:00 2001 From: jf-viguier Date: Fri, 15 Jan 2016 16:38:44 +0100 Subject: [PATCH] [*] MO : add support to extra hooks : DisplayTop, DisplayTopColumn, DisplayNav, DisplayFooter. With this improvement, you can choose to display this module where you want. This new hooks are not installed by default : you have to attach the blocklink module to the hook in prestashop backoffice --- blocklink.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/blocklink.php b/blocklink.php index 82c74d0..51157e9 100644 --- a/blocklink.php +++ b/blocklink.php @@ -133,6 +133,26 @@ public function hookRightColumn($params) return $this->hookLeftColumn($params); } + public function hookDisplayTop($params) + { + return $this->hookLeftColumn($params); + } + + public function hookDisplayTopColumn($params) + { + return $this->hookLeftColumn($params); + } + + public function hookDisplayNav($params) + { + return $this->hookLeftColumn($params); + } + + public function hookDisplayFooter($params) + { + return $this->hookLeftColumn($params); + } + public function hookHeader($params) { $this->context->controller->addCSS($this->_path.'blocklink.css', 'all');