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="" />
|
<img class="theme-screenshot" src="{{ data.screenshot_url }}" alt="" />
|
||||||
|
|
||||||
<div class="theme-details">
|
<div class="theme-details">
|
||||||
<div class="rating rating-{{ Math.round( data.rating / 10 ) * 10 }}">
|
<# if ( data.rating ) { #>
|
||||||
<span class="one"></span>
|
<div class="rating rating-{{ Math.round( data.rating / 10 ) * 10 }}">
|
||||||
<span class="two"></span>
|
<span class="one"></span>
|
||||||
<span class="three"></span>
|
<span class="two"></span>
|
||||||
<span class="four"></span>
|
<span class="three"></span>
|
||||||
<span class="five"></span>
|
<span class="four"></span>
|
||||||
<# if ( data.num_ratings ) { #>
|
<span class="five"></span>
|
||||||
<small class="ratings">{{ data.num_ratings }}</small>
|
<small class="ratings">{{ data.num_ratings }}</small>
|
||||||
|
</div>
|
||||||
<# } else { #>
|
<# } else { #>
|
||||||
<small class="ratings"><?php _e( 'No ratings.' ); ?></small>
|
<div class="rating">
|
||||||
|
<small class="ratings"><?php _e( 'This theme has not been rated yet.' ); ?></small>
|
||||||
|
</div>
|
||||||
<# } #>
|
<# } #>
|
||||||
</div>
|
|
||||||
<div class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></div>
|
<div class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></div>
|
||||||
<div class="theme-description">{{{ data.description }}}</div>
|
<div class="theme-description">{{{ data.description }}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user