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
a9934749
Commit
a9934749
authored
6 years ago
by
Luca Bösch
Committed by
Kathrin Osswald
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Check existance of properties before accessing them.
parent
82bd4744
Branches
Branches containing commit
Tags
Tags containing commit
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
lib.php
+8
-4
8 additions, 4 deletions
lib.php
with
9 additions
and
4 deletions
CHANGES.md
+
1
−
0
View file @
a9934749
...
...
@@ -6,6 +6,7 @@ Changes
### Unreleased
*
2019-05-29 - Check existence of property blockcolumnwidth before accessing it.
*
2019-05-29 - Login background image did not fill the page completely when browser window was really low but really wide.
*
2019-05-27 - Added multilanguage filtering to the login background image texts.
*
2019-05-24 - Prevent back-to-top button from being printed.
...
...
This diff is collapsed.
Click to expand it.
lib.php
+
8
−
4
View file @
a9934749
...
...
@@ -120,15 +120,19 @@ function theme_boost_campus_get_pre_scss($theme) {
// MODIFICATION START: Overwrite Boost core SCSS variables which need units and thus couldn't be added to $configurable above.
// Set variables which are processed in the context of the blockcolumnwidth setting.
if
(
isset
(
$theme
->
settings
->
blockcolumnwidth
))
{
$scss
.
=
'$blocks-column-width: '
.
$theme
->
settings
->
blockcolumnwidth
.
"px;
\n
"
;
$scss
.
=
'$grid-gutter-width: '
.
"30px;
\n
"
;
}
// MODIFICATION END.
// MODIFICATION START: Set own SCSS variables which need units or calculations and thus couldn't be
// added to $configurable above.
// Set variables which are processed in the context of the blockcolumnwidth setting.
if
(
isset
(
$theme
->
settings
->
blockcolumnwidthdashboard
))
{
$scss
.
=
'$blocks-column-width-dashboard: '
.
$theme
->
settings
->
blockcolumnwidthdashboard
.
"px;
\n
"
;
$scss
.
=
'$blocks-plus-gutter-dashboard: $blocks-column-width-dashboard + ( $grid-gutter-width / 2 )'
.
";
\n
"
;
}
// MODIFICATION END.
// MODIFICATION START: Add login background images that are uploaded to the setting 'loginbackgroundimage' to CSS.
...
...
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