-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated code change for language icon and plugins
- Loading branch information
1 parent
5d18667
commit 545fe30
Showing
3 changed files
with
212 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
FROM lthub/moodle:moodlecore-4.1LTS | ||
MAINTAINER Tyler Cinkant <[email protected]> | ||
##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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <http://www.gnu.org/licenses/>. | ||
}} | ||
{{! | ||
@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 | ||
} | ||
} | ||
} | ||
}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <http://www.gnu.org/licenses/>. | ||
}} | ||
{{! | ||
Page header. | ||
}} | ||
|
||
<header id="header" class="page-header page-header-top-bar navbar" role="banner"> | ||
<div class="top-bar"> | ||
<div class="container-fluid"> | ||
<div class="top-bar-inner"> | ||
|
||
<nav class="navbar fixed-top navbar-expand boost-navbar" aria-label="{{#str}}sitemenubar, admin{{/str}}"> | ||
|
||
<div class="flex-wrapper d-flex align-items-center"> | ||
{{!--//header_dropdownmenu (theme class function)--}} | ||
{{{ output.header_dropdownmenu}}} | ||
|
||
{{!--//header_socialmedia (theme class function)--}} | ||
{{{ output.header_socialmedia}}} | ||
|
||
</div><!--//d-flex--> | ||
|
||
|
||
<ul class="navbar-nav d-none d-md-flex my-1 px-1"> | ||
<!-- page_heading_menu --> | ||
{{{ output.page_heading_menu }}} | ||
</ul> | ||
|
||
<div id="usernavigation" class="navbar-nav ml-auto"> | ||
|
||
|
||
<div class="divider border-left h-75 align-self-center mx-1"></div> | ||
|
||
<div class="langmenu" style="width:120px; margin:10 auto;"> | ||
<div class="dropdown show"> | ||
<a href="/?lang=en" role="button" id="lang-menu-toggle" data-toggle="dropdown" aria-label="Language" aria-haspopup="true" aria-controls="lang-action-menu" class="btn dropdown-toggle"> | ||
<i class="icon fa fa-language fa-fw mr-1" aria-hidden="true"></i> | ||
<span class="langbutton"> | ||
Language | ||
</span> | ||
<b class="caret"></b> | ||
</a> | ||
<div role="menu" aria-labelledby="lang-menu-toggle" id="lang-action-menu" class="dropdown-menu dropdown-menu-right"> | ||
<a href="/?lang=en" class="dropdown-item pl-5" role="menuitem" lang="en"> | ||
English | ||
</a> | ||
<a href="/?lang=en_ca" class="dropdown-item pl-5" role="menuitem" lang="fr_ca"> | ||
English (Canada) | ||
</a> | ||
<a href="/?lang=fr_ca" class="dropdown-item pl-5" role="menuitem" lang="fr"> | ||
Français (Canada) | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="divider border-left h-75 align-self-center mx-1"></div> | ||
|
||
|
||
{{# output.search_box }} | ||
{{{ output.search_box }}} | ||
<div class="divider border-left h-75 align-self-center mx-1"></div> | ||
{{/output.search_box}} | ||
{{#langmenu}} | ||
{{> theme_boost/language_menu }} | ||
<div class="divider border-left h-75 align-self-center mx-1"></div> | ||
{{/langmenu}} | ||
{{{ output.navbar_plugin_output }}} | ||
<div class="d-flex align-items-stretch usermenu-container" data-region="usermenu"> | ||
{{#usermenu}} | ||
{{> core/user_menu }} | ||
{{/usermenu}} | ||
</div> | ||
{{{ output.edit_switch }}} | ||
</div> | ||
|
||
</nav> | ||
|
||
|
||
</div><!--//top-bar-inner--> | ||
</div> | ||
</div><!--//top-bar--> | ||
|
||
</header><!--//header--> | ||
|
||
|
||
<div class="branding" > | ||
<div class="container-fluid"> | ||
<div class="branding-inner"> | ||
<div class="d-flex justify-content-between"> | ||
|
||
<a href="{{{ config.wwwroot }}}" class="site-name {{# output.site_logo }}has-logo{{/ output.site_logo }}"> | ||
{{^ output.site_logo }} | ||
{{{ sitename }}} | ||
{{/ output.site_logo }} | ||
|
||
{{# output.site_logo }} | ||
|
||
<img class="site-logo" src="{{{ output.site_logo }}}" alt="{{sitename}}"> | ||
|
||
{{/ output.site_logo }} | ||
</a> | ||
<div class="moremenu-wrapper navbar navbar-expand"> | ||
|
||
<!-- custom_menu --> | ||
{{#primarymoremenu}} | ||
{{> core/moremenu }} | ||
{{/primarymoremenu}} | ||
</div><!--//moremenu-wrapper--> | ||
|
||
<!-- page_heading_menu --> | ||
{{{ output.page_heading_menu }}} | ||
|
||
|
||
</div><!--//d-flex--> | ||
|
||
</div><!--//branding-inner--> | ||
|
||
</div><!--//container-fluid--> | ||
</div><!--//branding--> | ||
|
||
{{!--//moodle_validator (theme class function)--}} | ||
{{{ output.moodle_validator}}} | ||
|
||
{{> theme_boost/primary-drawer-mobile }} |