Changeset 4230
- Timestamp:
- 10/12/2016 08:28:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php
r4229 r4230 155 155 ); 156 156 /* translators: %d: number of stars */ 157 $stars_text = sprintf( __( '%d stars', 'wporg-forums' ), $rating ); 157 $stars_text = sprintf( 158 /* translators: %d: number of stars */ 159 _n( '%d star', '%d stars', $rating, 'wporg-forums' ), 160 $rating 161 ); 158 162 $width = 0; 159 163 if ( $ratings_count && $ratings_count_total ) { 160 $width = 92* ( $ratings_count / $ratings_count_total );164 $width = 100 * ( $ratings_count / $ratings_count_total ); 161 165 } 162 166 ?> … … 164 168 <a href="<?php echo esc_url( sprintf( 'https://wordpress.org/support/%s/%s/reviews/?filter=%s', $this->compat, $this->slug, $rating ) ); ?>" 165 169 title="<?php echo esc_attr( $stars_title ); ?>"> 166 <span class="counter-label" style="float:left;margin-right:5px; "><?php echo esc_html( $stars_text ); ?></span>167 <span class="counter-back" style="height:17px;width: 92px;background-color:#ececec;float:left;">170 <span class="counter-label" style="float:left;margin-right:5px;min-width:58px;"><?php echo esc_html( $stars_text ); ?></span> 171 <span class="counter-back" style="height:17px;width:100px;background-color:#ececec;float:left;"> 168 172 <span class="counter-bar" style="width:<?php echo esc_attr( $width ); ?>px;height:17px;background-color:#ffc733;float:left;"></span> 169 173 </span>
Note: See TracChangeset
for help on using the changeset viewer.