From af5e4b4ee046ced155ed3c6aa651d5fe02ad4af1 Mon Sep 17 00:00:00 2001 From: donncha Date: Mon, 25 Aug 2008 15:35:26 +0000 Subject: Locale changes from #708, props momo360modena git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1443 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/wpmu-themes.php | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'wp-admin/wpmu-themes.php') diff --git a/wp-admin/wpmu-themes.php b/wp-admin/wpmu-themes.php index bccd4b5..e62824a 100644 --- a/wp-admin/wpmu-themes.php +++ b/wp-admin/wpmu-themes.php @@ -33,17 +33,16 @@ $allowed_themes = get_site_allowed_themes(); $theme ) : - $total_theme_count++; + $total_theme_count = $activated_themes_count = 0; + foreach( (array) $themes as $key => $theme ) { + $total_theme_count++; $theme_key = wp_specialchars($theme['Stylesheet']); $class = ('alt' == $class) ? '' : 'alt'; $class1 = $enabled = $disabled = ''; if( isset( $allowed_themes[ $theme_key ] ) == true ) { $enabled = 'checked="checked" '; - $activated_themes_count++; + $activated_themes_count++; $class1 = ' active'; } else { $disabled = 'checked="checked" '; @@ -59,15 +58,20 @@ $allowed_themes = get_site_allowed_themes(); - +

' />

-

Total Themes Installed:
-Themes Activated:

+ +

+

+ +
+ +

-- cgit