aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/views/default/theme_preview/navigation/page.php
blob: a57edc2e2d3f8d4afff567e96164dc3e856ddded (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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);

$m = new ElggMenuItem(10, "Child", "#");
$m->setParent($params['menu']['default'][1]);
$params['menu']['default'][1]->addChild($m);
?>

<div class="elgg-sidebar">
<?php 
	echo elgg_view('navigation/menu/page', $params);
?>
</div>