}
}
-
+
function suggest_content(&$a) {
+ require_once("mod/proxy.php");
+
$o = '';
if(! local_user()) {
notice( t('Permission denied.') . EOL);
$a->page['aside'] .= findpeople_widget();
- $o .= '<h2>' . t('Friend Suggestions') . '</h2>';
+ $o .= replace_macros(get_markup_template("section_title.tpl"),array(
+ '$title' => t('Friend Suggestions')
+ ));
$r = suggestion_query(local_user());
foreach($r as $rr) {
- $connlnk = $a->get_baseurl() . '/follow/?url=' . (($rr['connect']) ? $rr['connect'] : $rr['url']);
+ $connlnk = $a->get_baseurl() . '/follow/?url=' . (($rr['connect']) ? $rr['connect'] : $rr['url']);
$o .= replace_macros($tpl,array(
'$url' => zrl($rr['url']),
'$name' => $rr['name'],
- '$photo' => $rr['photo'],
+ '$photo' => proxy_url($rr['photo'], false, PROXY_SIZE_THUMB),
'$ignlnk' => $a->get_baseurl() . '/suggest?ignore=' . $rr['id'],
'$ignid' => $rr['id'],
'$conntxt' => t('Connect'),