aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/navigation')
-rw-r--r--views/default/navigation/toolbox.php60
1 files changed, 43 insertions, 17 deletions
diff --git a/views/default/navigation/toolbox.php b/views/default/navigation/toolbox.php
index 14b272846..bf96105ad 100644
--- a/views/default/navigation/toolbox.php
+++ b/views/default/navigation/toolbox.php
@@ -14,23 +14,49 @@
*
*/
+ $menu = get_register('menu');
+
+ if (is_array($menu) && sizeof($menu) > 0) {
+
?>
<ul>
- <li>
- <h2>Menu one</h2>
- <ul>
- <li>option one</li>
- <li>option two</li>
- <li>option three</li>
- </ul>
- </li>
- <li>
- <h2>Menu two</h2>
- <ul>
- <li>option one</li>
- <li>option two</li>
- <li>option three</li>
- </ul>
- </li>
-</ul> \ No newline at end of file
+
+<?php
+
+ foreach($menu as $item) {
+
+?>
+
+ <li>
+ <h2><?php echo $item->name ?></h2>
+<?php
+
+ if (sizeof($item->children) > 0 ) {
+
+ foreach($item->children as $subitem) {
+?>
+ <li>
+ <a href="<?php echo $item->value ?>"><?php echo $item->name; ?></a>
+ </li>
+<?php
+ }
+
+ }
+
+?>
+ </li>
+
+<?php
+
+ }
+
+?>
+
+</ul>
+
+<?php
+
+ }
+
+?> \ No newline at end of file