Make WordPress Core


Ignore:
Timestamp:
09/21/2006 12:34:34 AM (19 years ago)
Author:
ryan
Message:

RTL support. Props mani_monaj. #3136

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r4196 r4201  
    11601160}
    11611161
     1162function _mce_set_direction() {
     1163    global $wp_locale;
     1164    if ('rtl' == $wp_locale->text_direction)
     1165        echo 'directionality : "rtl" ,';
     1166}
     1167
     1168function _mce_load_rtl_plugin($input) {
     1169    global $wp_locale;
     1170    if ('rtl' == $wp_locale->text_direction)
     1171        $input[] = 'directionality';
     1172
     1173    return $input;
     1174}
     1175
     1176function _mce_add_direction_buttons($input) {
     1177    global $wp_locale;
     1178    if ('rtl' == $wp_locale->text_direction) {
     1179        $new_buttons = array('separator', 'ltr', 'rtl');
     1180        $input = array_merge($input, $new_buttons);
     1181    }
     1182
     1183    return $input;
     1184}
     1185
    11621186?>
Note: See TracChangeset for help on using the changeset viewer.