Skip to content

Instantly share code, notes, and snippets.

Daniel Leis DanielMarklund

Block or report user

Report or block DanielMarklund

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@DanielMarklund
DanielMarklund / gist:3415529
Created Aug 21, 2012
Laravel - Navigation Active Class
View gist:3415529
<!-- Example on how to set class="active" on active navigation links -->
<!-- These links will always be visible -->
<li class="{{ URI::is( 'home') ? 'active' : '' }}">
<a href="{{ URL::to( 'home') }}">
Home
</a>
</li>
<li class="{{ URI::is( 'gallery') ? 'active' : '' }}">
You can’t perform that action at this time.