api_get_path(WEB_PATH).'main/social/home.php','name' => get_lang('Social'));
$interbreadcrumb[]= array ('url' => 'inbox.php?f=social','name' => get_lang('Inbox'));
} else {
$this_section = SECTION_MYPROFILE;
$interbreadcrumb[]= array ('url' => '#','name' => get_lang('Profile'));
$interbreadcrumb[]= array ('url' => 'inbox.php','name' => get_lang('Inbox'));
}
$interbreadcrumb[]= array ('url' => '#','name' => get_lang('View'));
Display::display_header('');
if ($_GET['f']=='social') {
$social_parameter = '?f=social';
} else {
if (api_get_setting('extended_profile') == 'true') {
echo '
';
if (empty($_GET['id'])) {
$id_message = $_GET['id_send'];
$source = 'outbox';
$show_menu = 'messages_outbox';
} else {
$id_message = $_GET['id'];
$source = 'inbox';
$show_menu = 'messages_inbox';
}
$id_content_right = '';
//LEFT COLUMN
if (api_get_setting('allow_social_tool') != 'true') {
$id_content_right = 'inbox';
echo '';
} else {
require_once api_get_path(LIBRARY_PATH).'social.lib.php';
$id_content_right = 'social-content-right';
echo '
';
//this include the social menu div
SocialManager::show_social_menu($show_menu);
echo '
';
}
echo '
';
if (api_get_setting('allow_social_tool') == 'true'){
echo '
';
//echo '
'.Display::return_icon('content-post-group1.jpg',get_lang('View')).'
';
//echo '
';
}
//MAIN CONTENT
$message = MessageManager::show_message_box($id_message,$source);
if (!empty($message)) {
echo $message;
} else {
api_not_allowed();
}
if (api_get_setting('allow_social_tool') == 'true'){
echo '
';
//echo '
';
}
echo '
';
echo '
';
/* FOOTER */
Display::display_footer();
'; echo '- '.Display::return_icon('message_new.png',get_lang('ComposeMessage')).get_lang('ComposeMessage').''.'
';
echo '- '.Display::return_icon('inbox.png',get_lang('Inbox')).get_lang('Inbox').''.'
';
echo '- '.Display::return_icon('outbox.png',get_lang('Outbox')).get_lang('Outbox').''.'
';
echo '
'; echo '