@@ -54,7 +54,7 @@ |
||
| 54 | 54 | ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'], |
| 55 | 55 | ['Undo', 'Redo', '-', 'SelectAll', 'Find', '-', 'RemoveFormat'], |
| 56 | 56 | ['Link', 'Unlink', 'Anchor', 'Glossary'], |
| 57 | - ['Image', 'Mapping', 'Video', 'Oembed', 'Youtube', 'Flash', 'Audio', 'leaflet', 'Smiley', 'SpecialChar', 'Asciimath',], |
|
| 57 | + ['Image', 'Mapping', 'Video', 'Oembed', 'Youtube', 'Flash', 'Audio', 'leaflet', 'Smiley', 'SpecialChar', 'Asciimath', ], |
|
| 58 | 58 | '/', |
| 59 | 59 | ['Table', '-', 'CreateDiv'], |
| 60 | 60 | ['BulletedList', 'NumberedList', 'HorizontalRule', '-', 'Outdent', 'Indent', 'Blockquote'], |
@@ -18,8 +18,8 @@ |
||
| 18 | 18 | { |
| 19 | 19 | $config['toolbarGroups'] = array( |
| 20 | 20 | '/', |
| 21 | - array('name' => 'basicstyles', 'groups' =>array('basicstyles', 'cleanup', )), |
|
| 22 | - array('name' => 'paragraph', 'groups' =>array('list', 'indent', 'blocks', 'align' )), |
|
| 21 | + array('name' => 'basicstyles', 'groups' =>array('basicstyles', 'cleanup',)), |
|
| 22 | + array('name' => 'paragraph', 'groups' =>array('list', 'indent', 'blocks', 'align')), |
|
| 23 | 23 | array('name' => 'links'), |
| 24 | 24 | array('name' => 'insert'), |
| 25 | 25 | '/', |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | ], |
| 35 | 35 | [ |
| 36 | 36 | 'name' => 'links', |
| 37 | - 'items' => [ 'Link', 'Unlink', 'Anchor'] |
|
| 37 | + 'items' => ['Link', 'Unlink', 'Anchor'] |
|
| 38 | 38 | ] |
| 39 | 39 | ]; |
| 40 | 40 | |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | return [ |
| 90 | 90 | ['Save', 'NewPage', 'Templates', '-', 'PasteFromWord'], |
| 91 | 91 | ['Undo', 'Redo'], |
| 92 | - ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'], |
|
| 92 | + ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'], |
|
| 93 | 93 | ['BulletedList', 'NumberedList', 'HorizontalRule'], |
| 94 | 94 | ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'], |
| 95 | 95 | ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'TextColor'], |
@@ -16,13 +16,13 @@ |
||
| 16 | 16 | public function getConfig() |
| 17 | 17 | { |
| 18 | 18 | $config['toolbarGroups'] = array( |
| 19 | - array('name' => 'document', 'groups' =>array('document', 'doctools')), |
|
| 20 | - array('name' => 'clipboard', 'groups' =>array('clipboard', 'undo')), |
|
| 21 | - array('name' => 'editing', 'groups' =>array('clipboard', 'undo')), |
|
| 19 | + array('name' => 'document', 'groups' =>array('document', 'doctools')), |
|
| 20 | + array('name' => 'clipboard', 'groups' =>array('clipboard', 'undo')), |
|
| 21 | + array('name' => 'editing', 'groups' =>array('clipboard', 'undo')), |
|
| 22 | 22 | //array('name' => 'forms', 'groups' =>array('clipboard', 'undo', )), |
| 23 | 23 | '/', |
| 24 | - array('name' => 'basicstyles', 'groups' =>array('basicstyles', 'cleanup')), |
|
| 25 | - array('name' => 'paragraph', 'groups' =>array('list', 'indent', 'blocks', 'align')), |
|
| 24 | + array('name' => 'basicstyles', 'groups' =>array('basicstyles', 'cleanup')), |
|
| 25 | + array('name' => 'paragraph', 'groups' =>array('list', 'indent', 'blocks', 'align')), |
|
| 26 | 26 | array('name' => 'links'), |
| 27 | 27 | array('name' => 'insert'), |
| 28 | 28 | '/', |
@@ -56,11 +56,11 @@ discard block |
||
| 56 | 56 | '-', |
| 57 | 57 | 'Find' |
| 58 | 58 | ], |
| 59 | - ['Wikilink','Link','Unlink','Anchor'], |
|
| 60 | - ['Image','Video','Flash','Oembed','Youtube','Audio','Asciimath'], |
|
| 61 | - ['Table','HorizontalRule','Smiley','SpecialChar','leaflet'], |
|
| 62 | - ['Format','Font','FontSize'], |
|
| 63 | - ['Bold','Italic','Underline'], |
|
| 59 | + ['Wikilink', 'Link', 'Unlink', 'Anchor'], |
|
| 60 | + ['Image', 'Video', 'Flash', 'Oembed', 'Youtube', 'Audio', 'Asciimath'], |
|
| 61 | + ['Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'leaflet'], |
|
| 62 | + ['Format', 'Font', 'FontSize'], |
|
| 63 | + ['Bold', 'Italic', 'Underline'], |
|
| 64 | 64 | [ |
| 65 | 65 | 'Subscript', |
| 66 | 66 | 'Superscript', |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | return [ |
| 95 | 95 | ['Save', 'NewPage', 'Templates', '-', 'PasteText'], |
| 96 | 96 | ['Undo', 'Redo'], |
| 97 | - ['Wikilink', 'Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath', 'Asciisvg'], |
|
| 97 | + ['Wikilink', 'Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath', 'Asciisvg'], |
|
| 98 | 98 | ['BulletedList', 'NumberedList', 'HorizontalRule'], |
| 99 | 99 | ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], |
| 100 | 100 | ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor', 'Source'], |
@@ -145,14 +145,14 @@ discard block |
||
| 145 | 145 | return [[ |
| 146 | 146 | 'title' => get_lang('EmptyTemplate'), |
| 147 | 147 | 'description' => null, |
| 148 | - 'image' => api_get_path(WEB_APP_PATH) . 'home/default_platform_document/template_thumb/empty.gif', |
|
| 148 | + 'image' => api_get_path(WEB_APP_PATH).'home/default_platform_document/template_thumb/empty.gif', |
|
| 149 | 149 | 'html' => ' |
| 150 | 150 | <!DOCYTPE html> |
| 151 | 151 | <html> |
| 152 | 152 | <head> |
| 153 | - <meta charset="' . api_get_system_encoding() . '" /> |
|
| 153 | + <meta charset="' . api_get_system_encoding().'" /> |
|
| 154 | 154 | </head> |
| 155 | - <body dir="' . api_get_text_direction() . '"> |
|
| 155 | + <body dir="' . api_get_text_direction().'"> |
|
| 156 | 156 | <p> |
| 157 | 157 | <br/> |
| 158 | 158 | </p> |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | $search = array('{CSS}', '{IMG_DIR}', '{REL_PATH}', '{COURSE_DIR}'); |
| 176 | 176 | $replace = array( |
| 177 | 177 | '', |
| 178 | - api_get_path(REL_CODE_PATH) . 'img/', |
|
| 178 | + api_get_path(REL_CODE_PATH).'img/', |
|
| 179 | 179 | api_get_path(REL_PATH), |
| 180 | 180 | api_get_path(REL_DEFAULT_COURSE_DOCUMENT_PATH), |
| 181 | 181 | api_get_path(REL_DEFAULT_COURSE_DOCUMENT_PATH) |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | foreach ($systemTemplates as $template) { |
| 187 | 187 | $image = $template->getImage(); |
| 188 | 188 | $image = !empty($image) ? $image : 'empty.gif'; |
| 189 | - $image = api_get_path(WEB_APP_PATH) . 'home/default_platform_document/template_thumb/' . $image; |
|
| 189 | + $image = api_get_path(WEB_APP_PATH).'home/default_platform_document/template_thumb/'.$image; |
|
| 190 | 190 | |
| 191 | 191 | /*$image = $this->urlGenerator->generate( |
| 192 | 192 | 'get_document_template_action', |
@@ -238,12 +238,12 @@ discard block |
||
| 238 | 238 | $templateItem['image'] = api_get_path(WEB_APP_PATH) |
| 239 | 239 | . 'home/default_platform_document/template_thumb/noimage.gif'; |
| 240 | 240 | $templateItem['html'] = file_get_contents(api_get_path(SYS_COURSE_PATH) |
| 241 | - . $courseDirectory . '/document' . $templateData['path']); |
|
| 241 | + . $courseDirectory.'/document'.$templateData['path']); |
|
| 242 | 242 | |
| 243 | 243 | $image = $template->getImage(); |
| 244 | 244 | if (!empty($image)) { |
| 245 | 245 | $templateItem['image'] = api_get_path(WEB_COURSE_PATH) |
| 246 | - . $courseDirectory . '/upload/template_thumbnails/' . $template->getImage(); |
|
| 246 | + . $courseDirectory.'/upload/template_thumbnails/'.$template->getImage(); |
|
| 247 | 247 | } |
| 248 | 248 | |
| 249 | 249 | $templateList[] = $templateItem; |
@@ -128,7 +128,7 @@ |
||
| 128 | 128 | return $var ? 'true' : 'false'; // Lowercase necessary! |
| 129 | 129 | case 'integer': |
| 130 | 130 | case 'double': |
| 131 | - return (string)$var; |
|
| 131 | + return (string) $var; |
|
| 132 | 132 | case 'resource': |
| 133 | 133 | case 'string': |
| 134 | 134 | return '"'.str_replace( |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | 'root_sys' => api_get_path(SYS_PATH), |
| 52 | 52 | 'sys_root' => api_get_path(SYS_PATH), // just an alias |
| 53 | 53 | 'sys_course_path' => api_get_path(SYS_COURSE_PATH), |
| 54 | - // 'sys_config_path' => $app['path.config'], |
|
| 54 | + // 'sys_config_path' => $app['path.config'], |
|
| 55 | 55 | 'path.temp' => api_get_path(SYS_ARCHIVE_PATH), |
| 56 | 56 | //'sys_log_path' => $app['path.logs'] |
| 57 | 57 | ); |
@@ -325,9 +325,9 @@ discard block |
||
| 325 | 325 | **/ |
| 326 | 326 | public function access($attr, $path, $data, $volume) |
| 327 | 327 | { |
| 328 | - return strpos(basename($path), '.') === 0 // if file/folder begins with '.' (dot) |
|
| 329 | - ? !($attr == 'read' || $attr == 'write') // set read+write to false, other (locked+hidden) set to true |
|
| 330 | - : null; // else elFinder decide it itself |
|
| 328 | + return strpos(basename($path), '.') === 0 // if file/folder begins with '.' (dot) |
|
| 329 | + ? !($attr == 'read' || $attr == 'write') // set read+write to false, other (locked+hidden) set to true |
|
| 330 | + : null; // else elFinder decide it itself |
|
| 331 | 331 | } |
| 332 | 332 | |
| 333 | 333 | /** |
@@ -327,7 +327,7 @@ |
||
| 327 | 327 | { |
| 328 | 328 | return strpos(basename($path), '.') === 0 // if file/folder begins with '.' (dot) |
| 329 | 329 | ? !($attr == 'read' || $attr == 'write') // set read+write to false, other (locked+hidden) set to true |
| 330 | - : null; // else elFinder decide it itself |
|
| 330 | + : null; // else elFinder decide it itself |
|
| 331 | 331 | } |
| 332 | 332 | |
| 333 | 333 | /** |