@@ -134,18 +134,22 @@ |
||
| 134 | 134 | $pos = strpos( esc_attr( $item->attr_title ), 'glyphicon' ); |
| 135 | 135 | if ( false !== $pos ) : |
| 136 | 136 | $item_output .= '<a' . $attributes . '><span class="glyphicon ' . esc_attr( $item->attr_title ) . '" aria-hidden="true"></span> '; |
| 137 | - else : |
|
| 137 | + else { |
|
| 138 | + : |
|
| 138 | 139 | $item_output .= '<a' . $attributes . '><i class="fa ' . esc_attr( $item->attr_title ) . '" aria-hidden="true"></i> '; |
| 140 | + } |
|
| 139 | 141 | endif; |
| 140 | - else : |
|
| 142 | + else { |
|
| 143 | + : |
|
| 141 | 144 | $item_output .= '<a' . $attributes . '>'; |
| 145 | + } |
|
| 142 | 146 | endif; |
| 143 | 147 | $item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after; |
| 144 | 148 | if($args->has_children && $depth == 0){ |
| 145 | 149 | $caret = ' <span class="caret"></span></a>'; |
| 146 | - }elseif ($args->has_children && $depth > 0){ |
|
| 150 | + } elseif ($args->has_children && $depth > 0){ |
|
| 147 | 151 | $caret = ' <span class="caret-right"></span></a>'; |
| 148 | - }else{ |
|
| 152 | + } else{ |
|
| 149 | 153 | $caret = '</a>'; |
| 150 | 154 | } |
| 151 | 155 | $item_output .= $caret; |