From 88af02083939b3b5a2d3cfe353c8fc892f3ef992 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Tue, 26 Jul 2016 17:10:08 +0800 Subject: [PATCH] MDL-55411 theme_noname: Style the filepicker for bootstrap 4 Uses templates. Part of MDL-55071 --- files/renderer.php | 40 +- lib/form/dndupload.js | 23 +- lib/form/filemanager.js | 8 +- repository/filepicker.js | 19 +- .../classes/output/core/files_renderer.php | 139 ++++++ theme/noname/scss/moodle/core.scss | 2 +- theme/noname/scss/moodle/filemanager.scss | 305 +------------- theme/noname/scss/moodle/forms.scss | 7 - theme/noname/style/build.css | 398 +----------------- .../core/filemanager_confirmdialog.mustache | 5 + .../filemanager_default_searchform.mustache | 4 + .../core/filemanager_fileselect.mustache | 65 +++ .../core/filemanager_loginform.mustache | 30 ++ .../filemanager_modal_generallayout.mustache | 61 +++ .../filemanager_page_generallayout.mustache | 58 +++ .../filemanager_processexistingfile.mustache | 8 + ...nager_processexistingfilemultiple.mustache | 9 + .../core/filemanager_selectlayout.mustache | 50 +++ .../core/filemanager_uploadform.mustache | 29 ++ 19 files changed, 534 insertions(+), 726 deletions(-) create mode 100644 theme/noname/classes/output/core/files_renderer.php create mode 100644 theme/noname/templates/core/filemanager_confirmdialog.mustache create mode 100644 theme/noname/templates/core/filemanager_default_searchform.mustache create mode 100644 theme/noname/templates/core/filemanager_fileselect.mustache create mode 100644 theme/noname/templates/core/filemanager_loginform.mustache create mode 100644 theme/noname/templates/core/filemanager_modal_generallayout.mustache create mode 100644 theme/noname/templates/core/filemanager_page_generallayout.mustache create mode 100644 theme/noname/templates/core/filemanager_processexistingfile.mustache create mode 100644 theme/noname/templates/core/filemanager_processexistingfilemultiple.mustache create mode 100644 theme/noname/templates/core/filemanager_selectlayout.mustache create mode 100644 theme/noname/templates/core/filemanager_uploadform.mustache diff --git a/files/renderer.php b/files/renderer.php index 7060a677607..7fce28428ea 100644 --- a/files/renderer.php +++ b/files/renderer.php @@ -175,7 +175,7 @@ class core_files_renderer extends plugin_renderer_base { * @param form_filemanager $fm * @return string */ - private function fm_print_generallayout($fm) { + protected function fm_print_generallayout($fm) { global $OUTPUT; $options = $fm->options; $client_id = $options->client_id; @@ -264,7 +264,7 @@ class core_files_renderer extends plugin_renderer_base { * @see fp_js_template_iconfilename() * @return string */ - private function fm_js_template_iconfilename() { + protected function fm_js_template_iconfilename() { $rv = '
@@ -295,7 +295,7 @@ class core_files_renderer extends plugin_renderer_base { * @see fp_js_template_listfilename() * @return string */ - private function fm_js_template_listfilename() { + protected function fm_js_template_listfilename() { $rv = ' @@ -322,7 +322,7 @@ class core_files_renderer extends plugin_renderer_base { * * @return string */ - private function fm_js_template_mkdir() { + protected function fm_js_template_mkdir() { $rv = '