|
@@ 4948-4953 (lines=6) @@
|
| 4945 |
|
} |
| 4946 |
|
|
| 4947 |
|
//Course visibility |
| 4948 |
|
if ($access_link && in_array('register', $access_link)) { |
| 4949 |
|
$my_course['register_button'] = Display::url( |
| 4950 |
|
Display::returnFontAwesomeIcon('sign-in'), |
| 4951 |
|
api_get_path(WEB_COURSE_PATH) . $course_info['path'] . '/index.php?action=subscribe&sec_token=' . $stok, |
| 4952 |
|
array('class' => 'btn btn-success btn-sm', 'title' => get_lang('Subscribe'))); |
| 4953 |
|
} |
| 4954 |
|
|
| 4955 |
|
if ($access_link && in_array('enter', |
| 4956 |
|
$access_link) || $course_info['visibility'] == COURSE_VISIBILITY_OPEN_WORLD |
|
@@ 4955-4962 (lines=8) @@
|
| 4952 |
|
array('class' => 'btn btn-success btn-sm', 'title' => get_lang('Subscribe'))); |
| 4953 |
|
} |
| 4954 |
|
|
| 4955 |
|
if ($access_link && in_array('enter', |
| 4956 |
|
$access_link) || $course_info['visibility'] == COURSE_VISIBILITY_OPEN_WORLD |
| 4957 |
|
) { |
| 4958 |
|
$my_course['go_to_course_button'] = Display::url( |
| 4959 |
|
Display::returnFontAwesomeIcon('share'), |
| 4960 |
|
api_get_path(WEB_COURSE_PATH) . $course_info['path'] . '/index.php', |
| 4961 |
|
array('class' => 'btn btn-default btn-sm', 'title' => get_lang('GoToCourse'))); |
| 4962 |
|
} |
| 4963 |
|
|
| 4964 |
|
if ($access_link && in_array('unsubscribe', $access_link)) { |
| 4965 |
|
$my_course['unsubscribe_button'] = Display::url( |