I've a sub-menu like this:
I'm trying to build a custom theme, I just copied which contains following code:
<?php if ($main_menu || $secondary_menu): ?>
<div id="navigation"><div class="section">
<?php print theme('links__system_main_menu', array('links' => $main_menu, 'attributes' => array('id' => 'main-menu', 'class' => array('links', 'inline', 'clearfix')), 'heading' => t('Main menu'))); ?>
<?php print theme('links__system_secondary_menu', array('links' => $secondary_menu, 'attributes' => array('id' => 'secondary-menu', 'class' => array('links', 'inline', 'clearfix')), 'heading' => t('Secondary menu'))); ?>
</div></div> <!-- /.section, /#navigation -->
<?php endif; ?>
This is how its being displayed: Note that not even the HTML for child menu items are generated.
Yes, I've Show as expanded option checked for "Publications".
PS: Why does drupal make even such simple things difficult. No wonder, its losing ground to wordpress.