|
@@ 290-294 (lines=5) @@
|
| 287 |
|
|
| 288 |
|
if (api_get_user_id() && !api_is_anonymous()) { |
| 289 |
|
// My Courses |
| 290 |
|
if (api_get_setting('show_tabs', 'my_courses') == 'true') { |
| 291 |
|
$navigation['mycourses'] = $possible_tabs['mycourses']; |
| 292 |
|
} else { |
| 293 |
|
$menu_navigation['mycourses'] = $possible_tabs['mycourses']; |
| 294 |
|
} |
| 295 |
|
|
| 296 |
|
// My Profile |
| 297 |
|
if (api_get_setting('show_tabs', 'my_profile') == 'true' && |
|
@@ 306-310 (lines=5) @@
|
| 303 |
|
} |
| 304 |
|
|
| 305 |
|
// My Agenda |
| 306 |
|
if (api_get_setting('show_tabs', 'my_agenda') == 'true') { |
| 307 |
|
$navigation['myagenda'] = $possible_tabs['myagenda']; |
| 308 |
|
} else { |
| 309 |
|
$menu_navigation['myagenda'] = $possible_tabs['myagenda']; |
| 310 |
|
} |
| 311 |
|
|
| 312 |
|
// Gradebook |
| 313 |
|
if (api_get_setting('gradebook_enable') == 'true') { |
|
@@ 314-318 (lines=5) @@
|
| 311 |
|
|
| 312 |
|
// Gradebook |
| 313 |
|
if (api_get_setting('gradebook_enable') == 'true') { |
| 314 |
|
if (api_get_setting('show_tabs', 'my_gradebook') == 'true') { |
| 315 |
|
$navigation['mygradebook'] = $possible_tabs['mygradebook']; |
| 316 |
|
} else { |
| 317 |
|
$menu_navigation['mygradebook'] = $possible_tabs['mygradebook']; |
| 318 |
|
} |
| 319 |
|
} |
| 320 |
|
|
| 321 |
|
// Reporting |
|
@@ 375-379 (lines=5) @@
|
| 372 |
|
|
| 373 |
|
// Administration |
| 374 |
|
if (api_is_platform_admin(true)) { |
| 375 |
|
if (api_get_setting('show_tabs', 'platform_administration') == 'true') { |
| 376 |
|
$navigation['platform_admin'] = $possible_tabs['platform_admin']; |
| 377 |
|
} else { |
| 378 |
|
$menu_navigation['platform_admin'] = $possible_tabs['platform_admin']; |
| 379 |
|
} |
| 380 |
|
} |
| 381 |
|
|
| 382 |
|
// Reports |