Press This: RTL improvements.
* Load the RTL version of press-this-editor.css. * Use more semantic class names for the arrows, Makes it easier to swap the arrows in RTL, see #31478. see #31474. Built from https://develop.svn.wordpress.org/trunk@31577 git-svn-id: http://core.svn.wordpress.org/trunk@31558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dbc38ea246
commit
c7dba8b015
|
@ -1858,11 +1858,16 @@ html {
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-options .dashicons-arrow-right-alt2 {
|
.post-option-forward:before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
margin-top: -10px;
|
margin-top: -10px;
|
||||||
|
content: "\f345"
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-option-back:before {
|
||||||
|
content: "\f341";
|
||||||
}
|
}
|
||||||
|
|
||||||
.lt-ie9 .options-panel,
|
.lt-ie9 .options-panel,
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1858,11 +1858,16 @@ html {
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-options .dashicons-arrow-right-alt2 {
|
.post-option-forward:before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
right: 8px;
|
right: 8px;
|
||||||
margin-top: -10px;
|
margin-top: -10px;
|
||||||
|
content: "\f345"
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-option-back:before {
|
||||||
|
content: "\f341";
|
||||||
}
|
}
|
||||||
|
|
||||||
.lt-ie9 .options-panel,
|
.lt-ie9 .options-panel,
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -508,7 +508,13 @@ class WP_Press_This {
|
||||||
if ( ! empty( $styles ) ) {
|
if ( ! empty( $styles ) ) {
|
||||||
$styles .= ',';
|
$styles .= ',';
|
||||||
}
|
}
|
||||||
return $styles . admin_url( 'css/press-this-editor.css' );
|
|
||||||
|
$press_this = admin_url( 'css/press-this-editor.css' );
|
||||||
|
if ( is_rtl() ) {
|
||||||
|
$press_this = str_replace( '.css', '-rtl.css', $press_this );
|
||||||
|
}
|
||||||
|
|
||||||
|
return $styles . $press_this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -821,7 +827,7 @@ class WP_Press_This {
|
||||||
<span class="dashicons dashicons-admin-post"></span>
|
<span class="dashicons dashicons-admin-post"></span>
|
||||||
<span class="post-option-title"><?php _e( 'Format' ); ?></span>
|
<span class="post-option-title"><?php _e( 'Format' ); ?></span>
|
||||||
<span class="post-option-contents" id="post-option-post-format"><?php echo esc_html( get_post_format_string( $post_format ) ); ?></span>
|
<span class="post-option-contents" id="post-option-post-format"><?php echo esc_html( get_post_format_string( $post_format ) ); ?></span>
|
||||||
<span class="dashicons dashicons-arrow-right-alt2"></span>
|
<span class="dashicons post-option-forward"></span>
|
||||||
</button>
|
</button>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
@ -829,21 +835,21 @@ class WP_Press_This {
|
||||||
<span class="dashicons dashicons-category"></span>
|
<span class="dashicons dashicons-category"></span>
|
||||||
<span class="post-option-title"><?php _e( 'Categories' ); ?></span>
|
<span class="post-option-title"><?php _e( 'Categories' ); ?></span>
|
||||||
<span class="post-option-contents" id="post-option-category"></span>
|
<span class="post-option-contents" id="post-option-category"></span>
|
||||||
<span class="dashicons dashicons-arrow-right-alt2"></span>
|
<span class="dashicons post-option-forward"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button type="button" class="button-reset post-option">
|
<button type="button" class="button-reset post-option">
|
||||||
<span class="dashicons dashicons-tag"></span>
|
<span class="dashicons dashicons-tag"></span>
|
||||||
<span class="post-option-title"><?php _e( 'Tags' ); ?></span>
|
<span class="post-option-title"><?php _e( 'Tags' ); ?></span>
|
||||||
<span class="post-option-contents" id="post-option-tags"></span>
|
<span class="post-option-contents" id="post-option-tags"></span>
|
||||||
<span class="dashicons dashicons-arrow-right-alt2"></span>
|
<span class="dashicons post-option-forward"></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if ( $supports_formats ) : ?>
|
<?php if ( $supports_formats ) : ?>
|
||||||
<div class="setting-modal is-off-screen is-hidden">
|
<div class="setting-modal is-off-screen is-hidden">
|
||||||
<button type="button" class="button-reset modal-close">
|
<button type="button" class="button-reset modal-close">
|
||||||
<span class="dashicons dashicons-arrow-left-alt2"></span>
|
<span class="dashicons post-option-back"></span>
|
||||||
<span class="setting-title" aria-hidden="true"><?php _e( 'Post format' ); ?></span>
|
<span class="setting-title" aria-hidden="true"><?php _e( 'Post format' ); ?></span>
|
||||||
<span class="screen-reader-text"><?php _e( 'Back to post options' ) ?></span>
|
<span class="screen-reader-text"><?php _e( 'Back to post options' ) ?></span>
|
||||||
</button>
|
</button>
|
||||||
|
@ -853,7 +859,7 @@ class WP_Press_This {
|
||||||
|
|
||||||
<div class="setting-modal is-off-screen is-hidden">
|
<div class="setting-modal is-off-screen is-hidden">
|
||||||
<button type="button" class="button-reset modal-close">
|
<button type="button" class="button-reset modal-close">
|
||||||
<span class="dashicons dashicons-arrow-left-alt2"></span>
|
<span class="dashicons post-option-back"></span>
|
||||||
<span class="setting-title" aria-hidden="true"><?php _e( 'Categories' ); ?></span>
|
<span class="setting-title" aria-hidden="true"><?php _e( 'Categories' ); ?></span>
|
||||||
<span class="screen-reader-text"><?php _e( 'Back to post options' ) ?></span>
|
<span class="screen-reader-text"><?php _e( 'Back to post options' ) ?></span>
|
||||||
</button>
|
</button>
|
||||||
|
@ -862,7 +868,7 @@ class WP_Press_This {
|
||||||
|
|
||||||
<div class="setting-modal tags is-off-screen is-hidden">
|
<div class="setting-modal tags is-off-screen is-hidden">
|
||||||
<button type="button" class="button-reset modal-close">
|
<button type="button" class="button-reset modal-close">
|
||||||
<span class="dashicons dashicons-arrow-left-alt2"></span>
|
<span class="dashicons post-option-back"></span>
|
||||||
<span class="setting-title" aria-hidden="true"><?php _e( 'Tags' ); ?></span>
|
<span class="setting-title" aria-hidden="true"><?php _e( 'Tags' ); ?></span>
|
||||||
<span class="screen-reader-text"><?php _e( 'Back to post options' ) ?></span>
|
<span class="screen-reader-text"><?php _e( 'Back to post options' ) ?></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.2-alpha-31576';
|
$wp_version = '4.2-alpha-31577';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue