Changeset 1462
- Timestamp:
- 03/30/2015 03:37:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/content-single.php
r1439 r1462 1 1 <?php 2 2 $slug = get_post()->post_name; 3 $theme = themes_api('theme_information', array( 'slug' => $slug ) );3 $theme = themes_api('theme_information', array( 'slug' => $slug, 'fields' => array( 'ratings' => true ) ) ); 4 4 ?> 5 5 <div class="theme-navigation"> … … 75 75 76 76 <?php if ( ! empty( $theme->ratings ) ) : ?> 77 <div class="rating rating-<?php echo esc_attr( number_format( $theme->rating )); ?>">77 <div class="rating rating-<?php echo esc_attr( round( $theme->rating / 10, 0) * 10 ); ?>"> 78 78 <span class="one"></span> 79 79 <span class="two"></span>
Note: See TracChangeset
for help on using the changeset viewer.