Skip to content

Instantly share code, notes, and snippets.

@marcinlawnik
Created July 30, 2014 21:16
Show Gist options
  • Save marcinlawnik/91b33d48fb56f55477a1 to your computer and use it in GitHub Desktop.
Save marcinlawnik/91b33d48fb56f55477a1 to your computer and use it in GitHub Desktop.
Laravel route active
New (n)Fork (f)Raw (r)Copy URL (cmd+c)
Please note that all pasted data is publicly available.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{{ $title }}}</title>
<!-- UIkit content -->
<link rel="stylesheet" href="/css/uikit.min.css" />
<script src="/js/jquery.js"></script>
<script src="/js/uikit.min.js"></script>
</head>
<body>
<div class="uk-container uk-container-center uk-margin-top uk-margin-large-bottom">
<nav class="uk-navbar uk-margin-large-bottom">
<a class="uk-navbar-brand uk-hidden-small" href="/home">Pwnlandia</a>
<ul class="uk-navbar-nav uk-hidden-small">
<li class="{{ Request::is('home') ? 'uk-active' : '' }}">
<a href="/home">Home</a>
</li>
<li class="{{ Request::is('user/profile') ? 'uk-active' : '' }}">
<a href="/user/profile">Profile</a>
</li>
<li class="{{ Request::is('blog') ? 'uk-active' : '' }}">
<a href="/blog">Blog</a>
</li>
<li class="{{ Request::is('services') ? 'uk-active' : '' }}">
<a href="/services">Services</a>
</li>
<li class="{{ Request::is('contact') ? 'uk-active' : '' }}">
<a href="/contact">Contact</a>
</li>
<li class="{{ Request::is('login') ? 'uk-active' : '' }}">
<a href="/login">Login</a>
</li>
<li class="{{ Request::is('register') ? 'uk-active' : '' }}">
<a href="/register">Register</a>
</li>
</ul>
<a href="#offcanvas" class="uk-navbar-toggle uk-visible-small" data-uk-offcanvas></a>
<div class="uk-navbar-brand uk-navbar-center uk-visible-small">Pwnlandia</div>
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment