aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-05-15 21:33:56 +0200
committerJakob Sack <kde@jakobsack.de>2011-05-15 21:33:56 +0200
commit52054d19779554a80dde45e45e8e83d69066de15 (patch)
tree8096345e3a404144b5ae0581b4c92a4c1d06098f
parentd10840ab181feba67e04f6bd6e81a10b8c6e0cf4 (diff)
downloadnextcloud-server-52054d19779554a80dde45e45e8e83d69066de15.tar.gz
nextcloud-server-52054d19779554a80dde45e45e8e83d69066de15.zip
Get rid of this stupid "I AM ACTIVE!!!" message.
-rw-r--r--css/styles.css6
-rw-r--r--templates/layout.admin.php4
-rw-r--r--templates/layout.user.php2
3 files changed, 4 insertions, 8 deletions
diff --git a/css/styles.css b/css/styles.css
index b737181d01b..b53343b0f23 100644
--- a/css/styles.css
+++ b/css/styles.css
@@ -58,12 +58,8 @@ div.controls { width:91%; margin:1em 1em 1em 2em; padding:0.5em 0; background-co
#plugins { position:fixed; top:7em; float:left; width:15.7em; padding:0; }
#plugins ul { list-style-type:none; border-top:1px solid #ccc; }
#plugins a { display:block; padding:0.5em 0.5em 0.5em 3em; background-position:1.5em center; background-repeat:no-repeat; border-bottom:1px solid #ddd; border-top:1px solid #fff; text-decoration:none; font-size:1.2em; color:#666; }
-#plugins a:hover, #plugins a:focus, #plugins a.selected { background-color:#ccc; border-top:1px solid #ccc; border-bottom:1px solid #ccc; color:#000; outline:0; }
+#plugins a.active, #plugins a:hover, #plugins a:focus, #plugins a.selected { background-color:#ccc; border-top:1px solid #ccc; border-bottom:1px solid #ccc; color:#000; outline:0; }
#plugins a:active { outline:0; }
-#plugins .files { background-image:url('../img/files.png'); }
-#plugins .sharing { background-image:url('../img/sharing.png'); }
-#plugins .galleries { background-image:url('../img/galleries.png'); }
-#plugins .music { background-image:url('../img/music.png'); }
/* CONTENT ------------------------------------------------------------------ */
#content { margin:7em 0 0 16em; }
diff --git a/templates/layout.admin.php b/templates/layout.admin.php
index efd9a8b6fdb..541427f5d5e 100644
--- a/templates/layout.admin.php
+++ b/templates/layout.admin.php
@@ -26,7 +26,7 @@
<div id="plugins">
<ul>
<?php foreach($_['settingsnavigation'] as $entry):?>
- <li><a style="background-image:url(<?php echo $entry['icon']; ?>)" href="<?php echo $entry['href']; ?>" title=""><?php echo $entry['name'] ?><?php if( $entry["active"] ) echo "I AM ACTIVE!!!"; ?></a></li>
+ <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-color:#FF8800;" href="<?php echo $subentry['href']; ?>" title=""><?php echo $subentry['name'] ?></a></li>
@@ -34,7 +34,7 @@
<?php endif; ?>
<?php endforeach; ?>
<?php foreach($_['adminnavigation'] as $entry):?>
- <li><a style="background-image:url(<?php echo $entry['icon']; ?>)" href="<?php echo $entry['href']; ?>" title=""><?php echo $entry['name'] ?><?php if( $entry["active"] ) echo "I AM ACTIVE!!!"; ?></a></li>
+ <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-color:#FF8800;" href="<?php echo $subentry['href']; ?>" title=""><?php echo $subentry['name'] ?></a></li>
diff --git a/templates/layout.user.php b/templates/layout.user.php
index 23210b68808..da30df294f2 100644
--- a/templates/layout.user.php
+++ b/templates/layout.user.php
@@ -26,7 +26,7 @@
<div id="plugins">
<ul>
<?php foreach($_['navigation'] as $entry): ?>
- <li><a style="background-image:url(<?php echo $entry['icon']; ?>)" href="<?php echo $entry['href']; ?>" title=""><?php echo $entry['name']; ?></a></li>
+ <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 endforeach; ?>
</ul>
</div>