Skip to content
Snippets Groups Projects
Commit 5b061953 authored by Kathrin Osswald's avatar Kathrin Osswald
Browse files

Only require the corresponding layout files if the equivalent setting is enabled.

parent c58d8127
No related branches found
No related tags found
No related merge requests found
......@@ -107,8 +107,16 @@ ORIGINAL END. */
// MODIFICATION START: Require additional layout files.
// Add footer blocks and standard footer.
require_once(dirname(__FILE__).'/includes/footer.php');
// Get badgeareaitems config.
$badgeareaitems = get_config('theme_boost_campus', 'badgeareaitems');
if (!empty($badgeareaitems)) {
// Add badgearea layout file.
require_once(dirname(__FILE__) . '/includes/badgearea.php');
}
// Get footnote config.
$footnote = get_config('theme_boost_campus', 'footnote');
if (!empty($footnote)) {
// Add footnote layout file.
require_once(dirname(__FILE__) . '/includes/footnote.php');
}
// MODIFICATION END.
......@@ -39,6 +39,11 @@ echo $OUTPUT->render_from_template('theme_boost/login', $templatecontext);
// Include own layout file for the footnote region.
// The theme_boost/login template already renders the standard footer.
// The footer blocks and the badge area are currently not shown on the login page.
// Here, we add the footnote only.
// Here, we will add the footnote only.
// Get footnote config.
$footnote = get_config('theme_boost_campus', 'footnote');
if (!empty($footnote)) {
// Add footnote layout file.
require_once(dirname(__FILE__) . '/includes/footnote.php');
}
// MODIFICATION END.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment