mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-72413 h5p: Use the common module for setting the header
This commit is contained in:
parent
8a510c31d1
commit
88983eef99
@ -84,6 +84,7 @@ $event->trigger();
|
||||
$shortname = format_string($course->shortname, true, ['context' => $context]);
|
||||
$pagetitle = strip_tags($shortname.': '.format_string($moduleinstance->name));
|
||||
$PAGE->set_title(format_string($pagetitle));
|
||||
$PAGE->activityheader->disable();
|
||||
|
||||
$navbar = [];
|
||||
if ($manager->can_view_all_attempts()) {
|
||||
|
@ -68,19 +68,8 @@ $PAGE->set_heading(format_string($course->fullname));
|
||||
$PAGE->set_context($context);
|
||||
|
||||
echo $OUTPUT->header();
|
||||
if (!$PAGE->has_secondary_navigation()) {
|
||||
echo $OUTPUT->heading(format_string($moduleinstance->name));
|
||||
}
|
||||
|
||||
// Render the activity information.
|
||||
$completiondetails = \core_completion\cm_completion_details::get_instance($cm, $USER->id);
|
||||
$activitydates = \core\activity_dates::get_dates_for_module($cm, $USER->id);
|
||||
echo $OUTPUT->activity_information($cm, $completiondetails, $activitydates);
|
||||
|
||||
$instance = $manager->get_instance();
|
||||
if (!empty($instance->intro)) {
|
||||
echo $OUTPUT->box(format_module_intro('h5pactivity', $instance, $cm->id), 'generalbox', 'intro');
|
||||
}
|
||||
|
||||
if (!$manager->is_tracking_enabled()) {
|
||||
$message = get_string('previewmode', 'mod_h5pactivity');
|
||||
|
Loading…
x
Reference in New Issue
Block a user