/** * Get a Genesis menu. * @since 1.0.0 */ public function get_custom_menu($class, $location) { $classes = 'menu genesis-nav-menu menu-primary' . $class; if (genesis_superfish_enabled()) { $classes .= 'js-superfish'; } $args = array('theme_location' => $location, 'menu-class' => $classes); $menu = genesis_get_nav_menu($args); return $menu; }
/** * Echo the output from `genesis_get_nav_menu()`. * * @since 2.1.0 * * @uses genesis_get_nav_menu() Return the markup to display a menu consistent with the Genesis format. * * @param string $args Menu arguments. */ function genesis_nav_menu($args) { echo genesis_get_nav_menu($args); }