|
|
|
@ -898,7 +898,7 @@ class IndexManager |
|
|
|
|
$my_account_content = '<ul class="nav nav-list">'; |
|
|
|
|
|
|
|
|
|
if ($show_create_link) { |
|
|
|
|
$my_account_content .= '<li><a href="main/create_course/add_course.php" class="add course">'; |
|
|
|
|
$my_account_content .= '<li class="add-course"><a href="main/create_course/add_course.php">'; |
|
|
|
|
if (api_get_setting('course_validation') == 'true' && !api_is_platform_admin()) { |
|
|
|
|
$my_account_content .= get_lang('CreateCourseRequest'); |
|
|
|
|
} else { |
|
|
|
@ -909,19 +909,20 @@ class IndexManager |
|
|
|
|
|
|
|
|
|
//Sort courses |
|
|
|
|
$url = api_get_path(WEB_CODE_PATH).'auth/courses.php?action=sortmycourses'; |
|
|
|
|
$my_account_content .= '<li>'.Display::url(get_lang('SortMyCourses'), $url, array('class' => 'sort course')).'</li>'; |
|
|
|
|
$my_account_content .= '<li class="order-course">'.Display::url(get_lang('SortMyCourses'), $url, array('class' => 'sort course')).'</li>'; |
|
|
|
|
|
|
|
|
|
// Session history |
|
|
|
|
if (isset($_GET['history']) && intval($_GET['history']) == 1) { |
|
|
|
|
$my_account_content .= '<li><a href="user_portal.php">'.get_lang('DisplayTrainingList').'</a></li>'; |
|
|
|
|
} else { |
|
|
|
|
$my_account_content .= '<li><a href="user_portal.php?history=1" class="history course">'.get_lang('HistoryTrainingSessions').'</a></li>'; |
|
|
|
|
$my_account_content .= '<li class="history-course"><a href="user_portal.php?history=1" >'.get_lang('HistoryTrainingSessions').'</a></li>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Course catalog |
|
|
|
|
|
|
|
|
|
if ($show_course_link) { |
|
|
|
|
if (!api_is_drh()) { |
|
|
|
|
$my_account_content .= '<li><a href="main/auth/courses.php" class="list course">'.get_lang('CourseCatalog').'</a></li>'; |
|
|
|
|
$my_account_content .= '<li class="list-course"><a href="main/auth/courses.php" >'.get_lang('CourseCatalog').'</a></li>'; |
|
|
|
|
} else { |
|
|
|
|
$my_account_content .= '<li><a href="main/dashboard/index.php">'.get_lang('Dashboard').'</a></li>'; |
|
|
|
|
} |
|
|
|
|