Make WordPress Core

Changeset 20754


Ignore:
Timestamp:
05/09/2012 04:27:24 PM (14 years ago)
Author:
ryan
Message:

Update plugin install screens to use the new stars. Add stars-rtl.png. Remove star.png and gray-star.png and add to old files list.

Props helenyhou
Fixes #20626

Location:
trunk/wp-admin
Files:
1 added
2 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/colors-classic.dev.css

    r20749 r20754  
    19271927
    19281928/* Install Plugins */
    1929 .star-average,
    1930 .star.star-rating {
    1931         background-color: #fc0;
    1932 }
    1933 
    1934 div.star.select:hover {
    1935         background-color: #d00;
    1936 }
    1937 
    1938 div.star img {
    1939         border-left: 1px solid #fff;
    1940         border-right: 1px solid #fff;
    1941 }
    1942 
    19431929#plugin-information .fyi ul {
    19441930        background-color: #eaf3fa;
  • trunk/wp-admin/css/colors-fresh.dev.css

    r20749 r20754  
    15431543
    15441544/* Install Plugins */
    1545 .star-average,
    1546 .star.star-rating {
    1547         background-color: #fc0;
    1548 }
    1549 
    1550 div.star.select:hover {
    1551         background-color: #d00;
    1552 }
    1553 
    1554 div.star img {
    1555         border-left: 1px solid #fff;
    1556         border-right: 1px solid #fff;
    1557 }
    1558 
    1559 .widefat div.star img {
    1560         border-left: 1px solid #f9f9f9;
    1561         border-right: 1px solid #f9f9f9;
    1562 }
    1563 
    15641545#plugin-information .fyi ul {
    15651546        background-color: #eaf3fa;
  • trunk/wp-admin/css/wp-admin-rtl.dev.css

    r20749 r20754  
    22882288
    22892289/* plugin-install */
    2290 div.star {
    2291         left: auto;
    2292         right: 0;
    2293         letter-spacing: 0;
    2294 }
    2295 
    2296 .star img, div.star a, div.star a:hover, div.star a:visited {
    2297         right: auto;
    2298         left: 0;
    2299 }
    2300 
     2290div.star-holder {
     2291        background: url('../images/stars-rtl.png?ver=20120506.png') repeat-x bottom right;
     2292}
     2293div.star-holder .star-rating {
     2294        background: url('../images/stars-rtl.png?ver=20120506.png') repeat-x top right;
     2295        float: right;
     2296}
    23012297#plugin-information ul#sidemenu {
    23022298        left: auto;
  • trunk/wp-admin/css/wp-admin.dev.css

    r20749 r20754  
    71367136
    71377137/* plugin-install */
    7138 /* NOTE: the following CSS rules(.star*) are taken more or less straight from the bbPress rating plugin. */
    71397138div.star-holder {
    71407139        position: relative;
    7141         height: 19px;
     7140        height: 17px;
    71427141        width: 100px;
    7143         font-size: 19px;
     7142        background: url('../images/stars.png?ver=20120307') repeat-x bottom left;
     7143}
     7144
     7145div.star-holder .star-rating {
     7146        background: url('../images/stars.png?ver=20120307') repeat-x top left;
     7147        height: 17px;
     7148        float: left;
    71447149}
    71457150
     
    71477152        font-weight: normal;
    71487153        margin: 6px 0 0;
    7149 }
    7150 
    7151 div.star {
    7152         height: 100%;
    7153         position: absolute;
    7154         top: 0;
    7155         left: 0;
    7156         background-color: transparent;
    7157         letter-spacing: 1ex;
    7158         border: none;
    7159 }
    7160 
    7161 .star1 { width: 20%; }
    7162 .star2 { width: 40%; }
    7163 .star3 { width: 60%; }
    7164 .star4 { width: 80%; }
    7165 .star5 { width: 100%; }
    7166 
    7167 .star img,
    7168 div.star a,
    7169 div.star a:hover,
    7170 div.star a:visited {
    7171         display: block;
    7172         position: absolute;
    7173         right: 0;
    7174         border: none;
    7175         text-decoration: none;
    7176 }
    7177 
    7178 div.star img {
    7179         width: 19px;
    7180         height: 19px;
    71817154}
    71827155
  • trunk/wp-admin/includes/class-wp-plugin-install-list-table.php

    r20751 r20754  
    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>
  • trunk/wp-admin/includes/plugin-install.php

    r20752 r20754  
    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>
  • trunk/wp-admin/includes/update-core.php

    r20728 r20754  
    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',
Note: See TracChangeset for help on using the changeset viewer.