Changeset 6363 for sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/page-plugins.php
- Timestamp:
- 01/12/2018 03:23:31 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/page-plugins.php
r1644 r6363 1 1 <?php get_header(); ?> 2 <?php if ( have_posts() ) :while ( have_posts() ) : the_post(); ?>2 <?php while ( have_posts() ) : the_post(); ?> 3 3 <h3 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h3> 4 4 … … 13 13 <div class="bbp-pagination-count"> 14 14 15 <?php printf( 'Viewing %1$s to %2$s (%3$s)', number_format_i18n( $from_num ), number_format_i18n( $to_num ), number_format_i18n( $plugins->info['results'] ) ); ?> 15 <?php 16 /* translators: 1: starting number of plugins, 2: ending number, 3: total number */ 17 printf( __( 'Viewing %1$s to %2$s (%3$s)', 'bbporg' ), 18 number_format_i18n( $from_num ), 19 number_format_i18n( $to_num ), 20 number_format_i18n( $plugins->info['results'] ) 21 ); 22 ?> 16 23 17 24 </div> … … 36 43 </div> 37 44 38 <?php 39 foreach ( (array) $plugins->plugins as $plugin ) : 40 41 $plugin_author_id = 0; 42 43 if ( !empty( $plugin->contributors ) ) { 44 $plugin_author = get_user_by( 'login', key( $plugin->contributors ) ); 45 $plugin_author_id = $plugin_author->ID; 46 } 47 ?> 45 <?php foreach ( (array) $plugins->plugins as $plugin ) : ?> 48 46 49 47 <div class="single-plugin"> 50 <h3 class="plugin-title"><a href="<?php echo esc_url( 'https://wordpress.org/ extend/plugins/' . $plugin->slug ); ?>/" title="Plugin Information"><?php echo esc_html( $plugin->name ); ?></a></h3>48 <h3 class="plugin-title"><a href="<?php echo esc_url( 'https://wordpress.org/plugins/' . $plugin->slug ); ?>/"><?php echo esc_html( $plugin->name ); ?></a></h3> 51 49 52 50 <div class="plugin-meta"> 53 <?php if ( !empty( $plugin->version ) ) : ?><div>Version: <?php echo esc_html( $plugin->version ); ?></div><?php if ( !empty( $plugin->requires ) ) : ?><?php endif; ?><?php endif; ?> 54 <?php if ( !empty( $plugin->requires ) ) : ?><div>Requires: <?php echo esc_html( $plugin->requires ); ?></div><?php if ( !empty( $plugin->tested ) ) : ?><?php endif; ?><?php endif; ?> 55 <?php if ( !empty( $plugin->tested ) ) : ?><div>Compatible up to: <?php echo esc_html( $plugin->tested ); ?></div><?php endif; ?> 56 <div>Rating: <?php echo $plugin->rating_html; // raw html - do not escape ?></div> 51 <?php if ( ! empty( $plugin->version ) ) : ?> 52 <div><?php printf( __( 'Version: %s', 'bbporg' ), esc_html( $plugin->version ) ); ?></div> 53 <?php endif; ?> 54 <?php if ( ! empty( $plugin->requires ) ) : ?> 55 <div><?php printf( __( 'Requires: %s', 'bbporg' ), esc_html( $plugin->requires ) ); ?></div> 56 <?php endif; ?> 57 <?php if ( ! empty( $plugin->tested ) ) : ?> 58 <div><?php printf( __( 'Compatible up to: %s', 'bbporg' ), esc_html( $plugin->tested ) ); ?></div> 59 <?php endif; ?> 60 <div><?php printf( __( 'Rating: %s', 'bbporg' ), $plugin->rating_html ); // raw html - do not escape ?></div> 57 61 </div> 58 62 … … 68 72 <div class="bbp-pagination-count"> 69 73 70 <?php printf( 'Viewing %1$s to %2$s (%3$s)', number_format_i18n( $from_num ), number_format_i18n( $to_num ), number_format_i18n( $plugins->info['results'] ) ); ?> 74 <?php 75 /* translators: 1: starting number of plugins, 2: ending number, 3: total number */ 76 printf( __( 'Viewing %1$s to %2$s (%3$s)', 'bbporg' ), 77 number_format_i18n( $from_num ), 78 number_format_i18n( $to_num ), 79 number_format_i18n( $plugins->info['results'] ) 80 ); 81 ?> 71 82 72 83 </div> … … 79 90 </div> 80 91 81 <?php endwhile; endif;?>92 <?php endwhile; ?> 82 93 <hr class="hidden" /> 83 94 <?php get_sidebar(); get_footer(); ?>
Note: See TracChangeset
for help on using the changeset viewer.