diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-11 18:20:43 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-11 18:20:43 +0000 |
commit | 73361b0807f8ed16bfd9a6d71ce9d68c44066192 (patch) | |
tree | faf096e1cec098c0c1ff73de17b8784109ee50ea /mod/test/views/default/menu.php | |
parent | 4142d87fad92f7d54a51798fad8d892af2f8a246 (diff) | |
download | elgg-73361b0807f8ed16bfd9a6d71ce9d68c44066192.tar.gz elgg-73361b0807f8ed16bfd9a6d71ce9d68c44066192.tar.bz2 |
Adding a friendly old template to the test plugin
git-svn-id: https://code.elgg.org/elgg/trunk@174 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/test/views/default/menu.php')
-rw-r--r-- | mod/test/views/default/menu.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mod/test/views/default/menu.php b/mod/test/views/default/menu.php new file mode 100644 index 000000000..e0f231bfc --- /dev/null +++ b/mod/test/views/default/menu.php @@ -0,0 +1,22 @@ +<table width="100%" class="menubar">
+ <tr>
+ <td>
+ <?php
+
+ $menu = get_register('menu');
+ if (is_array($menu) && sizeof($menu) > 0) {
+ foreach($menu as $item) {
+ if (sizeof($item->children) > 0 ) {
+ foreach($item->children as $subitem) {
+?>
+ <a href="<?php echo $item->value ?>"><?php echo $item->name; ?></a> |
+<?php
+ }
+ }
+ }
+ }
+
+ ?>
+ </td>
+ </tr>
+ </table>
\ No newline at end of file |