Add RTL and locale classes to the press this body. Props SergeyBiryukov. fixes #19603

git-svn-id: http://core.svn.wordpress.org/trunk@21052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2012-06-11 20:34:42 +00:00
parent 7859542799
commit 7c214624b6
2 changed files with 8 additions and 4 deletions

View File

@ -8195,13 +8195,13 @@ a.widget-control-edit {
width: auto; /* default 5em */
min-width: 5em;
}
.locale-ru-ru .press-this .posting {
.locale-ru-ru.press-this .posting {
margin-right: 257px; /* default 212px + 45px */
}
.locale-ru-ru .press-this #photo-add-url-div input[type="text"] {
.locale-ru-ru.press-this #photo-add-url-div input[type="text"] {
width: 255px; /* default 300px - 45px */
}
.locale-ru-ru .press-this #side-sortables {
.locale-ru-ru.press-this #side-sortables {
width: 245px; /* default 200px + 45px */
}

View File

@ -435,7 +435,11 @@ var photostorage = false;
});
</script>
</head>
<body class="press-this wp-admin<?php if ( is_rtl() ) echo ' rtl'; ?>">
<?php
$admin_body_class = ( is_rtl() ) ? 'rtl' : '';
$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
?>
<body class="press-this wp-admin <?php echo $admin_body_class; ?>">
<form action="press-this.php?action=post" method="post">
<div id="poststuff" class="metabox-holder">
<div id="side-sortables" class="press-this-sidebar">