]> source.dussan.org Git - nextcloud-server.git/commitdiff
Display subnavigation entries in user layout template
authorMichael Gapczynski <GapczynskiM@gmail.com>
Fri, 29 Jul 2011 16:17:46 +0000 (12:17 -0400)
committerMichael Gapczynski <GapczynskiM@gmail.com>
Fri, 29 Jul 2011 16:25:57 +0000 (12:25 -0400)
core/templates/layout.user.php

index f8beb79e81e23bb27dae66a0d226d9e155a159d2..4077499a998c7961c3ed456be2d750d4c98fff16 100644 (file)
                                <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>