|
@@ 4612-4617 (lines=6) @@
|
| 4609 |
|
); |
| 4610 |
|
|
| 4611 |
|
//Course visibility |
| 4612 |
|
if ($access_link && in_array('register', $access_link)) { |
| 4613 |
|
$my_course['extra_info']['register_button'] = Display::url( |
| 4614 |
|
Display::returnFontAwesomeIcon('sign-in'), |
| 4615 |
|
api_get_path(WEB_COURSE_PATH) . $course_info['path'] . '/index.php?action=subscribe&sec_token=' . $stok, |
| 4616 |
|
array('class' => 'btn btn-success btn-sm', 'title' => get_lang('Subscribe'))); |
| 4617 |
|
} |
| 4618 |
|
|
| 4619 |
|
if ($access_link && in_array('enter', |
| 4620 |
|
$access_link) || $course_info['visibility'] == COURSE_VISIBILITY_OPEN_WORLD |
|
@@ 4619-4626 (lines=8) @@
|
| 4616 |
|
array('class' => 'btn btn-success btn-sm', 'title' => get_lang('Subscribe'))); |
| 4617 |
|
} |
| 4618 |
|
|
| 4619 |
|
if ($access_link && in_array('enter', |
| 4620 |
|
$access_link) || $course_info['visibility'] == COURSE_VISIBILITY_OPEN_WORLD |
| 4621 |
|
) { |
| 4622 |
|
$my_course['extra_info']['go_to_course_button'] = Display::url( |
| 4623 |
|
Display::returnFontAwesomeIcon('share'), |
| 4624 |
|
api_get_path(WEB_COURSE_PATH) . $course_info['path'] . '/index.php', |
| 4625 |
|
array('class' => 'btn btn-default btn-sm', 'title' => get_lang('GoToCourse'))); |
| 4626 |
|
} |
| 4627 |
|
|
| 4628 |
|
if ($access_link && in_array('unsubscribe', $access_link)) { |
| 4629 |
|
$my_course['extra_info']['unsubscribe_button'] = Display::url( |