Tweak active plugin highlighting. WIP. see #6275
git-svn-id: https://develop.svn.wordpress.org/trunk@7518 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
af399609b8
commit
6662674cfc
@ -406,10 +406,14 @@ input.readonly {
|
|||||||
border-color: #319f52;
|
border-color: #319f52;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugins .active, .checkbox, .side-info, #your-profile #rich_editing {
|
.checkbox, .side-info, #your-profile #rich_editing {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#plugins .active {
|
||||||
|
background-color: #BBEEBB;
|
||||||
|
}
|
||||||
|
|
||||||
#plugins .togl {
|
#plugins .togl {
|
||||||
border-right-color: #ccc;
|
border-right-color: #ccc;
|
||||||
}
|
}
|
||||||
@ -419,7 +423,7 @@ input.readonly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#plugins tr {
|
#plugins tr {
|
||||||
background-color: #f0f0f0;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#poststuff #editor-toolbar .active {
|
#poststuff #editor-toolbar .active {
|
||||||
|
@ -375,10 +375,14 @@ input.readonly {
|
|||||||
border-color: #319f52;
|
border-color: #319f52;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugins .active, .checkbox, .side-info, #your-profile #rich_editing {
|
.checkbox, .side-info, #your-profile #rich_editing {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#plugins .active {
|
||||||
|
background-color: #BBEEBB;
|
||||||
|
}
|
||||||
|
|
||||||
#plugins .togl {
|
#plugins .togl {
|
||||||
border-right-color: #ccc;
|
border-right-color: #ccc;
|
||||||
}
|
}
|
||||||
@ -388,7 +392,7 @@ input.readonly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#plugins tr {
|
#plugins tr {
|
||||||
background-color: #f0f0f0;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#poststuff #editor-toolbar .active {
|
#poststuff #editor-toolbar .active {
|
||||||
|
BIN
wp-admin/images/active.png
Normal file
BIN
wp-admin/images/active.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 781 B |
@ -106,6 +106,7 @@ if (empty($plugins)) {
|
|||||||
<th><?php _e('Plugin'); ?></th>
|
<th><?php _e('Plugin'); ?></th>
|
||||||
<th class="num"><?php _e('Version'); ?></th>
|
<th class="num"><?php _e('Version'); ?></th>
|
||||||
<th><?php _e('Description'); ?></th>
|
<th><?php _e('Description'); ?></th>
|
||||||
|
<th><?php _e('Status') ?></th>
|
||||||
<th class="action-links"><?php _e('Action'); ?></th>
|
<th class="action-links"><?php _e('Action'); ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -116,7 +117,7 @@ if (empty($plugins)) {
|
|||||||
|
|
||||||
$style = '';
|
$style = '';
|
||||||
|
|
||||||
if( is_plugin_active($plugin_file) ) {
|
if ( is_plugin_active($plugin_file) ) {
|
||||||
$action_links[] = "<a href='" . wp_nonce_url("plugins.php?action=deactivate&plugin=$plugin_file", 'deactivate-plugin_' . $plugin_file) . "' title='".__('Deactivate this plugin')."' class='delete'>".__('Deactivate')."</a>";
|
$action_links[] = "<a href='" . wp_nonce_url("plugins.php?action=deactivate&plugin=$plugin_file", 'deactivate-plugin_' . $plugin_file) . "' title='".__('Deactivate this plugin')."' class='delete'>".__('Deactivate')."</a>";
|
||||||
$style = 'active';
|
$style = 'active';
|
||||||
} else {
|
} else {
|
||||||
@ -144,6 +145,12 @@ if (empty($plugins)) {
|
|||||||
<td class='name'>{$plugin_data['Title']}</td>
|
<td class='name'>{$plugin_data['Title']}</td>
|
||||||
<td class='vers'>{$plugin_data['Version']}</td>
|
<td class='vers'>{$plugin_data['Version']}</td>
|
||||||
<td class='desc'><p>{$plugin_data['Description']}$author</p></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";
|
<td class='togl action-links'>$toggle";
|
||||||
if ( !empty($action_links) )
|
if ( !empty($action_links) )
|
||||||
echo implode(' | ', $action_links);
|
echo implode(' | ', $action_links);
|
||||||
|
Loading…
Reference in New Issue
Block a user