I have created a region in my theme that contains only menus. Each menu has its own visibility settings. For e.g. my main-menu is everywhere visible except at /blog/* and my blog-menu only at /blog/*. I use this as my main navigation bar region.
My issue is that i call this region in my
<section class="top-bar-section"> <?php //print zurb_foundation_links__topbar_main_menu($main_menu); ?> <?php print render($page['menu']); ?> </section>
but the html structure that is printed is different to what I need. The following is what gets printed. As you can see its creating a new section with a list inside. I want to get that menu in the section that is currently empty (be aware that I'm printing it at the correct position in my tpl.). I also need to change its ID & CSS Classes.
<section class="top-bar-section"></section> <section class="block block-system contextual-links-region block-menu block-system-main-menu"> <ul class="menu"> <li class="first collapsed"><a href="/rubelhp/lernumgebungen">Lernumgebungen</a></li> <li class="collapsed"><a href="/rubelhp/unterstuetzung">Unterstützung</a></li> <li class="collapsed"><a href="/rubelhp/foerderung">Förderung</a></li> <li class="collapsed"><a href="/rubelhp/projekte">Projekte</a></li> <li class="last collapsed"><a href="/rubelhp/kontakt">Kontakt</a></li> </ul> </section>
I want to avoid to call the menu directly instead of the region. The reason behind it is as I wrote in the beginning the visibility settings. The region contains menus that differ by the URL.