WordPress.org

Make WordPress Core

Ticket #15984: theme-install.rtl.patch

File theme-install.rtl.patch, 8.5 KB (added by yoavf, 3 years ago)
  • wp-includes/script-loader.php

     
    480480 
    481481        $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.dev' : ''; 
    482482 
    483         $rtl_styles = array( 'wp-admin', 'global', 'colors', 'colors-fresh', 'colors-classic', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'plugin-install', 'nav-menu', 'farbtastic', 'admin-bar', 'wplink' ); 
     483        $rtl_styles = array( 'wp-admin', 'global', 'colors', 'colors-fresh', 'colors-classic', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'plugin-install', 'nav-menu', 'farbtastic', 'admin-bar', 'wplink', 'theme-install' ); 
    484484        // Any rtl stylesheets that don't have a .dev version for ltr 
    485485        $no_suffix = array( 'farbtastic' ); 
    486486 
  • wp-admin/includes/theme-install.php

     
    8787                $feature_name = esc_html( $feature_name ); 
    8888                echo '<div class="feature-name">' . $feature_name . '</div>'; 
    8989 
    90                 echo '<ol style="float: left; width: 725px;" class="feature-group">'; 
     90                echo '<ol class="feature-group">'; 
    9191                foreach ( $features as $feature => $feature_name ) { 
    9292                        $feature_name = esc_html( $feature_name ); 
    9393                        $feature = esc_attr($feature); 
  • wp-admin/css/theme-install.css

     
    1 div.star-holder{position:relative;height:19px;width:100px;font-size:19px;}div.star{height:100%;position:absolute;top:0;left:0;background-color:transparent;letter-spacing:1ex;border:none;}.star1{width:20%;}.star2{width:40%;}.star3{width:60%;}.star4{width:80%;}.star5{width:100%;}.star img,div.star a,div.star a:hover,div.star a:visited{display:block;position:absolute;right:0;border:none;text-decoration:none;}div.star img{width:19px;height:19px;border-left:1px solid #fff;border-right:1px solid #fff;}.theme-listing .theme-item{display:inline-block;width:200px;border:thin solid #ccc;vertical-align:top;}.theme-listing .theme-item h3{text-align:center;font-size:14px;font-style:italic;margin:0;padding:0;}.theme-listing .theme-item img{max-width:150px;max-height:150px;}.theme-listing .theme-item-info span{display:none;}.theme-listing .theme-item:hover .theme-item-info span{display:inline;}.theme-listing .theme-item:hover .theme-item-info span.dots{display:none;}.theme-listing .theme-item-info span.action-links{font-weight:bold;text-align:center;}.theme-listing br.line{border-bottom-width:1px;border-bottom-style:solid;margin-bottom:3px;}.available-theme{padding:20px 15px;}#theme-information .theme-preview-img{float:left;margin:5px 25px 10px 15px;width:300px;}#theme-information .action-button{border-top-width:1px;border-top-style:solid;margin:10px 5px 0;}#theme-information .action-button #cancel{float:left;margin:10px 15px;}#theme-information .action-button #install{float:right;margin:10px 15px;}#theme-information .available-theme h3{margin:1em 0;}body#theme-information{height:auto;}.feature-filter{-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;border-width:1px;border-style:solid;padding:8px 12px 0;}.feature-filter .feature-group{float:left;margin-bottom:20px;width:695px;}.feature-filter .feature-name{float:left;text-align:right;width:95px;}.feature-filter .feature-group li{display:inline;float:left;list-style-type:none;padding-right:25px;min-width:145px;}.feature-container{width:100%;overflow:auto;margin-bottom:10px;}.feature-group{margin-bottom:0!important;} 
    2  No newline at end of file 
     1div.star-holder{position:relative;height:19px;width:100px;font-size:19px;}div.star{height:100%;position:absolute;top:0;left:0;background-color:transparent;letter-spacing:1ex;border:none;}.star1{width:20%;}.star2{width:40%;}.star3{width:60%;}.star4{width:80%;}.star5{width:100%;}.star img,div.star a,div.star a:hover,div.star a:visited{display:block;position:absolute;right:0;border:none;text-decoration:none;}div.star img{width:19px;height:19px;border-left:1px solid #fff;border-right:1px solid #fff;}.theme-listing .theme-item{display:inline-block;width:200px;border:thin solid #ccc;vertical-align:top;}.theme-listing .theme-item h3{text-align:center;font-size:14px;font-style:italic;margin:0;padding:0;}.theme-listing .theme-item img{max-width:150px;max-height:150px;}.theme-listing .theme-item-info span{display:none;}.theme-listing .theme-item:hover .theme-item-info span{display:inline;}.theme-listing .theme-item:hover .theme-item-info span.dots{display:none;}.theme-listing .theme-item-info span.action-links{font-weight:bold;text-align:center;}.theme-listing br.line{border-bottom-width:1px;border-bottom-style:solid;margin-bottom:3px;}.available-theme{padding:20px 15px;}#theme-information .theme-preview-img{float:left;margin:5px 25px 10px 15px;width:300px;}#theme-information .action-button{border-top-width:1px;border-top-style:solid;margin:10px 5px 0;}#theme-information .action-button #cancel{float:left;margin:10px 15px;}#theme-information .action-button #install{float:right;margin:10px 15px;}#theme-information .available-theme h3{margin:1em 0;}body#theme-information{height:auto;}.feature-filter{-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;border-width:1px;border-style:solid;padding:8px 12px 0;}.feature-filter .feature-group{float:left;margin-bottom:20px;width:725px;}.feature-filter .feature-name{float:left;text-align:right;width:95px;}.feature-filter .feature-group li{display:inline;float:left;list-style-type:none;padding-right:25px;min-width:145px;}.feature-container{width:100%;overflow:auto;margin-bottom:10px;}.feature-group{margin-bottom:0!important;} 
     2 No newline at end of file 
  • wp-admin/css/theme-install-rtl.dev.css

     
     1div.star { 
     2        left:auto; 
     3        right: 0; 
     4} 
     5 
     6.star img, div.star a, div.star a:hover, div.star a:visited { 
     7        right: auto; 
     8        left: 0; 
     9} 
     10 
     11.theme-listing .theme-item h3 { 
     12        font-style: normal; 
     13} 
     14 
     15#theme-information .theme-preview-img { 
     16        float: right; 
     17        margin: 5px 15px 10px 25px; 
     18} 
     19 
     20#theme-information .action-button #cancel { 
     21        float: right; 
     22} 
     23 
     24#theme-information .action-button #install { 
     25        float: left; 
     26} 
     27 
     28.feature-filter .feature-group { 
     29        float: right; 
     30} 
     31 
     32.feature-filter .feature-name { 
     33        float: right; 
     34        text-align: left; 
     35} 
     36 
     37.feature-filter .feature-group li { 
     38        float: right; 
     39        padding-right: 0; 
     40        padding-left: 25px; 
     41} 
     42 No newline at end of file 
  • wp-admin/css/theme-install.dev.css

     
    127127.feature-filter .feature-group { 
    128128        float: left; 
    129129        margin-bottom: 20px; 
    130         width: 695px; 
     130        width: 725px; 
    131131} 
    132132 
    133133.feature-filter .feature-name { 
  • wp-admin/css/theme-install-rtl.css

     
     1div.star{left:auto;right:0;}.star img,div.star a,div.star a:hover,div.star a:visited{right:auto;left:0;}.theme-listing .theme-item h3{font-style:normal;}#theme-information .theme-preview-img{float:right;margin:5px 15px 10px 25px;}#theme-information .action-button #cancel{float:right;}#theme-information .action-button #install{float:left;}.feature-filter .feature-group{float:right;}.feature-filter .feature-name{float:right;text-align:left;}.feature-filter .feature-group li{float:right;padding-right:0;padding-left:25px;} 
     2 No newline at end of file 
  • wp-admin/themes.php

     
    170170                <div class="feature-container"> 
    171171                        <div class="feature-name"><?php echo $feature_name ?></div> 
    172172 
    173                         <ol style="float: left; width: 725px;" class="feature-group"> 
     173                        <ol class="feature-group"> 
    174174                                <?php foreach ( $features as $key => $feature ) : 
    175175                                                $feature_name = $feature; 
    176176                                                $feature_name = esc_html( $feature_name );