@@ -131,11 +131,15 @@ discard block |
||
| 131 | 131 | $pos = strpos( esc_attr( $item->attr_title ), 'glyphicon' ); |
| 132 | 132 | if ( false !== $pos ) : |
| 133 | 133 | $item_output .= '<a' . $attributes . '><span class="glyphicon ' . esc_attr( $item->attr_title ) . '" aria-hidden="true"></span> '; |
| 134 | - else : |
|
| 134 | + else { |
|
| 135 | + : |
|
| 135 | 136 | $item_output .= '<a' . $attributes . '><i class="fa ' . esc_attr( $item->attr_title ) . '" aria-hidden="true"></i> '; |
| 137 | + } |
|
| 136 | 138 | endif; |
| 137 | - else : |
|
| 139 | + else { |
|
| 140 | + : |
|
| 138 | 141 | $item_output .= '<a' . $attributes . '>'; |
| 142 | + } |
|
| 139 | 143 | endif; |
| 140 | 144 | $item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after; |
| 141 | 145 | $item_output .= ( $args->has_children && 0 === $depth ) ? ' <span class="caret"></span></a>' : '</a>'; |
@@ -221,8 +225,10 @@ discard block |
||
| 221 | 225 | // if echo, echo, otherwise return |
| 222 | 226 | if ( $args['echo'] ): |
| 223 | 227 | echo $fb_output_safe; |
| 224 | - else: |
|
| 228 | + else { |
|
| 229 | + : |
|
| 225 | 230 | return $fb_output_safe; |
| 231 | + } |
|
| 226 | 232 | endif; |
| 227 | 233 | |
| 228 | 234 | |