Add rtl class to the admin body if is_rtl(). RTL fixes for twentyeleven theme-options.php. Props rasheed. fixes #17603
git-svn-id: https://develop.svn.wordpress.org/trunk@18125 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
145d947721
commit
f786d16ed3
|
@ -85,6 +85,9 @@ if ( get_user_setting('mfold') == 'f' )
|
||||||
if ( is_admin_bar_showing() )
|
if ( is_admin_bar_showing() )
|
||||||
$admin_body_class .= ' admin-bar';
|
$admin_body_class .= ' admin-bar';
|
||||||
|
|
||||||
|
if ( is_rtl() )
|
||||||
|
$admin_body_class .= ' rtl';
|
||||||
|
|
||||||
$admin_body_class .= ' branch-' . str_replace( '.', '-', floatval( $wp_version ) );
|
$admin_body_class .= ' branch-' . str_replace( '.', '-', floatval( $wp_version ) );
|
||||||
$admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', $wp_version ) );
|
$admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', $wp_version ) );
|
||||||
$admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' );
|
$admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' );
|
||||||
|
|
|
@ -28,3 +28,8 @@
|
||||||
margin: 0 7px 0 3px;
|
margin: 0 7px 0 3px;
|
||||||
padding: 4px 14px;
|
padding: 4px 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.rtl .image-radio-option label {
|
||||||
|
float: right;
|
||||||
|
margin: 0 2px 20px 30px;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue