Changeset 1274 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/index.php
- Timestamp:
- 02/17/2015 11:18:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/index.php
r1247 r1274 12 12 */ 13 13 14 15 14 if ( ! function_exists( 'get_theme_feature_list' ) ) { 15 include ABSPATH . 'wp-admin/includes/theme.php'; 16 } 16 17 get_header(); 17 18 global $themes;19 18 ?> 20 19 … … 22 21 <div class="wp-filter"> 23 22 <div class="filter-count"> 24 <span class="count theme-count"><?php echo count( $themes->themes ); ?></span>23 <span class="count theme-count"><?php echo $GLOBALS['wp_query']->found_posts; ?></span> 25 24 </div> 26 25 … … 66 65 <div class="themes" style="display:none;"> 67 66 <?php 68 if ( ! is_wp_error( $themes ) ) : 69 if ( is_single() ) : 70 $theme = array_shift( $themes->themes ); 71 get_template_part( 'content', 'single' ); 72 else : 73 foreach ( $themes->themes as $theme ) : 74 get_template_part( 'content', 'index' ); 75 endforeach; 76 endif; 77 endif; 67 while ( have_posts() ) : 68 the_post(); 69 get_template_part( 'content', is_single() ? 'single' : 'index' ); 70 endwhile; 71 72 the_posts_navigation( array( 73 'prev_text' => __( 'Next', 'wporg-themes' ), 74 'next_text' => __( 'Previous', 'wporg-themes' ), 75 ) ); 78 76 ?> 79 77 </div>
Note: See TracChangeset
for help on using the changeset viewer.