From 7fa196883660b83006b195acf84a337af12867ff Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Tue, 4 Aug 2015 12:24:57 +1000 Subject: [PATCH] Display current link in admin menu --- admin/index.php | 104 +++++++++++++++++++++++++----------------------- css/style.css | 2 - js/admin.js | 1 + 3 files changed, 55 insertions(+), 52 deletions(-) diff --git a/admin/index.php b/admin/index.php index 6a3c6129..8e2badac 100644 --- a/admin/index.php +++ b/admin/index.php @@ -40,6 +40,9 @@ include ("../lang.inc.php"); include ("../config.inc.php"); include ("../functions/functions.xhtml.php"); $username = $_SERVER['PHP_AUTH_USER']; + $g = 0; + if (isset($_GET['g'])) + $g = intval($_GET['g']); ?> @@ -85,85 +88,86 @@ include ("../lang.inc.php");
+ - +
diff --git a/css/style.css b/css/style.css index bee9c681..f135666d 100644 --- a/css/style.css +++ b/css/style.css @@ -1,5 +1,3 @@ -/*@import url(http://fonts.googleapis.com/css?family=Roboto:400,600,700&subset=latin,latin-ext);*/ - body, content { /**/font-size: 15px; line-height: 22px; diff --git a/js/admin.js b/js/admin.js index ac87d1c0..324d8f25 100644 --- a/js/admin.js +++ b/js/admin.js @@ -49,4 +49,5 @@ $(".sidebar #nav").slideUp(350); $('[data-toggle="tooltip"]').tooltip(); +$("a[href*='" + location.search + "']").addClass("active");