Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Add 'Secondary menu' block to D7-version, please.
I'm write:
<div id="pages">
<?php if ($main_menu): ?>
<div id="navigation">
<?php print theme('links__system_main_menu', array(
'links' => $main_menu,
'attributes' => array(
'id' => 'main-menu-links',
'class' => array('primary-links', 'links'),
),
'heading' => array(
'text' => t('Main menu'),
'level' => 'h2',
'class' => array('element-invisible'),
),
)); ?>
</div>
<?php endif; ?>
/* ------------------------------------------------------*/
<?php if ($secondary_menu): ?>
<div id="navigation">
<?php print theme('links__system_secondary_menu', array(
'links' => $secondary_menu,
'attributes' => array(
'id' => 'main-menu-links',
'class' => array('primary-links', 'links'),
),
'heading' => array(
'text' => t('Secondary menu'),
'level' => 'h2',
'class' => array('element-invisible'),
),
)); ?>
</div>
<?php endif; ?>
/* --------------------------------------------------------------------------*/
</div>
Comments
Comment #1
ipwa CreditAttribution: ipwa commentedI'm having trouble deciding where tu put secondary menus, just below primaries? Any ideas?
Comment #2
ipwa CreditAttribution: ipwa commentedComment #3
ipwa CreditAttribution: ipwa at manifesto commentedComment #4
apaderno