Skip to content

Commit

Permalink
MDL-59612 core: edit 'frametop' layout so links display for LTI
Browse files Browse the repository at this point in the history
Part of MDL-59313.
  • Loading branch information
mdjnelson committed Jul 31, 2017
1 parent d8cb461 commit 585146f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/outputrenderers.php
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,8 @@ public function main_content() {
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 '';
}

Expand Down
1 change: 1 addition & 0 deletions theme/boost/templates/columns1.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions theme/bootstrapbase/layout/columns1.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
<?php
echo $OUTPUT->course_content_header();
echo $OUTPUT->main_content();
echo $OUTPUT->activity_navigation();
echo $OUTPUT->course_content_footer();
?>
</section>
Expand Down
1 change: 1 addition & 0 deletions theme/clean/layout/columns1.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<?php
echo $OUTPUT->course_content_header();
echo $OUTPUT->main_content();
echo $OUTPUT->activity_navigation();
echo $OUTPUT->course_content_footer();
?>
</section>
Expand Down

0 comments on commit 585146f

Please sign in to comment.