Ticket #9527: 9527.2.diff
| File 9527.2.diff, 5.1 KB (added by , 17 years ago) |
|---|
-
wp-admin/plugins.php
249 249 <table class="widefat" cellspacing="0" id="<?php echo $context ?>-plugins-table"> 250 250 <thead> 251 251 <tr> 252 <th scope="col" class="check-column"><input type="checkbox" /></th> 253 <th scope="col"><?php _e('Plugin'); ?></th> 254 <th scope="col" class="num"><?php _e('Version'); ?></th> 255 <th scope="col"><?php _e('Description'); ?></th> 256 <th scope="col" class="action-links"><?php _e('Action'); ?></th> 252 <th scope="col" class="manage-column check-column"><input type="checkbox" /></th> 253 <th scope="col" class="manage-column"><?php _e('Plugin'); ?></th> 254 <th scope="col" class="manage-column num"><?php _e('Version'); ?></th> 255 <th scope="col" class="manage-column"><?php _e('Description'); ?></th> 257 256 </tr> 258 257 </thead> 259 258 260 259 <tfoot> 261 260 <tr> 262 <th scope="col" class="check-column"><input type="checkbox" /></th> 263 <th scope="col"><?php _e('Plugin'); ?></th> 264 <th scope="col" class="num"><?php _e('Version'); ?></th> 265 <th scope="col"><?php _e('Description'); ?></th> 266 <th scope="col" class="action-links"><?php _e('Action'); ?></th> 261 <th scope="col" class="manage-column check-column"><input type="checkbox" /></th> 262 <th scope="col" class="manage-column"><?php _e('Plugin'); ?></th> 263 <th scope="col" class="manage-column num"><?php _e('Version'); ?></th> 264 <th scope="col" class="manage-column"><?php _e('Description'); ?></th> 267 265 </tr> 268 266 </tfoot> 269 267 … … 276 274 </tr>'; 277 275 } 278 276 foreach ( (array)$plugins as $plugin_file => $plugin_data) { 279 $action _links = array();277 $actions = array(); 280 278 281 279 if ( 'active' == $context ) 282 $action _links[] = '<a href="' . wp_nonce_url('plugins.php?action=deactivate&plugin=' . $plugin_file, 'deactivate-plugin_' . $plugin_file) . '" title="' . __('Deactivate this plugin') . '">' . __('Deactivate') . '</a>';280 $actions[] = '<a href="' . wp_nonce_url('plugins.php?action=deactivate&plugin=' . $plugin_file, 'deactivate-plugin_' . $plugin_file) . '" title="' . __('Deactivate this plugin') . '">' . __('Deactivate') . '</a>'; 283 281 else //Inactive or Recently deactivated 284 $action _links[] = '<a href="' . wp_nonce_url('plugins.php?action=activate&plugin=' . $plugin_file, 'activate-plugin_' . $plugin_file) . '" title="' . __('Activate this plugin') . '" class="edit">' . __('Activate') . '</a>';282 $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>'; 285 283 286 284 if ( current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) ) 287 $action _links[] = '<a href="plugin-editor.php?file=' . $plugin_file . '" title="' . __('Open this file in the Plugin Editor') . '" class="edit">' . __('Edit') . '</a>';285 $actions[] = '<a href="plugin-editor.php?file=' . $plugin_file . '" title="' . __('Open this file in the Plugin Editor') . '" class="edit">' . __('Edit') . '</a>'; 288 286 289 $action_links = apply_filters( 'plugin_action_links', $action_links, $plugin_file, $plugin_data, $context ); 290 $action_links = apply_filters( "plugin_action_links_$plugin_file", $action_links, $plugin_file, $plugin_data, $context ); 287 $actions = apply_filters( 'plugin_action_links', $actions, $plugin_file, $plugin_data, $context ); 288 $actions = apply_filters( "plugin_action_links_$plugin_file", $actions, $plugin_file, $plugin_data, $context ); 289 $action_count = count($actions); 291 290 292 291 echo " 293 292 <tr class='$context'> 294 293 <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . attribute_escape($plugin_file) . "' /></th> 295 <td class='name'>{$plugin_data['Title']}</td> 294 <td class='plugin-title'><strong>{$plugin_data['Title']}</strong>"; 295 $i = 0; 296 echo '<div class="row-actions">'; 297 foreach ( $actions as $action => $link ) { 298 ++$i; 299 ( $i == $action_count ) ? $sep = '' : $sep = ' | '; 300 echo "<span class='$action'>$link$sep</span>"; 301 } 302 echo '</div>'; 303 echo "</td> 296 304 <td class='vers'>{$plugin_data['Version']}</td> 297 <td class='desc'><p>{$plugin_data['Description']}</p></td> 298 <td class='togl action-links'>"; 299 if ( !empty($action_links) ) 300 echo implode(' | ', $action_links); 305 <td class='desc'><p>{$plugin_data['Description']}</p>"; 301 306 echo '</td> 302 307 </tr>'; 303 308 do_action( 'after_plugin_row', $plugin_file, $plugin_data, $context ); … … 393 398 394 399 <?php 395 400 include('admin-footer.php'); 396 ?> 397 No newline at end of file 401 ?> -
wp-admin/wp-admin.css
1981 1981 1982 1982 /* Edit posts */ 1983 1983 1984 td.post-title strong {1984 td.post-title strong, td.plugin-title strong { 1985 1985 display: block; 1986 1986 margin-bottom: .2em; 1987 1987 } 1988 1988 1989 td.post-title p {1989 td.post-title p, td.plugin-title p { 1990 1990 margin: 6px 0; 1991 1991 } 1992 1992 1993 td.plugin-title { 1994 white-space: nowrap; 1995 } 1996 1993 1997 /* Global classes */ 1994 1998 1995 1999 .wp-hidden-children .wp-hidden-child,