diff options
author | Mario <mario@mariovavti.com> | 2021-11-25 07:54:53 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-11-25 07:54:53 +0000 |
commit | ca17fb01bc24f27e2229557e59977702f43619f4 (patch) | |
tree | f736c5f6042b751fc843911707ce85a52021c097 /include/channel.php | |
parent | a6f65aa9c5a97d76b0c89d3251faf6df3372121c (diff) | |
download | volse-hubzilla-ca17fb01bc24f27e2229557e59977702f43619f4.tar.gz volse-hubzilla-ca17fb01bc24f27e2229557e59977702f43619f4.tar.bz2 volse-hubzilla-ca17fb01bc24f27e2229557e59977702f43619f4.zip |
profile cleanup and fixes
Diffstat (limited to 'include/channel.php')
-rw-r--r-- | include/channel.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/channel.php b/include/channel.php index 927da3dcd..102a03489 100644 --- a/include/channel.php +++ b/include/channel.php @@ -1566,7 +1566,7 @@ function profile_edit_menu($uid) { * @return string (HTML) suitable for sidebar inclusion * Exceptions: Returns empty string if passed $profile is wrong type or not populated */ -function profile_sidebar($profile, $block = 0, $show_connect = true, $zcard = false) { +function profile_sidebar($profile, $block = 0, $show_connect = true, $details = false) { $observer = App::get_observer(); @@ -1622,6 +1622,7 @@ function profile_sidebar($profile, $block = 0, $show_connect = true, $zcard = fa $gender = ((x($profile,'gender') == 1) ? t('Gender:') : False); $marital = ((x($profile,'marital') == 1) ? t('Status:') : False); $homepage = ((x($profile,'homepage') == 1) ? t('Homepage:') : False); + $hometown = ((x($profile,'hometown') == 1) ? t('Hometown:') : False); $profile['online'] = (($profile['online_status'] === 'online') ? t('Online Now') : False); // logger('online: ' . $profile['online']); @@ -1662,18 +1663,18 @@ function profile_sidebar($profile, $block = 0, $show_connect = true, $zcard = fa $tpl = get_markup_template('profile_vcard.tpl'); $o .= replace_macros($tpl, array( - '$zcard' => $zcard, + '$details' => $details, '$profile' => $profile, '$connect' => $connect, '$connect_url' => $connect_url, '$location' => $location, + '$hometown' => $hometown, '$gender' => $gender, '$pdesc' => $pdesc, '$marital' => $marital, '$homepage' => $homepage, '$chanmenu' => $channel_menu, '$reddress' => $reddress, - '$rating' => '', '$contact_block' => $contact_block, '$change_photo' => t('Change your profile photo'), '$editmenu' => profile_edit_menu($profile['uid']) |