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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-theme_boost_campus
Commits
5b061953
Commit
5b061953
authored
8 years ago
by
Kathrin Osswald
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
layout/columns2.php
+12
-4
12 additions, 4 deletions
layout/columns2.php
layout/login.php
+7
-2
7 additions, 2 deletions
layout/login.php
with
19 additions
and
6 deletions
layout/columns2.php
+
12
−
4
View file @
5b061953
...
...
@@ -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.
This diff is collapsed.
Click to expand it.
layout/login.php
+
7
−
2
View file @
5b061953
...
...
@@ -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.
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