mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-59612 core: edit 'frametop' layout so links display for LTI
Part of MDL-59313.
This commit is contained in:
parent
d8cb461529
commit
585146f0ab
@ -821,7 +821,8 @@ class core_renderer extends renderer_base {
|
||||
public function activity_navigation() {
|
||||
// First we should check if we want to add navigation.
|
||||
$context = $this->page->context;
|
||||
if ($this->page->pagelayout !== 'incourse' || $context->contextlevel != CONTEXT_MODULE) {
|
||||
if (($this->page->pagelayout !== 'incourse' && $this->page->pagelayout !== 'frametop')
|
||||
|| $context->contextlevel != CONTEXT_MODULE) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
@ -58,6 +58,7 @@
|
||||
<div class="card card-block">
|
||||
{{{ output.course_content_header }}}
|
||||
{{{ output.main_content }}}
|
||||
{{{ output.activity_navigation }}}
|
||||
{{{ output.course_content_footer }}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -63,6 +63,7 @@ echo $OUTPUT->doctype() ?>
|
||||
<?php
|
||||
echo $OUTPUT->course_content_header();
|
||||
echo $OUTPUT->main_content();
|
||||
echo $OUTPUT->activity_navigation();
|
||||
echo $OUTPUT->course_content_footer();
|
||||
?>
|
||||
</section>
|
||||
|
@ -65,6 +65,7 @@ echo $OUTPUT->doctype() ?>
|
||||
<?php
|
||||
echo $OUTPUT->course_content_header();
|
||||
echo $OUTPUT->main_content();
|
||||
echo $OUTPUT->activity_navigation();
|
||||
echo $OUTPUT->course_content_footer();
|
||||
?>
|
||||
</section>
|
||||
|
Loading…
x
Reference in New Issue
Block a user