return;
}
+ nav_set_selected('home');
+
$o = '';
if($a->argc > 1) {
return;
$a->data['user'] = $r[0];
+ $a->profile_uid = $r[0]['uid'];
+
+ $profilephoto = $a->get_cached_avatar_image($a->get_baseurl() . '/photo/profile/' . $a->data['user']['uid'] . '.jpg');
- $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>';
+ $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']);
if(! x($a->page,'aside'))
$a->page['aside'] = '';
- $a->page['aside'] .= $o;
+ $a->page['aside'] .= $vcard_widget;
$tpl = get_markup_template("videos_head.tpl");
$a->page['content'] = replace_macros(get_markup_template('confirm.tpl'), array(
'$method' => 'post',
'$message' => t('Do you really want to delete this video?'),
- '$extra_inputs' => [
- ['name'=>'id', 'value'=> $_POST['id']],
- ['name'=>'delete', 'value'=>'x']
- ],
+ '$extra_inputs' => array(
+ array('name'=>'id', 'value'=> $_POST['id']),
+ array('name'=>'delete', 'value'=>'x')
+ ),
'$confirm' => t('Delete Video'),
'$confirm_url' => $drop_url,
'$confirm_name' => 'confirm', // Needed so that confirmation will bring us back into this if statement