| @@ 94-102 (lines=9) @@ | ||
| 91 | // My account section. |
|
| 92 | $my_account_content = array(); |
|
| 93 | ||
| 94 | if ($display_add_course_link) { |
|
| 95 | $my_account_content[] = array( |
|
| 96 | 'href' => api_get_path(WEB_CODE_PATH).'create_course/add_course.php', |
|
| 97 | 'title' => api_get_setting('course.course_validation') == |
|
| 98 | 'true' ? get_lang('CreateCourseRequest') : get_lang( |
|
| 99 | 'CourseCreate' |
|
| 100 | ) |
|
| 101 | ); |
|
| 102 | } |
|
| 103 | ||
| 104 | // Sort courses. |
|
| 105 | $url = api_get_path(WEB_CODE_PATH).'auth/courses.php?action=sortmycourses'; |
|
| @@ 245-251 (lines=7) @@ | ||
| 242 | 'href' => api_get_path(WEB_CODE_PATH).'social/skills_wheel.php' |
|
| 243 | ); |
|
| 244 | ||
| 245 | if (api_get_setting('skill.allow_hr_skills_management') == 'true' |
|
| 246 | || api_is_platform_admin()) { |
|
| 247 | $content[] = array( |
|
| 248 | 'title' => get_lang('ManageSkills'), |
|
| 249 | 'href' => api_get_path(WEB_CODE_PATH).'admin/skills_wheel.php' |
|
| 250 | ); |
|
| 251 | } |
|
| 252 | $this->show_right_block(get_lang("Skills"), $content, 'skill_block'); |
|
| 253 | } |
|
| 254 | } |
|
| @@ 556-565 (lines=10) @@ | ||
| 553 | // My Account section |
|
| 554 | $elements = array(); |
|
| 555 | if ($show_menu) { |
|
| 556 | if ($show_create_link) { |
|
| 557 | $elements[] = array( |
|
| 558 | 'href' => api_get_path(WEB_CODE_PATH).'create_course/add_course.php', |
|
| 559 | 'title' => (api_get_setting( |
|
| 560 | 'course.course_validation' |
|
| 561 | ) == 'true' ? get_lang( |
|
| 562 | 'CreateCourseRequest' |
|
| 563 | ) : get_lang('CourseCreate')) |
|
| 564 | ); |
|
| 565 | } |
|
| 566 | ||
| 567 | if ($show_course_link) { |
|
| 568 | if (!api_is_drh() && !api_is_session_admin()) { |
|
| @@ 324-332 (lines=9) @@ | ||
| 321 | ) |
|
| 322 | ); |
|
| 323 | ||
| 324 | if (api_is_platform_admin()) { |
|
| 325 | $form->addElement( |
|
| 326 | 'SelectAjax', |
|
| 327 | 'user_id', |
|
| 328 | get_lang('Assign'), |
|
| 329 | null, |
|
| 330 | ['url' => api_get_path(WEB_AJAX_PATH).'user_manager.ajax.php?a=get_user_like'] |
|
| 331 | ); |
|
| 332 | } |
|
| 333 | ||
| 334 | $form->addElement( |
|
| 335 | 'text', |
|