Example #1
0
 static function dropdown_menu($menu, $class = 'dropdown-menu', $more_li_class = '')
 {
     $renderer = new Hc_renderer();
     $view_file = dirname(__FILE__) . '/view/dropdown_menu.php';
     return $renderer->render($view_file, array('menu' => $menu, 'class' => $class, 'more_li_class' => $more_li_class));
 }
Example #2
0
 public function display($root)
 {
     $menu = $this->_get_menu($root);
     $renderer = new Hc_renderer();
     $view_file = dirname(__FILE__) . '/view/hc_main_menu.php';
     return $renderer->render($view_file, array('menu' => $menu));
 }