mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +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
|
@ -305,7 +305,8 @@
|
|||
if (!isset($group->descriptionformat)) {
|
||||
$group->descriptionformat = FORMAT_MOODLE;
|
||||
}
|
||||
$contentcell->text = $OUTPUT->heading($contentheading, 3) . format_text($group->description, $group->descriptionformat);
|
||||
$options = array('overflowdiv'=>true);
|
||||
$contentcell->text = $OUTPUT->heading($contentheading, 3) . format_text($group->description, $group->descriptionformat, $options);
|
||||
$groupinfotable->data[] = new html_table_row(array($picturecell, $contentcell));
|
||||
echo html_writer::table($groupinfotable);
|
||||
}
|
||||
|
|
|
@ -214,7 +214,8 @@ if ($user->description && !isset($hiddenfields['description'])) {
|
|||
echo get_string('profilenotshown', 'moodle');
|
||||
} else {
|
||||
$user->description = file_rewrite_pluginfile_urls($user->description, 'pluginfile.php', $usercontext->id, 'user', 'profile', null);
|
||||
echo format_text($user->description, $user->descriptionformat);
|
||||
$options = array('overflowdiv'=>true);
|
||||
echo format_text($user->description, $user->descriptionformat, $options);
|
||||
}
|
||||
}
|
||||
echo '</div>';
|
||||
|
|
|
@ -36,7 +36,7 @@ class profile_field_textarea extends profile_field_base {
|
|||
* Display the data for this field
|
||||
*/
|
||||
function display_data() {
|
||||
return format_text($this->data, $this->dataformat, new stdClass());
|
||||
return format_text($this->data, $this->dataformat, array('overflowdiv'=>true));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -219,7 +219,8 @@ if ($user->description && !isset($hiddenfields['description'])) {
|
|||
// we have to make a little detour thought the course context to verify the access control for course profile
|
||||
$user->description = file_rewrite_pluginfile_urls($user->description, 'pluginfile.php', $coursecontext->id, 'user', 'profile', $user->id);
|
||||
}
|
||||
echo format_text($user->description, $user->descriptionformat);
|
||||
$options = array('overflowdiv'=>true);
|
||||
echo format_text($user->description, $user->descriptionformat, $options);
|
||||
}
|
||||
}
|
||||
echo '</div>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue