diff --git a/Changes.md b/Changes.md index 23b7f06..783be7f 100644 --- a/Changes.md +++ b/Changes.md @@ -1,6 +1,10 @@ Version Information =================== +Version 4.4.0.2 +----------------------------- + 1. Move injected CSS into styles CSS to remove employment of hook that uses a deprecated method of implementation. + Version 4.4.0.1 ----------------------------- 1. Supports Moodle 4.4. diff --git a/lib.php b/lib.php index 360af25..0352066 100644 --- a/lib.php +++ b/lib.php @@ -725,22 +725,6 @@ function format_vsf_inplace_editable($itemtype, $itemid, $newvalue) { } } -/** - * Drop-in replacement for theme custom CSS. - * This will inject the CSS needed for modpic/modtxt specifics. - * Since this callback is called _always_, we're not bound to use of the format. - */ -function format_vsf_before_standard_html_head() { - global $CFG; - $url = new moodle_url($CFG->wwwroot . '/course/format/vsf/injectedcss.css'); - // Return CSS injection tag. - return html_writer::empty_tag('link', [ - 'href' => $url->out(false), - 'rel' => 'stylesheet', - 'type' => 'text/css', - ]); -} - /** * Add items to course navigation * diff --git a/injectedcss.css b/scss/_extra.scss similarity index 64% rename from injectedcss.css rename to scss/_extra.scss index 3d7f91d..d7a0099 100644 --- a/injectedcss.css +++ b/scss/_extra.scss @@ -1,5 +1,5 @@ /* VSF extra css - Afbeelding bij beschrijving toevoegen */ body:not(.path-course):not(.editing) .modpic, body:not(.editing).path-course .modtxt { - display: none !important; + display: none !important; // stylelint-disable-line declaration-no-important } diff --git a/scss/styles.scss b/scss/styles.scss index e872ca1..df2a908 100644 --- a/scss/styles.scss +++ b/scss/styles.scss @@ -360,5 +360,5 @@ max-width: 100%; } - @import "progress_chart"; +@import "extra"; diff --git a/styles.css b/styles.css index d683fe5..30ef1ce 100644 --- a/styles.css +++ b/styles.css @@ -841,3 +841,9 @@ .format-vsf .progress-chart-container .progress-doughnut .progress-indicator svg .circle.percent-100 { stroke-dashoffset: 0; } + +/* VSF extra css - Afbeelding bij beschrijving toevoegen */ +body:not(.path-course):not(.editing) .modpic, +body:not(.editing).path-course .modtxt { + display: none !important; +} diff --git a/version.php b/version.php index 276a01e..b585a80 100644 --- a/version.php +++ b/version.php @@ -25,9 +25,9 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2024050800; +$plugin->version = 2024050801; $plugin->maturity = MATURITY_BETA; $plugin->requires = 2024042200.00; // 4.4 (Build: 20240422). $plugin->supported = [404, 404]; $plugin->component = 'format_vsf'; -$plugin->release = '4.4.0.1'; +$plugin->release = '4.4.0.2';