diff --git a/lib/navigationlib.php b/lib/navigationlib.php index d13fc2ff006..ca74df7be88 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -3610,6 +3610,14 @@ class flat_navigation_node extends navigation_node { $this->indent = $indent; } + /** + * Does this node represent a course section link. + * @return boolean + */ + public function is_section() { + return $this->type == navigation_node::TYPE_SECTION; + } + /** * Getter for "showdivider" * @return boolean diff --git a/theme/boost/templates/flat_navigation.mustache b/theme/boost/templates/flat_navigation.mustache index 93c1b92562e..bfb41b0fdb1 100644 --- a/theme/boost/templates/flat_navigation.mustache +++ b/theme/boost/templates/flat_navigation.mustache @@ -1,19 +1,30 @@ -