Browse Source

little revision

pull/1618/head
rabuzarus 6 years ago
parent
commit
1067718018
  1. 7
      mod/allfriends.php
  2. 7
      mod/common.php
  3. 4
      mod/crepair.php
  4. 3
      mod/photos.php
  5. 4
      mod/videos.php

7
mod/allfriends.php

@ -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;

7
mod/common.php

@ -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;

4
mod/crepair.php

@ -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;
}
}

3
mod/photos.php

@ -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;

4
mod/videos.php

@ -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…
Cancel
Save