|
|
|
@ -4849,7 +4849,7 @@ class CourseManager |
|
|
|
|
$my_course['already_register_as'] = Display::tag( |
|
|
|
|
'button', |
|
|
|
|
$icon, |
|
|
|
|
array('id' => 'register', 'class' => 'btn btn-default btn-sm', 'title' => $title) |
|
|
|
|
array('id' => 'register', 'class' => 'btn btn-default btn-sm', 'title' => $title, 'aria-label' => $title) |
|
|
|
|
); |
|
|
|
|
} elseif ($user_registerd_in_course_as_teacher) { |
|
|
|
|
// if user registered as teacher |
|
|
|
@ -4858,7 +4858,7 @@ class CourseManager |
|
|
|
|
$my_course['already_register_as'] = Display::tag( |
|
|
|
|
'button', |
|
|
|
|
$icon, |
|
|
|
|
array('id' => 'register', 'class' => 'btn btn-default btn-sm', 'title' => $title) |
|
|
|
|
array('id' => 'register', 'class' => 'btn btn-default btn-sm', 'title' => $title, 'aria-label' => $title) |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -4867,7 +4867,7 @@ class CourseManager |
|
|
|
|
$my_course['register_button'] = Display::url( |
|
|
|
|
Display::returnFontAwesomeIcon('sign-in'), |
|
|
|
|
api_get_path(WEB_COURSE_PATH) . $course_info['path'] . '/index.php?action=subscribe&sec_token=' . $stok, |
|
|
|
|
array('class' => 'btn btn-success btn-sm', 'title' => get_lang('Subscribe'))); |
|
|
|
|
array('class' => 'btn btn-success btn-sm', 'title' => get_lang('Subscribe'), 'aria-label' => get_lang('Subscribe'))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($access_link && in_array('enter', |
|
|
|
@ -4876,14 +4876,14 @@ class CourseManager |
|
|
|
|
$my_course['go_to_course_button'] = Display::url( |
|
|
|
|
Display::returnFontAwesomeIcon('share'), |
|
|
|
|
api_get_path(WEB_COURSE_PATH) . $course_info['path'] . '/index.php', |
|
|
|
|
array('class' => 'btn btn-default btn-sm', 'title' => get_lang('GoToCourse'))); |
|
|
|
|
array('class' => 'btn btn-default btn-sm', 'title' => get_lang('GoToCourse'), 'aria-label' => get_lang('GoToCourse'))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($access_link && in_array('unsubscribe', $access_link)) { |
|
|
|
|
$my_course['unsubscribe_button'] = Display::url( |
|
|
|
|
Display::returnFontAwesomeIcon('sign-out'), |
|
|
|
|
api_get_path(WEB_CODE_PATH) . 'auth/courses.php?action=unsubscribe&unsubscribe=' . $courseCode . '&sec_token=' . $stok . '&category_code=' . $categoryCode, |
|
|
|
|
array('class' => 'btn btn-danger btn-sm', 'title' => get_lang('Unreg'))); |
|
|
|
|
array('class' => 'btn btn-danger btn-sm', 'title' => get_lang('Unreg'), 'aria-label' => get_lang('Unreg'))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// start buycourse validation |
|
|
|
|