diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-11 11:59:58 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-11 11:59:58 +0000 |
commit | 5439b47c5f96b4e88661aa2ca63e1cee1e259b11 (patch) | |
tree | 4825898bb709f7b898e38a2f3223a3c2a125866a /views/default | |
parent | b2bd57356c051608f81c71fe99e78170e56ce264 (diff) | |
download | elgg-5439b47c5f96b4e88661aa2ca63e1cee1e259b11.tar.gz elgg-5439b47c5f96b4e88661aa2ca63e1cee1e259b11.tar.bz2 |
Toolbox navigation edit
git-svn-id: https://code.elgg.org/elgg/trunk@155 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/navigation/toolbox.php | 60 |
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 |