Make WordPress Core


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

Tweak active plugin highlighting. WIP. see #6275

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.