From 1f3da6568d59470b784ec83cb9de272f6a4615cd Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 9 May 2012 16:27:24 +0000 Subject: [PATCH] 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 --- wp-admin/css/colors-classic.dev.css | 14 ------ wp-admin/css/colors-fresh.dev.css | 19 -------- wp-admin/css/wp-admin-rtl.dev.css | 14 ++---- wp-admin/css/wp-admin.dev.css | 43 ++++-------------- wp-admin/images/gray-star.png | Bin 625 -> 0 bytes wp-admin/images/star.png | Bin 611 -> 0 bytes wp-admin/images/stars-rtl.png | Bin 0 -> 2003 bytes .../class-wp-plugin-install-list-table.php | 12 ----- wp-admin/includes/plugin-install.php | 5 -- wp-admin/includes/update-core.php | 2 + 10 files changed, 15 insertions(+), 94 deletions(-) delete mode 100644 wp-admin/images/gray-star.png delete mode 100644 wp-admin/images/star.png create mode 100644 wp-admin/images/stars-rtl.png diff --git a/wp-admin/css/colors-classic.dev.css b/wp-admin/css/colors-classic.dev.css index 98fbb11b43..0d9b43f913 100644 --- a/wp-admin/css/colors-classic.dev.css +++ b/wp-admin/css/colors-classic.dev.css @@ -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; } diff --git a/wp-admin/css/colors-fresh.dev.css b/wp-admin/css/colors-fresh.dev.css index 31b3b5e9e1..2b77701821 100644 --- a/wp-admin/css/colors-fresh.dev.css +++ b/wp-admin/css/colors-fresh.dev.css @@ -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; } diff --git a/wp-admin/css/wp-admin-rtl.dev.css b/wp-admin/css/wp-admin-rtl.dev.css index 9899f93d72..bc11d259e8 100644 --- a/wp-admin/css/wp-admin-rtl.dev.css +++ b/wp-admin/css/wp-admin-rtl.dev.css @@ -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; diff --git a/wp-admin/css/wp-admin.dev.css b/wp-admin/css/wp-admin.dev.css index ab0c468a9f..6943e40523 100644 --- a/wp-admin/css/wp-admin.dev.css +++ b/wp-admin/css/wp-admin.dev.css @@ -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; diff --git a/wp-admin/images/gray-star.png b/wp-admin/images/gray-star.png deleted file mode 100644 index a32b058bab68d77648dc1d8189b0d459b43dfc6c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 625 zcmV-%0*?KOP)J;xrTZQ^}xFMK%n-1FtD=iZ|`%jHr7!NNM^^LfZ-vtY4UL{iw%Gpkf88`D%O zB{VaF&Z^hzT?|p=1DYL)w7a6>cs!<{BA;n9olfDu&04J%g)2_q%d-4$W~ z+wBhW@%enPD@hVqt=4ZIkB2V#K4L{&NZ=16;QS%ii9?sm^$5FBZ8qD_(HM91yA7b7EQt{x7&S|PNxkUvvrS}_C1ryoO25&$X9{U9z9Gj7<`aSCbti5wOWN* ztyaeEV}aRaI2=yIVlnY+dc9r>l1_^f>%?a5cAJ8%V#x(=MJ3-BpO5S2&00000 LNkvXXu0mjfO&A>k diff --git a/wp-admin/images/star.png b/wp-admin/images/star.png deleted file mode 100644 index 4ca526143840ced37df04eb8c9997d98562ca74a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 611 zcmV-p0-XJcP)-!L- z=z77M@Y?J3K1-!i_Frb)0ew#syA0Q7J;yjLg`960bj|e9eUZa zIwFw>+3j}Xo8ugHKkx>4EA)S_27j;8=`<;dLV-YlVzJnj2Ue+6sMqV!bULM6E=NwM x^JnAYm$F%?$4G)kq?AGIF>3;<0oQa>Q4jOPFV002ovPDHLkV1kWN1l>_6G)54-9p28`Lg7IoN3Is*s1QjIHVWnLsgQ7a(I5R3Q>$$Mo~~P?{z82UVDtg z0Pi7iG!^rAQQKL801c9Y0Lc-L<>ASAfJ|^CI61qxxNHE3cmf`WC*lZ1EWw51M5N&H zz=sEeWRvnEC>%QTLoOtuVxnMJLc!tWa=D}2$q|x9;s|bTZdwf@5sM(OGNl;iDzIYN zx_JdUDC0>55?BC<0j(l89EyXf7^Kp_uON~v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|xtBrWfZ*!W@j$XwQ=ND@O+x558WbyFdUx}n`hRsDA2M(9?O z`Re}sQSU#WrC68`D3dDR9sO%8yEtxWD#LCn{8VJx)r=X{bfu`WJZUI>
- -
<?php esc_attr_e( '5 stars' ) ?>
-
<?php esc_attr_e( '4 stars' ) ?>
-
<?php esc_attr_e( '3 stars' ) ?>
-
<?php esc_attr_e( '2 stars' ) ?>
-
<?php esc_attr_e( '1 star' ) ?>
> diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php index fa629a2e45..f0d7cbdebe 100644 --- a/wp-admin/includes/plugin-install.php +++ b/wp-admin/includes/plugin-install.php @@ -343,11 +343,6 @@ function install_plugin_information() {

-
<?php esc_attr_e('5 stars') ?>
-
<?php esc_attr_e('4 stars') ?>
-
<?php esc_attr_e('3 stars') ?>
-
<?php esc_attr_e('2 stars') ?>
-
<?php esc_attr_e('1 star') ?>
num_ratings), number_format_i18n($api->num_ratings)); ?> diff --git a/wp-admin/includes/update-core.php b/wp-admin/includes/update-core.php index e47cf0a7e1..8f83f69543 100644 --- a/wp-admin/includes/update-core.php +++ b/wp-admin/includes/update-core.php @@ -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',