<?php

$params = array();
$params['menu'] = array();
$params['menu']['default'] = array();
for ($i=1; $i<=5; $i++) {
	$params['menu']['default'][] = new ElggMenuItem($i, "Page $i", "$url#");
}
$params['class'] = 'elgg-menu-extras';


?>

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