remove html and use vcard-widget.tpl

This commit is contained in:
rabuzarus 2015-05-26 14:32:40 +02:00
parent dc182d508e
commit f309f3a681
6 changed files with 39 additions and 29 deletions

View file

@ -28,12 +28,11 @@ function common_content(&$a) {
);
}
$a->page['aside'] .= '<div class="vcard">'
. '<div class="fn label">' . $c[0]['name'] . '</div>'
. '<div id="profile-photo-wrapper">'
. '<img class="photo" width="175" height="175"
src="' . $c[0]['photo'] . '" alt="' . $c[0]['name'] . '" /></div>'
. '</div>';
$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
));
if(! count($c))