moodle-an-hochschulen / moodle-theme_boost_union

Theme Boost Union is an enhanced child theme of Boost which is intended, on the one hand, to make Boost simply more configurable and, on the other hand, to provide helpful additional features for the daily Moodle operation of admins, teachers and students.
GNU General Public License v3.0
66 stars 58 forks source link

Feature: Add dedicated filearea for Moodle Mobile App CSS #195

Closed abias closed 1 year ago

abias commented 1 year ago

Moodle Core offers a setting $CFG->mobilecssurl which is used to provide additional CSS for the Moodle Mobile App. Unfortunately, this setting only takes a full URL and you have to host this CSS file elsewhere.

Within Boost Union, you can use the theme_boost_union | additionalresources to host this CSS file. However, you will still have to paste the URL over to the $CFG->mobilecssurl setting.

It would be worthwhile
a) to add a dedicated filearea for the Moodle Mobile App in Boost Union and b) to set the URL in $CFG->mobilecssurl automatically as soon as a CSS file is uploaded.

abias commented 1 year ago

As an alternative approach, we could also:

a) add a dedicated text area (similar to the RAW SCSS textarea) where you can write your Mobile CSS code in the theme settings b) ship this CSS code with a script similar to https://github.com/moodle-an-hochschulen/moodle-theme_boost_union/blob/master/flavours/styles.php c) set the URL in $CFG->mobilecssurl automatically to the script as soon as some CSS code is added to the textarea.

abias commented 1 year ago

Nina implemented the alternative approach in #205