Posted By

zachharkey on 02/15/08


Tagged

drupal pagetplphp


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

basicmagic
digiloper
panatlantica


Drupal page.tpl.php navigation block


 / Published in: PHP
 

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

  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  

You need to login to post a comment.