-/**
- * @ignore
- *
- * @param string $context
- */
-function print_plugin_actions($context) {
-?>
- <div class="alignleft actions">
- <select name="action">
- <option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
- <?php if( 'active' != $context ) : ?>
- <option value="activate-selected"><?php _e('Activate'); ?></option>
- <?php endif; ?>
- <?php if ( 'active' == $context ) : ?>
- <option value="deactivate-selected"><?php _e('Deactivate'); ?></option>
- <?php endif; ?>
- <?php if( current_user_can('delete_plugins') && ( 'recent' == $context || 'inactive' == $context ) ) : ?>
- <option value="delete-selected"><?php _e('Delete'); ?></option>
- <?php endif; ?>
- </select>
- <input type="submit" name="doaction_active" value="<?php _e('Apply'); ?>" class="button-secondary action" />
- <?php if( 'recent' == $context ) : ?>
- <input type="submit" name="clear-recent-list" value="<?php _e('Clear List') ?>" class="button-secondary" />
- <?php endif; ?>
- </div>
-<?php
-}
-?>
-
-<?php if ( ! empty($active_plugins) ) : ?>
-<h3 id="currently-active"><?php _e('Currently Active Plugins') ?></h3>
-<form method="post" action="<?php echo admin_url('plugins.php') ?>">
-<?php wp_nonce_field('bulk-manage-plugins') ?>
-
-<div class="tablenav">
-<?php print_plugin_actions('active') ?>
-</div>
-<div class="clear"></div>
-<?php print_plugins_table($active_plugins, 'active') ?>
-</form>
-
-<p><?php printf(__('If something goes wrong with a plugin and you can’t use WordPress, delete or rename that file in the <code>%s</code> directory and it will be automatically deactivated.'), WP_PLUGIN_DIR); ?></p>
-<?php endif; ?>
-
-<?php if ( ! empty($recent_plugins) ) : ?>
-<h3 id="recent-plugins"><?php _e('Recently Active Plugins') ?></h3>
-<p><?php _e('The following plugins were recently active. When a plugin has been inactive for more than 7 days it will be moved to the Inactive plugin list.') ?></p>
-<form method="post" action="<?php echo admin_url('plugins.php') ?>">
-<?php wp_nonce_field('bulk-manage-plugins') ?>
-
-<div class="tablenav">
-<?php print_plugin_actions('recent') ?>
-</div>
-<div class="clear"></div>
-<?php print_plugins_table($recent_plugins, 'recent') ?>