blob: 6efcd8890d47ef6a838db93817e7317db577a8a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
<?php
$params = array();
$params['menu'] = array();
$params['menu']['default'] = array();
for ($i=1; $i<=5; $i++) {
$params['menu']['default'][] = new ElggMenuItem($i, "Page $i", "#");
}
$params['menu']['default'][2]->setSelected(true);
echo elgg_view('navigation/menu/default', $params);
|