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
70cfe638
Commit
70cfe638
authored
6 years ago
by
Kathrin Osswald
Browse files
Options
Downloads
Patches
Plain Diff
Added newly introduced collection labels in the navdrawer nodes.
parent
b1ef4a07
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
locallib.php
+3
-1
3 additions, 1 deletion
locallib.php
with
4 additions
and
1 deletion
CHANGES.md
+
1
−
0
View file @
70cfe638
...
@@ -6,6 +6,7 @@ Changes
...
@@ -6,6 +6,7 @@ Changes
### Unreleased
### Unreleased
*
2019-06-03 - Added newly introduced collection labels in the navdrawer nodes.
*
2019-06-03 - Adjusted columns2.php due to upstream changes in theme Boost.
*
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.
...
...
This diff is collapsed.
Click to expand it.
locallib.php
+
3
−
1
View file @
70cfe638
...
@@ -304,9 +304,11 @@ function theme_boost_campus_set_node_on_top(flat_navigation $flatnav, $nodename,
...
@@ -304,9 +304,11 @@ function theme_boost_campus_set_node_on_top(flat_navigation $flatnav, $nodename,
// Set the showdivider of the new top node to false that no empty nav-element will be created.
// Set the showdivider of the new top node to false that no empty nav-element will be created.
$pageflatnav
->
set_showdivider
(
false
);
$pageflatnav
->
set_showdivider
(
false
);
// Add the showdivider to the coursehome node as this is the next one and this will add a margin top to it.
// Add the showdivider to the coursehome node as this is the next one and this will add a margin top to it.
$beforenode
->
set_showdivider
(
true
);
$beforenode
->
set_showdivider
(
true
,
$beforenode
->
text
);
// Remove the site home navigation node that it does not appear twice in the menu.
// Remove the site home navigation node that it does not appear twice in the menu.
$flatnav
->
remove
(
$nodename
);
$flatnav
->
remove
(
$nodename
);
// Set the collection label for this node.
$flatnav
->
set_collectionlabel
(
$pageflatnav
->
text
);
// Add the saved site home node before the $beforenode.
// Add the saved site home node before the $beforenode.
$flatnav
->
add
(
$pageflatnav
,
$beforenode
->
key
);
$flatnav
->
add
(
$pageflatnav
,
$beforenode
->
key
);
}
}
...
...
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