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:17:46 -0400 |
commit | b12b8d61669417ee8b4c305e7a70ea635d217142 (patch) | |
tree | f2ce6d123391a4ae769dc3c06389be91e8f6871f | |
parent | 1fc41a7bfc507e6f041e2db34ebf044a49e928a5 (diff) | |
download | nextcloud-server-b12b8d61669417ee8b4c305e7a70ea635d217142.tar.gz nextcloud-server-b12b8d61669417ee8b4c305e7a70ea635d217142.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> |