library/Helper/Navigation.php
public function sidebarMenuWP()
    {
        if (get_field('nav_sub_type', 'option') == 'sub') {
            return wp_nav_menu(array(
                'theme_location' => 'main-menu',
                'container' => 'nav',
                'container_class' => 'sidebar-menu',
                'container_id' => 'sidebar-menu',
                'menu_class' => 'nav-aside hidden-xs hidden-sm',
                'menu_id' => '',
                'echo' => false,
                'before' => '',
                'after' => '',
                'link_before' => '',
                'link_after' => '',
                'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
                'fallback_cb' => '__return_false',
                'walker' => new \Municipio\Walker\SidebarMenu(),
                'child_menu' => true
            ));
        }

        return wp_nav_menu(array(
            'theme_location' => 'sidebar-menu',
            'container' => 'nav',
            'container_class' => 'sidebar-menu',
            'container_id' => 'sidebar-menu',
            'menu_class' => 'nav-aside hidden-xs hidden-sm',
            'menu_id' => '',
            'echo' => false,
            'before' => '',
            'after' => '',
            'link_before' => '',
            'link_after' => '',
            'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
            'fallback_cb' => '__return_false'
        ));
    }
public function sidebarMenuWP()
    {
        if (get_field('nav_sub_type', 'option') == 'sub') {
            return wp_nav_menu(array(
                'theme_location' => 'main-menu',
                'container' => 'nav',
                'container_class' => 'sidebar-menu',
                'container_id' => 'sidebar-menu',
                'menu_class' => 'nav-aside hidden-xs hidden-sm',
                'menu_id' => '',
                'echo' => false,
                'before' => '',
                'after' => '',
                'link_before' => '',
                'link_after' => '',
                'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
                'fallback_cb' => '__return_false',
                'walker' => new \Municipio\Walker\SidebarMenu(),
                'child_menu' => true
            ));
        }

        return wp_nav_menu(array(
            'theme_location' => 'sidebar-menu',
            'container' => 'nav',
            'container_class' => 'sidebar-menu',
            'container_id' => 'sidebar-menu',
            'menu_class' => 'nav-aside hidden-xs hidden-sm',
            'menu_id' => '',
            'echo' => false,
            'before' => '',
            'after' => '',
            'link_before' => '',
            'link_after' => '',
            'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
            'fallback_cb' => '__return_false'
        ));
    }
public function sidebarMenuWP ( ) { if ( get_field ( 'nav_sub_type' , 'option' ) == 'sub' ) { return wp_nav_menu ( array ( 'theme_location' => 'main-menu' , 'container' => 'nav' , 'container_class' => 'sidebar-menu' , 'container_id' => 'sidebar-menu' , 'menu_class' => 'nav-aside hidden-xs hidden-sm' , 'menu_id' => '' , 'echo' => false , 'before' => '' , 'after' => '' , 'link_before' => '' , 'link_after' => '' , 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>' , 'fallback_cb' => '__return_false' , 'walker' => new \ Municipio \ Walker \ SidebarMenu ( ) , 'child_menu' => true ) ) ; } return wp_nav_menu ( array ( 'theme_location' => 'sidebar-menu' , 'container' => 'nav' , 'container_class' => 'sidebar-menu' , 'container_id' => 'sidebar-menu' , 'menu_class' => 'nav-aside hidden-xs hidden-sm' , 'menu_id' => '' , 'echo' => false , 'before' => '' , 'after' => '' , 'link_before' => '' , 'link_after' => '' , 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>' , 'fallback_cb' => '__return_false' ) ) ; }
Get WP or sub sidebar menu
@return string Markuo
Get WP or sub sidebar menu