$(function() { $().timelinr({ containerDiv: '#my_timeline', autoPlayPause: 2000 }) }); "; $pluginCalendar = api_get_plugin_setting('learning_calendar', 'enabled') === 'true'; if ($pluginCalendar) { $plugin = LearningCalendarPlugin::create(); $plugin->setJavaScript($htmlHeadXtra); } if (api_get_configuration_value('block_my_progress_page')) { api_not_allowed(true); } $user_id = api_get_user_id(); $courseUserList = CourseManager::get_courses_list_by_user_id($user_id); $dates = $issues = ''; $sessionId = isset($_GET['session_id']) ? (int) $_GET['session_id'] : 0; $courseCode = isset($_GET['course']) ? Security::remove_XSS($_GET['course']) : null; if (!empty($courseUserList)) { $items = MySpace::get_connections_from_course_list( $user_id, $courseUserList ); $first = null; $last = null; $last_item = count($items); $count = 1; foreach ($items as $result) { $login = $result['login']; $courseId = $result['c_id']; $courseInfo = api_get_course_info_by_id($courseId); if ($count == 1) { $first = ''.get_lang('First').''; } if ($count == $last_item) { $last = ''.get_lang('Last').''; } $course_info = api_get_course_info_by_id($result['c_id']); $course_image = ''; $dates .= '
'.sprintf( get_lang('YouHaveEnteredTheCourseXInY'), '" '.$courseInfo['name'].' "', api_convert_and_format_date($login, DATE_TIME_FORMAT_LONG) ).'
'; $issues .= '