|
@@ 5204-5210 (lines=7) @@
|
| 5201 |
|
} |
| 5202 |
|
|
| 5203 |
|
// Go To Course button (only if admin, if course public or if student already subscribed) |
| 5204 |
|
if ($is_admin || |
| 5205 |
|
$course['visibility'] == COURSE_VISIBILITY_OPEN_WORLD && empty($course['registration_code']) || |
| 5206 |
|
(api_user_is_login($uid) && $course['visibility'] == COURSE_VISIBILITY_OPEN_PLATFORM && empty($course['registration_code'])) || |
| 5207 |
|
(in_array($course['real_id'], $user_courses) && $course['visibility'] != COURSE_VISIBILITY_CLOSED) |
| 5208 |
|
) { |
| 5209 |
|
$options[] = 'enter'; |
| 5210 |
|
} |
| 5211 |
|
|
| 5212 |
|
if ($is_admin || |
| 5213 |
|
$course['visibility'] == COURSE_VISIBILITY_OPEN_WORLD && empty($course['registration_code']) || |
|
@@ 5212-5218 (lines=7) @@
|
| 5209 |
|
$options[] = 'enter'; |
| 5210 |
|
} |
| 5211 |
|
|
| 5212 |
|
if ($is_admin || |
| 5213 |
|
$course['visibility'] == COURSE_VISIBILITY_OPEN_WORLD && empty($course['registration_code']) || |
| 5214 |
|
(api_user_is_login($uid) && $course['visibility'] == COURSE_VISIBILITY_OPEN_PLATFORM && empty($course['registration_code'])) || |
| 5215 |
|
(in_array($course['real_id'], $user_courses) && $course['visibility'] != COURSE_VISIBILITY_CLOSED) |
| 5216 |
|
) { |
| 5217 |
|
$options[] = 'enter'; |
| 5218 |
|
} |
| 5219 |
|
|
| 5220 |
|
if ($course['visibility'] != COURSE_VISIBILITY_HIDDEN && empty($course['registration_code']) && $course['unsubscribe'] == UNSUBSCRIBE_ALLOWED && api_user_is_login($uid) && (in_array($course['real_id'], |
| 5221 |
|
$user_courses)) |