aboutsummaryrefslogtreecommitdiffstats
path: root/mod/contacts.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/contacts.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/contacts.php')
-rw-r--r--mod/contacts.php24
1 files changed, 22 insertions, 2 deletions
diff --git a/mod/contacts.php b/mod/contacts.php
index 50cc1586a..438b37aaf 100644
--- a/mod/contacts.php
+++ b/mod/contacts.php
@@ -168,6 +168,14 @@ function contacts_content(&$a) {
break;
}
+ if($r[0]['rel'] != REL_FAN) {
+ $url = "redir/{$r[0]['id']}";
+ $sparkle = ' class="sparkle" ';
+ }
+ else {
+ $url = $r[0]['url'];
+ $sparkle = '';
+ }
$o .= replace_macros($tpl,array(
'$poll_interval' => contact_poll_interval($r[0]['priority']),
'$last_update' => (($r[0]['last-update'] == '0000-00-00 00:00:00')
@@ -186,7 +194,8 @@ function contacts_content(&$a) {
'$name' => $r[0]['name'],
'$dir_icon' => $dir_icon,
'$alt_text' => $alt_text,
- '$url' => (($r[0]['rel'] != REL_FAN) ? "redir/{$r[0]['id']}" : $r[0]['url'] )
+ '$sparkle' => $sparkle,
+ '$url' => $url
));
@@ -258,6 +267,16 @@ function contacts_content(&$a) {
break;
}
+ if($rr['rel'] != REL_FAN) {
+ $url = "redir/{$rr['id']}";
+ $sparkle = ' class="sparkle" ';
+ }
+ else {
+ $url = $rr['url'];
+ $sparkle = '';
+ }
+
+
$o .= replace_macros($tpl, array(
'$img_hover' => t('Visit ') . $rr['name'] . t('\'s profile'),
'$edit_hover' => t('Edit contact'),
@@ -266,7 +285,8 @@ function contacts_content(&$a) {
'$dir_icon' => $dir_icon,
'$thumb' => $rr['thumb'],
'$name' => $rr['name'],
- '$url' => (($rr['rel'] != REL_FAN) ? "redir/{$rr['id']}" : $rr['url'] )
+ '$sparkle' => $sparkle,
+ '$url' => $url
));
}
$o .= '<div id="contact-edit-end"></div>';