Theme install: Display an appropriate string if theme has not been rated yet.
props kevdotbadger, valendesigns. fixes #28147. git-svn-id: https://develop.svn.wordpress.org/trunk@31072 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
22c9a89602
commit
37499b6169
@ -233,18 +233,20 @@ if ( $tab ) {
|
||||
<img class="theme-screenshot" src="{{ data.screenshot_url }}" alt="" />
|
||||
|
||||
<div class="theme-details">
|
||||
<# if ( data.rating ) { #>
|
||||
<div class="rating rating-{{ Math.round( data.rating / 10 ) * 10 }}">
|
||||
<span class="one"></span>
|
||||
<span class="two"></span>
|
||||
<span class="three"></span>
|
||||
<span class="four"></span>
|
||||
<span class="five"></span>
|
||||
<# if ( data.num_ratings ) { #>
|
||||
<small class="ratings">{{ data.num_ratings }}</small>
|
||||
<# } else { #>
|
||||
<small class="ratings"><?php _e( 'No ratings.' ); ?></small>
|
||||
<# } #>
|
||||
</div>
|
||||
<# } else { #>
|
||||
<div class="rating">
|
||||
<small class="ratings"><?php _e( 'This theme has not been rated yet.' ); ?></small>
|
||||
</div>
|
||||
<# } #>
|
||||
<div class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></div>
|
||||
<div class="theme-description">{{{ data.description }}}</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user