|
@@ 4884-4889 (lines=6) @@
|
| 4881 |
|
} |
| 4882 |
|
|
| 4883 |
|
//Course visibility |
| 4884 |
|
if ($access_link && in_array('register', $access_link)) { |
| 4885 |
|
$my_course['register_button'] = Display::url( |
| 4886 |
|
Display::returnFontAwesomeIcon('sign-in'), |
| 4887 |
|
api_get_path(WEB_COURSE_PATH) . $course_info['path'] . '/index.php?action=subscribe&sec_token=' . $stok, |
| 4888 |
|
array('class' => 'btn btn-success btn-sm', 'title' => get_lang('Subscribe'))); |
| 4889 |
|
} |
| 4890 |
|
|
| 4891 |
|
if ($access_link && in_array('enter', |
| 4892 |
|
$access_link) || $course_info['visibility'] == COURSE_VISIBILITY_OPEN_WORLD |
|
@@ 4891-4898 (lines=8) @@
|
| 4888 |
|
array('class' => 'btn btn-success btn-sm', 'title' => get_lang('Subscribe'))); |
| 4889 |
|
} |
| 4890 |
|
|
| 4891 |
|
if ($access_link && in_array('enter', |
| 4892 |
|
$access_link) || $course_info['visibility'] == COURSE_VISIBILITY_OPEN_WORLD |
| 4893 |
|
) { |
| 4894 |
|
$my_course['go_to_course_button'] = Display::url( |
| 4895 |
|
Display::returnFontAwesomeIcon('share'), |
| 4896 |
|
api_get_path(WEB_COURSE_PATH) . $course_info['path'] . '/index.php', |
| 4897 |
|
array('class' => 'btn btn-default btn-sm', 'title' => get_lang('GoToCourse'))); |
| 4898 |
|
} |
| 4899 |
|
|
| 4900 |
|
if ($access_link && in_array('unsubscribe', $access_link)) { |
| 4901 |
|
$my_course['unsubscribe_button'] = Display::url( |