diff --git wp-admin/theme-install.php wp-admin/theme-install.php
index a4f018f..debf629 100644
|
|
if ( $tab ) { |
233 | 233 | <img class="theme-screenshot" src="{{ data.screenshot_url }}" alt="" /> |
234 | 234 | |
235 | 235 | <div class="theme-details"> |
236 | | <div class="rating rating-{{ Math.round( data.rating / 10 ) * 10 }}"> |
237 | | <span class="one"></span> |
238 | | <span class="two"></span> |
239 | | <span class="three"></span> |
240 | | <span class="four"></span> |
241 | | <span class="five"></span> |
242 | | <# if ( data.num_ratings ) { #> |
243 | | <small class="ratings">{{ data.num_ratings }}</small> |
| 236 | <# if ( data.rating ) { #> |
| 237 | <div class="rating rating-{{ Math.round( data.rating / 10 ) * 10 }}"> |
| 238 | <span class="one"></span> |
| 239 | <span class="two"></span> |
| 240 | <span class="three"></span> |
| 241 | <span class="four"></span> |
| 242 | <span class="five"></span> |
| 243 | <small class="ratings">{{ data.num_ratings }}</small> |
| 244 | </div> |
244 | 245 | <# } else { #> |
245 | | <small class="ratings"><?php _e( 'No ratings.' ); ?></small> |
| 246 | <div class="rating"> |
| 247 | <small class="ratings"><?php _e( 'This theme hasn\'t been rated.' ); ?></small> |
| 248 | </div> |
246 | 249 | <# } #> |
247 | | </div> |
248 | 250 | <div class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></div> |
249 | 251 | <div class="theme-description">{{{ data.description }}}</div> |
250 | 252 | </div> |