'; } //end of the sub menu wrap function end_lvl( &$output, $depth = 0, $args = array() ) { $output .= ''; } //add the description to the menu item output function start_el( &$output, $item, $depth = 0, $args = array(), $current_object_id = 0 ) { global $wp_query; if ( ! is_object( $args ) ) { $args = (object) $args; } $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; $class_names = $value = ''; $classes = empty( $item->classes ) ? array() : (array) $item->classes; $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) ); if ( $depth == 0 && $item->highlight_menu == 'on' ) { $class_names .= ' h-cta '; } if ( $depth == 0 && $item->extended_activate == 'on' ) { $class_names .= ' has-extended col-no-' . $item->extended_columns; if ( $item->extended_heading == 'on' ) { $class_names .= ' has-heading '; } } else if ( $depth == 2 && $item->extended_text_chk == 'on' ) { $class_names .= ' has-free '; } $class_names = ' class="' . esc_attr( $class_names ) . '"'; $output .= $indent . '