From 01a9d916e7fe477f6fb42a534e3265ddbe00fddd Mon Sep 17 00:00:00 2001
From: Jan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Date: Thu, 7 Jul 2011 21:19:18 +0200
Subject: [PATCH] mark active navigation subentry

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

diff --git a/core/css/styles.css b/core/css/styles.css
index c28006ab5c..a0dd69516c 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -211,6 +211,7 @@ form.searchbox { display:inline; position:fixed; top:2em; right:10em; margin: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 .subentry { background-color:#ddd; border-top:1px solid #aaa; border-bottom:1px solid #ccc; color:#000; outline:0; }
+#plugins .subentry.active { background-color:#bbb; border-top:1px solid #aaa; border-bottom:1px solid #ccc; color:#000; outline:0; }
 
 /* CONTENT ------------------------------------------------------------------ */
 #content { margin:7em 0 0 16em; }
diff --git a/core/templates/layout.admin.php b/core/templates/layout.admin.php
index 026e127223..aa1de65c08 100644
--- a/core/templates/layout.admin.php
+++ b/core/templates/layout.admin.php
@@ -43,7 +43,7 @@
 						<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 href="<?php echo $subentry['href']; ?>" title="" <?php if( $subentry["active"] ): ?> class="active"<?php endif; ?>><?php echo $subentry['name'] ?></a></li>
+								<li><a 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; ?>
@@ -52,7 +52,7 @@
 							<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 class="subentry" href="<?php echo $subentry['href']; ?>" title=""><?php echo $subentry['name'] ?></a></li>
+									<li><a class="subentry<?php if( $subentry['active'] ): ?> active<?php endif; ?>" href="<?php echo $subentry['href']; ?>" title=""><?php echo $subentry['name'] ?></a></li>
 								<?php endforeach; ?>
 							<?php endif; ?>
 						<?php endforeach; ?>
-- 
GitLab