mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +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
|
@ -178,7 +178,7 @@ if (trim($workshop->instructreviewers)) {
|
|||
$instructions = file_rewrite_pluginfile_urls($workshop->instructreviewers, 'pluginfile.php', $PAGE->context->id,
|
||||
'mod_workshop', 'instructreviewers', 0, workshop::instruction_editors_options($PAGE->context));
|
||||
print_collapsible_region_start('', 'workshop-viewlet-instructreviewers', get_string('instructreviewers', 'workshop'));
|
||||
echo $output->box(format_text($instructions, $workshop->instructreviewersformat), array('generalbox', 'instructions'));
|
||||
echo $output->box(format_text($instructions, $workshop->instructreviewersformat, array('overflowdiv'=>true)), array('generalbox', 'instructions'));
|
||||
print_collapsible_region_end();
|
||||
}
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ if (trim($workshop->instructreviewers)) {
|
|||
$instructions = file_rewrite_pluginfile_urls($workshop->instructreviewers, 'pluginfile.php', $PAGE->context->id,
|
||||
'mod_workshop', 'instructreviewers', 0, workshop::instruction_editors_options($PAGE->context));
|
||||
print_collapsible_region_start('', 'workshop-viewlet-instructreviewers', get_string('instructreviewers', 'workshop'));
|
||||
echo $output->box(format_text($instructions, $workshop->instructreviewersformat), array('generalbox', 'instructions'));
|
||||
echo $output->box(format_text($instructions, $workshop->instructreviewersformat, array('overflowdiv'=>true)), array('generalbox', 'instructions'));
|
||||
print_collapsible_region_end();
|
||||
}
|
||||
|
||||
|
|
|
@ -179,7 +179,7 @@ if (trim($workshop->instructauthors)) {
|
|||
$instructions = file_rewrite_pluginfile_urls($workshop->instructauthors, 'pluginfile.php', $PAGE->context->id,
|
||||
'mod_workshop', 'instructauthors', 0, workshop::instruction_editors_options($PAGE->context));
|
||||
print_collapsible_region_start('', 'workshop-viewlet-instructauthors', get_string('instructauthors', 'workshop'));
|
||||
echo $output->box(format_text($instructions, $workshop->instructauthorsformat), array('generalbox', 'instructions'));
|
||||
echo $output->box(format_text($instructions, $workshop->instructauthorsformat, array('overflowdiv'=>true)), array('generalbox', 'instructions'));
|
||||
print_collapsible_region_end();
|
||||
}
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ class mod_workshop_renderer extends plugin_renderer_base {
|
|||
|
||||
$o .= $this->output->container_end(); // end of header
|
||||
|
||||
$content = format_text($submission->content, $submission->contentformat);
|
||||
$content = format_text($submission->content, $submission->contentformat, array('overflowdiv'=>true));
|
||||
$content = file_rewrite_pluginfile_urls($content, 'pluginfile.php', $this->page->context->id,
|
||||
'mod_workshop', 'submission_content', $submission->id);
|
||||
$o .= $this->output->container($content, 'content');
|
||||
|
@ -215,7 +215,7 @@ class mod_workshop_renderer extends plugin_renderer_base {
|
|||
$o .= $this->output->heading(format_string($example->title), 3, 'title');
|
||||
$o .= $this->output->container_end(); // end of header
|
||||
|
||||
$content = format_text($example->content, $example->contentformat);
|
||||
$content = format_text($example->content, $example->contentformat, array('overflowdiv'=>true));
|
||||
$content = file_rewrite_pluginfile_urls($content, 'pluginfile.php', $this->page->context->id,
|
||||
'mod_workshop', 'submission_content', $example->id);
|
||||
$o .= $this->output->container($content, 'content');
|
||||
|
|
|
@ -223,7 +223,7 @@ if (trim($workshop->instructauthors)) {
|
|||
$instructions = file_rewrite_pluginfile_urls($workshop->instructauthors, 'pluginfile.php', $PAGE->context->id,
|
||||
'mod_workshop', 'instructauthors', 0, workshop::instruction_editors_options($PAGE->context));
|
||||
print_collapsible_region_start('', 'workshop-viewlet-instructauthors', get_string('instructauthors', 'workshop'));
|
||||
echo $output->box(format_text($instructions, $workshop->instructauthorsformat), array('generalbox', 'instructions'));
|
||||
echo $output->box(format_text($instructions, $workshop->instructauthorsformat, array('overflowdiv'=>true)), array('generalbox', 'instructions'));
|
||||
print_collapsible_region_end();
|
||||
}
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ case workshop::PHASE_SUBMISSION:
|
|||
$instructions = file_rewrite_pluginfile_urls($workshop->instructauthors, 'pluginfile.php', $PAGE->context->id,
|
||||
'mod_workshop', 'instructauthors', 0, workshop::instruction_editors_options($PAGE->context));
|
||||
print_collapsible_region_start('', 'workshop-viewlet-instructauthors', get_string('instructauthors', 'workshop'));
|
||||
echo $output->box(format_text($instructions, $workshop->instructauthorsformat), array('generalbox', 'instructions'));
|
||||
echo $output->box(format_text($instructions, $workshop->instructauthorsformat, array('overflowdiv'=>true)), array('generalbox', 'instructions'));
|
||||
print_collapsible_region_end();
|
||||
}
|
||||
|
||||
|
@ -241,7 +241,7 @@ case workshop::PHASE_ASSESSMENT:
|
|||
$instructions = file_rewrite_pluginfile_urls($workshop->instructreviewers, 'pluginfile.php', $PAGE->context->id,
|
||||
'mod_workshop', 'instructreviewers', 0, workshop::instruction_editors_options($PAGE->context));
|
||||
print_collapsible_region_start('', 'workshop-viewlet-instructreviewers', get_string('instructreviewers', 'workshop'));
|
||||
echo $output->box(format_text($instructions, $workshop->instructreviewersformat), array('generalbox', 'instructions'));
|
||||
echo $output->box(format_text($instructions, $workshop->instructreviewersformat, array('overflowdiv'=>true)), array('generalbox', 'instructions'));
|
||||
print_collapsible_region_end();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue