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;
);
}
- $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;
if($contact_id) {
$a->data['contact'] = $r[0];
$tpl = get_markup_template("vcard-widget.tpl");
- $o .= replace_macros($tpl, array(
+ $vcard_widget .= replace_macros($tpl, array(
'$name' => $a->data['contact']['name'],
'$photo' => $a->data['contact']['photo']
));
- $a->page['aside'] .= $o;
+ $a->page['aside'] .= $vcard_widget;
}
}
$tpl = get_markup_template("vcard-widget.tpl");
- $o .= replace_macros($tpl, array(
+ $vcard_widget .= replace_macros($tpl, array(
'$name' => $a->data['user']['username'],
'$photo' => $profilephoto
));
if(! x($a->page,'aside'))
$a->page['aside'] = '';
+ $a->page['aside'] .= $vcard_widget;
$a->page['aside'] .= $o;
$tpl = get_markup_template("vcard-widget.tpl");
- $o .= replace_macros($tpl, array(
+ $vcard_widget = replace_macros($tpl, array(
'$name' => $a->data['user']['username'],
'$photo' => $profilephoto
));
if(! x($a->page,'aside'))
$a->page['aside'] = '';
- $a->page['aside'] .= $o;
+ $a->page['aside'] .= $vcard_widget;
$tpl = get_markup_template("videos_head.tpl");