mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
MDL-9977 and MDL-8446 - added body class 'ltr'/'rtl' for language direction to support themes for 'rtl' languages.
This commit is contained in:
parent
aa2ed80397
commit
a8d82ea9a4
@ -2452,6 +2452,10 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
|
||||
$pageclass .= ' drag';
|
||||
}
|
||||
|
||||
if (!empty($CFG->langdirection)) {
|
||||
$pageclass .= ' ' . $CFG->langdirection;
|
||||
}
|
||||
|
||||
$pageclass .= ' lang-'.$currentlanguage;
|
||||
|
||||
$bodytags .= ' class="'.$pageclass.'" id="'.$pageid.'"';
|
||||
|
Loading…
x
Reference in New Issue
Block a user