mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-75047 icons: Define the orientation of the question mark in right-to-left languages.
This commit is contained in:
parent
b4cd63746a
commit
0a6693ec4f
@ -64,6 +64,7 @@ $string['strftimetime12'] = '%I:%M %p';
|
||||
$string['strftimetime24'] = '%H:%M';
|
||||
$string['thisdirection'] = 'ltr';
|
||||
$string['thisdirectionvertical'] = 'btt';
|
||||
$string['thisicondirection'] = 'standard';
|
||||
$string['thislanguage'] = 'English';
|
||||
$string['thislanguageint'] = 'English';
|
||||
$string['thousandssep'] = ',';
|
||||
|
@ -502,8 +502,9 @@ class icon_system_fontawesome extends icon_system_font {
|
||||
$data['aria-hidden'] = $icon->attributes['aria-hidden'];
|
||||
}
|
||||
|
||||
// Flipping help icon direction in right-to-left languages.
|
||||
if (right_to_left() && $data['key'] == "fa-question-circle text-info") {
|
||||
// Define the orientation of the question mark in right-to-left languages.
|
||||
$mirror = get_string('thisicondirection', 'langconfig');
|
||||
if ($mirror == 'mirror' && (strpos($data['key'], 'fa-question') !== false)) {
|
||||
$data['extraclasses'] = "fa-flip-horizontal";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user