diff --git a/blocktopmenu.php b/blocktopmenu.php index edc2be7..3bfbd02 100644 --- a/blocktopmenu.php +++ b/blocktopmenu.php @@ -52,7 +52,7 @@ class Blocktopmenu extends Module { $this->name = 'blocktopmenu'; $this->tab = 'front_office_features'; - $this->version = '1.12'; + $this->version = '1.13'; $this->author = 'PrestaShop'; $this->bootstrap = true; @@ -213,7 +213,7 @@ class Blocktopmenu extends Module } $update_cache = true; } - + if ($update_cache) $this->clearMenuCache(); @@ -299,7 +299,7 @@ class Blocktopmenu extends Module case 'ALLSUP': $html .= ''.PHP_EOL; break; - + case 'SUP': $supplier = new Supplier((int)$id, (int)$id_lang); if (Validate::isLoadedObject($supplier)) @@ -315,9 +315,10 @@ class Blocktopmenu extends Module $default_language = Configuration::get('PS_LANG_DEFAULT'); $link = MenuTopLinks::get($link[0]['id_linksmenutop'], (int)$default_language, (int)Shop::getContextShopID()); } - $html .= ''; + $html .= ''; } break; + case 'SHOP': $shop = new Shop((int)$id); if (Validate::isLoadedObject($shop)) @@ -325,6 +326,7 @@ class Blocktopmenu extends Module break; } } + return $html.''; } @@ -458,7 +460,6 @@ class Blocktopmenu extends Module $html .= $this->generateCategoriesOption($category['children'], $items_to_skip); } - return $html; } @@ -930,7 +931,7 @@ class Blocktopmenu extends Module { $spacer = str_repeat(' ', $this->spacer_size); $items = $this->getMenuItems(); - + $html = ''; diff --git a/config.xml b/config.xml index d89c6e0..c35273e 100644 --- a/config.xml +++ b/config.xml @@ -2,11 +2,11 @@ blocktopmenu - + 1 1 - \ No newline at end of file +