library/Helper/Navigation.php
public function sidebarMenu()
    {
        if (get_field('nav_sub_enable', 'option') === false) {
            return '';
        }

        if (get_field('nav_primary_type', 'option') == 'wp' && in_array(get_field('nav_sub_type', 'option'), array('sub', 'wp'))) {
            return $this->sidebarMenuWP();
        } else {
            return $this->sidebarMenuAuto();
        }

        return '';
    }
public function sidebarMenu()
    {
        if (get_field('nav_sub_enable', 'option') === false) {
            return '';
        }

        if (get_field('nav_primary_type', 'option') == 'wp' && in_array(get_field('nav_sub_type', 'option'), array('sub', 'wp'))) {
            return $this->sidebarMenuWP();
        } else {
            return $this->sidebarMenuAuto();
        }

        return '';
    }
public function sidebarMenu ( ) { if ( get_field ( 'nav_sub_enable' , 'option' ) === false ) { return '' ; } if ( get_field ( 'nav_primary_type' , 'option' ) == 'wp' && in_array ( get_field ( 'nav_sub_type' , 'option' ) , array ( 'sub' , 'wp' ) ) ) { return $ this -> sidebarMenuWP ( ) ; } else { return $ this -> sidebarMenuAuto ( ) ; } return '' ; }
Finds out which type of menu to use for the sidebar menu
@return mixed
Finds out which type of menu to use for the sidebar menu