aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-08-17 18:36:24 +0200
committerfabrixxm <fabrix.xm@gmail.com>2011-08-17 18:36:24 +0200
commit07b6c868b3a66efc2737dfc6459b4114fea59ba0 (patch)
treef31a4ff5bc91d0ffd3be408af88db8287789e25f /include/nav.php
parentbdf42473a0341f291cd256323d122aa80bb0cb0b (diff)
downloadvolse-hubzilla-07b6c868b3a66efc2737dfc6459b4114fea59ba0.tar.gz
volse-hubzilla-07b6c868b3a66efc2737dfc6459b4114fea59ba0.tar.bz2
volse-hubzilla-07b6c868b3a66efc2737dfc6459b4114fea59ba0.zip
remove javascript to set selectect nav item. enanche img template prefetch ignoring
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/nav.php b/include/nav.php
index bb1a5b2d8..f9e72bda7 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -157,8 +157,28 @@ function nav(&$a) {
'$banner' => $banner,
'$emptynotifications' => t('Nothing new here'),
'$userinfo' => $userinfo,
+ '$sel' => $a->nav_sel,
));
call_hooks('page_header', $a->page['nav']);
+}
+/*
+ * Set a menu item in navbar as selected
+ *
+ */
+function nav_set_selected($item){
+ $a = get_app();
+ $a->nav_sel = array(
+ 'community' => null,
+ 'network' => null,
+ 'home' => null,
+ 'profiles' => null,
+ 'notifications' => null,
+ 'messages' => null,
+ 'directyory' => null,
+ 'settings' => null,
+ 'contacts' => null,
+ );
+ $a->nav_sel[$item] = 'selected';
}