Make WordPress Core

Ticket #20626: 20626.diff

File 20626.diff, 6.8 KB (added by helenyhou, 14 years ago)
  • wp-admin/includes/plugin-install.php

     
    343343                <h2><?php _e('Average Rating') ?></h2>
    344344                <div class="star-holder" title="<?php printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?>">
    345345                        <div class="star star-rating" style="width: <?php echo esc_attr( str_replace( ',', '.', $api->rating ) ); ?>px"></div>
    346                         <div class="star star5"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('5 stars') ?>" /></div>
    347                         <div class="star star4"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('4 stars') ?>" /></div>
    348                         <div class="star star3"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('3 stars') ?>" /></div>
    349                         <div class="star star2"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('2 stars') ?>" /></div>
    350                         <div class="star star1"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('1 star') ?>" /></div>
    351346                </div>
    352347                <small><?php printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?></small>
    353348                <?php endif; ?>
  • wp-admin/includes/class-wp-plugin-install-list-table.php

     
    218218                        <td class="vers column-rating"<?php echo $style['rating']; ?>>
    219219                                <div class="star-holder" title="<?php printf( _n( '(based on %s rating)', '(based on %s ratings)', $plugin['num_ratings'] ), number_format_i18n( $plugin['num_ratings'] ) ) ?>">
    220220                                        <div class="star star-rating" style="width: <?php echo esc_attr( str_replace( ',', '.', $plugin['rating'] ) ); ?>px"></div>
    221                                         <?php
    222                                                 $color = get_user_option('admin_color');
    223                                                 if ( empty($color) || 'fresh' == $color )
    224                                                         $star_url = admin_url( 'images/gray-star.png?v=20110615' ); // 'Fresh' Gray star for list tables
    225                                                 else
    226                                                         $star_url = admin_url( 'images/star.png?v=20110615' ); // 'Classic' Blue star
    227                                         ?>
    228                                         <div class="star star5"><img src="<?php echo $star_url; ?>" alt="<?php esc_attr_e( '5 stars' ) ?>" /></div>
    229                                         <div class="star star4"><img src="<?php echo $star_url; ?>" alt="<?php esc_attr_e( '4 stars' ) ?>" /></div>
    230                                         <div class="star star3"><img src="<?php echo $star_url; ?>" alt="<?php esc_attr_e( '3 stars' ) ?>" /></div>
    231                                         <div class="star star2"><img src="<?php echo $star_url; ?>" alt="<?php esc_attr_e( '2 stars' ) ?>" /></div>
    232                                         <div class="star star1"><img src="<?php echo $star_url; ?>" alt="<?php esc_attr_e( '1 star' ) ?>" /></div>
    233221                                </div>
    234222                        </td>
    235223                        <td class="desc column-description"<?php echo $style['description']; ?>><?php echo $description, $author; ?></td>
  • wp-admin/includes/update-core.php

     
    359359'wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/fade-butt.png',
    360360'wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/separator.gif',
    361361// 3.4
     362'wp-admin/images/gray-star.png',
    362363'wp-admin/images/logo-login.png',
     364'wp-admin/images/star.png',
    363365'wp-admin/index-extra.php',
    364366'wp-admin/network/index-extra.php',
    365367'wp-admin/user/index-extra.php',
  • wp-admin/css/wp-admin-rtl.dev.css

     
    22322232}
    22332233
    22342234/* plugin-install */
    2235 div.star {
    2236         left: auto;
    2237         right: 0;
    2238         letter-spacing: 0;
     2235div.star-holder {
     2236        background: url('../images/stars-rtl.png?ver=20120506.png') repeat-x bottom right;
    22392237}
    2240 
    2241 .star img, div.star a, div.star a:hover, div.star a:visited {
    2242         right: auto;
    2243         left: 0;
     2238div.star-holder .star-rating {
     2239        background: url('../images/stars-rtl.png?ver=20120506.png') repeat-x top right;
     2240        float: right;
    22442241}
    2245 
    22462242#plugin-information ul#sidemenu {
    22472243        left: auto;
    22482244        right: 0;
  • wp-admin/css/wp-admin.dev.css

     
    69996999}
    70007000
    70017001/* plugin-install */
    7002 /* NOTE: the following CSS rules(.star*) are taken more or less straight from the bbPress rating plugin. */
    70037002div.star-holder {
    70047003        position: relative;
    7005         height: 19px;
     7004        height: 17px;
    70067005        width: 100px;
    7007         font-size: 19px;
     7006        background: url('../images/stars.png?ver=20120307') repeat-x bottom left;
    70087007}
    70097008
     7009div.star-holder .star-rating {
     7010        background: url('../images/stars.png?ver=20120307') repeat-x top left;
     7011        height: 17px;
     7012        float: left;
     7013}
     7014
    70107015div.action-links {
    70117016        font-weight: normal;
    70127017        margin: 6px 0 0;
    70137018}
    70147019
    7015 div.star {
    7016         height: 100%;
    7017         position: absolute;
    7018         top: 0;
    7019         left: 0;
    7020         background-color: transparent;
    7021         letter-spacing: 1ex;
    7022         border: none;
    7023 }
    7024 
    7025 .star1 { width: 20%; }
    7026 .star2 { width: 40%; }
    7027 .star3 { width: 60%; }
    7028 .star4 { width: 80%; }
    7029 .star5 { width: 100%; }
    7030 
    7031 .star img,
    7032 div.star a,
    7033 div.star a:hover,
    7034 div.star a:visited {
    7035         display: block;
    7036         position: absolute;
    7037         right: 0;
    7038         border: none;
    7039         text-decoration: none;
    7040 }
    7041 
    7042 div.star img {
    7043         width: 19px;
    7044         height: 19px;
    7045 }
    7046 
    70477020/* Header on thickbox */
    70487021#plugin-information-header {
    70497022        margin: 0;
  • wp-admin/css/colors-classic.dev.css

     
    18831883}
    18841884
    18851885/* Install Plugins */
    1886 .star-average,
    1887 .star.star-rating {
    1888         background-color: #fc0;
    1889 }
    1890 
    1891 div.star.select:hover {
    1892         background-color: #d00;
    1893 }
    1894 
    1895 div.star img {
    1896         border-left: 1px solid #fff;
    1897         border-right: 1px solid #fff;
    1898 }
    1899 
    19001886#plugin-information .fyi ul {
    19011887        background-color: #eaf3fa;
    19021888}
  • wp-admin/css/colors-fresh.dev.css

     
    14971497}
    14981498
    14991499/* Install Plugins */
    1500 .star-average,
    1501 .star.star-rating {
    1502         background-color: #fc0;
    1503 }
    1504 
    1505 div.star.select:hover {
    1506         background-color: #d00;
    1507 }
    1508 
    1509 div.star img {
    1510         border-left: 1px solid #fff;
    1511         border-right: 1px solid #fff;
    1512 }
    1513 
    1514 .widefat div.star img {
    1515         border-left: 1px solid #f9f9f9;
    1516         border-right: 1px solid #f9f9f9;
    1517 }
    1518 
    15191500#plugin-information .fyi ul {
    15201501        background-color: #eaf3fa;
    15211502}