Tweak active plugin highlighting. WIP. see #6275

git-svn-id: http://svn.automattic.com/wordpress/trunk@7518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-26 04:23:02 +00:00
parent 7e93fa628f
commit ed0379930b
4 changed files with 20 additions and 5 deletions

View File

@ -406,10 +406,14 @@ input.readonly {
border-color: #319f52;
}
#plugins .active, .checkbox, .side-info, #your-profile #rich_editing {
.checkbox, .side-info, #your-profile #rich_editing {
background-color: #fff;
}
#plugins .active {
background-color: #BBEEBB;
}
#plugins .togl {
border-right-color: #ccc;
}
@ -419,7 +423,7 @@ input.readonly {
}
#plugins tr {
background-color: #f0f0f0;
background-color: #fff;
}
#poststuff #editor-toolbar .active {

View File

@ -375,10 +375,14 @@ input.readonly {
border-color: #319f52;
}
#plugins .active, .checkbox, .side-info, #your-profile #rich_editing {
.checkbox, .side-info, #your-profile #rich_editing {
background-color: #fff;
}
#plugins .active {
background-color: #BBEEBB;
}
#plugins .togl {
border-right-color: #ccc;
}
@ -388,7 +392,7 @@ input.readonly {
}
#plugins tr {
background-color: #f0f0f0;
background-color: #fff;
}
#poststuff #editor-toolbar .active {

BIN
wp-admin/images/active.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

View File

@ -106,6 +106,7 @@ if (empty($plugins)) {
<th><?php _e('Plugin'); ?></th>
<th class="num"><?php _e('Version'); ?></th>
<th><?php _e('Description'); ?></th>
<th><?php _e('Status') ?></th>
<th class="action-links"><?php _e('Action'); ?></th>
</tr>
</thead>
@ -116,7 +117,7 @@ if (empty($plugins)) {
$style = '';
if( is_plugin_active($plugin_file) ) {
if ( is_plugin_active($plugin_file) ) {
$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>";
$style = 'active';
} else {
@ -144,6 +145,12 @@ if (empty($plugins)) {
<td class='name'>{$plugin_data['Title']}</td>
<td class='vers'>{$plugin_data['Version']}</td>
<td class='desc'><p>{$plugin_data['Description']}$author</p></td>
<td class='status'>";
if ( is_plugin_active($plugin_file) )
echo "<img alt='" . __('Active Plugin') . "' src='images/active.png' />" . __('Active');
else
_e('Inactive');
echo "</td>
<td class='togl action-links'>$toggle";
if ( !empty($action_links) )
echo implode(' | ', $action_links);