default.php 293 B

123456789101112
  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. echo elgg_view('navigation/menu/default', $params);