diff --git a/Dockerfile b/Dockerfile index 44a04ae..0e6b220 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,8 @@ -FROM lthub/moodle:moodlecore-4.1LTS -MAINTAINER Tyler Cinkant +##FROM lthub/moodle:moodlecore-4.1LTS +##FROM dangtue2020/moodlecore:417stg2-f6d8db1187fe +##FROM dangtue2020/moodlecore:418stg2-4c9b99230294 +##FROM dangtue2020/moodlecore:418stg2-4432ea1f4024 +FROM dangtue2020/moodlecore:419stg2-bb4b231d8e23 #Updated to newer questionnaire 10Dec2023 RUN curl -L https://moodle.org/plugins/download.php/29228/mod_questionnaire_moodle42_2022092202.zip -o /questionnaire.zip \ @@ -15,8 +18,8 @@ RUN curl -L https://moodle.org/plugins/download.php/29228/mod_questionnaire_mood && unzip certificate.zip \ && rm certificate.zip \ -#Updated to newer hvp 10Dec2023 - && curl -L https://moodle.org/plugins/download.php/29419/mod_hvp_moodle42_2023061200.zip -o /hvp.zip \ +#Updated to newer hvp 10Dec2023 and 18Apr2024 + && curl -L https://moodle.org/plugins/download.php/30739/mod_hvp_moodle43_2023122500.zip -o /hvp.zip \ && cp /hvp.zip /var/www/html/mod/ \ && cd /var/www/html/mod \ && unzip hvp.zip \ @@ -37,15 +40,15 @@ RUN curl -L https://moodle.org/plugins/download.php/29228/mod_questionnaire_mood && unzip customsql.zip \ && rm customsql.zip \ -#Updated as of 11Dec2023 - && curl -L https://moodle.org/plugins/download.php/30206/format_grid_moodle41_2022112607.zip -o /grid.zip \ +#Updated as of 11Dec2023 and 18Apr2024 + && curl -L https://moodle.org/plugins/download.php/31635/format_grid_moodle41_2022112609.zip -o /grid.zip \ && cp /grid.zip /var/www/html/course/format/ \ && cd /var/www/html/course/format \ && unzip grid.zip \ && rm grid.zip \ - #Updated as of 11Dec2023 - && curl -L https://moodle.org/plugins/download.php/29754/format_flexsections_moodle42_2023080800.zip -o /flex.zip \ + #Updated as of 11Dec2023 and 18Apr2024 + && curl -L https://moodle.org/plugins/download.php/30735/format_flexsections_moodle43_2023122300.zip -o /flex.zip \ && cp /flex.zip /var/www/html/course/format/ \ && cd /var/www/html/course/format \ && unzip flex.zip \ @@ -87,15 +90,14 @@ RUN curl -L https://moodle.org/plugins/download.php/29228/mod_questionnaire_mood && unzip boostnavig.zip \ && rm boostnavig.zip \ - - && curl -L https://moodle.org/plugins/download.php/24764/tool_mergeusers_moodle311_2021072200.zip -o /mergeuser.zip \ + && curl -L https://moodle.org/plugins/download.php/28943/tool_mergeusers_moodle41_2023040402.zip -o /mergeuser.zip \ && cp /mergeuser.zip /var/www/html/admin/tool/ \ && cd /var/www/html/admin/tool \ && unzip mergeuser.zip \ && rm mergeuser.zip \ -#Updated as of 11Dec2023 - && curl -L https://moodle.org/plugins/download.php/29794/filter_multilang2_moodle42_2022120900.zip -o /multi.zip \ +#Updated as of 11Dec2023 and 18Apr2024 + && curl -L https://moodle.org/plugins/download.php/31000/filter_multilang2_moodle43_2024013101.zip -o /multi.zip \ && cp /multi.zip /var/www/html/filter/ \ && cd /var/www/html/filter \ && unzip multi.zip \ @@ -116,21 +118,20 @@ RUN curl -L https://moodle.org/plugins/download.php/29228/mod_questionnaire_mood && unzip panopto.zip \ && rm panopto.zip \ -#Updated as of 11Dec2023 - && curl -L https://moodle.org/plugins/download.php/30492/local_recompletion_moodle42_2023111402.zip -o /recomplete.zip \ +#Updated as of 11Dec2023 and 18Apr2024 + && curl -L https://moodle.org/plugins/download.php/31207/local_recompletion_moodle42_2023112702.zip -o /recomplete.zip \ && cp /recomplete.zip /var/www/html/local/ \ && cd /var/www/html/local \ && unzip recomplete.zip \ - && rm recomplete.zip + && rm recomplete.zip \ - -#This is the latest version of this plugin moodle311 - checked again on 11Jan2023 16:38: +#This is the latest version of this plugin ARLO v4.1.4 - checked again on 23Jan2024 12:38: #ARLO plugin requires Arlo_connection setting. -# && curl -L https://moodle.org/plugins/download.php/27469/enrol_arlo_moodle311_2022090100.zip -o /enrolarlo.zip \ -# && cp /enrolarlo.zip /var/www/html/enrol/ \ -# && cd /var/www/html/enrol \ -# && unzip enrolarlo.zip \ -# && rm enrolarlo.zip + && curl -L https://moodle.org/plugins/download.php/30634/enrol_arlo_moodle42_2023110900.zip -o /enrolarlo.zip \ + && cp /enrolarlo.zip /var/www/html/enrol/ \ + && cd /var/www/html/enrol \ + && unzip enrolarlo.zip \ + && rm enrolarlo.zip # add custom cert @@ -190,4 +191,9 @@ COPY moodle-shib.conf /etc/apache2/conf-enabled/ COPY docker-entrypoint.d/* /docker-entrypoint.d/ COPY 000-default.conf /etc/apache2/sites-available/ +# add modified files for Language Icon +COPY themes/maker-header.mustache /var/www/html/theme/maker/templates/header.mustache +COPY themes/boost-language_menu.mustache /var/www/html/theme/boost/templates/language_menu.mustache + + RUN chmod -R 755 /docker-entrypoint.d/ diff --git a/themes/boost-language_menu.mustache b/themes/boost-language_menu.mustache new file mode 100644 index 0000000..b4ad775 --- /dev/null +++ b/themes/boost-language_menu.mustache @@ -0,0 +1,44 @@ +{{! + This file is part of Moodle - http://moodle.org/ + + Moodle is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Moodle is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Moodle. If not, see . +}} +{{! + @template theme_boost/language_menu + + Language menu template. + + Context variables required for this template: + * title - The title of the menu (displays the text of the currently active language). + * items - Array of data representing the available languages to be displayed in the language menu. + * link - If a link is provided render it. + * title - The title of the language item. + * text - The text displayed for the language item. + * url - The url link to activate the given language. + * isactive - Whether the language is currently active. + + Example context (json): + { + "title": "English (en)", + "items": { + "link": { + "title": "English (en)", + "text": "English (en)", + "url": "http://example.com", + "isactive": 0 + } + } + } +}} + diff --git a/themes/maker-header.mustache b/themes/maker-header.mustache new file mode 100644 index 0000000..a939cc4 --- /dev/null +++ b/themes/maker-header.mustache @@ -0,0 +1,140 @@ +{{! + This file is part of Moodle - http://moodle.org/ + + Moodle is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Moodle is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Moodle. If not, see . +}} +{{! + Page header. +}} + + + + +
+
+
+
+ + + + + + {{{ output.page_heading_menu }}} + + +
+ +
+ +
+
+ +{{!--//moodle_validator (theme class function)--}} +{{{ output.moodle_validator}}} + +{{> theme_boost/primary-drawer-mobile }}