From 9c20b9b2668d30ece39cf2269a8532ba805e15a0 Mon Sep 17 00:00:00 2001 From: Gareth Barnard <1058419+gjb2048@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:36:12 +0100 Subject: [PATCH] V405.0.1 --- .github/workflows/ci.yml | 4 +- Changes.md | 7 + Readme.md | 4 +- classes/admin_setting_configstoredfiles.php | 5 +- classes/admin_setting_getprops.php | 16 +- classes/hvp_toolbox.php | 6 +- classes/output/core/course_renderer.php | 22 +- classes/output/core_renderer_layout.php | 15 +- classes/output/core_renderer_maintenance.php | 2 +- classes/output/core_renderer_toolbox.php | 262 ++++++++++-------- .../output/core_user/myprofile/renderer.php | 1 - classes/output/custom_menu.php | 9 +- classes/output/icon_system_fontawesome.php | 6 +- classes/output/mustache_renderer.php | 2 +- classes/output/navigation/primary.php | 6 +- classes/toolbox.php | 19 +- config.php | 1 + lang/en/theme_adaptable.php | 3 + lib.php | 7 +- libs/admin_confightmleditor.php | 4 +- settings.php | 2 +- settings/block_settings.php | 6 + templates/sidepost.mustache | 1 - tests/toolbox_test.php | 2 + thirdpartylibs.xml | 4 +- version.php | 12 +- 26 files changed, 240 insertions(+), 188 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 383085e..cb680eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,8 +21,8 @@ jobs: strategy: fail-fast: true matrix: - php: ['8.1', '8.2'] - moodle-branch: ['MOODLE_404_STABLE'] + php: ['8.3'] + moodle-branch: ['MOODLE_405_STABLE'] database: [mariadb] steps: diff --git a/Changes.md b/Changes.md index 1867738..047eb9f 100644 --- a/Changes.md +++ b/Changes.md @@ -1,3 +1,10 @@ +Change Log in version 405.0.1 (2024100500) +========================================== +1. Block region tidy when editing, 'Add block' button for each region and added 'blockregioneditingtitleshown' setting + under 'Block' with a default of true. +2. Impact of MDL-81920 and MDL-81960. +3. Release candidate initial release. + Change Log in version 404.1.1 (2024032803) ========================================== 1. Fix missing 'recaptcha' on login form. diff --git a/Readme.md b/Readme.md index 537364a..163b3b8 100644 --- a/Readme.md +++ b/Readme.md @@ -49,10 +49,10 @@ This theme has been developed by the following: Required release of Moodle ========================== -This version works with Moodle 4.4 version 2024042200.00 (Build: 20231009) and above within the MOODLE_404_STABLE branch until the +This version works with Moodle 4.5 version 2024100700.00 (Build: 20241007) and above within the MOODLE_405_STABLE branch until the next release. -Please ensure that your hardware and software complies with 'Requirements' in '[Installing Moodle](https://docs.moodle.org/404/en/Installing_Moodle)'. +Please ensure that your hardware and software complies with 'Requirements' in '[Installing Moodle](https://docs.moodle.org/405/en/Installing_Moodle)'. Installation ============ diff --git a/classes/admin_setting_configstoredfiles.php b/classes/admin_setting_configstoredfiles.php index c1a14b2..335cdb0 100644 --- a/classes/admin_setting_configstoredfiles.php +++ b/classes/admin_setting_configstoredfiles.php @@ -29,6 +29,7 @@ use context_system; use context_user; +use core\url; defined('MOODLE_INTERNAL') || die; @@ -395,10 +396,10 @@ public static function setting_file_urls($setting, $filearea, $theme) { $syscontext->id, $component, $filearea, 0, 'sortorder,filepath,filename', false); // Item id could not be 0! foreach ($files as $file) { $filepath = $file->get_filepath().$file->get_filename(); - $url = \moodle_url::make_file_url( + $url = url::make_file_url( "$CFG->wwwroot/pluginfile.php", "/$syscontext->id/$component/$filearea/$itemid".$filepath); // Now this is tricky because the we can not hardcode http or https here, lets use the relative link. - // Note: unfortunately moodle_url does not support //urls yet. + // Note: unfortunately url does not support //urls yet. $url = preg_replace('|^https?://|i', '//', $url->out(false)); $urls[] = $url; } diff --git a/classes/admin_setting_getprops.php b/classes/admin_setting_getprops.php index 76450a9..e436374 100644 --- a/classes/admin_setting_getprops.php +++ b/classes/admin_setting_getprops.php @@ -28,9 +28,9 @@ use context_system; use context_user; -use html_table; -use html_writer; -use moodle_url; +use core_table\output\html_table; +use core\output\html_writer; +use core\url; /** * Get properties class. @@ -133,7 +133,7 @@ public function output_html($data, $query = '') { if ($saveprops) { $props = \theme_adaptable\toolbox::get_properties($this->pluginfrankenstyle); - $returnurl = new moodle_url('/admin/settings.php', ['section' => $this->settingsectionname]); + $returnurl = new url('/admin/settings.php', ['section' => $this->settingsectionname]); $returnbutton = '
'; $return .= $returnbutton; @@ -205,7 +205,7 @@ public function output_html($data, $query = '') { } } - $returnurl = new moodle_url('/admin/settings.php', ['section' => $this->settingsectionname]); + $returnurl = new url('/admin/settings.php', ['section' => $this->settingsectionname]); $returnbutton = ''; $return .= $returnbutton; @@ -223,21 +223,21 @@ public function output_html($data, $query = '') { } else { $props = \theme_adaptable\toolbox::get_properties($this->pluginfrankenstyle); - $propsexporturl = new moodle_url('/admin/settings.php', ['section' => $this->settingsectionname, + $propsexporturl = new url('/admin/settings.php', ['section' => $this->settingsectionname, $this->pluginfrankenstyle . '_getprops_saveprops' => 1, ]); $propsexportbutton = ''; - $propsexportfilestoourl = new moodle_url('/admin/settings.php', ['section' => $this->settingsectionname, + $propsexportfilestoourl = new url('/admin/settings.php', ['section' => $this->settingsectionname, $this->pluginfrankenstyle . '_getprops_saveprops_filestoo' => 1, ]); $propsexportfilestoobutton = ''; - $propsexportfilestoofilesurl = new moodle_url('/admin/settings.php', ['section' => $this->settingsectionname, + $propsexportfilestoofilesurl = new url('/admin/settings.php', ['section' => $this->settingsectionname, $this->pluginfrankenstyle . '_getprops_saveprops_filestoofile' => 1, ]); $propsexportfilestoofilebutton = '