mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-50923 themes: content-only class added before region-only
This commit is contained in:
parent
4738193225
commit
55a8e86807
@ -3769,14 +3769,14 @@ EOD;
|
||||
$additionalclasses[] = 'docked-region-'.$region;
|
||||
}
|
||||
}
|
||||
if (count($usedregions) === 1) {
|
||||
if (!$usedregions) {
|
||||
// No regions means there is only content, add 'content-only' class.
|
||||
$additionalclasses[] = 'content-only';
|
||||
} else if (count($usedregions) === 1) {
|
||||
// Add the -only class for the only used region.
|
||||
$region = array_shift($usedregions);
|
||||
$additionalclasses[] = $region . '-only';
|
||||
}
|
||||
if (!$usedregions) {
|
||||
$additionalclasses[] = 'content-only';
|
||||
}
|
||||
foreach ($this->page->layout_options as $option => $value) {
|
||||
if ($value) {
|
||||
$additionalclasses[] = 'layout-option-'.$option;
|
||||
|
Loading…
x
Reference in New Issue
Block a user