+ $o .= replace_macros($tpl,array(
+ '$profile_select' => contact_profile_assign($r[0]['profile-id']),
+ '$contact_id' => $r[0]['id'],
+ '$block_text' => (($r[0]['blocked']) ? 'Unblock this contact' : 'Block this contact' ),
+ '$blocked' => (($r[0]['blocked']) ? '<div id="block-message">Currently blocked</div>' : ''),
+ '$rating' => contact_reputation($r[0]['rating']),
+ '$reason' => $r[0]['reason'],
+ '$groups' => '', // group_selector(),
+ '$photo' => $r[0]['photo'],
+ '$name' => $r[0]['name'],
+ '$dir_icon' => $dir_icon,
+ '$alt_text' => $alt_text,
+ '$url' => (($direction != DIRECTION_IN) ? "redir/{$r[0]['id']}" : $r[0]['url'] )