little revision
This commit is contained in:
parent
f309f3a681
commit
1067718018
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue