little revision
This commit is contained in:
parent
f309f3a681
commit
1067718018
|
@ -20,12 +20,15 @@ function allfriends_content(&$a) {
|
||||||
intval(local_user())
|
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'],
|
'$name' => $c[0]['name'],
|
||||||
'$photo' => $c[0]['photo'],
|
'$photo' => $c[0]['photo'],
|
||||||
'url' => $a->get_baseurl() . '/contacts/' . $cid
|
'url' => $a->get_baseurl() . '/contacts/' . $cid
|
||||||
));
|
));
|
||||||
|
|
||||||
|
if(! x($a->page,'aside'))
|
||||||
|
$a->page['aside'] = '';
|
||||||
|
$a->page['aside'] .= $vcard_widget;
|
||||||
|
|
||||||
if(! count($c))
|
if(! count($c))
|
||||||
return;
|
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'],
|
'$name' => $c[0]['name'],
|
||||||
'$photo' => $c[0]['photo'],
|
'$photo' => $c[0]['photo'],
|
||||||
'url' => $a->get_baseurl() . '/contacts/' . $cid
|
'url' => $a->get_baseurl() . '/contacts/' . $cid
|
||||||
));
|
));
|
||||||
|
|
||||||
|
if(! x($a->page,'aside'))
|
||||||
|
$a->page['aside'] = '';
|
||||||
|
$a->page['aside'] .= $vcard_widget;
|
||||||
|
|
||||||
if(! count($c))
|
if(! count($c))
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -23,11 +23,11 @@ function crepair_init(&$a) {
|
||||||
if($contact_id) {
|
if($contact_id) {
|
||||||
$a->data['contact'] = $r[0];
|
$a->data['contact'] = $r[0];
|
||||||
$tpl = get_markup_template("vcard-widget.tpl");
|
$tpl = get_markup_template("vcard-widget.tpl");
|
||||||
$o .= replace_macros($tpl, array(
|
$vcard_widget .= replace_macros($tpl, array(
|
||||||
'$name' => $a->data['contact']['name'],
|
'$name' => $a->data['contact']['name'],
|
||||||
'$photo' => $a->data['contact']['photo']
|
'$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");
|
$tpl = get_markup_template("vcard-widget.tpl");
|
||||||
|
|
||||||
$o .= replace_macros($tpl, array(
|
$vcard_widget .= replace_macros($tpl, array(
|
||||||
'$name' => $a->data['user']['username'],
|
'$name' => $a->data['user']['username'],
|
||||||
'$photo' => $profilephoto
|
'$photo' => $profilephoto
|
||||||
));
|
));
|
||||||
|
@ -76,6 +76,7 @@ function photos_init(&$a) {
|
||||||
|
|
||||||
if(! x($a->page,'aside'))
|
if(! x($a->page,'aside'))
|
||||||
$a->page['aside'] = '';
|
$a->page['aside'] = '';
|
||||||
|
$a->page['aside'] .= $vcard_widget;
|
||||||
$a->page['aside'] .= $o;
|
$a->page['aside'] .= $o;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ function videos_init(&$a) {
|
||||||
|
|
||||||
$tpl = get_markup_template("vcard-widget.tpl");
|
$tpl = get_markup_template("vcard-widget.tpl");
|
||||||
|
|
||||||
$o .= replace_macros($tpl, array(
|
$vcard_widget = replace_macros($tpl, array(
|
||||||
'$name' => $a->data['user']['username'],
|
'$name' => $a->data['user']['username'],
|
||||||
'$photo' => $profilephoto
|
'$photo' => $profilephoto
|
||||||
));
|
));
|
||||||
|
@ -74,7 +74,7 @@ function videos_init(&$a) {
|
||||||
|
|
||||||
if(! x($a->page,'aside'))
|
if(! x($a->page,'aside'))
|
||||||
$a->page['aside'] = '';
|
$a->page['aside'] = '';
|
||||||
$a->page['aside'] .= $o;
|
$a->page['aside'] .= $vcard_widget;
|
||||||
|
|
||||||
|
|
||||||
$tpl = get_markup_template("videos_head.tpl");
|
$tpl = get_markup_template("videos_head.tpl");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user