diff --git a/theme/albe/classes/hook/after_standard_main_region_html_generation.php b/theme/albe/classes/hook/after_standard_main_region_html_generation.php
new file mode 100644
index 0000000..6ae397e
--- /dev/null
+++ b/theme/albe/classes/hook/after_standard_main_region_html_generation.php
@@ -0,0 +1,35 @@
+.
+
+namespace theme_albe\hook;
+
+/**
+ * Theme Boost Union - Hook: Allows plugins to add any elements to the page
html tag.
+ *
+ * @package theme_boost_union
+ * @copyright 2024 Alexander Bias
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+class after_standard_main_region_html_generation {
+ /**
+ * Callback to add head elements.
+ *
+ * @param \core\hook\output\after_standard_main_region_html_generation $hook
+ */
+ public static function callback(\core\hook\output\after_standard_main_region_html_generation $hook): void {
+ $hook->add_html('');
+ }
+}
\ No newline at end of file
diff --git a/theme/albe/classes/hook/before_standard_head_html_generation.php b/theme/albe/classes/hook/before_standard_head_html_generation.php
new file mode 100644
index 0000000..dc11895
--- /dev/null
+++ b/theme/albe/classes/hook/before_standard_head_html_generation.php
@@ -0,0 +1,40 @@
+.
+
+namespace theme_albe\hook;
+
+/**
+ * Theme Boost Union - Hook: Allows plugins to add any elements to the page html tag.
+ *
+ * @package theme_boost_union
+ * @copyright 2024 Alexander Bias
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+class before_standard_head_html_generation {
+ /**
+ * Callback to add head elements.
+ *
+ * @param \core\hook\output\before_standard_head_html_generation $hook
+ */
+ public static function callback(\core\hook\output\before_standard_head_html_generation $hook): void {
+ $hook->add_html(<<< EOT
+
+
+
+
+EOT);
+ }
+}
\ No newline at end of file
diff --git a/theme/albe/db/hooks.php b/theme/albe/db/hooks.php
new file mode 100644
index 0000000..621ef31
--- /dev/null
+++ b/theme/albe/db/hooks.php
@@ -0,0 +1,38 @@
+.
+
+/**
+ * Theme Boost Union - Hook callbacks.
+ *
+ * @package theme_boost_union
+ * @copyright 2024 Alexander Bias
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$callbacks = [
+ [
+ 'hook' => \core\hook\output\after_standard_main_region_html_generation::class,
+ 'callback' => 'theme_albe\hook\after_standard_main_region_html_generation::callback',
+ 'priority' => 0,
+ ],
+ [
+ 'hook' => \core\hook\output\before_standard_head_html_generation::class,
+ 'callback' => 'theme_albe\hook\before_standard_head_html_generation::callback',
+ 'priority' => 0,
+ ],
+];
\ No newline at end of file
diff --git a/theme/albe/lib.php b/theme/albe/lib.php
index ebd4b4b..f71177a 100644
--- a/theme/albe/lib.php
+++ b/theme/albe/lib.php
@@ -21,8 +21,8 @@ function theme_albe_get_extra_scss($theme) {
return theme_boost_get_extra_scss($theme) . file_get_contents($CFG->dirroot . '/theme/albe/scss/preset/extra.scss');
}
-function theme_albe_get_main_scss_content($theme) {
+function theme_albe_get_main_scss_content() {
global $CFG;
return file_get_contents($CFG->dirroot . '/theme/boost/scss/preset/default.scss');
-}
\ No newline at end of file
+}
diff --git a/theme/albe/scss/preset/extra.scss b/theme/albe/scss/preset/extra.scss
index 998bee5..2bc7622 100644
--- a/theme/albe/scss/preset/extra.scss
+++ b/theme/albe/scss/preset/extra.scss
@@ -2,6 +2,11 @@ body {
font-family: var(--font-family-sans);
}
+idp-login {
+ flex: none;
+ height: auto !important;
+}
+
.btn {
font-family: inherit;
}
\ No newline at end of file
diff --git a/theme/albe/templates/theme_boost/drawers.mustache b/theme/albe/templates/theme_boost/drawers.mustache
deleted file mode 100755
index 74dad4a..0000000
--- a/theme/albe/templates/theme_boost/drawers.mustache
+++ /dev/null
@@ -1,183 +0,0 @@
-{{!
- 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/drawers
-
- Boost drawer template.
-
- Context variables required for this template:
- * sitename - The name of the site
- * output - The core renderer for the page
- * bodyattributes - attributes for the body tag as a string of html attributes
- * sidepreblocks - HTML for the blocks
- * hasblocks - true if there are blocks on this page
- * courseindexopen - true if the nav drawer should be open on page load
- * regionmainsettingsmenu - HTML for the region main settings menu
- * hasregionmainsettingsmenu - There is a region main settings menu on this page.
-
- Example context (json):
- {
- "sitename": "Moodle",
- "output": {
- "doctype": "",
- "page_title": "Test page",
- "favicon": "favicon.ico",
- "main_content": "
-
-
-
-{{#js}}
-M.util.js_pending('theme_boost/loader');
-require(['theme_boost/loader', 'theme_boost/drawer'], function(Loader, Drawer) {
- Drawer.init();
- M.util.js_complete('theme_boost/loader');
-});
-{{/js}}
diff --git a/theme/albe/templates/theme_boost/head.mustache b/theme/albe/templates/theme_boost/head.mustache
deleted file mode 100755
index 603fe7d..0000000
--- a/theme/albe/templates/theme_boost/head.mustache
+++ /dev/null
@@ -1,31 +0,0 @@
-{{!
- 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.doctype }}}
-
-
- {{{ output.page_title }}}
-
- {{{ output.standard_head_html }}}
-
-
-
-
-
-
\ No newline at end of file
diff --git a/theme/albe/version.php b/theme/albe/version.php
index 75742fd..bdd1fb2 100644
--- a/theme/albe/version.php
+++ b/theme/albe/version.php
@@ -5,10 +5,10 @@
defined('MOODLE_INTERNAL') || die();
// This is the version of the plugin.
-$plugin->version = '2016102100';
+$plugin->version = '2024042302';
// This is the version of Moodle this plugin requires.
-$plugin->requires = '2016070700';
+$plugin->requires = '2024041600';
// This is the component name of the plugin - it always starts with 'theme_'
// for themes and should be the same as the name of the folder.
@@ -16,5 +16,5 @@
// This is a list of plugins, this plugin depends on (and their versions).
$plugin->dependencies = [
- 'theme_boost' => '2016102100'
+ 'theme_boost' => '2024042200'
];
\ No newline at end of file