- $dfrn_text = replace_macros($dfrn_tpl,array(
- '$intro_id' => $rr['intro_id'],
- '$friend_selected' => $friend_selected,
- '$fan_selected' => $fan_selected,
- '$approve_as' => $helptext,
- '$as_friend' => t('Friend'),
- '$as_fan' => (($rr['network'] == NETWORK_DIASPORA) ? t('Sharer') : t('Fan/Admirer'))
- ));
- }
-
- $header = $rr["name"];
-
- $ret = probe_url($rr["url"]);
-
- if ($rr['gnetwork'] == "")
- $rr['gnetwork'] = $ret["network"];
-
- if ($ret["addr"] != "")
- $header .= " <".$ret["addr"].">";
-
- $header .= " (".network_to_name($rr['gnetwork'], $rr['url']).")";
-
- // Don't show these data until you are connected. Diaspora is doing the same.
- if($rr['gnetwork'] === NETWORK_DIASPORA) {
- $rr['glocation'] = "";
- $rr['gabout'] = "";
- $rr['ggender'] = "";
- }
-
- $notif_content .= replace_macros($tpl, array(
- '$header' => htmlentities($header),
- '$str_notifytype' => t('Notification type: '),
- '$notify_type' => (($rr['network'] !== NETWORK_OSTATUS) ? t('Friend/Connect Request') : t('New Follower')),
- '$dfrn_text' => $dfrn_text,
- '$dfrn_id' => $rr['issued-id'],
- '$uid' => $_SESSION['uid'],
- '$intro_id' => $rr['intro_id'],
- '$contact_id' => $rr['contact-id'],
- '$photo' => ((x($rr,'photo')) ? proxy_url($rr['photo'], false, PROXY_SIZE_SMALL) : "images/person-175.jpg"),
- '$fullname' => $rr['name'],
- '$location' => bbcode($rr['glocation'], false, false),
- '$location_label' => t('Location:'),
- '$about' => bbcode($rr['gabout'], false, false),
- '$about_label' => t('About:'),
- '$keywords' => $rr['gkeywords'],
- '$keywords_label' => t('Tags:'),
- '$gender' => $rr['ggender'],
- '$gender_label' => t('Gender:'),
- '$hidden' => array('hidden', t('Hide this contact from others'), ($rr['hidden'] == 1), ''),
- '$activity' => array('activity', t('Post a new friend activity'), (intval(get_pconfig(local_user(),'system','post_newfriend')) ? '1' : 0), t('if applicable')),
- '$url' => $rr['url'],
- '$zrl' => zrl($rr['url']),
- '$url_label' => t('Profile URL'),
- '$knowyou' => $knowyou,
- '$approve' => t('Approve'),
- '$note' => $rr['note'],
- '$ignore' => t('Ignore'),
- '$discard' => t('Discard'),
-
- ));
- }
- }
- else
- info( t('No introductions.') . EOL);