aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/views/default/theme_preview/navigation/site.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/developers/views/default/theme_preview/navigation/site.php')
-rw-r--r--mod/developers/views/default/theme_preview/navigation/site.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/mod/developers/views/default/theme_preview/navigation/site.php b/mod/developers/views/default/theme_preview/navigation/site.php
new file mode 100644
index 000000000..df8dc1b70
--- /dev/null
+++ b/mod/developers/views/default/theme_preview/navigation/site.php
@@ -0,0 +1,18 @@
+<?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['menu']['default'][2]->setSelected(true);
+?>
+
+<div class="elgg-page-header">
+ <div class="elgg-inner">
+ <?php
+ echo elgg_view('navigation/menu/site', $params);
+ ?>
+ </div>
+</div>