html to section_title.tpl
This commit is contained in:
parent
47a15f6a00
commit
74267310d6
11 changed files with 110 additions and 68 deletions
|
|
@ -21,19 +21,21 @@ function allfriends_content(&$a) {
|
|||
);
|
||||
|
||||
$vcard_widget .= replace_macros(get_markup_template("vcard-widget.tpl"),array(
|
||||
'$name' => $c[0]['name'],
|
||||
'$photo' => $c[0]['photo'],
|
||||
'url' => z_root() . '/contacts/' . $cid
|
||||
));
|
||||
'$name' => $c[0]['name'],
|
||||
'$photo' => $c[0]['photo'],
|
||||
'url' => z_root() . '/contacts/' . $cid
|
||||
));
|
||||
|
||||
if(! x($a->page,'aside'))
|
||||
$a->page['aside'] = '';
|
||||
$a->page['aside'] .= $vcard_widget;
|
||||
if(! x($a->page,'aside'))
|
||||
$a->page['aside'] = '';
|
||||
$a->page['aside'] .= $vcard_widget;
|
||||
|
||||
if(! count($c))
|
||||
return;
|
||||
|
||||
$o .= '<h2>' . sprintf( t('Friends of %s'), $c[0]['name']) . '</h2>';
|
||||
$o .= replace_macros(get_markup_template("section_title.tpl"),array(
|
||||
'$title' => sprintf( t('Friends of %s'), $c[0]['name'])
|
||||
));
|
||||
|
||||
|
||||
$r = all_friends(local_user(),$cid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue