little revision

This commit is contained in:
rabuzarus 2015-05-27 12:44:40 +02:00
parent f309f3a681
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;

View file

@ -28,12 +28,15 @@ function common_content(&$a) {
);
}
$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;

View file

@ -23,11 +23,11 @@ function crepair_init(&$a) {
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;
}
}

View file

@ -34,7 +34,7 @@ function photos_init(&$a) {
$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
));
@ -76,6 +76,7 @@ function photos_init(&$a) {
if(! x($a->page,'aside'))
$a->page['aside'] = '';
$a->page['aside'] .= $vcard_widget;
$a->page['aside'] .= $o;

View file

@ -32,7 +32,7 @@ function videos_init(&$a) {
$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
));
@ -74,7 +74,7 @@ function videos_init(&$a) {
if(! x($a->page,'aside'))
$a->page['aside'] = '';
$a->page['aside'] .= $o;
$a->page['aside'] .= $vcard_widget;
$tpl = get_markup_template("videos_head.tpl");