I have the following menu structure which i like to implement in Drupal 7 :
<ul id="dropdown-menu" class="fixed">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a>
<ul class="sub-menu">
<li><a href="about.html">About Us</a></li>
<li><a href="team.html">Team</a></li>
</ul>
</li>
</ul>
So far i have the base elements displaying correctly using :
<?php
print theme('links__system_main_menu',
array('links' => $main_menu, 'attributes' => array('id' => 'dropdown-menu',
'class' => array('fixed'))));
?>
Problems :
- It doesn't display nested elements
- I can only control the styling of the first level but in my code i have to apply a subclass of 'sub-menu' according to my theme.
Can someone point me to a starting point ? Thanks