|
@@ 4851-4856 (lines=6) @@
|
| 4848 |
|
} |
| 4849 |
|
|
| 4850 |
|
//Course visibility |
| 4851 |
|
if ($access_link && in_array('register', $access_link)) { |
| 4852 |
|
$my_course['register_button'] = Display::url( |
| 4853 |
|
Display::returnFontAwesomeIcon('sign-in'), |
| 4854 |
|
api_get_path(WEB_COURSE_PATH) . $course_info['path'] . '/index.php?action=subscribe&sec_token=' . $stok, |
| 4855 |
|
array('class' => 'btn btn-success btn-sm', 'title' => get_lang('Subscribe'))); |
| 4856 |
|
} |
| 4857 |
|
|
| 4858 |
|
if ($access_link && in_array('enter', |
| 4859 |
|
$access_link) || $course_info['visibility'] == COURSE_VISIBILITY_OPEN_WORLD |
|
@@ 4858-4865 (lines=8) @@
|
| 4855 |
|
array('class' => 'btn btn-success btn-sm', 'title' => get_lang('Subscribe'))); |
| 4856 |
|
} |
| 4857 |
|
|
| 4858 |
|
if ($access_link && in_array('enter', |
| 4859 |
|
$access_link) || $course_info['visibility'] == COURSE_VISIBILITY_OPEN_WORLD |
| 4860 |
|
) { |
| 4861 |
|
$my_course['go_to_course_button'] = Display::url( |
| 4862 |
|
Display::returnFontAwesomeIcon('share'), |
| 4863 |
|
api_get_path(WEB_COURSE_PATH) . $course_info['path'] . '/index.php', |
| 4864 |
|
array('class' => 'btn btn-default btn-sm', 'title' => get_lang('GoToCourse'))); |
| 4865 |
|
} |
| 4866 |
|
|
| 4867 |
|
if ($access_link && in_array('unsubscribe', $access_link)) { |
| 4868 |
|
$my_course['unsubscribe_button'] = Display::url( |