Changeset 1391

Show
Ignore:
Timestamp:
07/22/08 11:02:58 (5 months ago)
Author:
donncha
Message:

Count themes, fixes #689, props drmike

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/wpmu-themes.php

    r1289 r1391  
    3434                        <tbody id="plugins"> 
    3535                        <?php 
     36                        $total_theme_count = 0; 
     37                        $activated_themes_count = 0; 
    3638                        foreach( (array) $themes as $key => $theme ) : 
     39                                $total_theme_count++; 
    3740                                $theme_key = wp_specialchars($theme['Stylesheet']); 
    3841                                $class = ('alt' == $class) ? '' : 'alt'; 
     
    4144                                if( isset( $allowed_themes[ $theme_key ] ) == true ) { 
    4245                                        $enabled = 'checked="checked" '; 
     46                                        $activated_themes_count++; 
    4347                                        $class1 = ' active'; 
    4448                                } else { 
     
    6367                        <input type='submit' value='<?php _e('Update Themes &raquo;') ?>' /></p> 
    6468        </form> 
     69<p>Total Themes Installed: <?php echo $total_theme_count; ?><br /> 
     70Themes Activated: <?php echo $activated_themes_count; ?></p> 
    6571</div> 
    6672