@@ -149,8 +149,8 @@ discard block |
||
149 | 149 | ); |
150 | 150 | } |
151 | 151 | } else { |
152 | - foreach($document_data['parents'] as $document_sub_data) { |
|
153 | - if (!isset($_GET['createdir']) && $document_sub_data['id'] == $document_data['id']) { |
|
152 | + foreach ($document_data['parents'] as $document_sub_data) { |
|
153 | + if (!isset($_GET['createdir']) && $document_sub_data['id'] == $document_data['id']) { |
|
154 | 154 | $document_sub_data['document_url'] = '#'; |
155 | 155 | } |
156 | 156 | $interbreadcrumb[] = array( |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | } |
181 | 181 | $js_glossary_in_documents = ''; |
182 | 182 | |
183 | -$js_glossary_in_documents = ' |
|
183 | +$js_glossary_in_documents = ' |
|
184 | 184 | $.frameReady(function(){ |
185 | 185 | // $("<div>I am a div courses</div>").prependTo("body"); |
186 | 186 | }, "top.mainFrame", |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | // PDF should be displayed with viewerJS |
201 | 201 | $web_odf_supported_files[] = 'pdf'; |
202 | 202 | if (in_array(strtolower($pathinfo['extension']), $web_odf_supported_files)) { |
203 | - $show_web_odf = true; |
|
203 | + $show_web_odf = true; |
|
204 | 204 | /* |
205 | 205 | $htmlHeadXtra[] = api_get_js('webodf/webodf.js'); |
206 | 206 | $htmlHeadXtra[] = api_get_css(api_get_path(WEB_LIBRARY_PATH).'javascript/webodf/webodf.css'); |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | $htmlHeadXtra[] = api_get_js('highlight/highlight.pack.js'); |
244 | 244 | $htmlHeadXtra[] = api_get_css(api_get_path(WEB_CSS_PATH).'chat.css'); |
245 | 245 | $htmlHeadXtra[] = api_get_css( |
246 | - api_get_path(WEB_LIBRARY_PATH) . 'javascript/highlight/styles/github.css' |
|
246 | + api_get_path(WEB_LIBRARY_PATH).'javascript/highlight/styles/github.css' |
|
247 | 247 | ); |
248 | 248 | $htmlHeadXtra[] = ' |
249 | 249 | <script> |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | $execute_iframe = true; |
255 | 255 | if ($jplayer_supported) { |
256 | 256 | $extension = api_strtolower($pathinfo['extension']); |
257 | - if ($extension == 'mp4') { |
|
257 | + if ($extension == 'mp4') { |
|
258 | 258 | $extension = 'm4v'; |
259 | 259 | } |
260 | 260 | $js_path = api_get_path(WEB_LIBRARY_PATH).'javascript/'; |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | $execute_iframe = false; |
296 | 296 | } |
297 | 297 | |
298 | -$is_freemind_available = $pathinfo['extension']=='mm' && api_get_setting('enable_freemind') == 'true'; |
|
298 | +$is_freemind_available = $pathinfo['extension'] == 'mm' && api_get_setting('enable_freemind') == 'true'; |
|
299 | 299 | if ($is_freemind_available) { |
300 | 300 | $execute_iframe = false; |
301 | 301 | } |
@@ -339,18 +339,18 @@ discard block |
||
339 | 339 | $file_url_web = $file_url.'?'.api_get_cidreq(); |
340 | 340 | |
341 | 341 | if (in_array(strtolower($pathinfo['extension']), array('html', "htm"))) { |
342 | - echo '<a class="btn btn-default" href="' . $file_url_web . '" target="_blank">' . get_lang('CutPasteLink') . '</a>'; |
|
342 | + echo '<a class="btn btn-default" href="'.$file_url_web.'" target="_blank">'.get_lang('CutPasteLink').'</a>'; |
|
343 | 343 | } |
344 | 344 | |
345 | 345 | if ($show_web_odf) { |
346 | 346 | $browser = api_get_navigator(); |
347 | - $pdfUrl = api_get_path(WEB_LIBRARY_PATH) . 'javascript/ViewerJS/index.html#' . $file_url; |
|
347 | + $pdfUrl = api_get_path(WEB_LIBRARY_PATH).'javascript/ViewerJS/index.html#'.$file_url; |
|
348 | 348 | if ($browser['name'] == 'Mozilla' && preg_match('|.*\.pdf|i', $header_file)) { |
349 | 349 | $pdfUrl = $file_url; |
350 | 350 | } |
351 | 351 | echo '<div id="viewerJS">'; |
352 | 352 | echo '<iframe id="viewerJSContent" frameborder="0" allowfullscreen="allowfullscreen" webkitallowfullscreen style="width:100%;" |
353 | - src="' . $pdfUrl. '"> |
|
353 | + src="' . $pdfUrl.'"> |
|
354 | 354 | </iframe>'; |
355 | 355 | echo '</div>'; |
356 | 356 | } elseif (!$originIsLearnpath) { |
@@ -91,11 +91,11 @@ |
||
91 | 91 | $pathinfo = pathinfo($header_file); |
92 | 92 | |
93 | 93 | if ($pathinfo['extension']=='swf') { |
94 | - $width='83%'; |
|
95 | - $height='83%'; |
|
94 | + $width='83%'; |
|
95 | + $height='83%'; |
|
96 | 96 | } else { |
97 | - $width='100%'; |
|
98 | - $height='100%'; |
|
97 | + $width='100%'; |
|
98 | + $height='100%'; |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | echo '<iframe border="0" frameborder="0" scrolling="no" style="width:'.$width.'; height:'.$height.';background-color:#ffffff;" id="mainFrame" name="mainFrame" src="'.$file_url_web.'?'.api_get_cidreq().'&rand='.mt_rand(1, 1000).'"></iframe>'; |
@@ -90,12 +90,12 @@ |
||
90 | 90 | $file_url_web = api_get_path(WEB_COURSE_PATH).$_course['path'].'/document'.$header_file.'?'.api_get_cidreq(); |
91 | 91 | $pathinfo = pathinfo($header_file); |
92 | 92 | |
93 | -if ($pathinfo['extension']=='swf') { |
|
94 | - $width='83%'; |
|
95 | - $height='83%'; |
|
93 | +if ($pathinfo['extension'] == 'swf') { |
|
94 | + $width = '83%'; |
|
95 | + $height = '83%'; |
|
96 | 96 | } else { |
97 | - $width='100%'; |
|
98 | - $height='100%'; |
|
97 | + $width = '100%'; |
|
98 | + $height = '100%'; |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | echo '<iframe border="0" frameborder="0" scrolling="no" style="width:'.$width.'; height:'.$height.';background-color:#ffffff;" id="mainFrame" name="mainFrame" src="'.$file_url_web.'?'.api_get_cidreq().'&rand='.mt_rand(1, 1000).'"></iframe>'; |
@@ -15,16 +15,16 @@ discard block |
||
15 | 15 | //Add the JS needed to use the jqgrid |
16 | 16 | $htmlHeadXtra[] = api_get_jqgrid_js(); |
17 | 17 | // setting breadcrumbs |
18 | -$interbreadcrumb[] = array('url' => 'index.php','name' => get_lang('PlatformAdmin')); |
|
18 | +$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin')); |
|
19 | 19 | $action = isset($_GET['action']) ? $_GET['action'] : null; |
20 | 20 | if ($action == 'add') { |
21 | - $interbreadcrumb[] = array('url' => 'usergroups.php','name' => get_lang('Classes')); |
|
22 | - $interbreadcrumb[] = array('url' => '#','name' => get_lang('Add')); |
|
21 | + $interbreadcrumb[] = array('url' => 'usergroups.php', 'name' => get_lang('Classes')); |
|
22 | + $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('Add')); |
|
23 | 23 | } elseif ($action == 'edit') { |
24 | - $interbreadcrumb[] = array('url' => 'usergroups.php','name' => get_lang('Classes')); |
|
25 | - $interbreadcrumb[] = array('url' => '#','name' => get_lang('Edit')); |
|
24 | + $interbreadcrumb[] = array('url' => 'usergroups.php', 'name' => get_lang('Classes')); |
|
25 | + $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('Edit')); |
|
26 | 26 | } else { |
27 | - $interbreadcrumb[] = array('url' => '#','name' => get_lang('Classes')); |
|
27 | + $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('Classes')); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | // The header. |
@@ -55,13 +55,13 @@ discard block |
||
55 | 55 | ); |
56 | 56 | |
57 | 57 | //Column config |
58 | -$column_model = array( |
|
59 | - array('name'=>'name', 'index'=>'name', 'width'=>'35', 'align'=>'left'), |
|
60 | - array('name'=>'users', 'index'=>'users', 'width'=>'15', 'align'=>'left'), |
|
61 | - array('name'=>'courses', 'index'=>'courses', 'width'=>'15', 'align'=>'left'), |
|
62 | - array('name'=>'sessions', 'index'=>'sessions', 'width'=>'15', 'align'=>'left'), |
|
63 | - array('name'=>'group_type', 'index'=>'group_type', 'width'=>'15', 'align'=>'center'), |
|
64 | - array('name'=>'actions', 'index'=>'actions', 'width'=>'20', 'align'=>'center', 'sortable'=>'false','formatter'=>'action_formatter'), |
|
58 | +$column_model = array( |
|
59 | + array('name'=>'name', 'index'=>'name', 'width'=>'35', 'align'=>'left'), |
|
60 | + array('name'=>'users', 'index'=>'users', 'width'=>'15', 'align'=>'left'), |
|
61 | + array('name'=>'courses', 'index'=>'courses', 'width'=>'15', 'align'=>'left'), |
|
62 | + array('name'=>'sessions', 'index'=>'sessions', 'width'=>'15', 'align'=>'left'), |
|
63 | + array('name'=>'group_type', 'index'=>'group_type', 'width'=>'15', 'align'=>'center'), |
|
64 | + array('name'=>'actions', 'index'=>'actions', 'width'=>'20', 'align'=>'center', 'sortable'=>'false', 'formatter'=>'action_formatter'), |
|
65 | 65 | ); |
66 | 66 | |
67 | 67 | //Autowidth |
@@ -73,11 +73,11 @@ discard block |
||
73 | 73 | //With this function we can add actions to the jgrid |
74 | 74 | $action_links = 'function action_formatter (cellvalue, options, rowObject) { |
75 | 75 | return \'' |
76 | - .' <a href="add_users_to_usergroup.php?id=\'+options.rowId+\'">' . Display::return_icon('user_to_class.png', get_lang('SubscribeUsersToClass'), null, ICON_SIZE_MEDIUM) . '</a>' |
|
77 | - .' <a href="add_courses_to_usergroup.php?id=\'+options.rowId+\'">' . Display::return_icon('course_to_class.png', get_lang('SubscribeClassToCourses'), null, ICON_SIZE_MEDIUM) . '</a>' |
|
78 | - .' <a href="add_sessions_to_usergroup.php?id=\'+options.rowId+\'">' . Display::return_icon('sessions_to_class.png', get_lang('SubscribeClassToSessions'), null, ICON_SIZE_MEDIUM) . '</a>' |
|
79 | - .' <a href="?action=edit&id=\'+options.rowId+\'">' . Display::return_icon('edit.png', get_lang('Edit'), null, ICON_SIZE_SMALL) . '</a>' |
|
80 | - .' <a onclick="javascript:if(!confirm('."\'".addslashes(api_htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES))."\'".')) return false;" href="?action=delete&id=\'+options.rowId+\'">' . Display::return_icon('delete.png', get_lang('Delete'), null, ICON_SIZE_SMALL) . '</a>\'; |
|
76 | + .' <a href="add_users_to_usergroup.php?id=\'+options.rowId+\'">'.Display::return_icon('user_to_class.png', get_lang('SubscribeUsersToClass'), null, ICON_SIZE_MEDIUM).'</a>' |
|
77 | + .' <a href="add_courses_to_usergroup.php?id=\'+options.rowId+\'">'.Display::return_icon('course_to_class.png', get_lang('SubscribeClassToCourses'), null, ICON_SIZE_MEDIUM).'</a>' |
|
78 | + .' <a href="add_sessions_to_usergroup.php?id=\'+options.rowId+\'">'.Display::return_icon('sessions_to_class.png', get_lang('SubscribeClassToSessions'), null, ICON_SIZE_MEDIUM).'</a>' |
|
79 | + .' <a href="?action=edit&id=\'+options.rowId+\'">'.Display::return_icon('edit.png', get_lang('Edit'), null, ICON_SIZE_SMALL).'</a>' |
|
80 | + .' <a onclick="javascript:if(!confirm('."\'".addslashes(api_htmlentities(get_lang("ConfirmYourChoice"), ENT_QUOTES))."\'".')) return false;" href="?action=delete&id=\'+options.rowId+\'">'.Display::return_icon('delete.png', get_lang('Delete'), null, ICON_SIZE_SMALL).'</a>\'; |
|
81 | 81 | }'; |
82 | 82 | |
83 | 83 | ?> |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | } else { |
129 | 129 | echo '<div class="actions">'; |
130 | 130 | echo '<a href="'.api_get_self().'">'. |
131 | - Display::return_icon('back.png',get_lang('Back'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
131 | + Display::return_icon('back.png', get_lang('Back'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
132 | 132 | echo '</div>'; |
133 | 133 | $token = Security::get_token(); |
134 | 134 | $form->addElement('hidden', 'sec_token'); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | |
43 | 43 | return $this->render( |
44 | 44 | '@ChamiloPage/latest.html.twig', |
45 | - [ 'pages' => $pagesToShow ] |
|
45 | + ['pages' => $pagesToShow] |
|
46 | 46 | ); |
47 | 47 | } |
48 | 48 | } |
49 | 49 | \ No newline at end of file |
@@ -136,7 +136,7 @@ |
||
136 | 136 | ); |
137 | 137 | /** @var Category $category */ |
138 | 138 | foreach ($categories as $category) { |
139 | - $faq->addChild( |
|
139 | + $faq->addChild( |
|
140 | 140 | $category->getHeadline(), |
141 | 141 | array( |
142 | 142 | 'route' => 'faq', |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | * @param $stok |
429 | 429 | * @param $code |
430 | 430 | * @param $search_term |
431 | - * @return html |
|
431 | + * @return string |
|
432 | 432 | */ |
433 | 433 | function return_register_button($course, $stok, $code, $search_term) |
434 | 434 | { |
@@ -443,7 +443,7 @@ discard block |
||
443 | 443 | * @param $stok |
444 | 444 | * @param $search_term |
445 | 445 | * @param $code |
446 | - * @return html |
|
446 | + * @return string |
|
447 | 447 | */ |
448 | 448 | function return_unregister_button($course, $stok, $search_term, $code) |
449 | 449 | { |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $el.prepend('<?php echo Display::display_icon('nolines_minus.gif'); ?>'); |
61 | 61 | |
62 | 62 | $.ajax({ |
63 | - url: '<?php echo api_get_path(WEB_AJAX_PATH) . 'course.ajax.php' ?>', |
|
63 | + url: '<?php echo api_get_path(WEB_AJAX_PATH).'course.ajax.php' ?>', |
|
64 | 64 | type: 'GET', |
65 | 65 | dataType: 'json', |
66 | 66 | data: { |
@@ -128,9 +128,9 @@ discard block |
||
128 | 128 | $pageLength = (!empty($_REQUEST['pageLength']) ? intval($_REQUEST['pageLength']) : 10); |
129 | 129 | $pageCurrent = (!empty($_REQUEST['pageCurrent']) ? intval($_REQUEST['pageCurrent']) : 1); |
130 | 130 | $form = '<form action="'.$webAction.'" method="GET" class="form-horizontal">'; |
131 | - $form .= '<input type="hidden" name="action" value="' . $action . '">'; |
|
132 | - $form .= '<input type="hidden" name="pageCurrent" value="' . $pageCurrent . '">'; |
|
133 | - $form .= '<input type="hidden" name="pageLength" value="' . $pageLength . '">'; |
|
131 | + $form .= '<input type="hidden" name="action" value="'.$action.'">'; |
|
132 | + $form .= '<input type="hidden" name="pageCurrent" value="'.$pageCurrent.'">'; |
|
133 | + $form .= '<input type="hidden" name="pageLength" value="'.$pageLength.'">'; |
|
134 | 134 | $form .= '<div class="form-group">'; |
135 | 135 | $form .= '<div class="col-sm-12">'; |
136 | 136 | $form .= '<select name="category_code" onchange="submit();" class="selectpicker show-tick form-control">'; |
@@ -138,11 +138,11 @@ discard block |
||
138 | 138 | foreach ($browse_course_categories[0] as $category) { |
139 | 139 | $categoryCode = $category['code']; |
140 | 140 | $countCourse = $category['count_courses']; |
141 | - $form .= '<option '. ($categoryCode == $codeType? 'selected="selected" ':'') .' value="' . $category['code'] . '">' . $category['name'] . ' ( '. $countCourse .' ) </option>'; |
|
141 | + $form .= '<option '.($categoryCode == $codeType ? 'selected="selected" ' : '').' value="'.$category['code'].'">'.$category['name'].' ( '.$countCourse.' ) </option>'; |
|
142 | 142 | if (!empty($browse_course_categories[$categoryCode])) { |
143 | - foreach ($browse_course_categories[$categoryCode] as $subCategory){ |
|
143 | + foreach ($browse_course_categories[$categoryCode] as $subCategory) { |
|
144 | 144 | $subCategoryCode = $subCategory['code']; |
145 | - $form .= '<option '. ($subCategoryCode == $codeType ? 'selected="selected" ':'') .' value="' . $subCategory['code'] . '"> ---' . $subCategory['name'] . ' ( '. $subCategory['count_courses'] .' ) </option>'; |
|
145 | + $form .= '<option '.($subCategoryCode == $codeType ? 'selected="selected" ' : '').' value="'.$subCategory['code'].'"> ---'.$subCategory['name'].' ( '.$subCategory['count_courses'].' ) </option>'; |
|
146 | 146 | } |
147 | 147 | } |
148 | 148 | } |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | if (!empty($categoryTitle)) { |
321 | 321 | $listCategory = CourseManager::getCategoriesList(); |
322 | 322 | $categoryTitle = $listCategory[$categoryTitle]; |
323 | - $html .= '<span class="category">'. $categoryTitle.'</span>'; |
|
323 | + $html .= '<span class="category">'.$categoryTitle.'</span>'; |
|
324 | 324 | $html .= '<div class="cribbon"></div>'; |
325 | 325 | } |
326 | 326 | $teachers = CourseManager::getTeachersFromCourseByCode($course['code']); |
@@ -331,13 +331,13 @@ discard block |
||
331 | 331 | if ($count > 2) { |
332 | 332 | break; |
333 | 333 | } |
334 | - $name = $value['firstname'].' ' . $value['lastname']; |
|
334 | + $name = $value['firstname'].' '.$value['lastname']; |
|
335 | 335 | $html .= '<a href="'.$value['url'].'" class="ajax" data-title="'.$name.'"> |
336 | 336 | <img src="'.$value['avatar'].'"/></a>'; |
337 | 337 | $html .= '<div class="teachers-details"><h5> |
338 | 338 | <a href="'.$value['url'].'" class="ajax" data-title="'.$name.'">' |
339 | - . $name . '</a></h5></div>'; |
|
340 | - $count ++; |
|
339 | + . $name.'</a></h5></div>'; |
|
340 | + $count++; |
|
341 | 341 | } |
342 | 342 | $html .= '</div></div>'; |
343 | 343 | $html .= '<div class="user-actions">'; |
@@ -360,8 +360,8 @@ discard block |
||
360 | 360 | $title = cut($course['title'], 70); |
361 | 361 | $ajax_url = api_get_path(WEB_AJAX_PATH).'course.ajax.php?a=add_course_vote'; |
362 | 362 | $rating = Display::return_rating_system('star_'.$course['real_id'], $ajax_url.'&course_id='.$course['real_id'], $course['point_info']); |
363 | - $html .= '<h4 class="title"><a href="' . $linkCourse . '">' . cut($title, 60) . '</a></h4>'; |
|
364 | - $html .= '<div class="ranking">'. $rating . '</div>'; |
|
363 | + $html .= '<h4 class="title"><a href="'.$linkCourse.'">'.cut($title, 60).'</a></h4>'; |
|
364 | + $html .= '<div class="ranking">'.$rating.'</div>'; |
|
365 | 365 | |
366 | 366 | return $html; |
367 | 367 | } |
@@ -376,8 +376,8 @@ discard block |
||
376 | 376 | $title = $course['title']; |
377 | 377 | $html = ''; |
378 | 378 | if (api_get_setting('show_courses_descriptions_in_catalog') == 'true') { |
379 | - $html = '<a data-title="' . $title . '" class="ajax btn btn-default btn-sm" href="'.api_get_path(WEB_CODE_PATH).'inc/ajax/course_home.ajax.php?a=show_course_information&code='.$course['code'].'" title="' . get_lang('Description') . '">' . |
|
380 | - Display::returnFontAwesomeIcon('info-circle') . '</a>'; |
|
379 | + $html = '<a data-title="'.$title.'" class="ajax btn btn-default btn-sm" href="'.api_get_path(WEB_CODE_PATH).'inc/ajax/course_home.ajax.php?a=show_course_information&code='.$course['code'].'" title="'.get_lang('Description').'">'. |
|
380 | + Display::returnFontAwesomeIcon('info-circle').'</a>'; |
|
381 | 381 | } |
382 | 382 | |
383 | 383 | return $html; |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | */ |
391 | 391 | function return_goto_button($course) |
392 | 392 | { |
393 | - $html = ' <a class="btn btn-default btn-sm" title="' . get_lang('GoToCourse') . '" href="'.api_get_course_url($course['code']).'">'. |
|
393 | + $html = ' <a class="btn btn-default btn-sm" title="'.get_lang('GoToCourse').'" href="'.api_get_course_url($course['code']).'">'. |
|
394 | 394 | Display::returnFontAwesomeIcon('share').'</a>'; |
395 | 395 | |
396 | 396 | return $html; |
@@ -429,8 +429,8 @@ discard block |
||
429 | 429 | */ |
430 | 430 | function return_register_button($course, $stok, $code, $search_term) |
431 | 431 | { |
432 | - $html = ' <a class="btn btn-success btn-sm" title="' . get_lang('Subscribe') . '" href="'.api_get_self().'?action=subscribe_course&sec_token='.$stok.'&subscribe_course='.$course['code'].'&search_term='.$search_term.'&category_code='.$code.'">' . |
|
433 | - Display::returnFontAwesomeIcon('sign-in') . '</a>'; |
|
432 | + $html = ' <a class="btn btn-success btn-sm" title="'.get_lang('Subscribe').'" href="'.api_get_self().'?action=subscribe_course&sec_token='.$stok.'&subscribe_course='.$course['code'].'&search_term='.$search_term.'&category_code='.$code.'">'. |
|
433 | + Display::returnFontAwesomeIcon('sign-in').'</a>'; |
|
434 | 434 | return $html; |
435 | 435 | } |
436 | 436 | |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | */ |
445 | 445 | function return_unregister_button($course, $stok, $search_term, $code) |
446 | 446 | { |
447 | - $html = ' <a class="btn btn-danger btn-sm" title="' . get_lang('Unsubscribe') . '" href="'. api_get_self().'?action=unsubscribe&sec_token='.$stok.'&unsubscribe='.$course['code'].'&search_term='.$search_term.'&category_code='.$code.'">' . |
|
448 | - Display::returnFontAwesomeIcon('sign-out') . '</a>'; |
|
447 | + $html = ' <a class="btn btn-danger btn-sm" title="'.get_lang('Unsubscribe').'" href="'.api_get_self().'?action=unsubscribe&sec_token='.$stok.'&unsubscribe='.$course['code'].'&search_term='.$search_term.'&category_code='.$code.'">'. |
|
448 | + Display::returnFontAwesomeIcon('sign-out').'</a>'; |
|
449 | 449 | return $html; |
450 | 450 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $iso = api_get_language_isocode(api_get_interface_language()); |
26 | 26 | $languageCondition = ''; |
27 | 27 | |
28 | - if (file_exists(api_get_path(SYS_PATH) . "web/assets/select2/dist/js/i18n/$iso.js")) { |
|
28 | + if (file_exists(api_get_path(SYS_PATH)."web/assets/select2/dist/js/i18n/$iso.js")) { |
|
29 | 29 | $html .= api_get_asset("select2/dist/js/i18n/$iso.js"); |
30 | 30 | $languageCondition = "language: '$iso',"; |
31 | 31 | } |
@@ -50,8 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | //Get the minimumInputLength for select2 |
52 | 52 | $minimumInputLength = $this->getAttribute('minimumInputLength') > 3 ? |
53 | - $this->getAttribute('minimumInputLength') : |
|
54 | - 3 |
|
53 | + $this->getAttribute('minimumInputLength') : 3 |
|
55 | 54 | ; |
56 | 55 | |
57 | 56 | $plHolder = $this->getAttribute('placeholder'); |
@@ -81,7 +80,7 @@ discard block |
||
81 | 80 | $multiple = $multiple ? 'true' : 'false'; |
82 | 81 | |
83 | 82 | $max = $this->getAttribute('maximumSelectionLength'); |
84 | - $max = !empty($max) ? "maximumSelectionLength: $max, ": ''; |
|
83 | + $max = !empty($max) ? "maximumSelectionLength: $max, " : ''; |
|
85 | 84 | |
86 | 85 | $html .= <<<JS |
87 | 86 | <script> |
@@ -125,7 +124,7 @@ discard block |
||
125 | 124 | $this->removeAttribute('url_function'); |
126 | 125 | $this->setAttribute('style', 'width: 100%;'); |
127 | 126 | |
128 | - return parent::toHtml() . $html; |
|
127 | + return parent::toHtml().$html; |
|
129 | 128 | } |
130 | 129 | |
131 | 130 | /** |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | require_once '../inc/global.inc.php'; |
9 | 9 | require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/fe/exportgradebook.php'; |
10 | 10 | |
11 | -$current_course_tool = TOOL_GRADEBOOK; |
|
11 | +$current_course_tool = TOOL_GRADEBOOK; |
|
12 | 12 | |
13 | 13 | api_protect_course_script(true); |
14 | 14 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | null, |
75 | 75 | 'simple_search_form', |
76 | 76 | null, |
77 | - api_get_self() . '?selectcat=' . $category_id |
|
77 | + api_get_self().'?selectcat='.$category_id |
|
78 | 78 | ); |
79 | 79 | $values = $simple_search_form->exportValues(); |
80 | 80 | |
@@ -148,15 +148,15 @@ discard block |
||
148 | 148 | } |
149 | 149 | } |
150 | 150 | |
151 | -if (isset($_GET['exportpdf'])) { |
|
152 | - $interbreadcrumb[] = array ( |
|
153 | - 'url' => api_get_self().'?selectcat=' . Security::remove_XSS($_GET['selectcat']).'&'.api_get_cidreq(), |
|
151 | +if (isset($_GET['exportpdf'])) { |
|
152 | + $interbreadcrumb[] = array( |
|
153 | + 'url' => api_get_self().'?selectcat='.Security::remove_XSS($_GET['selectcat']).'&'.api_get_cidreq(), |
|
154 | 154 | 'name' => get_lang('FlatView') |
155 | 155 | ); |
156 | 156 | |
157 | 157 | $pageNum = isset($_GET['flatviewlist_page_nr']) ? intval($_GET['flatviewlist_page_nr']) : null; |
158 | 158 | $perPage = isset($_GET['flatviewlist_per_page']) ? intval($_GET['flatviewlist_per_page']) : null; |
159 | - $url = api_get_self() . '?' . api_get_cidreq() . '&' . http_build_query([ |
|
159 | + $url = api_get_self().'?'.api_get_cidreq().'&'.http_build_query([ |
|
160 | 160 | 'exportpdf' => '', |
161 | 161 | 'offset' => $offset, |
162 | 162 | 'selectcat' => intval($_GET['selectcat']), |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | } |
196 | 196 | } |
197 | 197 | |
198 | -if (isset($_GET['print'])) { |
|
198 | +if (isset($_GET['print'])) { |
|
199 | 199 | $printable_data = GradebookUtils::get_printable_data( |
200 | 200 | $cat[0], |
201 | 201 | $users, |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | require_once '../inc/global.inc.php'; |
15 | 15 | $this_section = SECTION_COURSES; |
16 | -$current_course_tool = TOOL_GROUP; |
|
16 | +$current_course_tool = TOOL_GROUP; |
|
17 | 17 | |
18 | 18 | // Notice for unauthorized people. |
19 | 19 | api_protect_course_script(true); |
@@ -22,8 +22,8 @@ discard block |
||
22 | 22 | $current_group = GroupManager :: get_group_properties($group_id); |
23 | 23 | |
24 | 24 | $nameTools = get_lang('EditGroup'); |
25 | -$interbreadcrumb[] = array ('url' => 'group.php?'.api_get_cidreq(), 'name' => get_lang('Groups')); |
|
26 | -$interbreadcrumb[] = array ('url' => 'group_space.php?'.api_get_cidreq(), 'name' => $current_group['name']); |
|
25 | +$interbreadcrumb[] = array('url' => 'group.php?'.api_get_cidreq(), 'name' => get_lang('Groups')); |
|
26 | +$interbreadcrumb[] = array('url' => 'group_space.php?'.api_get_cidreq(), 'name' => $current_group['name']); |
|
27 | 27 | |
28 | 28 | $is_group_member = GroupManager :: is_tutor_of_group(api_get_user_id(), $group_id); |
29 | 29 |