WordPress.org

Making WordPress.org

Changeset 6249


Ignore:
Timestamp:
12/07/2017 11:15:06 PM (5 months ago)
Author:
tellyworth
Message:

Plugin directory: add active install growth chart to advanced view.

See #3016

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php

    r6241 r6249  
    8181    if ( get_query_var( 'plugin_advanced' ) ) {
    8282        wp_enqueue_script( 'google-charts-loader', 'https://www.gstatic.com/charts/loader.js', array(), false, true );
    83         wp_enqueue_script( 'wporg-plugins-stats', get_template_directory_uri() . '/js/stats.js', array( 'jquery', 'google-charts-loader' ), '20170429', true );
     83        wp_enqueue_script( 'wporg-plugins-stats', get_template_directory_uri() . '/js/stats.js', array( 'jquery', 'google-charts-loader' ), '20171207', true );
    8484
    8585        wp_localize_script( 'wporg-plugins-stats', 'pluginStats', array(
     
    8888                'date'      => __( 'Date', 'wporg-plugins' ),
    8989                'downloads' => __( 'Downloads', 'wporg-plugins' ),
     90                'growth'    => __( 'Growth', 'wporg-plugins' ),
    9091                'noData'    => __( 'No data yet', 'wporg-plugins' ),
    9192                'today'     => __( 'Today', 'wporg-plugins' ),
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/section-advanced.php

    r6225 r6249  
    3636    <h4><?php _e( 'Downloads Per Day', 'wporg-plugins' ); ?></h4>
    3737    <div id="plugin-download-stats" class="chart download-stats"></div>
     38
     39    <h4><?php _e( 'Active Install Growth', 'wporg-plugins' ); ?></h4>
     40    <div id="plugin-growth-stats" class="chart download-stats"></div>
    3841
    3942    <h5><?php _e( 'Downloads history', 'wporg-plugins' ); ?></h5>
Note: See TracChangeset for help on using the changeset viewer.