mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
themes lib MDL-24895 Multiple fixes to better handle overflow.
Major tasks undertaken in this patch: * New format_text argument, overflowdiv. * New page layout Report. * Review of all format_text calls. * Added support for the report layout to all themes. * Changed forum post display from tables to divs.
This commit is contained in:
parent
2412f8b882
commit
367a75fae4
125 changed files with 3366 additions and 2062 deletions
|
@ -25,6 +25,7 @@ class block_course_summary extends block_base {
|
|||
$this->content = new stdClass();
|
||||
$options = new stdClass();
|
||||
$options->noclean = true; // Don't clean Javascripts etc
|
||||
$options->overflowdiv = true;
|
||||
$context = get_context_instance(CONTEXT_COURSE, $this->page->course->id);
|
||||
$this->page->course->summary = file_rewrite_pluginfile_urls($this->page->course->summary, 'pluginfile.php', $context->id, 'course', 'summary', NULL);
|
||||
$this->content->text = format_text($this->page->course->summary, $this->page->course->summaryformat, $options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue