mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +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
|
@ -162,6 +162,7 @@ foreach ($members as $gpgid=>$groupdata) {
|
|||
$description = file_rewrite_pluginfile_urls($groups[$gpid]->description, 'pluginfile.php', $context->id, 'group', 'description', $gpid);
|
||||
$options = new stdClass;
|
||||
$options->noclean = true;
|
||||
$options->overflowdiv = true;
|
||||
$jsdescription = trim(format_text($description, $groups[$gpid]->descriptionformat, $options));
|
||||
if (empty($jsdescription)) {
|
||||
$line[] = $name;
|
||||
|
@ -187,6 +188,7 @@ foreach ($members as $gpgid=>$groupdata) {
|
|||
$description = file_rewrite_pluginfile_urls($groupings[$gpgid]->description, 'pluginfile.php', $context->id, 'grouping', 'description', $gpgid);
|
||||
$options = new stdClass;
|
||||
$options->noclean = true;
|
||||
$options->overflowdiv = true;
|
||||
echo $OUTPUT->box(format_text($description, $groupings[$gpgid]->descriptionformat, $options), 'generalbox boxwidthnarrow boxaligncenter');
|
||||
}
|
||||
echo html_writer::table($table);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue