library/Helper/Navigation.php
public function sidebarMenuAuto()
    {
        $menu = false;

        if (!$menu || (isset($_GET['menu_cache']) && $_GET['menu_cache'] == 'false')) {
            $menu = new \Municipio\Helper\NavigationTree(array(
                'include_top_level' => !empty(get_field('nav_sub_include_top_level', 'option')) ? get_field('nav_sub_include_top_level', 'option') : false,
                'render' => get_field('nav_sub_render', 'option'),
                'depth' => get_field('nav_sub_depth', 'option') ? get_field('nav_sub_depth', 'option') : -1,
                'start_depth' => get_field('nav_primariy_second_level', 'option') ? 3 : 1,
                'classes' => 'nav-aside hidden-xs hidden-sm',
                'sidebar' => true
            ));
        }

        if ($menu->itemCount === 0) {
            return '';
        }

        return '<nav id="sidebar-menu">
                    ' . $menu->render(false) . '
                </nav>';
    }
public function sidebarMenuAuto()
    {
        $menu = false;

        if (!$menu || (isset($_GET['menu_cache']) && $_GET['menu_cache'] == 'false')) {
            $menu = new \Municipio\Helper\NavigationTree(array(
                'include_top_level' => !empty(get_field('nav_sub_include_top_level', 'option')) ? get_field('nav_sub_include_top_level', 'option') : false,
                'render' => get_field('nav_sub_render', 'option'),
                'depth' => get_field('nav_sub_depth', 'option') ? get_field('nav_sub_depth', 'option') : -1,
                'start_depth' => get_field('nav_primariy_second_level', 'option') ? 3 : 1,
                'classes' => 'nav-aside hidden-xs hidden-sm',
                'sidebar' => true
            ));
        }

        if ($menu->itemCount === 0) {
            return '';
        }

        return '<nav id="sidebar-menu">
                    ' . $menu->render(false) . '
                </nav>';
    }
public function sidebarMenuAuto ( ) { $ menu = false ; if ( ! $ menu || ( isset ( $ _GET [ 'menu_cache' ] ) && $ _GET [ 'menu_cache' ] == 'false' ) ) { $ menu = new \ Municipio \ Helper \ NavigationTree ( array ( 'include_top_level' => ! empty ( get_field ( 'nav_sub_include_top_level' , 'option' ) ) ? get_field ( 'nav_sub_include_top_level' , 'option' ) : false , 'render' => get_field ( 'nav_sub_render' , 'option' ) , 'depth' => get_field ( 'nav_sub_depth' , 'option' ) ? get_field ( 'nav_sub_depth' , 'option' ) : - 1 , 'start_depth' => get_field ( 'nav_primariy_second_level' , 'option' ) ? 3 : 1 , 'classes' => 'nav-aside hidden-xs hidden-sm' , 'sidebar' => true ) ) ; } if ( $ menu -> itemCount === 0 ) { return '' ; } return '<nav id="sidebar-menu">
                    ' . $ menu -> render ( false ) . '
                </nav>' ; }
Get navigation tree sidebar menu
@return string Menu markup
Get navigation tree sidebar menu