diff options
Diffstat (limited to 'wp-admin/wpmu-themes.php')
-rw-r--r-- | wp-admin/wpmu-themes.php | 20 |
1 files changed, 12 insertions, 8 deletions
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(); </thead> <tbody id="plugins"> <?php - $total_theme_count = 0; - $activated_themes_count = 0; - foreach( (array) $themes as $key => $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(); <td><?php echo $theme['Version'] ?></td> <td><?php echo $theme['Description'] ?></td> </tr> - <?php endforeach; ?> + <?php } ?> </tbody> </table> <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> + + <h3><?php _e('Total')?></h3> + <p> + <?php printf(__('Themes Installed: %d'), $total_theme_count); ?> + <br /> + <?php printf(__('Themes Activated: %d'), $activated_themes_count); ?> + </p> </div> <?php include('admin-footer.php'); ?> |