site.php 378 B

1234567891011121314151617
  1. <?php
  2. $params = array();
  3. $params['menu'] = array();
  4. $params['menu']['default'] = array();
  5. for ($i=1; $i<=5; $i++) {
  6. $params['menu']['default'][] = new ElggMenuItem($i, "Page $i", "#");
  7. }
  8. $params['menu']['default'][2]->setSelected(true);
  9. ?>
  10. <div class="elgg-page-header">
  11. <div class="elgg-inner ptm">
  12. <?php echo elgg_view('navigation/menu/site', $params); ?>
  13. </div>
  14. </div>