little revision

This commit is contained in:
rabuzarus 2015-05-27 12:44:40 +02:00
commit 1067718018
5 changed files with 16 additions and 9 deletions

View file

@ -20,12 +20,15 @@ function allfriends_content(&$a) {
intval(local_user())
);
$a->page['aside'] .= replace_macros(get_markup_template("vcard-widget.tpl"),array(
$vcard_widget .= replace_macros(get_markup_template("vcard-widget.tpl"),array(
'$name' => $c[0]['name'],
'$photo' => $c[0]['photo'],
'url' => $a->get_baseurl() . '/contacts/' . $cid
));
if(! x($a->page,'aside'))
$a->page['aside'] = '';
$a->page['aside'] .= $vcard_widget;
if(! count($c))
return;