Make WordPress Core

Changeset 7518


Ignore:
Timestamp:
03/26/2008 04:23:02 AM (17 years ago)
Author:
ryan
Message:

Tweak active plugin highlighting. WIP. see #6275

Location:
trunk/wp-admin
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/colors-classic.css

    r7428 r7518  
    407407}
    408408
    409 #plugins .active, .checkbox, .side-info, #your-profile #rich_editing {
     409.checkbox, .side-info, #your-profile #rich_editing {
    410410    background-color: #fff;
     411}
     412
     413#plugins .active {
     414    background-color: #BBEEBB;
    411415}
    412416
     
    420424
    421425#plugins tr {
    422     background-color: #f0f0f0;
     426    background-color: #fff;
    423427}
    424428
  • trunk/wp-admin/css/colors-fresh.css

    r7495 r7518  
    376376}
    377377
    378 #plugins .active, .checkbox, .side-info, #your-profile #rich_editing {
    379     background-color: #fff;
     378.checkbox, .side-info, #your-profile #rich_editing {
     379    background-color: #fff;
     380}
     381
     382#plugins .active {
     383    background-color: #BBEEBB;
    380384}
    381385
     
    389393
    390394#plugins tr {
    391     background-color: #f0f0f0;
     395    background-color: #fff;
    392396}
    393397
  • trunk/wp-admin/plugins.php

    r7517 r7518  
    107107        <th class="num"><?php _e('Version'); ?></th>
    108108        <th><?php _e('Description'); ?></th>
     109        <th><?php _e('Status') ?></th>
    109110        <th class="action-links"><?php _e('Action'); ?></th>
    110111    </tr>
     
    117118        $style = '';
    118119
    119         if( is_plugin_active($plugin_file) ) {
     120        if ( is_plugin_active($plugin_file) ) {
    120121            $action_links[] = "<a href='" . wp_nonce_url("plugins.php?action=deactivate&amp;plugin=$plugin_file", 'deactivate-plugin_' . $plugin_file) . "' title='".__('Deactivate this plugin')."' class='delete'>".__('Deactivate')."</a>";
    121122            $style = 'active';
     
    145146        <td class='vers'>{$plugin_data['Version']}</td>
    146147        <td class='desc'><p>{$plugin_data['Description']}$author</p></td>
     148        <td class='status'>";
     149        if ( is_plugin_active($plugin_file) )
     150            echo "<img alt='" . __('Active Plugin') . "' src='images/active.png' />" . __('Active');
     151        else
     152            _e('Inactive');
     153        echo "</td>
    147154        <td class='togl action-links'>$toggle"; 
    148155        if ( !empty($action_links) )
Note: See TracChangeset for help on using the changeset viewer.