footer.php 397 B

123456789101112131415
  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']['alt'] = array();
  9. for ($i=1; $i<=3; $i++) {
  10. $params['menu']['alt'][] = new ElggMenuItem($i, "Info $i", "#");
  11. }
  12. $params['name'] = 'footer';
  13. echo elgg_view('navigation/menu/default', $params);