Skip to content

Instantly share code, notes, and snippets.

@johanbrook
Created December 23, 2010 17:52
Show Gist options
  • Save johanbrook/753299 to your computer and use it in GitHub Desktop.
Save johanbrook/753299 to your computer and use it in GitHub Desktop.
<nav>
<ul>
<?php $class = 'class="current"';?>
<li <?php if(is_page("about") echo $class; ?>><a href="<?php link_to("about");?>">About</a></li>
</ul>
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment