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. git-svn-id: https://develop.svn.wordpress.org/trunk@31577 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fed3b8fd1f
commit
964ba03e97
@ -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,
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user