|
|
|
@ -453,42 +453,47 @@ echo '<div id="social-profile-container">'; |
|
|
|
|
//--- User image |
|
|
|
|
echo '<div class="social-content-image">'; |
|
|
|
|
echo '<div class="social-background-content" style="width:95%;" align="center">'; |
|
|
|
|
echo '<br/>'; |
|
|
|
|
|
|
|
|
|
if ($img_array['file'] != 'unknown.jpg') { |
|
|
|
|
echo '<a class="thickbox" href="'.$big_image.'"><img src='.$img_array['dir'].$img_array['file'].' /> </a><br /><br />'; |
|
|
|
|
} else { |
|
|
|
|
echo '<img src='.$img_array['dir'].$img_array['file'].' /><br /><br />'; |
|
|
|
|
} |
|
|
|
|
echo '</div>'; |
|
|
|
|
echo '<br/>'; |
|
|
|
|
|
|
|
|
|
if ($img_array['file'] != 'unknown.jpg') { |
|
|
|
|
echo '<a class="thickbox" href="'.$big_image.'"><img src='.$img_array['dir'].$img_array['file'].' /> </a><br /><br />'; |
|
|
|
|
} else { |
|
|
|
|
echo '<img src='.$img_array['dir'].$img_array['file'].' /><br /><br />'; |
|
|
|
|
} |
|
|
|
|
echo '</div>'; |
|
|
|
|
|
|
|
|
|
echo '<br/>'; |
|
|
|
|
echo '<div class="actions" style="margin-right:5px;">'; |
|
|
|
|
echo ' <a href="'.api_get_path(WEB_PATH).'main/messages/send_message_to_userfriend.inc.php?height=300&width=610&user_friend='.$user_id.'&view=profile&view_panel=1" class="thickbox" title="'.get_lang('SendMessage').'">'; |
|
|
|
|
echo Display::return_icon('message_new.png').' '.get_lang('SendMessage').'</a><br />'; |
|
|
|
|
echo '</div>'; |
|
|
|
|
echo '<br/>'; |
|
|
|
|
|
|
|
|
|
$html_actions = ''; |
|
|
|
|
if ($user_id != api_get_user_id()) { |
|
|
|
|
$html_actions = ' <a href="'.api_get_path(WEB_PATH).'main/messages/send_message_to_userfriend.inc.php?height=300&width=610&user_friend='.$user_id.'&view=profile&view_panel=1" class="thickbox" title="'.get_lang('SendMessage').'">'; |
|
|
|
|
$html_actions .= Display::return_icon('message_new.png').' '.get_lang('SendMessage').'</a><br />'; |
|
|
|
|
} |
|
|
|
|
//check if I already sent an invitation message |
|
|
|
|
$invitation_sent_list = SocialManager::get_list_invitation_sent_by_user_id(api_get_user_id()); |
|
|
|
|
|
|
|
|
|
if (is_array($invitation_sent_list) && is_array($invitation_sent_list[$user_id]) && count($invitation_sent_list[$user_id]) >0 ) { |
|
|
|
|
echo '<a href="'.api_get_path(WEB_PATH).'main/social/invitations.php">'.get_lang('YouAlreadySentAnInvitation').'</a>'; |
|
|
|
|
$html_actions .= '<a href="'.api_get_path(WEB_PATH).'main/social/invitations.php">'.get_lang('YouAlreadySentAnInvitation').'</a>'; |
|
|
|
|
} else { |
|
|
|
|
if (!$show_full_profile) { |
|
|
|
|
echo ' <a href="'.api_get_path(WEB_PATH).'main/messages/send_message_to_userfriend.inc.php?view_panel=2&height=260&width=610&user_friend='.$user_id.'" class="thickbox" title="'.get_lang('SendInvitation').'">'.Display :: return_icon('add_multiple_users.gif', get_lang('SocialInvitationToFriends')).' '.get_lang('SendInvitation').'</a>'; |
|
|
|
|
$html_actions .= ' <a href="'.api_get_path(WEB_PATH).'main/messages/send_message_to_userfriend.inc.php?view_panel=2&height=260&width=610&user_friend='.$user_id.'" class="thickbox" title="'.get_lang('SendInvitation').'">'.Display :: return_icon('add_multiple_users.gif', get_lang('SocialInvitationToFriends')).' '.get_lang('SendInvitation').'</a>'; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!empty($html_actions )) { |
|
|
|
|
echo '<div class="actions" style="margin-right:5px;">'; |
|
|
|
|
echo $html_actions; |
|
|
|
|
echo '</div>'; |
|
|
|
|
|
|
|
|
|
echo '<br />'; |
|
|
|
|
|
|
|
|
|
echo '<br />'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Extra information |
|
|
|
|
|
|
|
|
|
if ($show_full_profile) { |
|
|
|
|
//-- Extra Data |
|
|
|
|
$t_uf = Database :: get_main_table(TABLE_MAIN_USER_FIELD); |
|
|
|
|
$t_ufo = Database :: get_main_table(TABLE_MAIN_USER_FIELD_OPTIONS); |
|
|
|
|
$t_uf = Database :: get_main_table(TABLE_MAIN_USER_FIELD); |
|
|
|
|
$t_ufo = Database :: get_main_table(TABLE_MAIN_USER_FIELD_OPTIONS); |
|
|
|
|
$extra_user_data = UserManager::get_extra_user_data($user_id); |
|
|
|
|
$extra_information = ''; |
|
|
|
|
if (is_array($extra_user_data) && count($extra_user_data)>0 ) { |
|
|
|
|