Skip to content

Commit

Permalink
MDL-9977 and MDL-8446 - added body class 'ltr'/'rtl' for language dir…
Browse files Browse the repository at this point in the history
…ection to support themes for 'rtl' languages.
  • Loading branch information
urs_hunkler committed Jun 10, 2007
1 parent aa2ed80 commit a8d82ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/weblib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.'"';
Expand Down

0 comments on commit a8d82ea

Please sign in to comment.