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

Adjusted columns2.php due to upstream changes in theme Boost.

parent a05ba59b
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ Changes ...@@ -6,6 +6,7 @@ Changes
### Unreleased ### Unreleased
* 2019-06-03 - Adjusted columns2.php due to upstream changes in theme Boost.
* 2019-06-03 - Adjusted login.mustache template due to upstream changes in theme Boost. * 2019-06-03 - Adjusted login.mustache template due to upstream changes in theme Boost.
* 2019-06-03 - Adjusted footer.mustache template due to upstream changes in theme Boost. * 2019-06-03 - Adjusted footer.mustache template due to upstream changes in theme Boost.
* 2019-06-03 - Adjusted columns2.mustache template due to upstream changes in theme Boost. * 2019-06-03 - Adjusted columns2.mustache template due to upstream changes in theme Boost.
......
...@@ -92,9 +92,10 @@ $templatecontext = [ ...@@ -92,9 +92,10 @@ $templatecontext = [
// MODIFICATION END. // MODIFICATION END.
]; ];
$nav = $PAGE->flatnav;
// MODIDFICATION START. // MODIDFICATION START.
// Use the returned value from theme_boost_campus_get_modified_flatnav_defaulthomepageontop as the template context. // Use the returned value from theme_boost_campus_get_modified_flatnav_defaulthomepageontop as the template context.
$templatecontext['flatnavigation'] = theme_boost_campus_process_flatnav($PAGE->flatnav); $templatecontext['flatnavigation'] = theme_boost_campus_process_flatnav($nav);
// If setting showsettingsincourse is enabled. // If setting showsettingsincourse is enabled.
if (get_config('theme_boost_campus', 'showsettingsincourse') == 'yes') { if (get_config('theme_boost_campus', 'showsettingsincourse') == 'yes') {
// Context value for requiring incoursesettings.js. // Context value for requiring incoursesettings.js.
...@@ -104,6 +105,12 @@ if (get_config('theme_boost_campus', 'showsettingsincourse') == 'yes') { ...@@ -104,6 +105,12 @@ if (get_config('theme_boost_campus', 'showsettingsincourse') == 'yes') {
// Add the returned value from theme_boost_campus_get_incourse_activity_settings to the template context. // Add the returned value from theme_boost_campus_get_incourse_activity_settings to the template context.
$templatecontext['activitynode'] = theme_boost_campus_get_incourse_activity_settings(); $templatecontext['activitynode'] = theme_boost_campus_get_incourse_activity_settings();
} }
// MODIFICATION END.
/* ORIGINAL START.
$templatecontext['flatnavigation'] = $nav;
ORIGINAL END. */
$templatecontext['firstcollectionlabel'] = $nav->get_collectionlabel();
// MODIFICATION START: Handle additional layout elements. // MODIFICATION START: Handle additional layout elements.
// The output buffer is needed to render the additional layout elements now without outputting them to the page directly. // The output buffer is needed to render the additional layout elements now without outputting them to the page directly.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment