X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcommon.php;h=3118d124790938116b8fb4dc4ffce06d5b55e8c0;hb=836058c47745f502890a209dfd6efcb3596ace84;hp=574443f4831319103871303eb67944fce1c20ac4;hpb=f309f3a6810b5af5d3b778843533c1c69ddc090d;p=friendica.git diff --git a/mod/common.php b/mod/common.php index 574443f483..3118d12479 100644 --- a/mod/common.php +++ b/mod/common.php @@ -28,17 +28,22 @@ function common_content(&$a) { ); } - $a->page['aside'] .= replace_macros(get_markup_template("vcard-widget.tpl"),array( - '$name' => $c[0]['name'], - '$photo' => $c[0]['photo'], - 'url' => $a->get_baseurl() . '/contacts/' . $cid - )); - + $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) {