MDL-62714 theme_boost: Course visibility in navigation bar

Added check in navbar.mustache to add dimmed_text class if needed.
Added is_hidden() in navigationlib.php to return if the class needs
to be added.
This commit is contained in:
Fotis Skandalis
2018-09-10 16:51:35 +03:00
parent 6e2e63457e
commit 8665cc33e0
2 changed files with 22 additions and 6 deletions
+9
View File
@@ -686,6 +686,15 @@ class navigation_node implements renderable {
return !empty($this->action);
}
/**
* Used to easily determine if this link in the breadcrumbs is hidden.
*
* @return boolean
*/
public function is_hidden() {
return $this->hidden;
}
/**
* Gets the CSS class to add to this node to describe its type
*