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:
@@ -99,8 +99,9 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
$summarytext = file_rewrite_pluginfile_urls($thissection->summary, 'pluginfile.php', $coursecontext->id, 'course', 'section', $thissection->id);
|
||||
$summaryformatoptions = new stdClass();
|
||||
$summaryformatoptions = new stdClass;
|
||||
$summaryformatoptions->noclean = true;
|
||||
$summaryformatoptions->overflowdiv = true;
|
||||
echo format_text($summarytext, $thissection->summaryformat, $summaryformatoptions);
|
||||
|
||||
if ($PAGE->user_is_editing() && has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id))) {
|
||||
@@ -230,8 +231,9 @@ defined('MOODLE_INTERNAL') || die();
|
||||
echo '<div class="summary">';
|
||||
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
$summarytext = file_rewrite_pluginfile_urls($thissection->summary, 'pluginfile.php', $coursecontext->id, 'course', 'section', $thissection->id);
|
||||
$summaryformatoptions = new stdClass();
|
||||
$summaryformatoptions = new stdClass;
|
||||
$summaryformatoptions->noclean = true;
|
||||
$summaryformatoptions->overflowdiv = true;
|
||||
echo format_text($summarytext, $thissection->summaryformat, $summaryformatoptions);
|
||||
|
||||
if ($PAGE->user_is_editing() && has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id))) {
|
||||
|
||||
Reference in New Issue
Block a user