diff --git a/classes/output/courseformat/content.php b/classes/output/courseformat/content.php index ea6cccb..48209bd 100644 --- a/classes/output/courseformat/content.php +++ b/classes/output/courseformat/content.php @@ -324,6 +324,9 @@ public function print_single_section_page(renderer_base $output): stdClass { $templatecontext->progress = $sectioncompletion->percent; $templatecontext->progresstitle = get_string('progresstitle:section', 'format_twocol'); $templatecontext->headerbackcolor = $headerbackcolor; + $availableclass = $format->get_output_classname('content\\section\\availability'); + $availability = new $availableclass($format, $thissection); + $templatecontext->hasavailability = $availability->export_for_template($output); if ($imagenum !== 0) { $imagenum--; diff --git a/templates/course_topic.mustache b/templates/course_topic.mustache index c9975fc..2beb501 100644 --- a/templates/course_topic.mustache +++ b/templates/course_topic.mustache @@ -49,6 +49,10 @@ {{{navlinkprevious}}} {{{navlinknext}}} +
+ {{$ core_courseformat/local/content/section/availability }} + {{> core_courseformat/local/content/section/availability }} + {{/ core_courseformat/local/content/section/availability }}