api_get_path(WEB_PATH).'main/messages/inbox.php','name' => get_lang('Messages')); $social_right_content = null; if (isset($_GET['f']) && $_GET['f']=='social') { $social_parameter = '?f=social'; } else { if (api_get_setting('extended_profile') == 'true') { $social_right_content .= '
'; if (api_get_setting('allow_social_tool') == 'true' && api_get_setting('allow_message_tool') == 'true') { $social_right_content .= ''.Display::return_icon('shared_profile.png', get_lang('ViewSharedProfile')).''; } if (api_get_setting('allow_message_tool') == 'true') { //echo ''.Display::return_icon('inbox.png').' '.get_lang('Messages').''; $social_right_content .= ''.Display::return_icon('message_new.png',get_lang('ComposeMessage')).''; $social_right_content .= ''.Display::return_icon('inbox.png',get_lang('Inbox')).''; $social_right_content .= ''.Display::return_icon('outbox.png',get_lang('Outbox')).''; } $social_right_content .= '
'; } } 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'; } $message = MessageManager::show_message_box($id_message, $source); if (empty($message)) { api_not_allowed(); } $tpl = $app['template']; //$tpl->setTitle(get_lang('Read')); $tpl->assign('actions', $actions); $tpl->assign('message', $message); $tpl->assign('content', $social_right_content); $tpl->display_one_col_template();