Make WordPress Core


Ignore:
Timestamp:
02/27/2008 07:18:21 PM (18 years ago)
Author:
ryan
Message:

Style updates to plugins, export, and sidemenu from mt. fixes #6019

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r6980 r7066  
    8282} else {
    8383?>
    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">
    85107    <thead>
    86108    <tr>
     
    88110        <th style="text-align: center"><?php _e('Version'); ?></th>
    89111        <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>
    91113    </tr>
    92114    </thead>
     115    <tbody id="plugins">
    93116<?php
    94117    $style = '';
     
    127150        <td class='vers'>{$plugin_data['Version']}</td>
    128151        <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>";
    133153        echo"
    134154    </tr>";
     
    136156    }
    137157?>
     158    </tbody>
     159</table>
    138160
    139 <tr>
    140     <td colspan="3">&nbsp;</td>
    141     <td colspan="2" style="width:12em;">
    142     <?php
    143     $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     <?php
    149     } 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     <?php
    153     } // endif active/inactive plugin check
    154     ?>
    155     </td>
    156 </tr>
    157 
    158 </table>
    159161<?php
    160162}
Note: See TracChangeset for help on using the changeset viewer.