Skip to content

Commit

Permalink
Add support for intro text
Browse files Browse the repository at this point in the history
  • Loading branch information
luukverhoeven committed Dec 8, 2020
1 parent 792dda8 commit 404db47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@

$plugin->component = 'mod_gcanvas';
$plugin->release = '3.10.1';
$plugin->version = 2020111400;
$plugin->version = 2020120700;
$plugin->requires = 2018051700;
$plugin->maturity = MATURITY_STABLE;
7 changes: 7 additions & 0 deletions view.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@
}

echo $OUTPUT->header();

// Info box.
$content = format_module_intro('gcanvas', $canvas, $cm->id);
if (!empty($content)) {
echo $OUTPUT->box($content, 'generalbox', 'intro');
}

echo $renderer->render_canvas($canvas);
echo $renderer->render_uploader('background', $canvas);
echo $renderer->render_uploader('student_image', $canvas);
Expand Down

0 comments on commit 404db47

Please sign in to comment.