diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-07-29 12:17:46 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-07-29 12:25:57 -0400 |
commit | 9f867abe75d6e8bfc6b30a8ddbf5ca2644598601 (patch) | |
tree | 0a76982aca32ff6c209d47d9601f3e2727cba382 | |
parent | 46400a8124240679b7be4ae50ee932be31b18e2e (diff) | |
download | nextcloud-server-9f867abe75d6e8bfc6b30a8ddbf5ca2644598601.tar.gz nextcloud-server-9f867abe75d6e8bfc6b30a8ddbf5ca2644598601.zip |
Display subnavigation entries in user layout template
-rw-r--r-- | core/templates/layout.user.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index f8beb79e81e..4077499a998 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -44,6 +44,11 @@ <ul> <?php foreach($_['navigation'] as $entry): ?> <li><a style="background-image:url(<?php echo $entry['icon']; ?>)" href="<?php echo $entry['href']; ?>" title="" <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>><?php echo $entry['name']; ?></a></li> + <?php if( sizeof( $entry["subnavigation"] )): ?> + <?php foreach($entry["subnavigation"] as $subentry):?> + <li><a style="background-image:url(<?php echo $subentry['icon']; ?>)" href="<?php echo $subentry['href']; ?>" title="" <?php if( $subentry['active'] ): ?>class="active"<?php endif; ?>><?php echo $subentry['name'] ?></a></li> + <?php endforeach; ?> + <?php endif; ?> <?php endforeach; ?> </ul> </div> |