43 $this->lng->loadLanguageModule(
'chat');
48 global $ilUser, $ilObjDataCache, $ilAccess,
$ilSetting, $rbacsystem;
50 include_once
'Modules/Chat/classes/class.ilChatServerCommunicator.php';
53 $last_message_info =
false;
55 if ($chatinfo !==
false)
58 if ($last_msg_info ==
false)
62 else if (
$_SESSION[
"il_notify_last_msg_checksum"] == $last_msg_info->entryId )
71 $last_msg = $last_msg_info->message;
73 $_SESSION[
"il_notify_last_msg_checksum"] = $last_msg_info->entryId;
75 $this->tpl->addJavascript(
'./Modules/Chat/js/ChatMessagesMainMenu.js');
76 $tpl =
new ilTemplate(
'tpl.chat_messages_navigation.html',
true,
true,
'Modules/Chat');
77 if((
int)$ilSetting->get(
'chat_sound_status') && (int)$ilUser->getPref(
'chat_new_message_sound_status'))
79 $tpl->setCurrentBlock(
'beep');
80 $tpl->setVariable(
'BEEP_SRC',
'./Modules/Chat/sounds/receive.mp3');
81 $tpl->parseCurrentBlock();
84 include_once
'Modules/Chat/classes/class.ilChatServerCommunicator.php';
86 $tpl->setVariable(
"CHAT_RECENT_POSTINGS", $this->lng->txt(
"chat_recent_postings"));
87 $tpl->setCurrentBlock(
'msg_item');
88 $tpl->setVariable(
"TXT_MSG", $last_msg);
89 $tpl->setVariable(
"TXT_ROOM", $chatinfo->chatTitle);
90 $tpl->parseCurrentBlock();