|
@@ 5107-5113 (lines=7) @@
|
| 5104 |
|
} |
| 5105 |
|
|
| 5106 |
|
// Go To Course button (only if admin, if course public or if student already subscribed) |
| 5107 |
|
if ($is_admin || |
| 5108 |
|
$course['visibility'] == COURSE_VISIBILITY_OPEN_WORLD && empty($course['registration_code']) || |
| 5109 |
|
(api_user_is_login($uid) && $course['visibility'] == COURSE_VISIBILITY_OPEN_PLATFORM && empty($course['registration_code'])) || |
| 5110 |
|
(in_array($course['real_id'], $user_courses) && $course['visibility'] != COURSE_VISIBILITY_CLOSED) |
| 5111 |
|
) { |
| 5112 |
|
$options[] = 'enter'; |
| 5113 |
|
} |
| 5114 |
|
|
| 5115 |
|
if ($is_admin || |
| 5116 |
|
$course['visibility'] == COURSE_VISIBILITY_OPEN_WORLD && empty($course['registration_code']) || |
|
@@ 5115-5121 (lines=7) @@
|
| 5112 |
|
$options[] = 'enter'; |
| 5113 |
|
} |
| 5114 |
|
|
| 5115 |
|
if ($is_admin || |
| 5116 |
|
$course['visibility'] == COURSE_VISIBILITY_OPEN_WORLD && empty($course['registration_code']) || |
| 5117 |
|
(api_user_is_login($uid) && $course['visibility'] == COURSE_VISIBILITY_OPEN_PLATFORM && empty($course['registration_code'])) || |
| 5118 |
|
(in_array($course['real_id'], $user_courses) && $course['visibility'] != COURSE_VISIBILITY_CLOSED) |
| 5119 |
|
) { |
| 5120 |
|
$options[] = 'enter'; |
| 5121 |
|
} |
| 5122 |
|
|
| 5123 |
|
if ($course['visibility'] != COURSE_VISIBILITY_HIDDEN && empty($course['registration_code']) && $course['unsubscribe'] == UNSUBSCRIBE_ALLOWED && api_user_is_login($uid) && (in_array($course['real_id'], |
| 5124 |
|
$user_courses)) |