mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +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
|
@ -64,12 +64,14 @@ function formalwhite_set_backgroundcolor($css, $backgroundcolor) {
|
|||
function formalwhite_set_regionwidth($css, $regionwidth) {
|
||||
$tag = '[[setting:regionwidth]]';
|
||||
$doubletag = '[[setting:regionwidthdouble]]';
|
||||
$tagplus10 = '[[setting:regionwidthplus10]]';
|
||||
$replacement = $regionwidth;
|
||||
if (is_null($replacement)) {
|
||||
$replacement = 200;
|
||||
}
|
||||
$css = str_replace($tag, $replacement.'px', $css);
|
||||
$css = str_replace($doubletag, ($replacement*2).'px', $css);
|
||||
$css = str_replace($tag, ($replacement+10).'px', $css);
|
||||
return $css;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue