@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | { |
45 | 45 | $exercise_list = array(); |
46 | 46 | if (!empty($personal_course_list)) { |
47 | - foreach($personal_course_list as $course_item) { |
|
47 | + foreach ($personal_course_list as $course_item) { |
|
48 | 48 | $course_code = $course_item['c']; |
49 | 49 | $session_id = $course_item['id_session']; |
50 | 50 | |
@@ -53,10 +53,10 @@ discard block |
||
53 | 53 | $session_id |
54 | 54 | ); |
55 | 55 | |
56 | - foreach($exercises as $exercise_item) { |
|
57 | - $exercise_item['course_code'] = $course_code; |
|
58 | - $exercise_item['session_id'] = $session_id; |
|
59 | - $exercise_item['tms'] = api_strtotime($exercise_item['end_time'], 'UTC'); |
|
56 | + foreach ($exercises as $exercise_item) { |
|
57 | + $exercise_item['course_code'] = $course_code; |
|
58 | + $exercise_item['session_id'] = $session_id; |
|
59 | + $exercise_item['tms'] = api_strtotime($exercise_item['end_time'], 'UTC'); |
|
60 | 60 | |
61 | 61 | $exercise_list[] = $exercise_item; |
62 | 62 | } |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | } |
176 | 176 | } |
177 | 177 | |
178 | - if ($show_menu && ($show_create_link || $show_course_link )) { |
|
178 | + if ($show_menu && ($show_create_link || $show_course_link)) { |
|
179 | 179 | $show_menu = true; |
180 | 180 | } else { |
181 | 181 | $show_menu = false; |
@@ -187,14 +187,14 @@ discard block |
||
187 | 187 | if ($show_menu) { |
188 | 188 | $html .= '<ul class="nav nav-pills nav-stacked">'; |
189 | 189 | if ($show_create_link) { |
190 | - $html .= '<li class="add-course"><a href="' . api_get_path(WEB_CODE_PATH) . 'create_course/add_course.php">'.Display::return_icon('new-course.png', get_lang('CourseCreate')).(api_get_setting('course_validation') == 'true' ? get_lang('CreateCourseRequest') : get_lang('CourseCreate')).'</a></li>'; |
|
190 | + $html .= '<li class="add-course"><a href="'.api_get_path(WEB_CODE_PATH).'create_course/add_course.php">'.Display::return_icon('new-course.png', get_lang('CourseCreate')).(api_get_setting('course_validation') == 'true' ? get_lang('CreateCourseRequest') : get_lang('CourseCreate')).'</a></li>'; |
|
191 | 191 | } |
192 | 192 | |
193 | 193 | if ($show_course_link) { |
194 | 194 | if (!api_is_drh() && !api_is_session_admin()) { |
195 | - $html .= '<li class="list-course"><a href="'. api_get_path(WEB_CODE_PATH) . 'auth/courses.php">'. Display::return_icon('catalog-course.png', get_lang('CourseCatalog')) .get_lang('CourseCatalog').'</a></li>'; |
|
195 | + $html .= '<li class="list-course"><a href="'.api_get_path(WEB_CODE_PATH).'auth/courses.php">'.Display::return_icon('catalog-course.png', get_lang('CourseCatalog')).get_lang('CourseCatalog').'</a></li>'; |
|
196 | 196 | } else { |
197 | - $html .= '<li><a href="' . api_get_path(WEB_CODE_PATH) . 'dashboard/index.php">'.get_lang('Dashboard').'</a></li>'; |
|
197 | + $html .= '<li><a href="'.api_get_path(WEB_CODE_PATH).'dashboard/index.php">'.get_lang('Dashboard').'</a></li>'; |
|
198 | 198 | } |
199 | 199 | } |
200 | 200 | $html .= '</ul>'; |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | $html = ''; |
219 | 219 | |
220 | 220 | if (!empty($_GET['include']) && preg_match('/^[a-zA-Z0-9_-]*\.html$/', $_GET['include'])) { |
221 | - $open = @(string)file_get_contents(api_get_path(SYS_PATH).$this->home.$_GET['include']); |
|
221 | + $open = @(string) file_get_contents(api_get_path(SYS_PATH).$this->home.$_GET['include']); |
|
222 | 222 | $html = api_to_system_encoding($open, api_detect_encoding(strip_tags($open))); |
223 | 223 | } else { |
224 | 224 | // Hiding home top when user not connected. |
@@ -248,15 +248,15 @@ discard block |
||
248 | 248 | $home_top_temp = file_get_contents($this->home.'home_top.html'); |
249 | 249 | } else { |
250 | 250 | if (file_exists($this->default_home.'home_top.html')) { |
251 | - $home_top_temp = file_get_contents($this->default_home . 'home_top.html'); |
|
251 | + $home_top_temp = file_get_contents($this->default_home.'home_top.html'); |
|
252 | 252 | } |
253 | 253 | } |
254 | 254 | } |
255 | 255 | |
256 | 256 | if (trim($home_top_temp) == '' && api_is_platform_admin()) { |
257 | - $home_top_temp = '<div class="welcome-mascot">' . get_lang('PortalHomepageDefaultIntroduction') . '</div>'; |
|
257 | + $home_top_temp = '<div class="welcome-mascot">'.get_lang('PortalHomepageDefaultIntroduction').'</div>'; |
|
258 | 258 | } else { |
259 | - $home_top_temp = '<div class="welcome-home-top-temp">' . $home_top_temp . '</div>'; |
|
259 | + $home_top_temp = '<div class="welcome-home-top-temp">'.$home_top_temp.'</div>'; |
|
260 | 260 | } |
261 | 261 | $open = str_replace('{rel_path}', api_get_path(REL_PATH), $home_top_temp); |
262 | 262 | $html = api_to_system_encoding($open, api_detect_encoding(strip_tags($open))); |
@@ -272,9 +272,9 @@ discard block |
||
272 | 272 | |
273 | 273 | $html = ''; |
274 | 274 | // Notice |
275 | - $home_notice = @(string)file_get_contents($sys_path.$this->home.'home_notice_'.$user_selected_language.'.html'); |
|
275 | + $home_notice = @(string) file_get_contents($sys_path.$this->home.'home_notice_'.$user_selected_language.'.html'); |
|
276 | 276 | if (empty($home_notice)) { |
277 | - $home_notice = @(string)file_get_contents($sys_path.$this->home.'home_notice.html'); |
|
277 | + $home_notice = @(string) file_get_contents($sys_path.$this->home.'home_notice.html'); |
|
278 | 278 | } |
279 | 279 | |
280 | 280 | if (!empty($home_notice)) { |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | } |
307 | 307 | |
308 | 308 | $html = null; |
309 | - $home_menu = @(string)file_get_contents($sys_path.$this->home.'home_menu_'.$user_selected_language.'.html'); |
|
309 | + $home_menu = @(string) file_get_contents($sys_path.$this->home.'home_menu_'.$user_selected_language.'.html'); |
|
310 | 310 | if (!empty($home_menu)) { |
311 | 311 | $home_menu_content = '<ul class="nav nav-pills nav-stacked">'; |
312 | 312 | $home_menu_content .= api_to_system_encoding($home_menu, api_detect_encoding(strip_tags($home_menu))); |
@@ -355,9 +355,9 @@ discard block |
||
355 | 355 | if (api_get_setting('allow_public_certificates') == 'true') { |
356 | 356 | $searchItem = Display::tag( |
357 | 357 | 'li', |
358 | - Display::url(Display::return_icon('search_graduation.png',get_lang('Search'),null,ICON_SIZE_SMALL). |
|
358 | + Display::url(Display::return_icon('search_graduation.png', get_lang('Search'), null, ICON_SIZE_SMALL). |
|
359 | 359 | get_lang('Search'), |
360 | - api_get_path(WEB_CODE_PATH) . "gradebook/search.php" |
|
360 | + api_get_path(WEB_CODE_PATH)."gradebook/search.php" |
|
361 | 361 | ) |
362 | 362 | ); |
363 | 363 | } |
@@ -365,19 +365,19 @@ discard block |
||
365 | 365 | if (empty($certificatesItem) && empty($searchItem)) { |
366 | 366 | return ''; |
367 | 367 | } else { |
368 | - $content.= $certificatesItem; |
|
369 | - $content.= $searchItem; |
|
368 | + $content .= $certificatesItem; |
|
369 | + $content .= $searchItem; |
|
370 | 370 | } |
371 | 371 | |
372 | 372 | if (api_get_setting('allow_skills_tool') == 'true') { |
373 | 373 | |
374 | - $content .= Display::tag('li', Display::url(Display::return_icon('skill-badges.png',get_lang('MySkills'),null,ICON_SIZE_SMALL).get_lang('MySkills'), api_get_path(WEB_CODE_PATH).'social/my_skills_report.php')); |
|
374 | + $content .= Display::tag('li', Display::url(Display::return_icon('skill-badges.png', get_lang('MySkills'), null, ICON_SIZE_SMALL).get_lang('MySkills'), api_get_path(WEB_CODE_PATH).'social/my_skills_report.php')); |
|
375 | 375 | $allowSkillsManagement = api_get_setting('allow_hr_skills_management') == 'true'; |
376 | 376 | if (($allowSkillsManagement && api_is_drh()) || api_is_platform_admin()) { |
377 | 377 | $content .= Display::tag('li', |
378 | 378 | Display::url(Display::return_icon('edit-skill.png', get_lang('MySkills'), null, |
379 | - ICON_SIZE_SMALL) . get_lang('ManageSkills'), |
|
380 | - api_get_path(WEB_CODE_PATH) . 'admin/skills_wheel.php')); |
|
379 | + ICON_SIZE_SMALL).get_lang('ManageSkills'), |
|
380 | + api_get_path(WEB_CODE_PATH).'admin/skills_wheel.php')); |
|
381 | 381 | } |
382 | 382 | } |
383 | 383 | $content .= '</ul>'; |
@@ -429,7 +429,7 @@ discard block |
||
429 | 429 | |
430 | 430 | // Get list of courses in category $category. |
431 | 431 | $sql_get_course_list = "SELECT * FROM $main_course_table cours |
432 | - WHERE category_code = '" . $category . "' |
|
432 | + WHERE category_code = '".$category."' |
|
433 | 433 | ORDER BY title, UPPER(visual_code)"; |
434 | 434 | |
435 | 435 | // Showing only the courses of the current access_url_id. |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | FROM $main_category_table t1 |
477 | 477 | LEFT JOIN $main_category_table t2 ON t1.code=t2.parent_id |
478 | 478 | LEFT JOIN $main_course_table t3 ON (t3.category_code = t1.code $platform_visible_courses) |
479 | - WHERE t1.parent_id ". (empty ($category) ? "IS NULL" : "='$category'")." |
|
479 | + WHERE t1.parent_id ".(empty ($category) ? "IS NULL" : "='$category'")." |
|
480 | 480 | GROUP BY t1.name,t1.code,t1.parent_id,t1.children_count ORDER BY t1.tree_pos, t1.name"; |
481 | 481 | |
482 | 482 | // Showing only the category of courses of the current access_url_id |
@@ -553,10 +553,10 @@ discard block |
||
553 | 553 | } |
554 | 554 | $result .= $htmlTitre; |
555 | 555 | if ($thereIsSubCat) { |
556 | - $result .= $htmlListCat; |
|
556 | + $result .= $htmlListCat; |
|
557 | 557 | } |
558 | 558 | while ($categoryName = Database::fetch_array($resCats)) { |
559 | - $result .= '<h3>' . $categoryName['name'] . "</h3>\n"; |
|
559 | + $result .= '<h3>'.$categoryName['name']."</h3>\n"; |
|
560 | 560 | } |
561 | 561 | $numrows = Database::num_rows($sql_result_courses); |
562 | 562 | $courses_list_string = ''; |
@@ -654,12 +654,12 @@ discard block |
||
654 | 654 | if ($courses_shown > 0) { |
655 | 655 | // Only display the list of courses and categories if there was more than |
656 | 656 | // 0 courses visible to the world (we're in the anonymous list here). |
657 | - $result .= $courses_list_string; |
|
657 | + $result .= $courses_list_string; |
|
658 | 658 | } |
659 | 659 | if ($category != '') { |
660 | - $result .= '<p><a href="'.api_get_self().'"> ' . |
|
660 | + $result .= '<p><a href="'.api_get_self().'"> '. |
|
661 | 661 | Display :: return_icon('back.png', get_lang('BackToHomePage')). |
662 | - get_lang('BackToHomePage') . '</a></p>'; |
|
662 | + get_lang('BackToHomePage').'</a></p>'; |
|
663 | 663 | } |
664 | 664 | return $result; |
665 | 665 | } |
@@ -736,14 +736,14 @@ discard block |
||
736 | 736 | ) { |
737 | 737 | if (!empty($idAccordion)) { |
738 | 738 | $html = null; |
739 | - $html .= '<div class="panel-group" id="'.$idAccordion.'" role="tablist" aria-multiselectable="true">' . PHP_EOL; |
|
740 | - $html .= '<div class="panel panel-default" id="'.$id.'">' . PHP_EOL; |
|
741 | - $html .= '<div class="panel-heading" role="tab"><h4 class="panel-title">' . PHP_EOL; |
|
742 | - $html .= '<a role="button" data-toggle="collapse" data-parent="#'.$idAccordion.'" href="#'.$idCollapse.'" aria-expanded="true" aria-controls="'.$idCollapse.'">'.$title.'</a>' . PHP_EOL; |
|
743 | - $html .= '</h4></div>' . PHP_EOL; |
|
744 | - $html .= '<div id="'.$idCollapse.'" class="panel-collapse collapse in" role="tabpanel">' . PHP_EOL; |
|
745 | - $html .= '<div class="panel-body">'.$content.'</div>' . PHP_EOL; |
|
746 | - $html .= '</div></div></div>' . PHP_EOL; |
|
739 | + $html .= '<div class="panel-group" id="'.$idAccordion.'" role="tablist" aria-multiselectable="true">'.PHP_EOL; |
|
740 | + $html .= '<div class="panel panel-default" id="'.$id.'">'.PHP_EOL; |
|
741 | + $html .= '<div class="panel-heading" role="tab"><h4 class="panel-title">'.PHP_EOL; |
|
742 | + $html .= '<a role="button" data-toggle="collapse" data-parent="#'.$idAccordion.'" href="#'.$idCollapse.'" aria-expanded="true" aria-controls="'.$idCollapse.'">'.$title.'</a>'.PHP_EOL; |
|
743 | + $html .= '</h4></div>'.PHP_EOL; |
|
744 | + $html .= '<div id="'.$idCollapse.'" class="panel-collapse collapse in" role="tabpanel">'.PHP_EOL; |
|
745 | + $html .= '<div class="panel-body">'.$content.'</div>'.PHP_EOL; |
|
746 | + $html .= '</div></div></div>'.PHP_EOL; |
|
747 | 747 | |
748 | 748 | } else { |
749 | 749 | if (!empty($id)) { |
@@ -752,9 +752,9 @@ discard block |
||
752 | 752 | $params['class'] = 'panel panel-default'; |
753 | 753 | $html = null; |
754 | 754 | if (!empty($title)) { |
755 | - $html .= '<div class="panel-heading">'.$title.'</div>' . PHP_EOL; |
|
755 | + $html .= '<div class="panel-heading">'.$title.'</div>'.PHP_EOL; |
|
756 | 756 | } |
757 | - $html.= '<div class="panel-body">'.$content.'</div>' . PHP_EOL; |
|
757 | + $html .= '<div class="panel-body">'.$content.'</div>'.PHP_EOL; |
|
758 | 758 | $html = Display::div($html, $params); |
759 | 759 | } |
760 | 760 | return $html; |
@@ -800,7 +800,7 @@ discard block |
||
800 | 800 | $usergroup_list = $usergroup->get_usergroup_by_user(api_get_user_id()); |
801 | 801 | $classes = ''; |
802 | 802 | if (!empty($usergroup_list)) { |
803 | - foreach($usergroup_list as $group_id) { |
|
803 | + foreach ($usergroup_list as $group_id) { |
|
804 | 804 | $data = $usergroup->get($group_id); |
805 | 805 | $data['name'] = Display::url($data['name'], api_get_path(WEB_CODE_PATH).'user/classes.php?id='.$data['id']); |
806 | 806 | $classes .= Display::tag('li', $data['name']); |
@@ -809,7 +809,7 @@ discard block |
||
809 | 809 | if (api_is_platform_admin()) { |
810 | 810 | $classes .= Display::tag( |
811 | 811 | 'li', |
812 | - Display::url(get_lang('AddClasses') ,api_get_path(WEB_CODE_PATH).'admin/usergroups.php?action=add') |
|
812 | + Display::url(get_lang('AddClasses'), api_get_path(WEB_CODE_PATH).'admin/usergroups.php?action=add') |
|
813 | 813 | ); |
814 | 814 | } |
815 | 815 | if (!empty($classes)) { |
@@ -831,11 +831,11 @@ discard block |
||
831 | 831 | $content = null; |
832 | 832 | |
833 | 833 | if (api_get_setting('allow_social_tool') == 'true') { |
834 | - $content .= '<a style="text-align:center" href="' . api_get_path(WEB_PATH) . 'main/social/home.php"> |
|
835 | - <img class="img-circle" src="' . $userPicture . '" ></a>'; |
|
834 | + $content .= '<a style="text-align:center" href="'.api_get_path(WEB_PATH).'main/social/home.php"> |
|
835 | + <img class="img-circle" src="' . $userPicture.'" ></a>'; |
|
836 | 836 | } else { |
837 | - $content .= '<a style="text-align:center" href="' . api_get_path(WEB_PATH) . 'main/auth/profile.php"> |
|
838 | - <img class="img-circle" title="' . get_lang('EditProfile') . '" src="' . $userPicture. '" ></a>'; |
|
837 | + $content .= '<a style="text-align:center" href="'.api_get_path(WEB_PATH).'main/auth/profile.php"> |
|
838 | + <img class="img-circle" title="' . get_lang('EditProfile').'" src="'.$userPicture.'" ></a>'; |
|
839 | 839 | } |
840 | 840 | |
841 | 841 | $html = self::show_right_block( |
@@ -887,12 +887,12 @@ discard block |
||
887 | 887 | if (api_get_setting('allow_social_tool') == 'true') { |
888 | 888 | $link = '?f=social'; |
889 | 889 | } |
890 | - $profile_content .= '<li class="inbox-message-social"><a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php'.$link.'">'.Display::return_icon('inbox.png',get_lang('Inbox'),null,ICON_SIZE_SMALL).get_lang('Inbox').$cant_msg.' </a></li>'; |
|
891 | - $profile_content .= '<li class="new-message-social"><a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php'.$link.'">'.Display::return_icon('new-message.png',get_lang('Compose'),null,ICON_SIZE_SMALL).get_lang('Compose').' </a></li>'; |
|
890 | + $profile_content .= '<li class="inbox-message-social"><a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php'.$link.'">'.Display::return_icon('inbox.png', get_lang('Inbox'), null, ICON_SIZE_SMALL).get_lang('Inbox').$cant_msg.' </a></li>'; |
|
891 | + $profile_content .= '<li class="new-message-social"><a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php'.$link.'">'.Display::return_icon('new-message.png', get_lang('Compose'), null, ICON_SIZE_SMALL).get_lang('Compose').' </a></li>'; |
|
892 | 892 | |
893 | 893 | if (api_get_setting('allow_social_tool') == 'true') { |
894 | 894 | $total_invitations = Display::badge($total_invitations); |
895 | - $profile_content .= '<li class="invitations-social"><a href="'.api_get_path(WEB_PATH).'main/social/invitations.php">'.Display::return_icon('invitations.png',get_lang('PendingInvitations'),null,ICON_SIZE_SMALL).get_lang('PendingInvitations').$total_invitations.'</a></li>'; |
|
895 | + $profile_content .= '<li class="invitations-social"><a href="'.api_get_path(WEB_PATH).'main/social/invitations.php">'.Display::return_icon('invitations.png', get_lang('PendingInvitations'), null, ICON_SIZE_SMALL).get_lang('PendingInvitations').$total_invitations.'</a></li>'; |
|
896 | 896 | } |
897 | 897 | |
898 | 898 | if (isset($_configuration['allow_my_files_link_in_homepage']) && $_configuration['allow_my_files_link_in_homepage']) { |
@@ -908,7 +908,7 @@ discard block |
||
908 | 908 | |
909 | 909 | $editProfileUrl = Display::getProfileEditionLink($user_id); |
910 | 910 | |
911 | - $profile_content .= '<li class="profile-social"><a href="' . $editProfileUrl . '">'.Display::return_icon('edit-profile.png',get_lang('EditProfile'),null,ICON_SIZE_SMALL).get_lang('EditProfile').'</a></li>'; |
|
911 | + $profile_content .= '<li class="profile-social"><a href="'.$editProfileUrl.'">'.Display::return_icon('edit-profile.png', get_lang('EditProfile'), null, ICON_SIZE_SMALL).get_lang('EditProfile').'</a></li>'; |
|
912 | 912 | $profile_content .= '</ul>'; |
913 | 913 | $html = self::show_right_block( |
914 | 914 | get_lang('Profile'), |
@@ -980,17 +980,17 @@ discard block |
||
980 | 980 | if ($show_create_link) { |
981 | 981 | $my_account_content .= '<li class="add-course"><a href="main/create_course/add_course.php">'; |
982 | 982 | if (api_get_setting('course_validation') == 'true' && !api_is_platform_admin()) { |
983 | - $my_account_content .= Display::return_icon('new-course.png',get_lang('CreateCourseRequest'),null,ICON_SIZE_SMALL); |
|
983 | + $my_account_content .= Display::return_icon('new-course.png', get_lang('CreateCourseRequest'), null, ICON_SIZE_SMALL); |
|
984 | 984 | $my_account_content .= get_lang('CreateCourseRequest'); |
985 | 985 | } else { |
986 | - $my_account_content .= Display::return_icon('new-course.png',get_lang('CourseCreate'),null,ICON_SIZE_SMALL); |
|
986 | + $my_account_content .= Display::return_icon('new-course.png', get_lang('CourseCreate'), null, ICON_SIZE_SMALL); |
|
987 | 987 | $my_account_content .= get_lang('CourseCreate'); |
988 | 988 | } |
989 | 989 | $my_account_content .= '</a></li>'; |
990 | 990 | |
991 | 991 | if (SessionManager::allowToManageSessions()) { |
992 | 992 | $my_account_content .= '<li class="add-course"><a href="main/session/session_add.php">'; |
993 | - $my_account_content .= Display::return_icon('session.png',get_lang('AddSession'),null,ICON_SIZE_SMALL); |
|
993 | + $my_account_content .= Display::return_icon('session.png', get_lang('AddSession'), null, ICON_SIZE_SMALL); |
|
994 | 994 | $my_account_content .= get_lang('AddSession'); |
995 | 995 | $my_account_content .= '</a></li>'; |
996 | 996 | } |
@@ -998,21 +998,21 @@ discard block |
||
998 | 998 | |
999 | 999 | //Sort courses |
1000 | 1000 | $url = api_get_path(WEB_CODE_PATH).'auth/courses.php?action=sortmycourses'; |
1001 | - $img_order= Display::return_icon('order-course.png',get_lang('SortMyCourses'),null,ICON_SIZE_SMALL); |
|
1001 | + $img_order = Display::return_icon('order-course.png', get_lang('SortMyCourses'), null, ICON_SIZE_SMALL); |
|
1002 | 1002 | $my_account_content .= '<li class="order-course">'.Display::url($img_order.get_lang('SortMyCourses'), $url, array('class' => 'sort course')).'</li>'; |
1003 | 1003 | |
1004 | 1004 | // Session history |
1005 | 1005 | if (isset($_GET['history']) && intval($_GET['history']) == 1) { |
1006 | - $my_account_content .= '<li class="history-course"><a href="user_portal.php">'.Display::return_icon('history-course.png',get_lang('DisplayTrainingList'),null,ICON_SIZE_SMALL).get_lang('DisplayTrainingList').'</a></li>'; |
|
1006 | + $my_account_content .= '<li class="history-course"><a href="user_portal.php">'.Display::return_icon('history-course.png', get_lang('DisplayTrainingList'), null, ICON_SIZE_SMALL).get_lang('DisplayTrainingList').'</a></li>'; |
|
1007 | 1007 | } else { |
1008 | - $my_account_content .= '<li class="history-course"><a href="user_portal.php?history=1" >'.Display::return_icon('history-course.png',get_lang('HistoryTrainingSessions'),null,ICON_SIZE_SMALL).get_lang('HistoryTrainingSessions').'</a></li>'; |
|
1008 | + $my_account_content .= '<li class="history-course"><a href="user_portal.php?history=1" >'.Display::return_icon('history-course.png', get_lang('HistoryTrainingSessions'), null, ICON_SIZE_SMALL).get_lang('HistoryTrainingSessions').'</a></li>'; |
|
1009 | 1009 | } |
1010 | 1010 | |
1011 | 1011 | // Course catalog |
1012 | 1012 | |
1013 | 1013 | if ($show_course_link) { |
1014 | 1014 | if (!api_is_drh()) { |
1015 | - $my_account_content .= '<li class="list-course"><a href="main/auth/courses.php" >'.Display::return_icon('catalog-course.png',get_lang('CourseCatalog'),null,ICON_SIZE_SMALL).get_lang('CourseCatalog').'</a></li>'; |
|
1015 | + $my_account_content .= '<li class="list-course"><a href="main/auth/courses.php" >'.Display::return_icon('catalog-course.png', get_lang('CourseCatalog'), null, ICON_SIZE_SMALL).get_lang('CourseCatalog').'</a></li>'; |
|
1016 | 1016 | } else { |
1017 | 1017 | $my_account_content .= '<li><a href="main/dashboard/index.php">'.get_lang('Dashboard').'</a></li>'; |
1018 | 1018 | } |
@@ -1181,10 +1181,10 @@ discard block |
||
1181 | 1181 | |
1182 | 1182 | $extra_info = !empty($session_box['coach']) ? $session_box['coach'] : null; |
1183 | 1183 | $extra_info .= !empty($session_box['coach']) |
1184 | - ? ' - ' . $session_box['dates'] |
|
1184 | + ? ' - '.$session_box['dates'] |
|
1185 | 1185 | : $session_box['dates']; |
1186 | 1186 | $extra_info .= isset($session_box['duration']) |
1187 | - ? ' ' . $session_box['duration'] |
|
1187 | + ? ' '.$session_box['duration'] |
|
1188 | 1188 | : null; |
1189 | 1189 | |
1190 | 1190 | $params['extra_fields'] = $session_box['extra_fields']; |
@@ -1297,8 +1297,8 @@ discard block |
||
1297 | 1297 | $sessionParams['course_list_session_style'] = $coursesListSessionStyle; |
1298 | 1298 | $sessionParams['title'] = $session_box['title']; |
1299 | 1299 | $sessionParams['subtitle'] = (!empty($session_box['coach']) |
1300 | - ? $session_box['coach'] . ' | ' |
|
1301 | - : '') . $session_box['dates']; |
|
1300 | + ? $session_box['coach'].' | ' |
|
1301 | + : '').$session_box['dates']; |
|
1302 | 1302 | $sessionParams['show_actions'] = api_is_platform_admin(); |
1303 | 1303 | $sessionParams['courses'] = $html_courses_session; |
1304 | 1304 | $sessionParams['show_simple_session_info'] = false; |
@@ -1348,14 +1348,14 @@ discard block |
||
1348 | 1348 | !empty($session_category_start_date) && |
1349 | 1349 | $session_category_start_date != '0000-00-00' |
1350 | 1350 | ) { |
1351 | - $categoryParams['subtitle'] = get_lang('From') . ' ' . $session_category_start_date; |
|
1351 | + $categoryParams['subtitle'] = get_lang('From').' '.$session_category_start_date; |
|
1352 | 1352 | } |
1353 | 1353 | |
1354 | 1354 | if ( |
1355 | 1355 | !empty($session_category_end_date) && |
1356 | 1356 | $session_category_end_date != '0000-00-00' |
1357 | 1357 | ) { |
1358 | - $categoryParams['subtitle'] = get_lang('Until') . ' ' . $session_category_end_date; |
|
1358 | + $categoryParams['subtitle'] = get_lang('Until').' '.$session_category_end_date; |
|
1359 | 1359 | } |
1360 | 1360 | } |
1361 | 1361 | |
@@ -1429,7 +1429,7 @@ discard block |
||
1429 | 1429 | if ($load_history) { |
1430 | 1430 | $html .= Display::page_subheader(get_lang('HistoryTrainingSession')); |
1431 | 1431 | if (empty($session_categories)) { |
1432 | - $html .= get_lang('YouDoNotHaveAnySessionInItsHistory'); |
|
1432 | + $html .= get_lang('YouDoNotHaveAnySessionInItsHistory'); |
|
1433 | 1433 | } |
1434 | 1434 | } |
1435 | 1435 | |
@@ -1502,7 +1502,7 @@ discard block |
||
1502 | 1502 | } else { |
1503 | 1503 | $htmlCategory .= '<div class="session-view-row" >'; |
1504 | 1504 | } |
1505 | - $coursesInfo = $listCourse['course']; |
|
1505 | + $coursesInfo = $listCourse['course']; |
|
1506 | 1506 | |
1507 | 1507 | $htmlCategory .= self::getHtmlForCourse( |
1508 | 1508 | $coursesInfo, |
@@ -1519,7 +1519,7 @@ discard block |
||
1519 | 1519 | $listCategorySession['catSessionName'] |
1520 | 1520 | ); |
1521 | 1521 | // list of session |
1522 | - $htmlSession = ''; // start |
|
1522 | + $htmlSession = ''; // start |
|
1523 | 1523 | foreach ($listCategorySession['sessionList'] as $k => $listSession) { |
1524 | 1524 | // add session |
1525 | 1525 | $htmlSession .= '<div class="session-view-row">'; |
@@ -1536,8 +1536,8 @@ discard block |
||
1536 | 1536 | $htmlSessionCategory .= $htmlSession; |
1537 | 1537 | } |
1538 | 1538 | $htmlSessionCategory .= '</div>'; // end session cat block |
1539 | - $htmlCategory .= $htmlSessionCategory .'</div>' ; |
|
1540 | - $htmlCategory .= ''; // end course block |
|
1539 | + $htmlCategory .= $htmlSessionCategory.'</div>'; |
|
1540 | + $htmlCategory .= ''; // end course block |
|
1541 | 1541 | } |
1542 | 1542 | $userCategoryHtml .= $htmlCategory; |
1543 | 1543 | } |
@@ -1562,11 +1562,11 @@ discard block |
||
1562 | 1562 | } |
1563 | 1563 | } |
1564 | 1564 | $htmlCategory .= ''; |
1565 | - $userCategoryHtml .= $htmlCategory; // end user cat block |
|
1565 | + $userCategoryHtml .= $htmlCategory; // end user cat block |
|
1566 | 1566 | if ($userCategoryId != 0) { |
1567 | 1567 | $userCategoryHtml .= '</div>'; |
1568 | 1568 | } |
1569 | - $html .= $userCategoryHtml; // |
|
1569 | + $html .= $userCategoryHtml; // |
|
1570 | 1570 | } |
1571 | 1571 | $html .= '</div>'; |
1572 | 1572 | |
@@ -1707,11 +1707,11 @@ discard block |
||
1707 | 1707 | $html = ''; |
1708 | 1708 | |
1709 | 1709 | if ($categorySessionId == 0) { |
1710 | - $class1 = 'session-view-lvl-2'; // session |
|
1711 | - $class2 = 'session-view-lvl-4'; // got to course in session link |
|
1710 | + $class1 = 'session-view-lvl-2'; // session |
|
1711 | + $class2 = 'session-view-lvl-4'; // got to course in session link |
|
1712 | 1712 | } else { |
1713 | - $class1 = 'session-view-lvl-3'; // session |
|
1714 | - $class2 = 'session-view-lvl-5'; // got to course in session link |
|
1713 | + $class1 = 'session-view-lvl-3'; // session |
|
1714 | + $class2 = 'session-view-lvl-5'; // got to course in session link |
|
1715 | 1715 | } |
1716 | 1716 | |
1717 | 1717 | $icon = Display::return_icon( |
@@ -1739,7 +1739,7 @@ discard block |
||
1739 | 1739 | if ($listA['userCatTitle'] == $listB['userCatTitle']) { |
1740 | 1740 | if ($listA['title'] == $listB['title']) { |
1741 | 1741 | return 0; |
1742 | - } else if($listA['title'] > $listB['title']) { |
|
1742 | + } else if ($listA['title'] > $listB['title']) { |
|
1743 | 1743 | return 1; |
1744 | 1744 | } else { |
1745 | 1745 | return -1; |
@@ -1760,7 +1760,7 @@ discard block |
||
1760 | 1760 | { |
1761 | 1761 | if ($listA['title'] == $listB['title']) { |
1762 | 1762 | return 0; |
1763 | - } else if($listA['title'] > $listB['title']) { |
|
1763 | + } else if ($listA['title'] > $listB['title']) { |
|
1764 | 1764 | return 1; |
1765 | 1765 | } else { |
1766 | 1766 | return -1; |