|
5 | 5 | $parent_file = 'ms-admin.php'; |
6 | 6 | require_once('admin-header.php'); |
7 | 7 |
|
8 | | -if( is_super_admin() == false ) { |
| 8 | +if ( !is_super_admin() ) |
9 | 9 | wp_die( __('You do not have permission to access this page.') ); |
10 | | -} |
11 | 10 |
|
12 | | -if (isset($_GET['updated'])) { |
| 11 | +if ( isset($_GET['updated']) ) { |
13 | 12 | ?> |
14 | 13 | <div id="message" class="updated fade"><p><?php _e('Site themes saved.') ?></p></div> |
15 | 14 | <?php |
|
35 | 34 | <tbody id="plugins"> |
36 | 35 | <?php |
37 | 36 | $total_theme_count = $activated_themes_count = 0; |
38 | | - foreach( (array) $themes as $key => $theme ) { |
| 37 | + $class = ''; |
| 38 | + foreach ( (array) $themes as $key => $theme ) { |
39 | 39 | $total_theme_count++; |
40 | 40 | $theme_key = wp_specialchars($theme['Stylesheet']); |
41 | 41 | $class = ('alt' == $class) ? '' : 'alt'; |
42 | 42 | $class1 = $enabled = $disabled = ''; |
43 | 43 |
|
44 | | - if( isset( $allowed_themes[ $theme_key ] ) == true ) { |
| 44 | + if ( isset( $allowed_themes[ $theme_key ] ) == true ) { |
45 | 45 | $enabled = 'checked="checked" '; |
46 | 46 | $activated_themes_count++; |
47 | 47 | $class1 = ' active'; |
|
52 | 52 | <tr valign="top" class="<?php echo $class.$class1; ?>"> |
53 | 53 | <td style="text-align:center;"> |
54 | 54 | <label><input name="theme[<?php echo $theme_key ?>]" type="radio" id="enabled_<?php echo $theme_key ?>" value="enabled" <?php echo $enabled ?> /> <?php _e('Yes') ?></label> |
55 | | - |
| 55 | + |
56 | 56 | <label><input name="theme[<?php echo $theme_key ?>]" type="radio" id="disabled_<?php echo $theme_key ?>" value="disabled" <?php echo $disabled ?> /> <?php _e('No') ?></label> |
57 | 57 | </td> |
58 | | - <th scope="row" style="text-align:left;"><?php echo $key ?></th> |
| 58 | + <th scope="row" style="text-align:left;"><?php echo $key ?></th> |
59 | 59 | <td><?php echo $theme['Version'] ?></td> |
60 | 60 | <td><?php echo $theme['Description'] ?></td> |
61 | | - </tr> |
| 61 | + </tr> |
62 | 62 | <?php } ?> |
63 | 63 | </tbody> |
64 | 64 | </table> |
65 | 65 |
|
66 | 66 | <p class="submit"> |
67 | 67 | <input type='submit' value='<?php _e('Update Themes »') ?>' /></p> |
68 | 68 | </form> |
69 | | - |
| 69 | + |
70 | 70 | <h3><?php _e('Total')?></h3> |
71 | 71 | <p> |
72 | 72 | <?php printf(__('Themes Installed: %d'), $total_theme_count); ?> |
|
0 commit comments