Ticket #5660: 5660.diff
| File 5660.diff, 4.4 KB (added by , 18 years ago) |
|---|
-
wp-admin/plugins.php
81 81 <thead> 82 82 <tr> 83 83 <th><?php _e('Plugin'); ?></th> 84 <th style="text-align: center"><?php _e('Version'); ?></th>85 84 <th><?php _e('Description'); ?></th> 86 <th style="text-align: center" <?php if ( current_user_can('edit_plugins') ) echo ' colspan="2"'; ?>><?php _e('Action'); ?></th>85 <th style="text-align: center"><?php _e('Actions'); ?></th> 87 86 </tr> 88 87 </thead> 89 88 <?php … … 91 90 92 91 foreach($plugins as $plugin_file => $plugin_data) { 93 92 $style = ('class="alternate"' == $style|| 'class="alternate active"' == $style) ? '' : 'alternate'; 94 93 $actions = array(); 94 95 95 if (!empty($current_plugins) && in_array($plugin_file, $current_plugins)) { 96 $ toggle = "<a href='" . wp_nonce_url("plugins.php?action=deactivate&plugin=$plugin_file", 'deactivate-plugin_' . $plugin_file) . "' title='".__('Deactivate this plugin')."' class='delete'>".__('Deactivate')."</a>";96 $actions[] = '<a href="' . wp_nonce_url("plugins.php?action=deactivate&plugin=$plugin_file", 'deactivate-plugin_' . $plugin_file) . '" title="'.__('Deactivate this plugin').'" class="delete">'.__('Deactivate').'</a>'; 97 97 $plugin_data['Title'] = "<strong>{$plugin_data['Title']}</strong>"; 98 98 $style .= $style == 'alternate' ? ' active' : 'active'; 99 99 } else { 100 $ toggle = "<a href='" . wp_nonce_url("plugins.php?action=activate&plugin=$plugin_file", 'activate-plugin_' . $plugin_file) . "' title='".__('Activate this plugin')."' class='edit'>".__('Activate')."</a>";100 $actions[] = '<a href="' . wp_nonce_url("plugins.php?action=activate&plugin=$plugin_file", 'activate-plugin_' . $plugin_file) . '" title="'.__('Activate this plugin').'" class="edit">'.__('Activate').'</a>'; 101 101 } 102 102 103 103 $plugins_allowedtags = array('a' => array('href' => array(),'title' => array()),'abbr' => array('title' => array()),'acronym' => array('title' => array()),'code' => array(),'em' => array(),'strong' => array()); … … 111 111 if ( $style != '' ) 112 112 $style = 'class="' . $style . '"'; 113 113 if ( is_writable(ABSPATH . PLUGINDIR . '/' . $plugin_file) ) 114 $edit = "<a href='plugin-editor.php?file=$plugin_file' title='".__('Open this file in the Plugin Editor')."' class='edit'>".__('Edit')."</a>"; 115 else 116 $edit = ''; 114 $actions[] = "<a href='plugin-editor.php?file=$plugin_file' title='".__('Open this file in the Plugin Editor')."' class='edit'>".__('Edit')."</a>"; 117 115 118 116 $author = ( empty($plugin_data['Author']) ) ? '' : ' <cite>' . sprintf( __('By %s'), $plugin_data['Author'] ) . '.</cite>'; 119 117 118 $actions = apply_filters('plugin_row_actions', $actions, $plugin_file); 119 120 120 echo " 121 121 <tr $style> 122 <td class='name'>{$plugin_data['Title']}</td> 123 <td class='vers'>{$plugin_data['Version']}</td> 122 <td class='name'>{$plugin_data['Title']} <span class='vers'>{$plugin_data['Version']}</span></td> 124 123 <td class='desc'><p>{$plugin_data['Description']}$author</p></td> 125 <td class='togl'>$toggle</td>"; 126 if ( current_user_can('edit_plugins') ) 127 echo " 128 <td>$edit</td>"; 129 echo" 124 <td class='actions'>"; 125 echo implode(' | ', $actions); 126 echo "</td> 130 127 </tr>"; 131 128 do_action( 'after_plugin_row', $plugin_file ); 132 129 } 133 130 ?> 134 131 135 132 <tr> 136 <td colspan=" 3"> </td>137 <td colspan="2" style="width:12em;">133 <td colspan="2"> </td> 134 <td style="width:12em; text-align:center;"> 138 135 <?php 139 136 $active = get_option('active_plugins'); 140 137 $inactive = get_option('deactivated_plugins'); … … 148 145 <?php 149 146 } // endif active/inactive plugin check 150 147 ?> 148 </td> 151 149 </tr> 152 150 153 151 </table> -
wp-admin/wp-admin.css
54 54 font-size: 16px; 55 55 } 56 56 57 .plugins a.edit, .plugins a.delete, .plugins a.view:hover, .plugins a.edit:hover, .plugins a.delete:hover{ 58 display: inline; 59 } 60 57 61 .import-system { 58 62 font-size: 16px; 59 63 } … … 345 349 346 350 table .vers { 347 351 text-align: center; 352 color:#666666; 348 353 } 349 354 355 table .actions{ 356 font-weight: bold; 357 } 358 350 359 textarea.all-options, input.all-options { 351 360 width: 250px; 352 361 } … … 561 570 font-size: 15px; 562 571 } 563 572 564 .plugins p {565 }566 573 567 574 #login .fullwidth { 568 575 width: 320px;