X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fallfriends.php;h=1a45775fb2908fb715d87c2c162864231f6d0249;hb=d80888842926eba272ae0e86d7666daeef201dc3;hp=f675b8e29ca1b4080a8f583e821ba6ac34954be1;hpb=aaf5a81365b4cbcb3d1b9537b5544aeb5de66f4b;p=friendica.git diff --git a/mod/allfriends.php b/mod/allfriends.php index f675b8e29c..1a45775fb2 100644 --- a/mod/allfriends.php +++ b/mod/allfriends.php @@ -20,18 +20,22 @@ function allfriends_content(&$a) { intval(local_user()) ); - $a->page['aside'] .= '
' - . '
' . $c[0]['name'] . '
' - . '
' - . '' . $c[0]['name'] . '
' - . '
'; - + $vcard_widget .= replace_macros(get_markup_template("vcard-widget.tpl"),array( + '$name' => $c[0]['name'], + '$photo' => $c[0]['photo'], + 'url' => z_root() . '/contacts/' . $cid + )); + + if(! x($a->page,'aside')) + $a->page['aside'] = ''; + $a->page['aside'] .= $vcard_widget; if(! count($c)) return; - $o .= '

' . sprintf( t('Friends of %s'), $c[0]['name']) . '

'; + $o .= replace_macros(get_markup_template("section_title.tpl"),array( + '$title' => sprintf( t('Friends of %s'), $c[0]['name']) + )); $r = all_friends(local_user(),$cid);