@@ -22,7 +22,7 @@ |
||
22 | 22 | // Show message to confirm that a tool it to be hidden from available tools |
23 | 23 | // visibility 0,1->2 |
24 | 24 | if (!empty($_GET['askDelete'])) { |
25 | - $content .='<div id="toolhide">'.get_lang('DelLk').'<br /> |
|
25 | + $content .= '<div id="toolhide">'.get_lang('DelLk').'<br /> |
|
26 | 26 | <a href="'.api_get_self().'">'.get_lang('No').'</a> | |
27 | 27 | <a href="'.api_get_self().'?delete=yes&id='.$id.'">'.get_lang('Yes').'</a> |
28 | 28 | </div>'; |
@@ -108,10 +108,10 @@ |
||
108 | 108 | |
109 | 109 | $page .= '<div id="doc_form" class="col-md-8">'; |
110 | 110 | |
111 | -$htmlHeadXtra[] = '<script src="' . api_get_path(WEB_LIBRARY_JS_PATH) . 'rtc/RecordRTC.js"></script>'; |
|
112 | -$htmlHeadXtra[] = '<script src="' . api_get_path(WEB_LIBRARY_PATH) . 'wami-recorder/recorder.js"></script>'; |
|
113 | -$htmlHeadXtra[] = '<script src="' . api_get_path(WEB_LIBRARY_PATH) . 'wami-recorder/gui.js"></script>'; |
|
114 | -$htmlHeadXtra[] = '<script type="text/javascript" src="' . api_get_path(WEB_LIBRARY_PATH) . 'swfobject/swfobject.js"></script>'; |
|
111 | +$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_JS_PATH).'rtc/RecordRTC.js"></script>'; |
|
112 | +$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'wami-recorder/recorder.js"></script>'; |
|
113 | +$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'wami-recorder/gui.js"></script>'; |
|
114 | +$htmlHeadXtra[] = '<script type="text/javascript" src="'.api_get_path(WEB_LIBRARY_PATH).'swfobject/swfobject.js"></script>'; |
|
115 | 115 | |
116 | 116 | $tpl = new Template(null); |
117 | 117 | $tpl->assign('unique_file_id', api_get_unique_id()); |
@@ -688,7 +688,7 @@ discard block |
||
688 | 688 | $sql = "SELECT * FROM $table_survey_question_group |
689 | 689 | WHERE c_id = $course_id AND survey_id='".$survey_id."'"; |
690 | 690 | $res = Database::query($sql); |
691 | - while($row = Database::fetch_array($res, 'ASSOC')) { |
|
691 | + while ($row = Database::fetch_array($res, 'ASSOC')) { |
|
692 | 692 | $params = array( |
693 | 693 | 'c_id' => $targetCourseId, |
694 | 694 | 'name' => $row['name'], |
@@ -735,7 +735,7 @@ discard block |
||
735 | 735 | WHERE c_id = $course_id AND survey_id='".$survey_id."'"; |
736 | 736 | |
737 | 737 | $res = Database::query($sql); |
738 | - while ($row = Database::fetch_array($res ,'ASSOC')) { |
|
738 | + while ($row = Database::fetch_array($res, 'ASSOC')) { |
|
739 | 739 | $params = array( |
740 | 740 | 'c_id' => $targetCourseId, |
741 | 741 | 'question_id' => $question_id[$row['question_id']], |
@@ -20,29 +20,29 @@ |
||
20 | 20 | if (api_is_allowed_to_edit(null, true)) { |
21 | 21 | $header = '<div class="actions">'; |
22 | 22 | if ($page != 'statistics') { |
23 | - $header .= '<a href="' . Security::remove_XSS($_SESSION['gradebook_dest']) . '?selectcat=' . $selectcat . '&'.api_get_cidreq().'">' . |
|
24 | - Display::return_icon(('back.png'), get_lang('FolderView'), '', ICON_SIZE_MEDIUM) . '</a>'; |
|
23 | + $header .= '<a href="'.Security::remove_XSS($_SESSION['gradebook_dest']).'?selectcat='.$selectcat.'&'.api_get_cidreq().'">'. |
|
24 | + Display::return_icon(('back.png'), get_lang('FolderView'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
25 | 25 | if ($evalobj->get_course_code() == null) { |
26 | 26 | |
27 | 27 | } elseif (!$evalobj->has_results()) { |
28 | - $header .= '<a href="gradebook_add_result.php?'.api_get_cidreq().'&selectcat=' . $selectcat . '&selecteval=' . $evalobj->get_id() . '"> |
|
29 | - ' . Display::return_icon('evaluation_rate.png', get_lang('AddResult'), '', ICON_SIZE_MEDIUM) . '</a>'; |
|
28 | + $header .= '<a href="gradebook_add_result.php?'.api_get_cidreq().'&selectcat='.$selectcat.'&selecteval='.$evalobj->get_id().'"> |
|
29 | + ' . Display::return_icon('evaluation_rate.png', get_lang('AddResult'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | if (api_is_platform_admin() || $evalobj->is_locked() == false) { |
33 | - $header .= '<a href="' . api_get_self() . '?'.api_get_cidreq().'&selecteval=' . $evalobj->get_id() . '&import=">' . |
|
34 | - Display::return_icon('import_evaluation.png', get_lang('ImportResult'), '', ICON_SIZE_MEDIUM) . '</a>'; |
|
33 | + $header .= '<a href="'.api_get_self().'?'.api_get_cidreq().'&selecteval='.$evalobj->get_id().'&import=">'. |
|
34 | + Display::return_icon('import_evaluation.png', get_lang('ImportResult'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | if ($evalobj->has_results()) { |
38 | - $header .= '<a href="' . api_get_self() . '?'.api_get_cidreq().'&selecteval=' . $evalobj->get_id() . '&export=">' . |
|
39 | - Display::return_icon('export_evaluation.png', get_lang('ExportResult'), '', ICON_SIZE_MEDIUM) . '</a>'; |
|
38 | + $header .= '<a href="'.api_get_self().'?'.api_get_cidreq().'&selecteval='.$evalobj->get_id().'&export=">'. |
|
39 | + Display::return_icon('export_evaluation.png', get_lang('ExportResult'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
40 | 40 | |
41 | 41 | if (api_is_platform_admin() || $evalobj->is_locked() == false) { |
42 | - $header .= '<a href="gradebook_edit_result.php?'.api_get_cidreq().'&selecteval=' . $evalobj->get_id() . '">' . |
|
43 | - Display::return_icon('edit.png', get_lang('EditResult'), '', ICON_SIZE_MEDIUM) . '</a>'; |
|
44 | - $header .= '<a href="' . api_get_self() . '?'.api_get_cidreq().'&selecteval=' . $evalobj->get_id() . '&deleteall=" onclick="return confirmationall();">' . |
|
45 | - Display::return_icon('delete.png', get_lang('DeleteResult'), '', ICON_SIZE_MEDIUM) . '</a>'; |
|
42 | + $header .= '<a href="gradebook_edit_result.php?'.api_get_cidreq().'&selecteval='.$evalobj->get_id().'">'. |
|
43 | + Display::return_icon('edit.png', get_lang('EditResult'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
44 | + $header .= '<a href="'.api_get_self().'?'.api_get_cidreq().'&selecteval='.$evalobj->get_id().'&deleteall=" onclick="return confirmationall();">'. |
|
45 | + Display::return_icon('delete.png', get_lang('DeleteResult'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
46 | 46 | } |
47 | 47 | } |
48 | 48 |
@@ -143,7 +143,7 @@ |
||
143 | 143 | $langsvgedit = api_get_language_isocode(); |
144 | 144 | $langsvgedit = isset($svgedit_code_translation_table[$langsvgedit]) ? $svgedit_code_translation_table[$langsvgedit] : $langsvgedit; |
145 | 145 | $langsvgedit = file_exists(api_get_path(WEB_LIBRARY_JS_PATH).'svgedit/locale/lang.'.$langsvgedit.'.js') ? $langsvgedit : 'en'; |
146 | - $svg_url= api_get_path(WEB_CODE_PATH).'document/svg-editor.php?lang='.$langsvgedit; |
|
146 | + $svg_url = api_get_path(WEB_CODE_PATH).'document/svg-editor.php?lang='.$langsvgedit; |
|
147 | 147 | ?> |
148 | 148 | <script> |
149 | 149 | document.write ('<iframe id="frame" frameborder="0" scrolling="no" src="<?php echo $svg_url; ?>" width="100%" height="100%"><noframes><p>Sorry, your browser does not handle frames</p></noframes></iframe>'); |
@@ -77,7 +77,7 @@ |
||
77 | 77 | $room = VideoChat::getChatRoomByUsers(api_get_user_id(), $to_user_id); |
78 | 78 | } |
79 | 79 | |
80 | - $videoChatUrl = api_get_path(WEB_CODE_PATH) . "chat/video.php?room={$room['id']}"; |
|
80 | + $videoChatUrl = api_get_path(WEB_CODE_PATH)."chat/video.php?room={$room['id']}"; |
|
81 | 81 | $videoChatLink = Display::url( |
82 | 82 | Display::returnFontAwesomeIcon('video-camera').get_lang('StartVideoChat'), |
83 | 83 | $videoChatUrl |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | return ''; |
68 | 68 | } |
69 | 69 | |
70 | - Emojione\Emojione::$imagePathPNG = api_get_path(WEB_PUBLIC_PATH) . 'bundles/chamilocore/js/emojione/png/'; |
|
70 | + Emojione\Emojione::$imagePathPNG = api_get_path(WEB_PUBLIC_PATH).'bundles/chamilocore/js/emojione/png/'; |
|
71 | 71 | Emojione\Emojione::$ascii = true; |
72 | 72 | |
73 | 73 | $message = trim($message); |
@@ -1394,7 +1394,7 @@ discard block |
||
1394 | 1394 | { |
1395 | 1395 | return [ |
1396 | 1396 | ':bowtie:', |
1397 | - ':smile:'| |
|
1397 | + ':smile:' | |
|
1398 | 1398 | ':laughing:', |
1399 | 1399 | ':blush:', |
1400 | 1400 | ':smiley:', |
@@ -425,7 +425,7 @@ |
||
425 | 425 | // Extra options |
426 | 426 | $plugin_settings = api_get_settings_params( |
427 | 427 | array( |
428 | - "subkey = ? AND category = ? AND type = ? " => array($plugin_name, 'Plugins','setting') |
|
428 | + "subkey = ? AND category = ? AND type = ? " => array($plugin_name, 'Plugins', 'setting') |
|
429 | 429 | ) |
430 | 430 | ); |
431 | 431 |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | $htmlHeadXtra[] = api_get_js('plugins/bbb/utils.js'); |
101 | -$htmlHeadXtra[] = "<script>var _p = {web_plugin: '" . api_get_path(WEB_PLUGIN_PATH). "'}</script>"; |
|
101 | +$htmlHeadXtra[] = "<script>var _p = {web_plugin: '".api_get_path(WEB_PLUGIN_PATH)."'}</script>"; |
|
102 | 102 | |
103 | 103 | $tpl = new Template($tool_name); |
104 | 104 | $tpl->assign('meetings', $meetings); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | if ($meetings) { |
111 | 111 | $actions[] = Display::toolbarButton( |
112 | 112 | get_lang('ExportInExcel'), |
113 | - api_get_self() . '?' . http_build_query([ |
|
113 | + api_get_self().'?'.http_build_query([ |
|
114 | 114 | 'action' => 'export', |
115 | 115 | 'search_meeting_start' => $dateStart, |
116 | 116 | 'search_meeting_end' => $dateEnd |