diff --git a/course/format/classes/output/local/content/section.php b/course/format/classes/output/local/content/section.php index 40d040b57ba..3b521bc238b 100644 --- a/course/format/classes/output/local/content/section.php +++ b/course/format/classes/output/local/content/section.php @@ -138,6 +138,7 @@ class section implements renderable, templatable { 'summary' => $summary->export_for_template($output), 'availability' => $availability->export_for_template($output), 'restrictionlock' => !empty($thissection->availableinfo), + 'highlightedlabel' => $format->get_section_highlighted_name(), ]; // Check if it is a stealth sections (orphaned). diff --git a/course/format/templates/local/content/section.mustache b/course/format/templates/local/content/section.mustache index 08995899ef9..6432750ef56 100644 --- a/course/format/templates/local/content/section.mustache +++ b/course/format/templates/local/content/section.mustache @@ -26,6 +26,7 @@ "controlmenu": "[tools menu]", "header": { "name": "Section title", + "title": "Section title", "url": "#", "ishidden": true }, @@ -39,6 +40,7 @@ }, "id": 3, "module": "forum", + "anchor": "activity-3", "extraclasses": "newmessages" } }, @@ -49,6 +51,7 @@ "hasname": "true" }, "id": 4, + "anchor": "activity-4", "module": "assign", "extraclasses": "" } @@ -76,7 +79,8 @@ "contentcollapsed": false, "insertafter": true, "numsections": 42, - "sitehome": false + "sitehome": false, + "highlightedlabel" : "Highlighted" } }}