api_get_path(WEB_PATH).'main/social/profile.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') { echo '
'; echo get_lang('Messages'); echo '
'; $social_parameter = '?f=social'; } else { if (api_get_setting('extended_profile') == 'true') { echo '
'; if (api_get_setting('allow_social_tool') == 'true' && api_get_setting('allow_message_tool') == 'true') { echo ''.Display::return_icon('shared_profile.png', get_lang('ViewSharedProfile')).' '.get_lang('ViewSharedProfile').''; } if (api_get_setting('allow_message_tool') == 'true') { echo ''.Display::return_icon('inbox.png').' '.get_lang('Messages').''; } echo ''.Display::return_icon('edit.gif', get_lang('EditNormalProfile')).' '.get_lang('EditNormalProfile').''; echo '
'; } } echo '
'; //LEFT COLUMN if (api_get_setting('allow_social_tool') != 'true') { echo '
'; echo ''; echo '
'; } else { require_once api_get_path(LIBRARY_PATH).'social.lib.php'; SocialManager::show_social_menu('messages'); } echo '
'; //MAIN CONTENT if (empty($_GET['id'])) { $id_message = $_GET['id_send']; $source = 'outbox'; } else { $id_message = $_GET['id']; $source = 'inbox'; } $message = MessageManager::show_message_box($id_message,$source); if (!empty($message)) { echo $message; } else { api_not_allowed(); } echo '
'; echo '
'; /* ============================================================================== FOOTER ============================================================================== */ Display::display_footer(); ?>