Plugin Directory

Changeset 804077

Timestamp:
11/13/2013 11:17:10 PM (11 years ago)
Author:
martinremy
Message:

Jetpack Stats: Use a different loading spinner that looks better on white and dark backgrounds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/stats.php

    r800497 r804077  
    342342    if ( !isset( $_GET['noheader'] ) && empty( $_GET['nojs'] ) && empty( $_COOKIE['stnojs'] ) ) {
    343343        $nojs_url = add_query_arg( 'nojs', '1' );
    344         if ( 'classic' != $color = get_user_option( 'admin_color' ) ) {
    345             $color = 'fresh';
    346         }
    347344        $http = is_ssl() ? 'https' : 'http';
    348345        // Loading message
     
    355352</style>
    356353<div id="stats-loading-wrap" class="wrap">
    357 <p class="hide-if-no-js"><img class="wpcom-loading-64" alt="<?php esc_attr_e( 'Loading&hellip;', 'jetpack' ); ?>" src="<?php echo esc_url( "$http://" . STATS_DASHBOARD_SERVER . "/i/loading/$color-64.gif" ); ?>" /></p>
     354<p class="hide-if-no-js"><img class="wpcom-loading-64" alt="<?php esc_attr_e( 'Loading&hellip;', 'jetpack' ); ?>" src="<?php echo esc_url( ); ?>" /></p>
    358355<p class="hide-if-js"><?php esc_html_e( 'Your Site Stats work better with Javascript enabled.', 'jetpack' ); ?><br />
    359356<a href="<?php echo esc_url( $nojs_url ); ?>"><?php esc_html_e( 'View Site Stats without Javascript', 'jetpack' ); ?></a>.</p>
Note: See TracChangeset for help on using the changeset viewer.