Topic: mainmenu snippet

mainmenu snippet:

<ul class="nav nav-tabs nav-stacked">
<?php
    // check for menu title
    if (isset($title)) {
?>
        <li class="title"><a><?php echo $title; ?></a></li>
<?php
    }
    // check for a given item category
    if (isset($category)) $category = (string)$category; else $category = '';
    // display menu
    Menu::get($category);
?>
</ul>

add to your theme styles:

.nav-tabs > .title > a,
.nav-tabs > .title > a:hover {
  color: #ffffff;
  background-color: #0088cc;
}

usage:
(no category = default menu)

    <div class="span3">
        {snippet get="mainmenu" category="category-name" title="Menu Title"}
    </div>