Changeset 7066 for trunk/wp-admin/plugins.php
- Timestamp:
- 02/27/2008 07:18:21 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/plugins.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r6980 r7066 82 82 } else { 83 83 ?> 84 <table class="widefat plugins"> 84 85 <div class="tablenav"> 86 <div style="float: left"> 87 <?php 88 $active = get_option('active_plugins'); 89 $inactive = get_option('deactivated_plugins'); 90 if ( !empty($active) ) { 91 ?> 92 <a class="button-secondary" href="<?php echo wp_nonce_url('plugins.php?action=deactivate-all', 'deactivate-all'); ?>" class="delete"><?php _e('Deactivate All Plugins'); ?></a> 93 <?php 94 } elseif ( empty($active) && !empty($inactive) ) { 95 ?> 96 <a class="button-secondary" href="<?php echo wp_nonce_url('plugins.php?action=reactivate-all', 'reactivate-all'); ?>" class="delete"><?php _e('Reactivate All Plugins'); ?></a> 97 <?php 98 } // endif active/inactive plugin check 99 ?> 100 </div> 101 <br style="clear:both;"> 102 </div> 103 104 <br style="clear:both;"> 105 106 <table class="widefat"> 85 107 <thead> 86 108 <tr> … … 88 110 <th style="text-align: center"><?php _e('Version'); ?></th> 89 111 <th><?php _e('Description'); ?></th> 90 <th style="text-align: center"<?php if ( current_user_can('edit_plugins') ) echo ' colspan="2"'; ?>><?php _e('Action'); ?></th>112 <th <?php if ( current_user_can('edit_plugins') ) echo ' colspan="2"'; ?>><?php _e('Action'); ?></th> 91 113 </tr> 92 114 </thead> 115 <tbody id="plugins"> 93 116 <?php 94 117 $style = ''; … … 127 150 <td class='vers'>{$plugin_data['Version']}</td> 128 151 <td class='desc'><p>{$plugin_data['Description']}$author</p></td> 129 <td class='togl'>$toggle</td>"; 130 if ( current_user_can('edit_plugins') ) 131 echo " 132 <td>$edit</td>"; 152 <td class='togl'>$toggle"; if ( current_user_can('edit_plugins') ) echo " | $edit</td>"; 133 153 echo" 134 154 </tr>"; … … 136 156 } 137 157 ?> 158 </tbody> 159 </table> 138 160 139 <tr>140 <td colspan="3"> </td>141 <td colspan="2" style="width:12em;">142 <?php143 $active = get_option('active_plugins');144 $inactive = get_option('deactivated_plugins');145 if ( !empty($active) ) {146 ?>147 <a href="<?php echo wp_nonce_url('plugins.php?action=deactivate-all', 'deactivate-all'); ?>" class="delete"><?php _e('Deactivate All Plugins'); ?></a>148 <?php149 } elseif ( empty($active) && !empty($inactive) ) {150 ?>151 <a href="<?php echo wp_nonce_url('plugins.php?action=reactivate-all', 'reactivate-all'); ?>" class="delete"><?php _e('Reactivate All Plugins'); ?></a>152 <?php153 } // endif active/inactive plugin check154 ?>155 </td>156 </tr>157 158 </table>159 161 <?php 160 162 }
Note: See TracChangeset
for help on using the changeset viewer.