Changeset 1021 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/index.php
- Timestamp:
- 12/02/2014 11:03:33 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
r1006 r1021 12 12 */ 13 13 14 $template_part = is_single() ? 'single' : 'index';15 14 include ABSPATH . 'wp-admin/includes/theme.php'; 16 if ( is_single() ) { 17 $themes = themes_api( 'theme_information', array( 'slug' => get_post()->post_name ) ); 18 } else { 19 $themes = themes_api( 'query_themes', array( 20 'per_page' => 15, 21 'browse' => get_query_var( 'attachment' ) ? get_query_var( 'attachment' ) : 'featured', 22 'fields' => 'tags', 23 ) ); 24 } 15 $themes = themes_api( 'query_themes', array( 16 'per_page' => 15, 17 'browse' => get_query_var( 'attachment' ) ? get_query_var( 'attachment' ) : 'featured', 18 'fields' => 'tags', 19 ) ); 25 20 26 21 get_header(); … … 30 25 <div class="wp-filter"> 31 26 <div class="filter-count"> 32 <span class="count theme-count">< /span>27 <span class="count theme-count"><?php echo count( $themes->themes ); ?></span> 33 28 </div> 34 29 … … 76 71 if ( ! is_wp_error( $themes ) ) : 77 72 foreach ( $themes->themes as $theme ) : 78 get_template_part( 'content', $template_part);73 get_template_part( 'content', 'index' ); 79 74 endforeach; 80 75 endif;
Note: See TracChangeset
for help on using the changeset viewer.