Making WordPress.org


Ignore:
Timestamp:
11/20/2015 02:04:19 AM (9 years ago)
Author:
dd32
Message:

Themes: Add an Active Installs count for themes.
This counts the number of sites who report as having a theme of the same name active as their current theme.
If a theme is used as a template for another, it's technically active but not included in this count.

The popular tab is now sorted by the number of active installs as well.

See #909

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-single.php

    r1900 r2094  
    3939                <div class="theme-meta-info">
    4040                    <p class="updated"><?php printf( __( 'Last updated: %s', 'wporg-themes' ), '<strong>{{ data.last_updated }}</strong>' ); ?></p>
     41                    <p class="active_installs"><?php printf( __( 'Active Installs: %s', 'wporg-themes' ), '<strong>{{ data.active_installs }}</p>' ); ?></p>
    4142                    <# if ( data.theme_url ) { #>
    4243                    <a href="{{ data.theme_url }}"><?php _e( 'Theme Homepage', 'wporg-themes' ); ?></a>
     
    6465                    <h4><?php _e( 'Downloads Per Day', 'wporg-themes' ); ?></h4>
    6566                    <div id="theme-download-stats-{{data.id}}" class="chart"></div>
    66                     <p class="total-downloads"><?php printf( __( 'Total downloads: %s', 'wporg-themes' ), '<strong>{{ data.downloaded }}</strong>' ); ?></p>
    6767                </div><!-- .theme-downloads -->
    6868            </div>
Note: See TracChangeset for help on using the changeset viewer.