aboutsummaryrefslogtreecommitdiffstats
path: root/mod/message.php
diff options
context:
space:
mode:
authorDevlon Duthie <duthied@gmail.com>2011-10-02 20:37:47 -0500
committerDevlon Duthie <duthied@gmail.com>2011-10-02 20:37:47 -0500
commitda53ebf4b3431559d2383dd9e0651de44e9714e8 (patch)
tree1fbfdc7a08b82caacd2ac7f0edb468156925466e /mod/message.php
parent8e38fe6f47db54e7af12707130641e8de9f3eeb9 (diff)
downloadvolse-hubzilla-da53ebf4b3431559d2383dd9e0651de44e9714e8.tar.gz
volse-hubzilla-da53ebf4b3431559d2383dd9e0651de44e9714e8.tar.bz2
volse-hubzilla-da53ebf4b3431559d2383dd9e0651de44e9714e8.zip
added activetab var to message.php for templates
(testbubble only) added logic to photo header to make tab 'sticky' (active class for styling) (testbubble only) css fix for avatars in wallitems
Diffstat (limited to 'mod/message.php')
-rw-r--r--mod/message.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/mod/message.php b/mod/message.php
index 1bee45d48..d4772d026 100644
--- a/mod/message.php
+++ b/mod/message.php
@@ -45,13 +45,21 @@ function message_content(&$a) {
$myprofile = $a->get_baseurl() . '/profile/' . $a->user['nickname'];
-
+ if (($a->argc > 1) && ($a->argv[1] === 'new')) {
+ $tab = 'new';
+ } else if ($a->argc == 2 && $a->argv[1] === 'sent') {
+ $tab = 'sent';
+ } else {
+ $tab = 'inbox';
+ }
+
$tpl = get_markup_template('mail_head.tpl');
$header = replace_macros($tpl, array(
'$messages' => t('Messages'),
'$inbox' => t('Inbox'),
'$outbox' => t('Outbox'),
- '$new' => t('New Message')
+ '$new' => t('New Message'),
+ '$activetab' => $tab
));
@@ -90,6 +98,8 @@ function message_content(&$a) {
if(($a->argc > 1) && ($a->argv[1] === 'new')) {
+ $o .= $header;
+
$tpl = get_markup_template('msg-header.tpl');
$a->page['htmlhead'] .= replace_macros($tpl, array(
@@ -114,7 +124,6 @@ function message_content(&$a) {
'$upload' => t('Upload photo'),
'$insert' => t('Insert web link'),
'$wait' => t('Please wait')
-
));
return $o;
@@ -248,7 +257,6 @@ function message_content(&$a) {
'$upload' => t('Upload photo'),
'$insert' => t('Insert web link'),
'$wait' => t('Please wait')
-
));
return $o;