Menu handler

    private function main_menu($menu_id){
        $menu = menu('Main', '_json');
        //logg($menu);
        //logg($menu[0]->getTranslatedAttribute('title', 'de', 'en'));

        $output = '<ul class="list-reset navbar-nav">';

        foreach ($menu as $key => $item) {
            //logg($item);
            $active = '';
            if($item->id == $menu_id){
                $active = 'active';
            }

            //$title = $item->getTranslatedAttribute('title', App()->getLocale(), 'en');
            $title = lo($item, 'title', App()->getLocale());
            $output .= '<li><a class="navbar-item ' . $active . '" href="' . $item->url . '">' . $title . '</a></li>';
        }
        //echo $dom->saveHTML($node);
        //exit();

        $output .= '</ul>';
        //logg($output);
        return $output;
    }