Commit 585146f0 authored by Mark Nelson's avatar Mark Nelson
Browse files

MDL-59612 core: edit 'frametop' layout so links display for LTI

Part of MDL-59313.
parent d8cb4615
......@@ -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>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment