MDL-55074 theme_boost: Make sections different in flat nav

This commit is contained in:
Damyon Wiese
2016-10-21 12:37:33 +08:00
parent 8a2ab5f72d
commit 598b3f095f
2 changed files with 26 additions and 7 deletions
+8
View File
@@ -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