Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-theme_boost_campus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-theme_boost_campus
Commits
b1ef4a07
Commit
b1ef4a07
authored
6 years ago
by
Kathrin Osswald
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES.md
+1
-0
1 addition, 0 deletions
CHANGES.md
layout/columns2.php
+8
-1
8 additions, 1 deletion
layout/columns2.php
with
9 additions
and
1 deletion
CHANGES.md
+
1
−
0
View file @
b1ef4a07
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
layout/columns2.php
+
8
−
1
View file @
b1ef4a07
...
@@ -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
->
flat
nav
);
$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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment