WordPress.org

Making WordPress.org


Ignore:
Timestamp:
11/26/2014 07:14:45 PM (6 years ago)
Author:
obenland
Message:

WP.org Themes: Add Downloads and Developer sections.

Adds the downloads graph and developer links to the single view modal.
We still need to add the today/yesterday/last week/total download counts to the
API if we wanted to display them as well, but this is a good start.

See #745.

File:
1 edited

Legend:

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

    r1001 r1009  
    3838    wp_enqueue_style( 'wporg-themes-style', get_stylesheet_uri() );
    3939
     40
     41    wp_enqueue_script( 'google-jsapi', '//www.google.com/jsapi', array(), null );
     42
    4043    wp_enqueue_script( 'theme', self_admin_url( 'js/theme.js' ), array( 'wp-backbone' ), false, 1 );
    4144    wp_enqueue_script( 'wporg-theme', get_template_directory_uri() . '/js/theme.js', array( 'theme' ), false, 1 );
     
    5558            'upload'            => __( 'Upload Theme' ),
    5659            'back'              => __( 'Back' ),
    57             'error'             => __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>.' )
     60            'error'             => __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>.' ),
     61
     62            // Downloads Graph
     63            'date'      => __( 'Date' ),
     64            'downloads' => __( 'Downloads' ),
    5865        ),
    5966        'installedThemes' => array(),
Note: See TracChangeset for help on using the changeset viewer.