From 52054d19779554a80dde45e45e8e83d69066de15 Mon Sep 17 00:00:00 2001
From: Jakob Sack <kde@jakobsack.de>
Date: Sun, 15 May 2011 21:33:56 +0200
Subject: [PATCH] Get rid of this stupid "I AM ACTIVE!!!" message.

---
 css/styles.css             | 6 +-----
 templates/layout.admin.php | 4 ++--
 templates/layout.user.php  | 2 +-
 3 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/css/styles.css b/css/styles.css
index b737181d01..b53343b0f2 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 efd9a8b6fd..541427f5d5 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 23210b6880..da30df294f 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>
-- 
GitLab