I am currently working with ZURB's Foundation Framework. It's a terrific framework and my project is coming along a lot nicer and quicker than it would have beforehand. Foundation comes with CSS/Javascript that can be called upon within your design. One of these key features is their Tabs system. Now, what I currently have below works brilliantly on the site so far!
<dl class="tabs">
<?php
// List all pages needed in Navigation with their slug and title
$pages = array(
"" => "Home",
"about" => "About",
"contact" => "Contact",
);
// Find which page you're on currently...
global $post;
$post_slug = $post->post_name;
// Looping through the pages to create each tab...
foreach ( $pages as $slug => $title )
{
// Find out if we're on this page and setup the 'active' class.
$active = ( $slug == $post_slug || ( $slug == '' && is_front_page() ) ) ? "class='active'" : "";
// Echo each dd item with a link to page...
echo "<dd ".$active.">
<a href='". get_bloginfo('url') ."/".$slug."'>".$title."</a>
</dd>";
}
?>
</dl>
It shows the active tag and allows me to add new links via hardcode. What I need is flexibility however and I want to blend in the support for Wordpress's new Menu system on the backend and incorporate wp_nav_menu somehow. However, I'm unsure where to begin... I'm testing different things while I post this so, maybe I'll stumble across a resolution but I wanted to check here first.
Thanks!
