Drupal page.tpl.php navigation block


/ Published in: PHP
Save to your folder(s)

The following block should live in your theme's page.tpl.php


Copy this code and paste it in your HTML
  1. <div id="navigation" class="clear-block">
  2. <?php if (isset($primary_links)) : ?>
  3. <?php print theme('links', $primary_links, array('class' => 'links primary-links clear-block')) ?>
  4. <?php endif; ?>
  5.  
  6. <?php if (isset($secondary_links)) : ?>
  7. <?php print theme('links', $secondary_links, array('class' => 'links secondary-links clear-block')) ?>
  8. <?php endif; ?>
  9. </div>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.