api_get_path(WEB_CODE_PATH).'mySpace/student.php',
'name' => get_lang('MyStudents'),
];
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'mySpace/myStudents.php?student='.$fromUserId,
'name' => get_lang('StudentDetails'),
];
$uniqueMessageList = [];
foreach ($messages as $message) {
$message['title'].
$subText = get_lang('From').': '.$usersData[$message['user_sender_id']]['complete_name'];
$title = empty($message['title']) ? get_lang('Untitled') : $message['title'];
$title = $title.' - '.$subText.''.Display::dateToStringAgoAndLongDate($message['send_date']).'';
$messageId = $message['id'];
$hash = sha1($message['title'].$message['content'].$message['send_date']);
if (in_array($hash, $uniqueMessageList)) {
continue;
}
$content .= Display::panelCollapse(
$title,
$message['content'].'
'.Display::dateToStringAgoAndLongDate($message['send_date']),
'message-'.$message['id'],
null,
'message-'.$message['id'],
'collapse-'.$message['id'],
false
);
$uniqueMessageList[] = $hash;
}
$template = new Template(get_lang('MessageTracking'));
$template->assign('content', $content);
$template->display_one_col_template();