diff --git a/Dockerfile b/Dockerfile index 2ae4f8b..a6260f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ ##FROM lthub/moodle:moodlecore-4.1LTS ##FROM dangtue2020/moodlecore:419stg2-bb4b231d8e23 -FROM dangtue2020/moodlecore:419stg2-7f3ef6e86ac4 +##FROM dangtue2020/moodlecore:419stg2-7f3ef6e86ac4 +FROM dangtue2020/moodlecore:419stg2-41ec0380b10f + #Updated to newer questionnaire 10Dec2023 RUN curl -L https://moodle.org/plugins/download.php/29228/mod_questionnaire_moodle42_2022092202.zip -o /questionnaire.zip \ @@ -190,8 +192,11 @@ 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 -COPY themes/updated-icon-designs-4.1/* /var/www/html/theme/maker/pix +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 +COPY themes/updated-icon-designs-4.1/mod/ /var/www/html/theme/maker/pix_plugins/mod + +RUN sleep 3 && echo "\$THEME->removedprimarynavitems = ['courses'];" >> /var/www/html/theme/maker/config.php +##RUN sleep 3 && sed -i "\$a\\n\\n\$THEME->removedprimarynavitems = ['courses'];" /var/www/html/theme/maker/config.php RUN chmod -R 755 /docker-entrypoint.d/ diff --git a/themes/maker-config-php b/themes/maker-config-php new file mode 100644 index 0000000..e69de29 diff --git a/themes/maker-header.mustache b/themes/maker-header.mustache index 5085204..bcc5e33 100644 --- a/themes/maker-header.mustache +++ b/themes/maker-header.mustache @@ -72,21 +72,25 @@ function updateLanguageLinks() { const dropdownItems = document.querySelectorAll('#lang-action-menu .dropdown-item'); - dropdownItems.forEach(item => { - const lang = item.getAttribute('lang'); - if (lang) { - // Update the 'href' to include the correct 'lang' parameter - currentUrl.searchParams.set('lang', lang); - item.href = currentUrl.toString(); - - // Add or remove checkmarks based on the current language - if (lang === currentLang) { - item.innerText = `✔️ ${item.innerText.trim().replace('✔️', '')}`; - } else { - item.innerText = item.innerText.trim().replace('✔️', ''); - } - } - }); +dropdownItems.forEach((item) => { + const lang = item.getAttribute("lang"); + if (lang) { + // Update the 'href' to include the correct 'lang' parameter + currentUrl.searchParams.set("lang", lang); + item.href = currentUrl.toString(); + + // Add or remove checkmarks based on the current language + const checkmark = lang === currentLang ? "✓" : " "; // Unicode checkmark or empty space + item.innerHTML = ` + + `; + } +}); + + } // Run the function to update the language links and set the checkmark @@ -164,4 +168,4 @@ updateLanguageLinks(); {{> theme_boost/primary-drawer-mobile }} - + diff --git a/themes/updated-icon-designs-4.1/mod/assignment/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/assignment/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/assignment/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/assignment/icon.svg diff --git a/themes/updated-icon-designs-4.1/monologo.svg b/themes/updated-icon-designs-4.1/mod/assignment/monologo.svg similarity index 100% rename from themes/updated-icon-designs-4.1/monologo.svg rename to themes/updated-icon-designs-4.1/mod/assignment/monologo.svg diff --git a/themes/updated-icon-designs-4.1/mod/book/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/book/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/book/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/book/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/book/monologo.svg b/themes/updated-icon-designs-4.1/mod/book/monologo.svg new file mode 100644 index 0000000..4b01f04 --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/book/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/certificate/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/certificate/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/certificate/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/certificate/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/certificate/monologo.svg b/themes/updated-icon-designs-4.1/mod/certificate/monologo.svg new file mode 100644 index 0000000..f930eb1 --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/certificate/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/chat/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/chat/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/chat/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/chat/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/chat/monologo.svg b/themes/updated-icon-designs-4.1/mod/chat/monologo.svg new file mode 100644 index 0000000..a2ccdfc --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/chat/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/choice/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/choice/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/choice/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/choice/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/choice/monologo.svg b/themes/updated-icon-designs-4.1/mod/choice/monologo.svg new file mode 100644 index 0000000..cff4456 --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/choice/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/content/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/content/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/content/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/content/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/content/monologo.svg b/themes/updated-icon-designs-4.1/mod/content/monologo.svg new file mode 100644 index 0000000..b0a511f --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/content/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/database/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/database/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/database/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/database/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/database/monologo.svg b/themes/updated-icon-designs-4.1/mod/database/monologo.svg new file mode 100644 index 0000000..da1cf32 --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/database/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/external-tools/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/external-tools/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/external-tools/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/external-tools/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/external-tools/monologo.svg b/themes/updated-icon-designs-4.1/mod/external-tools/monologo.svg new file mode 100644 index 0000000..e50a365 --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/external-tools/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/external-webpage/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/external-webpage/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/external-webpage/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/external-webpage/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/external-webpage/monologo.svg b/themes/updated-icon-designs-4.1/mod/external-webpage/monologo.svg new file mode 100644 index 0000000..206d370 --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/external-webpage/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/feedback/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/feedback/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/feedback/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/feedback/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/feedback/monologo.svg b/themes/updated-icon-designs-4.1/mod/feedback/monologo.svg new file mode 100644 index 0000000..0ecca1d --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/feedback/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/file/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/file/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/file/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/file/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/file/monologo.svg b/themes/updated-icon-designs-4.1/mod/file/monologo.svg new file mode 100644 index 0000000..dfc6797 --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/file/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/folder/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/folder/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/folder/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/folder/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/folder/monologo.svg b/themes/updated-icon-designs-4.1/mod/folder/monologo.svg new file mode 100644 index 0000000..45c21eb --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/folder/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/forum/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/forum/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/forum/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/forum/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/forum/monologo.svg b/themes/updated-icon-designs-4.1/mod/forum/monologo.svg new file mode 100644 index 0000000..e3a6fb6 --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/forum/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/glossary/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/glossary/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/glossary/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/glossary/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/glossary/monologo.svg b/themes/updated-icon-designs-4.1/mod/glossary/monologo.svg new file mode 100644 index 0000000..a8ea57e --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/glossary/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/h5p/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/h5p/pix/monologo.svg deleted file mode 100644 index df82d01..0000000 --- a/themes/updated-icon-designs-4.1/mod/h5p/pix/monologo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/interactive-content/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/interactive-content/pix/monologo.svg deleted file mode 100644 index a310946..0000000 --- a/themes/updated-icon-designs-4.1/mod/interactive-content/pix/monologo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/label/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/label/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/label/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/label/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/label/monologo.svg b/themes/updated-icon-designs-4.1/mod/label/monologo.svg new file mode 100644 index 0000000..ed2ac55 --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/label/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/lesson/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/lesson/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/lesson/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/lesson/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/lesson/monologo.svg b/themes/updated-icon-designs-4.1/mod/lesson/monologo.svg new file mode 100644 index 0000000..07dbd70 --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/lesson/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/lesson/tuetest.svg b/themes/updated-icon-designs-4.1/mod/lesson/tuetest.svg new file mode 100644 index 0000000..07dbd70 --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/lesson/tuetest.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/page/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/page/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/page/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/page/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/page/monologo.svg b/themes/updated-icon-designs-4.1/mod/page/monologo.svg new file mode 100644 index 0000000..8110bb3 --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/page/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/pdf/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/pdf/pix/monologo.svg deleted file mode 100644 index 24f1565..0000000 --- a/themes/updated-icon-designs-4.1/mod/pdf/pix/monologo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/questionnaire/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/questionnaire/pix/monologo.svg deleted file mode 100644 index c0ee6cb..0000000 --- a/themes/updated-icon-designs-4.1/mod/questionnaire/pix/monologo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/quiz/quiz-icon-4.1.svg b/themes/updated-icon-designs-4.1/mod/quiz/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/quiz/quiz-icon-4.1.svg rename to themes/updated-icon-designs-4.1/mod/quiz/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/quiz/monologo.svg b/themes/updated-icon-designs-4.1/mod/quiz/monologo.svg new file mode 100644 index 0000000..d3c682f --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/quiz/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/scorm/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/scorm/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/scorm/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/scorm/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/scorm/monologo.svg b/themes/updated-icon-designs-4.1/mod/scorm/monologo.svg new file mode 100644 index 0000000..234b60a --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/scorm/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/survey/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/survey/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/survey/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/survey/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/survey/monologo.svg b/themes/updated-icon-designs-4.1/mod/survey/monologo.svg new file mode 100644 index 0000000..67da077 --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/survey/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/text-media-area/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/text-media-area/pix/monologo.svg deleted file mode 100644 index 12f98c3..0000000 --- a/themes/updated-icon-designs-4.1/mod/text-media-area/pix/monologo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/url/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/url/pix/monologo.svg deleted file mode 100644 index 509a0ff..0000000 --- a/themes/updated-icon-designs-4.1/mod/url/pix/monologo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/wiki/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/wiki/icon.svg similarity index 100% rename from themes/updated-icon-designs-4.1/mod/wiki/pix/monologo.svg rename to themes/updated-icon-designs-4.1/mod/wiki/icon.svg diff --git a/themes/updated-icon-designs-4.1/mod/wiki/monologo.svg b/themes/updated-icon-designs-4.1/mod/wiki/monologo.svg new file mode 100644 index 0000000..b7c244a --- /dev/null +++ b/themes/updated-icon-designs-4.1/mod/wiki/monologo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/updated-icon-designs-4.1/mod/workshop/pix/monologo.svg b/themes/updated-icon-designs-4.1/mod/workshop/pix/monologo.svg deleted file mode 100644 index 5b96ebd..0000000 --- a/themes/updated-icon-designs-4.1/mod/workshop/pix/monologo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file