Skip to content
Snippets Groups Projects
Commit 70cfe638 authored by Kathrin Osswald's avatar Kathrin Osswald
Browse files

Added newly introduced collection labels in the navdrawer nodes.

parent b1ef4a07
Branches
Tags
No related merge requests found
...@@ -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.
......
...@@ -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);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment