- <?php if ( ! empty( $api->version ) ) { ?>
- <li><strong><?php _e( 'Version:' ); ?></strong> <?php echo $api->version; ?></li>
- <?php } if ( ! empty( $api->author ) ) { ?>
- <li><strong><?php _e( 'Author:' ); ?></strong> <?php echo links_add_target( $api->author, '_blank' ); ?></li>
- <?php } if ( ! empty( $api->last_updated ) ) { ?>
- <li><strong><?php _e( 'Last Updated:' ); ?></strong> <span title="<?php echo esc_attr( date_i18n( $date_format, $last_updated_timestamp ) ); ?>">
- <?php printf( __( '%s ago' ), human_time_diff( $last_updated_timestamp ) ); ?>
- </span></li>
- <?php } if ( ! empty( $api->requires ) ) { ?>
- <li><strong><?php _e( 'Requires WordPress Version:' ); ?></strong> <?php printf( __( '%s or higher' ), $api->requires ); ?></li>
- <?php } if ( ! empty( $api->tested ) ) { ?>
- <li><strong><?php _e( 'Compatible up to:' ); ?></strong> <?php echo $api->tested; ?></li>
- <?php } if ( ! empty( $api->active_installs ) ) { ?>
- <li><strong><?php _e( 'Active Installs:' ); ?></strong> <?php
- if ( $api->active_installs >= 1000000 ) {
- _ex( '1+ Million', 'Active plugin installs' );
- } else {
- echo number_format_i18n( $api->active_installs ) . '+';
- }
- ?></li>
- <?php } if ( ! empty( $api->slug ) && empty( $api->external ) ) { ?>
- <li><a target="_blank" href="https://wordpress.org/plugins/<?php echo $api->slug; ?>/"><?php _e( 'WordPress.org Plugin Page »' ); ?></a></li>
- <?php } if ( ! empty( $api->homepage ) ) { ?>
- <li><a target="_blank" href="<?php echo esc_url( $api->homepage ); ?>"><?php _e( 'Plugin Homepage »' ); ?></a></li>
- <?php } if ( ! empty( $api->donate_link ) && empty( $api->contributors ) ) { ?>
- <li><a target="_blank" href="<?php echo esc_url( $api->donate_link ); ?>"><?php _e( 'Donate to this plugin »' ); ?></a></li>
- <?php } ?>
+ <?php if ( ! empty( $api->version ) ) { ?>
+ <li><strong><?php _e( 'Version:' ); ?></strong> <?php echo $api->version; ?></li>
+ <?php } if ( ! empty( $api->author ) ) { ?>
+ <li><strong><?php _e( 'Author:' ); ?></strong> <?php echo links_add_target( $api->author, '_blank' ); ?></li>
+ <?php } if ( ! empty( $api->last_updated ) ) { ?>
+ <li><strong><?php _e( 'Last Updated:' ); ?></strong>
+ <?php
+ /* translators: %s: Time since the last update */
+ printf( __( '%s ago' ), human_time_diff( strtotime( $api->last_updated ) ) );
+ ?>
+ </li>
+ <?php } if ( ! empty( $api->requires ) ) { ?>
+ <li>
+ <strong><?php _e( 'Requires WordPress Version:' ); ?></strong>
+ <?php
+ /* translators: %s: WordPress version */
+ printf( __( '%s or higher' ), $api->requires );
+ ?>
+ </li>
+ <?php } if ( ! empty( $api->tested ) ) { ?>
+ <li><strong><?php _e( 'Compatible up to:' ); ?></strong> <?php echo $api->tested; ?></li>
+ <?php } if ( isset( $api->active_installs ) ) { ?>
+ <li><strong><?php _e( 'Active Installs:' ); ?></strong> <?php
+ if ( $api->active_installs >= 1000000 ) {
+ _ex( '1+ Million', 'Active plugin installs' );
+ } elseif ( 0 == $api->active_installs ) {
+ _ex( 'Less Than 10', 'Active plugin installs' );
+ } else {
+ echo number_format_i18n( $api->active_installs ) . '+';
+ }
+ ?></li>
+ <?php } if ( ! empty( $api->slug ) && empty( $api->external ) ) { ?>
+ <li><a target="_blank" href="<?php echo __( 'https://wordpress.org/plugins/' ) . $api->slug; ?>/"><?php _e( 'WordPress.org Plugin Page »' ); ?></a></li>
+ <?php } if ( ! empty( $api->homepage ) ) { ?>
+ <li><a target="_blank" href="<?php echo esc_url( $api->homepage ); ?>"><?php _e( 'Plugin Homepage »' ); ?></a></li>
+ <?php } if ( ! empty( $api->donate_link ) && empty( $api->contributors ) ) { ?>
+ <li><a target="_blank" href="<?php echo esc_url( $api->donate_link ); ?>"><?php _e( 'Donate to this plugin »' ); ?></a></li>
+ <?php } ?>