How to print out bootstrap menu? I am using the Bootstrap module. In the code I can see this:

&lt;?php if (!empty($primary_nav) || !empty($secondary_nav) || !empty($page['navigation'])): ?&gt;
      &lt;div class="navbar-collapse collapse"&gt;
            &lt;nav role="navigation"&gt;
                &lt;?php if (!empty($primary_nav)): ?&gt;
                    &lt;?php print render($primary_nav); ?&gt;
                &lt;?php endif; ?&gt;
                &lt;?php if (!empty($secondary_nav)): ?&gt;
                    &lt;?php print render($secondary_nav); ?&gt;
                &lt;?php endif; ?&gt;
                &lt;?php if (!empty($page['navigation'])): ?&gt;
                    &lt;?php print render($page['navigation']); ?&gt;
                &lt;?php endif; ?&gt;
            &lt;/nav&gt;
        &lt;/div&gt;
    &lt;?php endif; ?&gt;


The problem is, I can't get it to print it for any other menu. For example, i created a menu called "web design menu". I am able to make it appear as follows:

print drupal_render(menu_tree_output(menu_tree_all_data('menu-web-design-menu')));


However, this doesn't give it the styling of bootstrap or any of the nice bootstrap benefits. How do I render it so that it renders it the same way the above code does. I.e. with all the correct bootstrap styling and executed javascript etc.
In the boostrap theme there is a file 


  theme/menu/menu-tree.func.php


This file contains a function 


  bootstrap_menu_tree__primary


This function wraps the menu as following:

'&lt;ul class="menu nav navbar-nav"&gt;' . $variables['tree'] . '&lt;/ul&gt;';


So you have to give the wrapper of your menu those classes and make sure the structure is exactly the same as the primary menu.

Hope this helps you out.