WordPress.org

Make WordPress Core

Changeset 27940


Ignore:
Timestamp:
04/04/2014 12:45:13 AM (5 years ago)
Author:
nacin
Message:

Theme Installer: Center spinner, remove plural string.

fixes #27581. see #27055.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/themes.css

    r27937 r27940  
    14141414    content: "\f155";
    14151415}
    1416 .rating .votes {
     1416.rating .ratings {
    14171417    display: inline;
    14181418    margin-left: 10px;
    14191419    line-height: 20px;
     1420    color: #999;
    14201421}
    14211422.loading-themes .theme-browser,
     
    18301831
    18311832#theme-installer .wp-full-overlay-main {
    1832     background: #fff url(../images/spinner.gif) no-repeat fixed center center;
     1833    background: #fff url(../images/spinner.gif) no-repeat center center;
    18331834    -webkit-background-size: 20px 20px;
    18341835    background-size: 20px 20px;
  • trunk/src/wp-admin/theme-install.php

    r27937 r27940  
    213213                        <span class="four"></span>
    214214                        <span class="five"></span>
    215                         <p class="votes"><?php printf( __( 'Based on %s ratings.' ), '{{ data.num_ratings }}' ); ?></p>
     215                    <# if ( data.num_ratings ) { #>
     216                        <p class="ratings">({{ data.num_ratings }})</p>
     217                    <# } else { #>
     218                        <p class="ratings"><?php _e( 'No ratings.' ); ?></p>
     219                    <# } #>
    216220                    </div>
    217221                    <div class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></div>
Note: See TracChangeset for help on using the changeset viewer.