diff --git a/library/ZendAfi/View/Helper/MenuHorizontal.php b/library/ZendAfi/View/Helper/MenuHorizontal.php index fe4a3964458801afac8d2d733025bcada5637e09..e13c11cd1da740e5dbe57e9ffcc410da23b4e16d 100644 --- a/library/ZendAfi/View/Helper/MenuHorizontal.php +++ b/library/ZendAfi/View/Helper/MenuHorizontal.php @@ -31,14 +31,18 @@ class ZendAfi_View_Helper_MenuHorizontal extends ZendAfi_View_Helper_BaseHelper } public function menuHorizontal() { - $menus = $this->profil->getCfgMenuHorizontal(); + return $this->renderMenus($this->profil->getCfgMenuHorizontal()); + } + + + public function renderMenus($menus, $tag_id="menu_horizontal") { if(!count($menus)) return $this->retourErreur($this->translate()->_("Ce menu ne contient aucune entrée.")); $helper = new ZendAfi_View_Helper_Menu_Menus($menus); $helper->setView($this->view); - return '<div id="menu_horizontal">' + return '<div id="'.$tag_id.'" class="menu_horizontal">' .$this->tagEditMenu() .$helper->getBoite() // .$this->renderMenus($menus, '', 'menu') .'</div>';