mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 18:32:23 +01:00
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 git-svn-id: http://core.svn.wordpress.org/trunk@20754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
df7e72511a
commit
1f3da6568d
@ -1926,20 +1926,6 @@ table.diff .diff-addedline ins {
|
||||
}
|
||||
|
||||
/* Install Plugins */
|
||||
.star-average,
|
||||
.star.star-rating {
|
||||
background-color: #fc0;
|
||||
}
|
||||
|
||||
div.star.select:hover {
|
||||
background-color: #d00;
|
||||
}
|
||||
|
||||
div.star img {
|
||||
border-left: 1px solid #fff;
|
||||
border-right: 1px solid #fff;
|
||||
}
|
||||
|
||||
#plugin-information .fyi ul {
|
||||
background-color: #eaf3fa;
|
||||
}
|
||||
|
@ -1542,25 +1542,6 @@ table.diff .diff-addedline ins {
|
||||
}
|
||||
|
||||
/* Install Plugins */
|
||||
.star-average,
|
||||
.star.star-rating {
|
||||
background-color: #fc0;
|
||||
}
|
||||
|
||||
div.star.select:hover {
|
||||
background-color: #d00;
|
||||
}
|
||||
|
||||
div.star img {
|
||||
border-left: 1px solid #fff;
|
||||
border-right: 1px solid #fff;
|
||||
}
|
||||
|
||||
.widefat div.star img {
|
||||
border-left: 1px solid #f9f9f9;
|
||||
border-right: 1px solid #f9f9f9;
|
||||
}
|
||||
|
||||
#plugin-information .fyi ul {
|
||||
background-color: #eaf3fa;
|
||||
}
|
||||
|
@ -2287,17 +2287,13 @@ body.login {
|
||||
}
|
||||
|
||||
/* plugin-install */
|
||||
div.star {
|
||||
left: auto;
|
||||
right: 0;
|
||||
letter-spacing: 0;
|
||||
div.star-holder {
|
||||
background: url('../images/stars-rtl.png?ver=20120506.png') repeat-x bottom right;
|
||||
}
|
||||
|
||||
.star img, div.star a, div.star a:hover, div.star a:visited {
|
||||
right: auto;
|
||||
left: 0;
|
||||
div.star-holder .star-rating {
|
||||
background: url('../images/stars-rtl.png?ver=20120506.png') repeat-x top right;
|
||||
float: right;
|
||||
}
|
||||
|
||||
#plugin-information ul#sidemenu {
|
||||
left: auto;
|
||||
right: 0;
|
||||
|
@ -7135,12 +7135,17 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
|
||||
}
|
||||
|
||||
/* plugin-install */
|
||||
/* NOTE: the following CSS rules(.star*) are taken more or less straight from the bbPress rating plugin. */
|
||||
div.star-holder {
|
||||
position: relative;
|
||||
height: 19px;
|
||||
height: 17px;
|
||||
width: 100px;
|
||||
font-size: 19px;
|
||||
background: url('../images/stars.png?ver=20120307') repeat-x bottom left;
|
||||
}
|
||||
|
||||
div.star-holder .star-rating {
|
||||
background: url('../images/stars.png?ver=20120307') repeat-x top left;
|
||||
height: 17px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
div.action-links {
|
||||
@ -7148,38 +7153,6 @@ div.action-links {
|
||||
margin: 6px 0 0;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/* Header on thickbox */
|
||||
#plugin-information-header {
|
||||
margin: 0;
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 625 B |
Binary file not shown.
Before Width: | Height: | Size: 611 B |
BIN
wp-admin/images/stars-rtl.png
Normal file
BIN
wp-admin/images/stars-rtl.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
@ -218,18 +218,6 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
||||
<td class="vers column-rating"<?php echo $style['rating']; ?>>
|
||||
<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'] ) ) ?>">
|
||||
<div class="star star-rating" style="width: <?php echo esc_attr( str_replace( ',', '.', $plugin['rating'] ) ); ?>px"></div>
|
||||
<?php
|
||||
$color = get_user_option('admin_color');
|
||||
if ( empty($color) || 'fresh' == $color )
|
||||
$star_url = admin_url( 'images/gray-star.png?v=20110615' ); // 'Fresh' Gray star for list tables
|
||||
else
|
||||
$star_url = admin_url( 'images/star.png?v=20110615' ); // 'Classic' Blue star
|
||||
?>
|
||||
<div class="star star5"><img src="<?php echo $star_url; ?>" alt="<?php esc_attr_e( '5 stars' ) ?>" /></div>
|
||||
<div class="star star4"><img src="<?php echo $star_url; ?>" alt="<?php esc_attr_e( '4 stars' ) ?>" /></div>
|
||||
<div class="star star3"><img src="<?php echo $star_url; ?>" alt="<?php esc_attr_e( '3 stars' ) ?>" /></div>
|
||||
<div class="star star2"><img src="<?php echo $star_url; ?>" alt="<?php esc_attr_e( '2 stars' ) ?>" /></div>
|
||||
<div class="star star1"><img src="<?php echo $star_url; ?>" alt="<?php esc_attr_e( '1 star' ) ?>" /></div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="desc column-description"<?php echo $style['description']; ?>><?php echo $description, $author; ?></td>
|
||||
|
@ -343,11 +343,6 @@ function install_plugin_information() {
|
||||
<h2><?php _e('Average Rating') ?></h2>
|
||||
<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)); ?>">
|
||||
<div class="star star-rating" style="width: <?php echo esc_attr( str_replace( ',', '.', $api->rating ) ); ?>px"></div>
|
||||
<div class="star star5"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('5 stars') ?>" /></div>
|
||||
<div class="star star4"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('4 stars') ?>" /></div>
|
||||
<div class="star star3"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('3 stars') ?>" /></div>
|
||||
<div class="star star2"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('2 stars') ?>" /></div>
|
||||
<div class="star star1"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('1 star') ?>" /></div>
|
||||
</div>
|
||||
<small><?php printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?></small>
|
||||
<?php endif; ?>
|
||||
|
@ -359,7 +359,9 @@ $_old_files = array(
|
||||
'wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/fade-butt.png',
|
||||
'wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/separator.gif',
|
||||
// 3.4
|
||||
'wp-admin/images/gray-star.png',
|
||||
'wp-admin/images/logo-login.png',
|
||||
'wp-admin/images/star.png',
|
||||
'wp-admin/index-extra.php',
|
||||
'wp-admin/network/index-extra.php',
|
||||
'wp-admin/user/index-extra.php',
|
||||
|
Loading…
Reference in New Issue
Block a user