aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/contacts.php1
-rw-r--r--mod/directory.php1
-rw-r--r--mod/home.php2
-rw-r--r--mod/message.php1
-rw-r--r--mod/network.php2
-rw-r--r--mod/notifications.php1
-rw-r--r--mod/profile.php1
-rw-r--r--mod/profiles.php1
-rw-r--r--mod/settings.php5
9 files changed, 13 insertions, 2 deletions
diff --git a/mod/contacts.php b/mod/contacts.php
index 2469e0c6f..45f792d30 100644
--- a/mod/contacts.php
+++ b/mod/contacts.php
@@ -72,6 +72,7 @@ function contacts_post(&$a) {
function contacts_content(&$a) {
+ $o .= '<script> $(document).ready(function() { $(\'#nav-contacts-link\').addClass(\'nav-selected\'); });</script>';
if(! local_user()) {
notice( t('Permission denied.') . EOL);
return;
diff --git a/mod/directory.php b/mod/directory.php
index 9cce16760..4e3657673 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -4,6 +4,7 @@ function directory_init(&$a) {
}
function directory_content(&$a) {
+ $o .= '<script> $(document).ready(function() { $(\'#nav-directory-link\').addClass(\'nav-selected\'); });</script>';
$search = ((x($_GET,'search')) ? notags(trim($_GET['search'])) : '');
diff --git a/mod/home.php b/mod/home.php
index 3a1aa212a..4406576a3 100644
--- a/mod/home.php
+++ b/mod/home.php
@@ -15,6 +15,8 @@ function home_content(&$a) {
$a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://mistpark.com\" name=\"mistpark\" >mistpark</a></div>";
$o .= '<h1>Welcome' . ((x($a->config,'sitename')) ? " to {$a->config['sitename']}" : "" ) . '</h1>';
+ if(file_exists('home.html'))
+ $o .= file_get_contents('home.html');
$o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
return $o;
diff --git a/mod/message.php b/mod/message.php
index 2048cff1f..6119e894f 100644
--- a/mod/message.php
+++ b/mod/message.php
@@ -82,6 +82,7 @@ function message_post(&$a) {
}
function message_content(&$a) {
+ $o .= '<script> $(document).ready(function() { $(\'#nav-messages-link\').addClass(\'nav-selected\'); });</script>';
if(! local_user()) {
notice( t('Permission denied.') . EOL);
diff --git a/mod/network.php b/mod/network.php
index afe44dabf..c5845f63c 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -19,6 +19,8 @@ function network_content(&$a, $update = false) {
$group = 0;
if(! $update) {
+ $o .= '<script> $(document).ready(function() { $(\'#nav-network-link\').addClass(\'nav-selected\'); });</script>';
+
// pull out the group here because the updater might have different args
if($a->argc > 1) {
$group = intval($a->argv[1]);
diff --git a/mod/notifications.php b/mod/notifications.php
index 6422b3b00..96f50d90b 100644
--- a/mod/notifications.php
+++ b/mod/notifications.php
@@ -57,6 +57,7 @@ function notifications_content(&$a) {
}
$o = '';
+ $o .= '<script> $(document).ready(function() { $(\'#nav-notify-link\').addClass(\'nav-selected\'); });</script>';
if(($a->argc > 1) && ($a->argv[1] == 'all'))
$sql_extra = '';
diff --git a/mod/profile.php b/mod/profile.php
index c42291d96..6923b0923 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -89,6 +89,7 @@ function profile_content(&$a, $update = false) {
$a->profile['profile_uid'] = $_SESSION['profile_uid'];
}
else {
+ $o .= '<script> $(document).ready(function() { $(\'#nav-home-link\').addClass(\'nav-selected\'); });</script>';
// set the uid so we can pick it up during update
$_SESSION['profile_uid'] = $a->profile['uid'];
}
diff --git a/mod/profiles.php b/mod/profiles.php
index 5ee9a3e96..c9dc4c80c 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -157,6 +157,7 @@ function profiles_post(&$a) {
function profiles_content(&$a) {
+ $o .= '<script> $(document).ready(function() { $(\'#nav-profiles-link\').addClass(\'nav-selected\'); });</script>';
if(! local_user()) {
notice( t('Permission denied.') . EOL);
return;
diff --git a/mod/settings.php b/mod/settings.php
index fbeee7768..2e14fcee5 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -155,6 +155,7 @@ function settings_post(&$a) {
if(! function_exists('settings_content')) {
function settings_content(&$a) {
+ $o .= '<script> $(document).ready(function() { $(\'#nav-settings-link\').addClass(\'nav-selected\'); });</script>';
if(! local_user()) {
notice( t('Permission denied.') . EOL );
@@ -229,9 +230,9 @@ function settings_content(&$a) {
'$basepath' => $a->get_hostname(),
'$baseurl' => $a->get_baseurl()));
- $o = file_get_contents('view/settings.tpl');
+ $stpl = file_get_contents('view/settings.tpl');
- $o = replace_macros($o,array(
+ $o .= replace_macros($stpl,array(
'$baseurl' => $a->get_baseurl(),
'$uid' => $_SESSION['uid'],
'$username' => $username,