|
|
|
@ -570,20 +570,33 @@ class SocialManager extends UserManager { |
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
echo '<div class="social-menu">'; |
|
|
|
|
|
|
|
|
|
echo '<script type="text/javascript"> |
|
|
|
|
function show_icon_edit(element_html) { |
|
|
|
|
ident="#edit_image"; |
|
|
|
|
$(ident).show(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function hide_icon_edit(element_html) { |
|
|
|
|
ident="#edit_image"; |
|
|
|
|
$(ident).hide(); |
|
|
|
|
} |
|
|
|
|
</script>'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (in_array($show, $show_groups) && !empty($group_id)) { |
|
|
|
|
//--- Group image |
|
|
|
|
$group_info = GroupPortalManager::get_group_data($group_id); |
|
|
|
|
$big = GroupPortalManager::get_picture_group($group_id, $group_info['picture_uri'],160,GROUP_IMAGE_SIZE_BIG); |
|
|
|
|
$original = GroupPortalManager::get_picture_group($group_id, $group_info['picture_uri'],'',GROUP_IMAGE_SIZE_ORIGINAL); |
|
|
|
|
|
|
|
|
|
echo '<div class="social-content-image">'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<div class="social-content-image">'; |
|
|
|
|
echo '<div class="social-background-content" onmouseout="hide_icon_edit()" onmouseover="show_icon_edit()"><center>'; |
|
|
|
|
echo Display::url('<img src='.$big['file'].' class="social-groups-image" /> </a><br /><br />', api_get_path(WEB_PATH).'main/social/groups.php?id='.$group_id); |
|
|
|
|
if (GroupPortalManager::is_group_admin($group_id, api_get_user_id())) { |
|
|
|
|
echo '<div id="edit_image" class="hidden_message" style="display:none"><a href="'.api_get_path(WEB_PATH).'main/social/group_edit.php?id='.$group_id.'">'.get_lang('EditGroup').'</a></div>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo '</center></div>'; |
|
|
|
|
echo '</div>'; |
|
|
|
|
} else { |
|
|
|
@ -609,20 +622,22 @@ class SocialManager extends UserManager { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!in_array($show, array('shared_profile', 'groups', 'group_edit', 'member_list','waiting_list','invite_friends'))) { |
|
|
|
|
echo '<div align="center" class="social-menu-title" ><span class="social-menu-text1">'.get_lang('Menu').'</span></div>'; |
|
|
|
|
|
|
|
|
|
echo '<div> |
|
|
|
|
<ul> |
|
|
|
|
<li><a href="'.api_get_path(WEB_PATH).'main/social/home.php">'.Display::return_icon('home.png',get_lang('Home'),array('hspace'=>'6')).'<span class="'.($show=='home'?'social-menu-text-active':'social-menu-text4').'" >'.get_lang('Home').'</span></a></li> |
|
|
|
|
<li><a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php?f=social">'.Display::return_icon('instant_message.png',get_lang('Messages'),array('hspace'=>'6')).'<span class="'.($show=='messages'?'social-menu-text-active':'social-menu-text4').'" >'.get_lang('Messages').$count_unread_message.'</span></a></li>'; |
|
|
|
|
|
|
|
|
|
if (in_array($show, $show_messages)) { |
|
|
|
|
echo '<li><ul>'; |
|
|
|
|
echo '<li class="social-menu-sub-level"><a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php?f=social">'.Display::return_icon('compose_message.png', get_lang('ComposeMessage'), array('hspace'=>'6','style'=>'float:left')).'<span class="'.($show=='messages_compose'?'social-menu-text-active':'social-menu-text4').'" >'.get_lang('ComposeMessage').'</span></a></li>'; |
|
|
|
|
echo '<li class="social-menu-sub-level"><a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php?f=social">'.Display::return_icon('inbox.png', get_lang('Inbox'), array('hspace'=>'6')).'<span class="'.($show=='messages_inbox'?'social-menu-text-active':'social-menu-text4').'" >'.get_lang('Inbox').'</span></a></li>'; |
|
|
|
|
echo '<li class="social-menu-sub-level" style="background:none;padding:0px"><a href="'.api_get_path(WEB_PATH).'main/messages/outbox.php?f=social">'.Display::return_icon('outbox.png', get_lang('Outbox'), array('hspace'=>'6')).'<span class="'.($show=='messages_outbox'?'social-menu-text-active':'social-menu-text4').'" >'.get_lang('Outbox').'</span></a></li>'; |
|
|
|
|
echo '</ul></li>'; |
|
|
|
|
} |
|
|
|
|
echo '<div align="center" class="social-menu-title">'; |
|
|
|
|
echo '<span class="social-menu-text1">'.get_lang('Menu').'</span>'; |
|
|
|
|
echo '</div>'; |
|
|
|
|
|
|
|
|
|
echo '<div><ul>'; |
|
|
|
|
|
|
|
|
|
echo '<li><a href="'.api_get_path(WEB_PATH).'main/social/home.php">'.Display::return_icon('home.png',get_lang('Home'),array('hspace'=>'6')).'<span class="'.($show=='home'?'social-menu-text-active':'social-menu-text4').'" >'.get_lang('Home').'</span></a></li>'; |
|
|
|
|
echo '<li><a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php?f=social">'.Display::return_icon('instant_message.png',get_lang('Messages'),array('hspace'=>'6')).'<span class="'.($show=='messages'?'social-menu-text-active':'social-menu-text4').'" >'.get_lang('Messages').$count_unread_message.'</span></a></li>'; |
|
|
|
|
|
|
|
|
|
if (in_array($show, $show_messages)) { |
|
|
|
|
/*echo '<li><ul>'; |
|
|
|
|
echo '<li class="social-menu-sub-level"><a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php?f=social">'.Display::return_icon('compose_message.png', get_lang('ComposeMessage'), array('hspace'=>'6','style'=>'float:left')).'<span class="'.($show=='messages_compose'?'social-menu-text-active':'social-menu-text4').'" >'.get_lang('ComposeMessage').'</span></a></li>'; |
|
|
|
|
echo '<li class="social-menu-sub-level"><a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php?f=social">'.Display::return_icon('inbox.png', get_lang('Inbox'), array('hspace'=>'6')).'<span class="'.($show=='messages_inbox'?'social-menu-text-active':'social-menu-text4').'" >'.get_lang('Inbox').'</span></a></li>'; |
|
|
|
|
echo '<li class="social-menu-sub-level" style="background:none;padding:0px"><a href="'.api_get_path(WEB_PATH).'main/messages/outbox.php?f=social">'.Display::return_icon('outbox.png', get_lang('Outbox'), array('hspace'=>'6')).'<span class="'.($show=='messages_outbox'?'social-menu-text-active':'social-menu-text4').'" >'.get_lang('Outbox').'</span></a></li>'; |
|
|
|
|
echo '</ul></li>';*/ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//Invitations |
|
|
|
|
echo '<li><a href="'.api_get_path(WEB_PATH).'main/social/invitations.php">'.Display::return_icon('invitation.png',get_lang('Invitations'),array('hspace'=>'6')).'<span class="'.($show=='invitations'?'social-menu-text-active':'social-menu-text4').'" >'.get_lang('Invitations').$total_invitations.'</span></a></li>'; |
|
|
|
@ -688,7 +703,7 @@ class SocialManager extends UserManager { |
|
|
|
|
$html_actions = ''; |
|
|
|
|
|
|
|
|
|
if ($user_id != api_get_user_id()) { |
|
|
|
|
echo '<li><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 '<li><a href="'.api_get_path(WEB_PATH).'main/messages/send_message_to_userfriend.inc.php?height=300&width=550&user_friend='.$user_id.'&view=profile&view_panel=1" class="thickbox" title="'.get_lang('SendMessage').'">'; |
|
|
|
|
echo Display::return_icon('compose_message.png',get_lang('SendMessage')).' '.get_lang('SendMessage').'</a></li>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -699,12 +714,11 @@ class SocialManager extends UserManager { |
|
|
|
|
echo '<li><a href="'.api_get_path(WEB_PATH).'main/social/invitations.php">'.Display::return_icon('invitation.png',get_lang('YouAlreadySentAnInvitation')).' '.get_lang('YouAlreadySentAnInvitation').'</a></li>'; |
|
|
|
|
} else { |
|
|
|
|
if (!$show_full_profile) { |
|
|
|
|
echo '<li><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('invitation.png', get_lang('SocialInvitationToFriends')).' '.get_lang('SendInvitation').'</a></li>'; |
|
|
|
|
echo '<li><a href="'.api_get_path(WEB_PATH).'main/messages/send_message_to_userfriend.inc.php?view_panel=2&height=260&width=550&user_friend='.$user_id.'" class="thickbox" title="'.get_lang('SendInvitation').'">'.Display :: return_icon('invitation.png', get_lang('SocialInvitationToFriends')).' '.get_lang('SendInvitation').'</a></li>'; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
echo '</ul></div>'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
// ---- My Agenda Items |
|
|
|
|
$my_agenda_items = show_simple_personal_agenda($user_id); |
|
|
|
@ -762,11 +776,8 @@ class SocialManager extends UserManager { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
echo '</div>'; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Displays a sortable table with the list of online users. |
|
|
|
|
* @param array $user_list |
|
|
|
@ -1002,4 +1013,4 @@ class SocialManager extends UserManager { |
|
|
|
|
} |
|
|
|
|
return $content; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |