Merge pull request #1618 from rabuzarus/vcard
remove html and make use of vcard-widget.tpl
This commit is contained in:
commit
9a22b4818e
6 changed files with 50 additions and 33 deletions
|
@ -28,10 +28,14 @@ function videos_init(&$a) {
|
|||
|
||||
$a->data['user'] = $r[0];
|
||||
|
||||
$o .= '<div class="vcard">';
|
||||
$o .= '<div class="fn">' . $a->data['user']['username'] . '</div>';
|
||||
$o .= '<div id="profile-photo-wrapper"><img class="photo" style="width: 175px; height: 175px;" src="' . $a->get_cached_avatar_image($a->get_baseurl() . '/photo/profile/' . $a->data['user']['uid'] . '.jpg') . '" alt="' . $a->data['user']['username'] . '" /></div>';
|
||||
$o .= '</div>';
|
||||
$profilephoto = $a->get_cached_avatar_image($a->get_baseurl() . '/photo/profile/' . $a->data['user']['uid'] . '.jpg');
|
||||
|
||||
$tpl = get_markup_template("vcard-widget.tpl");
|
||||
|
||||
$vcard_widget = replace_macros($tpl, array(
|
||||
'$name' => $a->data['user']['username'],
|
||||
'$photo' => $profilephoto
|
||||
));
|
||||
|
||||
|
||||
/*$sql_extra = permissions_sql($a->data['user']['uid']);
|
||||
|
@ -70,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…
Add table
Add a link
Reference in a new issue