aboutsummaryrefslogtreecommitdiffstats
path: root/mod/message.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-27 19:48:45 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-27 19:48:45 -0700
commit01d36785b052f722c982700bcfe29e7ea26d1321 (patch)
tree3824ba3413b3dabb9d6669f126c02b2da5ee0093 /mod/message.php
parent0c661722928c6cb034373a7dce59ef0f720e4d2d (diff)
downloadvolse-hubzilla-01d36785b052f722c982700bcfe29e7ea26d1321.tar.gz
volse-hubzilla-01d36785b052f722c982700bcfe29e7ea26d1321.tar.bz2
volse-hubzilla-01d36785b052f722c982700bcfe29e7ea26d1321.zip
fixed photo comments, msg typo, and changed cursor when hovering
over "special friends" where SSO is allowed
Diffstat (limited to 'mod/message.php')
-rw-r--r--mod/message.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/mod/message.php b/mod/message.php
index b544b552a..114f558db 100644
--- a/mod/message.php
+++ b/mod/message.php
@@ -211,6 +211,7 @@ function message_content(&$a) {
'$id' => $rr['id'],
'$from_name' =>$rr['from-name'],
'$from_url' => $a->get_baseurl() . '/redir/' . $rr['contact-id'],
+ '$sparkle' => ' sparkle',
'$from_photo' => $rr['from-photo'],
'$subject' => (($rr['mailseen']) ? $rr['title'] : '<strong>' . $rr['title'] . '</strong>'),
'$delete' => t('Delete conversation'),
@@ -261,11 +262,19 @@ function message_content(&$a) {
$tpl = load_view_file('view/mail_conv.tpl');
foreach($messages as $message) {
+ if($message['from-url'] == $myprofile) {
+ $from_url = $myprofile;
+ $sparkle = '';
+ }
+ else {
+ $from_url = $a->get_baseurl() . '/redir/' . $message['contact-id'];
+ $sparkle = ' sparkle';
+ }
$o .= replace_macros($tpl, array(
'$id' => $message['id'],
'$from_name' =>$message['from-name'],
- '$from_url' => (($message['from-url'] == $myprofile)
- ? $myprofile : $a->get_baseurl() . '/redir/' . $message['contact-id']),
+ '$from_url' => $from_url,
+ '$sparkle' => $sparkle,
'$from_photo' => $message['from-photo'],
'$subject' => $message['title'],
'$body' => bbcode($message['body']),