horizontal.php 328 B

12345678910111213
  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. $params['class'] = 'elgg-menu-hz';
  10. echo elgg_view('navigation/menu/default', $params);