X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fvideos.php;h=943a9d09f2bf7ca07cc935022d5e2c329b6706cc;hb=d23440af1518c1d89f2a71516d155b1defb1ccb7;hp=607c900eb5cbccadf7a2be326a9105e884f5d0b2;hpb=b3992e1c65ca360595ed2e68c40b48e40767f007;p=friendica.git diff --git a/mod/videos.php b/mod/videos.php index 607c900eb5..943a9d09f2 100644 --- a/mod/videos.php +++ b/mod/videos.php @@ -28,10 +28,14 @@ function videos_init(&$a) { $a->data['user'] = $r[0]; - $o .= '
'; - $o .= '
' . $a->data['user']['username'] . '
'; - $o .= '
' . $a->data['user']['username'] . '
'; - $o .= '
'; + $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");