X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcommon.php;h=3118d124790938116b8fb4dc4ffce06d5b55e8c0;hb=5f89cb09234bc79aab2be93778609b344239c3da;hp=617b5b670a17eddc1db76b356d3f9d71f6e54f1b;hpb=9ecd128e5e2aba527138c1a4afa2ff17caebe896;p=friendica.git diff --git a/mod/common.php b/mod/common.php index 617b5b670a..3118d12479 100644 --- a/mod/common.php +++ b/mod/common.php @@ -28,18 +28,22 @@ function common_content(&$a) { ); } - $a->page['aside'] .= '
' - . '
' . $c[0]['name'] . '
' - . '
' - . '' . $c[0]['name'] . '
' - . '
'; - + $vcard_widget .= replace_macros(get_markup_template("vcard-widget.tpl"),array( + '$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(! count($c)) return; - $o .= '

' . t('Common Friends') . '

'; + $o .= replace_macros(get_markup_template("section_title.tpl"),array( + '$title' => t('Common Friends') + )); if(! $cid) {