예제 #1
0
 /**
  * Bind data to the view.
  *
  * @param View $view
  * @return void
  */
 public function compose(View $view)
 {
     $menu = new Menu('ul', 'nav navbar-nav');
     $menu->addItem(new MenuItem('#page-top', trans('pages.home_title'), 'li', 'hidden', 'page-scroll'));
     $menu = content_filter('main_menu', $menu);
     $view->with('main_menu', $menu);
 }
예제 #2
0
 /**
  * @return string
  */
 private function menuRender()
 {
     return isset($this->menu) ? $this->menu->render() : '';
 }