Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-theme_boost_campus_child
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-theme_boost_campus_child
Commits
9d270d6a
Commit
9d270d6a
authored
4 years ago
by
Kathrin Osswald
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bug that setting addablockposition was not applied to Boost Campus Child.
parent
f4327c23
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
config.php
+15
-1
15 additions, 1 deletion
config.php
with
16 additions
and
1 deletion
CHANGES.md
+
1
−
0
View file @
9d270d6a
...
@@ -6,6 +6,7 @@ Changes
...
@@ -6,6 +6,7 @@ Changes
### Unreleased
### Unreleased
*
2020-10-05 - Fixed bug that setting addablockposition was not applied to Boost Campus Child.
*
2020-09-24 - Fixed bug that theme Boost Campus Child did not show the favicon set in parent theme Boost Campus.
*
2020-09-24 - Fixed bug that theme Boost Campus Child did not show the favicon set in parent theme Boost Campus.
*
2020-06-09 - Improved SCSS settings to be used with admin_setting_scsscode that validates the code before saving.
*
2020-06-09 - Improved SCSS settings to be used with admin_setting_scsscode that validates the code before saving.
...
...
This diff is collapsed.
Click to expand it.
config.php
+
15
−
1
View file @
9d270d6a
...
@@ -36,4 +36,18 @@ $THEME->prescsscallback = 'theme_boost_campus_child_get_pre_scss';
...
@@ -36,4 +36,18 @@ $THEME->prescsscallback = 'theme_boost_campus_child_get_pre_scss';
$THEME
->
yuicssmodules
=
array
();
$THEME
->
yuicssmodules
=
array
();
$THEME
->
rendererfactory
=
'theme_overridden_renderer_factory'
;
$THEME
->
rendererfactory
=
'theme_overridden_renderer_factory'
;
$THEME
->
requiredblocks
=
' '
;
$THEME
->
requiredblocks
=
' '
;
// MODIFICATION START:
// Apply the setting from parent theme Boost Campus to define where the
// add a block widget is placed.
// Get the config from parent theme boost_campus.
if
(
get_config
(
'theme_boost_campus'
,
'addablockposition'
)
==
'positionnavdrawer'
)
{
$THEME
->
addblockposition
=
BLOCK_ADDBLOCK_POSITION_FLATNAV
;
}
else
{
$THEME
->
addblockposition
=
BLOCK_ADDBLOCK_POSITION_DEFAULT
;
$THEME
->
addblockposition
=
BLOCK_ADDBLOCK_POSITION_DEFAULT
;
}
// MODIFCATION END.
/* ORIGINAL START.
THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_DEFAULT;
ORIGINAL END. */
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