Formatting and minor changes

Cleaned up formatting.

Changed
```php
$output .= "\n$indent<ul role=\"menu\" class=\" dropdown-menu\">\n";
```
to (hopefully more readable)
```php
$output .= PHP_EOL . $indent . '<ul class="dropdown-menu" role="menu">' . PHP_EOL;
```

Used `navbar-text` in fallback.