owner_block.php 388 B

1234567891011121314
  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['name'] = 'owner-block';
  10. echo '<div class="theme-sandbox-demo-sidebar">';
  11. echo elgg_view('navigation/menu/default', $params);
  12. echo '</div>';