Changeset 1493
- Timestamp:
- 04/21/2015 07:21:25 PM (10 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php
r1489 r1493 87 87 * 1. denote singular themes. 88 88 * 2. Identify IE8. 89 * 3. denote if no themes were found. 89 90 * 90 91 * @param array $classes A list of existing body class values. … … 99 100 if ( $GLOBALS['is_IE'] && false !== strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 8' ) ) { 100 101 $classes[] = 'ie8'; 102 } 103 104 if ( ! $GLOBALS['themes']['themes'] ) { 105 $classes[] = 'no-results'; 101 106 } 102 107 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/header.php
r1489 r1493 6 6 */ 7 7 8 $GLOBALS['themes'] = wporg_themes_get_themes_for_query(); 8 9 $GLOBALS['pagetitle'] = __( 'Theme Directory « Free WordPress Themes', 'wporg-themes' ); 9 10 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/index.php
r1489 r1493 12 12 */ 13 13 14 $themes = wporg_themes_get_themes_for_query();14 global $themes; 15 15 16 16 if ( ! function_exists( 'get_theme_feature_list' ) ) { … … 63 63 </div><!-- .wp-filter --> 64 64 65 <div class="theme-browser content-filterable <?php if ( ! $themes['themes'] ) { echo 'no-results'; } ?>">65 <div class="theme-browser content-filterable"> 66 66 <div class="themes"> 67 67 <?php … … 86 86 ?> 87 87 </div> 88 88 89 89 <p class="no-themes"><?php _e( 'No themes found. Try a different search.', 'wporg-themes' ); ?></p> 90 90 </div>
Note: See TracChangeset
for help on using the changeset viewer.