We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here's my alteration to the Bootstrap 3 sample code for items.blade.php from the wiki (not the cleanest, I know, but it works):
items.blade.php
<ul class="{{ $class or 'nav nav-tabs' }}"> @foreach($items as $item) <?php if($item->hasChildren()) { $item->attribute('class', $item->attribute('class') . ' dropdown'); } ?> <li {!! $item->attributes() !!}> @if($item->link) <a @if($item->hasChildren()) class="dropdown-toggle" data-toggle="dropdown" @endif href="{{ $item->url() }}"> {!! $item->title !!} @if($item->hasChildren()) <b class="caret"></b> @endif </a> @else {{$item->title}} @endif @if($item->hasChildren()) <ul class="{{ $submenu_class or 'dropdown-menu' }})"> @foreach($item->children() as $child) <li><a href="{{ $child->url() }}">{{ $child->title }}</a></li> @endforeach </ul> @endif </li> @if($item->divider) <li{{\HTML::attributes($item->divider)}}></li> @endif @endforeach </ul>
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
No branches or pull requests
Here's my alteration to the Bootstrap 3 sample code for
items.blade.php
from the wiki (not the cleanest, I know, but it works):The text was updated successfully, but these errors were encountered: