Changeset 2108 for sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-routes/routes/stats-overview.php
- Timestamp:
- 11/22/2015 07:00:56 PM (9 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-routes/routes/stats-overview.php
r2107 r2108 1 1 <?php 2 3 2 /** 4 * This plugin offers up the /stats route which provides a overview of our current translation efforts.3 * Stats Route Class. 5 4 * 6 * @author dd325 * Provides the route for translate.wordpress.org/stats. 7 6 */ 8 class GP_WPorg_Stats_Overview extends GP_Plugin {9 var $id = 'wporg-stats-overview';10 11 function __construct() {12 parent::__construct();13 $this->add_action( 'init' );14 15 }16 17 function init() {18 GP::$router->prepend( "/stats/?", array( 'GP_WPorg_Route_Stats', 'get_stats_overview' ) );19 }20 }21 22 GP::$plugins->wporg_stats_overview = new GP_WPorg_Stats_Overview;23 24 7 class GP_WPorg_Route_Stats extends GP_Route { 25 8
Note: See TracChangeset
for help on using the changeset viewer.