Make WordPress Core


Ignore:
Timestamp:
02/27/2015 07:43:33 PM (12 years ago)
Author:
ocean90
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-press-this.php

    r31571 r31577  
    509509                        $styles .= ',';
    510510                }
    511                 return $styles . admin_url( 'css/press-this-editor.css' );
     511
     512                $press_this = admin_url( 'css/press-this-editor.css' );
     513                if ( is_rtl() ) {
     514                        $press_this = str_replace( '.css', '-rtl.css', $press_this );
     515                }
     516
     517                return $styles . $press_this;
    512518        }
    513519
     
    822828                                                <span class="post-option-title"><?php _e( 'Format' ); ?></span>
    823829                                                <span class="post-option-contents" id="post-option-post-format"><?php echo esc_html( get_post_format_string( $post_format ) ); ?></span>
    824                                                 <span class="dashicons dashicons-arrow-right-alt2"></span>
     830                                                <span class="dashicons post-option-forward"></span>
    825831                                        </button>
    826832                                <?php endif; ?>
     
    830836                                        <span class="post-option-title"><?php _e( 'Categories' ); ?></span>
    831837                                        <span class="post-option-contents" id="post-option-category"></span>
    832                                         <span class="dashicons dashicons-arrow-right-alt2"></span>
     838                                        <span class="dashicons post-option-forward"></span>
    833839                                </button>
    834840
     
    837843                                        <span class="post-option-title"><?php _e( 'Tags' ); ?></span>
    838844                                        <span class="post-option-contents" id="post-option-tags"></span>
    839                                         <span class="dashicons dashicons-arrow-right-alt2"></span>
     845                                        <span class="dashicons post-option-forward"></span>
    840846                                </button>
    841847                        </div>
     
    844850                                <div class="setting-modal is-off-screen is-hidden">
    845851                                        <button type="button" class="button-reset modal-close">
    846                                                 <span class="dashicons dashicons-arrow-left-alt2"></span>
     852                                                <span class="dashicons post-option-back"></span>
    847853                                                <span class="setting-title" aria-hidden="true"><?php _e( 'Post format' ); ?></span>
    848854                                                <span class="screen-reader-text"><?php _e( 'Back to post options' ) ?></span>
     
    854860                        <div class="setting-modal is-off-screen is-hidden">
    855861                                <button type="button" class="button-reset modal-close">
    856                                         <span class="dashicons dashicons-arrow-left-alt2"></span>
     862                                        <span class="dashicons post-option-back"></span>
    857863                                        <span class="setting-title" aria-hidden="true"><?php _e( 'Categories' ); ?></span>
    858864                                        <span class="screen-reader-text"><?php _e( 'Back to post options' ) ?></span>
     
    863869                        <div class="setting-modal tags is-off-screen is-hidden">
    864870                                <button type="button" class="button-reset modal-close">
    865                                         <span class="dashicons dashicons-arrow-left-alt2"></span>
     871                                        <span class="dashicons post-option-back"></span>
    866872                                        <span class="setting-title" aria-hidden="true"><?php _e( 'Tags' ); ?></span>
    867873                                        <span class="screen-reader-text"><?php _e( 'Back to post options' ) ?></span>
Note: See TracChangeset for help on using the changeset viewer.