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/plugin-card.php

    r2998 r3009  
     1<?php
     2namespace WordPressdotorg\Plugin_Directory\Theme;
     3use WordPressdotorg\Plugin_Directory\Template;
     4
     5?>
    16<div class="plugin-card">
    27     <div class="plugin-card-top">
    38
    49         <a href="<?php the_permalink(); ?>" class="plugin-icon">
    5             <?php echo WordPressdotorg\Plugin_Directory\Template::get_plugin_icon( $post->post_name, 'html' ); ?>
     10            <?php echo Template::get_plugin_icon( $post->post_name, 'html' ); ?>
    611         </a>
    712         <div class="name column-name">
     
    1621    <div class="plugin-card-bottom">
    1722        <div class="vers column-rating">
    18             <?php
    19                 if ( function_exists( 'wporg_get_dashicons_stars' ) ) {
    20                     echo wporg_get_dashicons_stars( get_post_meta( $post->ID, 'rating', true ) );
    21                 }
    22             ?>
     23            <?php echo Template::dashicons_stars( get_post_meta( $post->ID, 'rating', true ) ); ?>
    2324        </div>
    2425        <div class="column-updated">
     
    2627        </div>
    2728        <div class="column-installs">
    28             <?php echo worg_plugins_template_active_installs( true ); ?>
     29            <?php echo Template::active_installs(); ?>
    2930        </div>
    3031        <div class="column-compatibility">
Note: See TracChangeset for help on using the changeset viewer.