diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-07-22 11:02:58 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-07-22 11:02:58 +0000 |
commit | dac1550c16caa4efadaac5290d77dd0bc678a59a (patch) | |
tree | 2e58096bd26c4b8a23a13625be27d8f4b7f44da8 | |
parent | 004e07571bc612fbe98c3b76e81df98f517b790a (diff) | |
download | wordpress-mu-dac1550c16caa4efadaac5290d77dd0bc678a59a.tar.gz wordpress-mu-dac1550c16caa4efadaac5290d77dd0bc678a59a.tar.xz wordpress-mu-dac1550c16caa4efadaac5290d77dd0bc678a59a.zip |
Count themes, fixes #689, props drmike
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1391 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r-- | wp-admin/wpmu-themes.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wp-admin/wpmu-themes.php b/wp-admin/wpmu-themes.php index 8bbd41a..bccd4b5 100644 --- a/wp-admin/wpmu-themes.php +++ b/wp-admin/wpmu-themes.php @@ -33,13 +33,17 @@ $allowed_themes = get_site_allowed_themes(); </thead> <tbody id="plugins"> <?php + $total_theme_count = 0; + $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++; $class1 = ' active'; } else { $disabled = 'checked="checked" '; @@ -62,6 +66,8 @@ $allowed_themes = get_site_allowed_themes(); <p class="submit"> <input type='submit' value='<?php _e('Update Themes »') ?>' /></p> </form> +<p>Total Themes Installed: <?php echo $total_theme_count; ?><br /> +Themes Activated: <?php echo $activated_themes_count; ?></p> </div> <?php include('admin-footer.php'); ?> |