getValue(), 'Responsive Menu', 'menu_to_use'); /* Add Polylang Support */ if(function_exists('pll__')) $menu = pll__($menu); return wp_nav_menu( [ 'container' => '', 'menu_id' => 'responsive-menu', 'menu_class' => null, 'menu' => $menu && !$options['theme_location_menu']->getValue() ? $menu : null, 'depth' => $options['menu_depth']->getValue() ? $options['menu_depth']->getValue() : 0, 'theme_location' => $options['theme_location_menu']->getValue() ? $options['theme_location_menu']->getValue() : null, 'walker' => $options['custom_walker']->getValue() ? new $options['custom_walker']($options) : new Walker($options), 'echo' => false ] ); } }