@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * menu item. To prevent errors we use the strcasecmp() function to so a |
70 | 70 | * comparison that is not case sensitive. The strcasecmp() function returns |
71 | 71 | * a 0 if the strings are equal. |
72 | - */ |
|
72 | + */ |
|
73 | 73 | if ( 0 === strcasecmp( $item->attr_title, 'divider' ) && 1 === $depth ) { |
74 | 74 | $output .= $indent . '<li role="presentation" class="divider">'; |
75 | 75 | } elseif ( 0 === strcasecmp( $item->title, 'divider' ) && 1 === $depth ) { |
@@ -106,11 +106,11 @@ discard block |
||
106 | 106 | $atts['rel'] = ! empty( $item->xfn ) ? $item->xfn : ''; |
107 | 107 | // If item has_children add atts to a. |
108 | 108 | if ( $args->has_children ) { |
109 | - $atts['href'] = '#'; |
|
110 | - $atts['data-toggle'] = 'dropdown'; |
|
111 | - $atts['class'] = 'dropdown-toggle'; |
|
112 | - $atts['aria-haspopup'] = 'true'; |
|
113 | - } else { |
|
109 | + $atts['href'] = '#'; |
|
110 | + $atts['data-toggle'] = 'dropdown'; |
|
111 | + $atts['class'] = 'dropdown-toggle'; |
|
112 | + $atts['aria-haspopup'] = 'true'; |
|
113 | + } else { |
|
114 | 114 | $atts['href'] = ! empty( $item->url ) ? $item->url : ''; |
115 | 115 | } |
116 | 116 | $atts = apply_filters( 'nav_menu_link_attributes', $atts, $item, $args ); |