Making WordPress.org


Ignore:
Timestamp:
11/21/2016 07:54:32 AM (8 years ago)
Author:
dd32
Message:

Plugin Directory: Add extra information to the plugin cards.

See #2183

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin.php

    r4223 r4393  
    11<?php
    22/**
    3  * Template part for displaying posts.
     3 * Template part for displaying plugins.
    44 *
    55 * @link https://codex.wordpress.org/Template_Hierarchy
     
    2828        </div><!-- .entry-excerpt -->
    2929    </div>
     30    <hr>
     31    <footer>
     32        <span class="plugin-author">
     33            <i class="dashicons dashicons-admin-users"></i> <?php echo esc_html( get_post_meta( get_the_ID(), 'header_author', true ) ); ?>
     34        </span>
     35        <span class="active-installs">
     36            <i class="dashicons dashicons-chart-area"></i> <?php printf( __( '%s Active Installs', 'wporg-plugins' ), Template::active_installs(false) ); ?>
     37        </span>
     38        <span class="tested-with">
     39            <?php if ( $tested_up_to = (string) get_post_meta( $post->ID, 'tested', true ) ) { ?>
     40                <i class="dashicons dashicons-wordpress-alt"></i> <?php printf( __( 'Tested with %s', 'wporg-plugins' ), $tested_up_to ); ?></span>
     41            <?php } ?>
     42        </span>
     43        <span class="last-updated">
     44            <i class="dashicons dashicons-calendar"></i> <?php
     45                /* Translators: Plugin modified time. */
     46                printf( __( 'Updated %s ago', 'wporg-plugins' ), human_time_diff( get_post_modified_time() ) ); ?>
     47        </span>
     48        </span>
     49    </footer>
    3050</article><!-- #post-## -->
Note: See TracChangeset for help on using the changeset viewer.