summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-03-03 23:08:11 +0100
committerJakob Sack <kde@jakobsack.de>2011-03-03 23:08:11 +0100
commitf7f957abb92e5ce359d7eafa136406822fee0a51 (patch)
tree3e101065ee9f29335ffbc8ab48253237eb6c441d /templates
parentae5dc3efdffef75c48e5ef7cac6b40cd5720442b (diff)
downloadnextcloud-server-f7f957abb92e5ce359d7eafa136406822fee0a51.tar.gz
nextcloud-server-f7f957abb92e5ce359d7eafa136406822fee0a51.zip
Base for a more flexible navigation
Diffstat (limited to 'templates')
-rw-r--r--templates/layout.admin.php7
-rw-r--r--templates/layout.user.php4
2 files changed, 5 insertions, 6 deletions
diff --git a/templates/layout.admin.php b/templates/layout.admin.php
index b4fcc915882..849ed6656be 100644
--- a/templates/layout.admin.php
+++ b/templates/layout.admin.php
@@ -25,7 +25,7 @@
<a id="user_menu_link" href="" title="">Username</a>
<ul id="user_menu">
<? foreach( $_["personalmenu"] as $entry ){ ?>
- <li><a href="<? echo link_to( $entry["app"], $entry["file"] )?>" title=""><? echo $entry["name"] ?></a></li>
+ <li><a href="<? echo $entry["href"] ?>" title=""><? echo $entry["name"] ?></a></li>
<? } ?>
</ul>
</div>
@@ -34,9 +34,8 @@
<div id="main">
<div id="plugins">
<ul>
- <? foreach( $_["navigation"] as $entry ){ ?>
- <li><a href="<? echo link_to( $entry["app"], $entry["file"] )?>" title=""><? echo $entry["name"] ?></a></li>
- <? } ?>
+ <li><a style="background-image:url(<? echo image_path( "admin", "navicon.png" ) ?>)" href="<? echo link_to( "admin", "index.php" )?>" title="">Administration</a></li>
+ <li><a style="background-image:url(<? echo image_path( "", "actions/arrow-left.png" ) ?>)" href="<? echo link_to( "", "index.php" )?>" title="">Back</a></li>
</ul>
</div>
diff --git a/templates/layout.user.php b/templates/layout.user.php
index 0643c99e933..ff845a9b957 100644
--- a/templates/layout.user.php
+++ b/templates/layout.user.php
@@ -25,7 +25,7 @@
<a id="user_menu_link" href="" title="">Username</a>
<ul id="user_menu">
<? foreach( $_["personalmenu"] as $entry ){ ?>
- <li><a href="<? echo link_to( $entry["app"], $entry["file"] )?>" title=""><? echo $entry["name"] ?></a></li>
+ <li><a href="<? echo $entry["href"] ?>" title=""><? echo $entry["name"] ?></a></li>
<? } ?>
</ul>
</div>
@@ -35,7 +35,7 @@
<div id="plugins">
<ul>
<? foreach( $_["navigation"] as $entry ){ ?>
- <li><a href="<? echo link_to( $entry["app"], $entry["file"] )?>" title=""><? echo $entry["name"] ?></a></li>
+ <li><a style="background-image:url(<? echo $entry["icon"] ?>)" href="<? echo $entry["href"] ?>" title=""><? echo $entry["name"] ?></a></li>
<? } ?>
</ul>
</div>