Making WordPress.org


Ignore:
Timestamp:
04/26/2016 07:33:28 AM (9 years ago)
Author:
dd32
Message:

Plugin Directory: Add a Review Widget to the theme, and all the other required things for Widgets.
This adds a namespace to the theme and begins to reduce the duplication of template functionality between wp-admin and the theme.

See #1584.
Fixes #1575.

File:
1 edited

Legend:

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

    r2612 r3009  
    11<?php
     2namespace WordPressdotorg\Plugin_Directory\Theme;
     3use WordPressdotorg\Plugin_Directory\Template;
    24
    35if ( is_front_page() && ( ! get_query_var( 'browse' ) || 'featured' == get_query_var( 'browse' ) ) ) {
     
    68            '<p class="intro">' . __( 'Plugins extend and expand the functionality of WordPress. %1$s plugins with %2$s total downloads are at your fingertips.', 'wporg-plugins' ) . '</p>',
    79            '<strong>' . number_format_i18n( wp_count_posts( 'plugin' )->publish ) . '</strong>',
    8             '<strong>' . number_format_i18n( WordPressdotorg\Plugin_Directory\Template::get_total_downloads() ) . '</strong>'
     10            '<strong>' . number_format_i18n( Template::get_total_downloads() ) . '</strong>'
    911    );
    1012}
Note: See TracChangeset for help on using the changeset viewer.