raw
mp-wp_genesis           1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * Plugins administration panel.
mp-wp_genesis 4 *
mp-wp_genesis 5 * @package WordPress
mp-wp_genesis 6 * @subpackage Administration
mp-wp_genesis 7 */
mp-wp_genesis 8
mp-wp_genesis 9 /** WordPress Administration Bootstrap */
mp-wp_genesis 10 require_once('admin.php');
mp-wp_genesis 11
mp-wp_genesis 12 $action = '';
mp-wp_genesis 13 foreach( array('activate-selected', 'deactivate-selected', 'delete-selected', 'clear-recent-list') as $action_key ) {
mp-wp_genesis 14 if( isset($_POST[$action_key]) ) {
mp-wp_genesis 15 $action = $action_key;
mp-wp_genesis 16 break;
mp-wp_genesis 17 }
mp-wp_genesis 18 }
mp-wp_genesis 19
mp-wp_genesis 20 if( isset($_REQUEST['action']) && !empty($_REQUEST['action']) )
mp-wp_genesis 21 $action = $_REQUEST['action'];
mp-wp_genesis 22
mp-wp_genesis 23 $plugin = isset($_REQUEST['plugin']) ? $_REQUEST['plugin'] : '';
mp-wp_genesis 24
mp-wp_genesis 25 if( !empty($action) ) {
mp-wp_genesis 26 switch( $action ) {
mp-wp_genesis 27 case 'activate':
mp-wp_genesis 28 check_admin_referer('activate-plugin_' . $plugin);
mp-wp_genesis 29 $result = activate_plugin($plugin, 'plugins.php?error=true&plugin=' . $plugin);
mp-wp_genesis 30 if ( is_wp_error( $result ) )
mp-wp_genesis 31 wp_die($result);
mp-wp_genesis 32 $recent = (array)get_option('recently_activated');
mp-wp_genesis 33 if ( isset($recent[ $plugin ]) ) {
mp-wp_genesis 34 unset($recent[ $plugin ]);
mp-wp_genesis 35 update_option('recently_activated', $recent);
mp-wp_genesis 36 }
mp-wp_genesis 37 wp_redirect('plugins.php?activate=true'); // overrides the ?error=true one above
mp-wp_genesis 38 exit;
mp-wp_genesis 39 break;
mp-wp_genesis 40 case 'activate-selected':
mp-wp_genesis 41 check_admin_referer('bulk-manage-plugins');
mp-wp_genesis 42 activate_plugins($_POST['checked'], 'plugins.php?error=true');
mp-wp_genesis 43
mp-wp_genesis 44 $recent = (array)get_option('recently_activated');
mp-wp_genesis 45 foreach( (array)$_POST['checked'] as $plugin => $time) {
mp-wp_genesis 46 if ( isset($recent[ $plugin ]) )
mp-wp_genesis 47 unset($recent[ $plugin ]);
mp-wp_genesis 48 }
mp-wp_genesis 49 if( $recent != get_option('recently_activated') ) //If array changed, update it.
mp-wp_genesis 50 update_option('recently_activated', $recent);
mp-wp_genesis 51
mp-wp_genesis 52 wp_redirect('plugins.php?activate-multi=true');
mp-wp_genesis 53 exit;
mp-wp_genesis 54 break;
mp-wp_genesis 55 case 'error_scrape':
mp-wp_genesis 56 check_admin_referer('plugin-activation-error_' . $plugin);
mp-wp_genesis 57 $valid = validate_plugin($plugin);
mp-wp_genesis 58 if ( is_wp_error($valid) )
mp-wp_genesis 59 wp_die($valid);
mp-wp_genesis 60 error_reporting( E_ALL ^ E_NOTICE );
mp-wp_genesis 61 @ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
mp-wp_genesis 62 include(WP_PLUGIN_DIR . '/' . $plugin);
mp-wp_genesis 63 do_action('activate_' . $plugin);
mp-wp_genesis 64 exit;
mp-wp_genesis 65 break;
mp-wp_genesis 66 case 'deactivate':
mp-wp_genesis 67 check_admin_referer('deactivate-plugin_' . $plugin);
mp-wp_genesis 68 deactivate_plugins($plugin);
mp-wp_genesis 69 update_option('recently_activated', array($plugin => time()) + (array)get_option('recently_activated'));
mp-wp_genesis 70 wp_redirect('plugins.php?deactivate=true');
mp-wp_genesis 71 exit;
mp-wp_genesis 72 break;
mp-wp_genesis 73 case 'deactivate-selected':
mp-wp_genesis 74 check_admin_referer('bulk-manage-plugins');
mp-wp_genesis 75 deactivate_plugins($_POST['checked']);
mp-wp_genesis 76 $deactivated = array();
mp-wp_genesis 77 foreach ( (array)$_POST['checked'] as $plugin )
mp-wp_genesis 78 $deactivated[ $plugin ] = time();
mp-wp_genesis 79 update_option('recently_activated', $deactivated + (array)get_option('recently_activated'));
mp-wp_genesis 80 wp_redirect('plugins.php?deactivate-multi=true');
mp-wp_genesis 81 exit;
mp-wp_genesis 82 break;
mp-wp_genesis 83 case 'delete-selected':
mp-wp_genesis 84 if ( ! current_user_can('delete_plugins') )
mp-wp_genesis 85 wp_die(__('You do not have sufficient permissions to delete plugins for this blog.'));
mp-wp_genesis 86
mp-wp_genesis 87 check_admin_referer('bulk-manage-plugins');
mp-wp_genesis 88
mp-wp_genesis 89 $plugins = $_REQUEST['checked']; //$_POST = from the plugin form; $_GET = from the FTP details screen.
mp-wp_genesis 90
mp-wp_genesis 91 $title = __('Delete Plugin');
mp-wp_genesis 92 $parent_file = 'plugins.php';
mp-wp_genesis 93
mp-wp_genesis 94 if ( ! isset($_REQUEST['verify-delete']) ) {
mp-wp_genesis 95 wp_enqueue_script('jquery');
mp-wp_genesis 96 require_once('admin-header.php');
mp-wp_genesis 97 ?>
mp-wp_genesis 98 <div class="wrap">
mp-wp_genesis 99 <h2><?php _e('Delete Plugin(s)'); ?></h2>
mp-wp_genesis 100 <?php
mp-wp_genesis 101 $files_to_delete = $plugin_info = array();
mp-wp_genesis 102 foreach ( (array) $plugins as $plugin ) {
mp-wp_genesis 103 if ( '.' == dirname($plugin) ) {
mp-wp_genesis 104 $files_to_delete[] = WP_PLUGIN_DIR . '/' . $plugin;
mp-wp_genesis 105 if( $data = get_plugin_data(WP_PLUGIN_DIR . '/' . $plugin) )
mp-wp_genesis 106 $plugin_info[ $plugin ] = $data;
mp-wp_genesis 107 } else {
mp-wp_genesis 108 //Locate all the files in that folder:
mp-wp_genesis 109 $files = list_files( WP_PLUGIN_DIR . '/' . dirname($plugin) );
mp-wp_genesis 110 if( $files ) {
mp-wp_genesis 111 $files_to_delete = array_merge($files_to_delete, $files);
mp-wp_genesis 112 }
mp-wp_genesis 113 //Get plugins list from that folder
mp-wp_genesis 114 if ( $folder_plugins = get_plugins( '/' . dirname($plugin)) )
mp-wp_genesis 115 $plugin_info = array_merge($plugin_info, $folder_plugins);
mp-wp_genesis 116 }
mp-wp_genesis 117 }
mp-wp_genesis 118 ?>
mp-wp_genesis 119 <p><?php _e('Deleting the selected plugins will remove the following plugin(s) and their files:'); ?></p>
mp-wp_genesis 120 <ul>
mp-wp_genesis 121 <?php
mp-wp_genesis 122 foreach ( $plugin_info as $plugin )
mp-wp_genesis 123 echo '<li>', sprintf(__('%s by %s'), $plugin['Name'], $plugin['Author']), '</li>';
mp-wp_genesis 124 ?>
mp-wp_genesis 125 </ul>
mp-wp_genesis 126 <p><?php _e('Are you sure you wish to delete these files?') ?></p>
mp-wp_genesis 127 <form method="post" action="<?php echo clean_url($_SERVER['REQUEST_URI']); ?>" style="display:inline;">
mp-wp_genesis 128 <input type="hidden" name="verify-delete" value="1" />
mp-wp_genesis 129 <input type="hidden" name="delete-selected" value="1" />
mp-wp_genesis 130 <?php
mp-wp_genesis 131 foreach ( (array)$plugins as $plugin )
mp-wp_genesis 132 echo '<input type="hidden" name="checked[]" value="' . attribute_escape($plugin) . '" />';
mp-wp_genesis 133 ?>
mp-wp_genesis 134 <?php wp_nonce_field('bulk-manage-plugins') ?>
mp-wp_genesis 135 <input type="submit" name="submit" value="<?php _e('Yes, Delete these files') ?>" class="button" />
mp-wp_genesis 136 </form>
mp-wp_genesis 137 <form method="post" action="<?php echo clean_url(wp_get_referer()); ?>" style="display:inline;">
mp-wp_genesis 138 <input type="submit" name="submit" value="<?php _e('No, Return me to the plugin list') ?>" class="button" />
mp-wp_genesis 139 </form>
mp-wp_genesis 140
mp-wp_genesis 141 <p><a href="#" onclick="jQuery('#files-list').toggle(); return false;"><?php _e('Click to view entire list of files which will be deleted'); ?></a></p>
mp-wp_genesis 142 <div id="files-list" style="display:none;">
mp-wp_genesis 143 <ul>
mp-wp_genesis 144 <?php
mp-wp_genesis 145 foreach ( (array)$files_to_delete as $file )
mp-wp_genesis 146 echo '<li>' . str_replace(WP_PLUGIN_DIR, '', $file) . '</li>';
mp-wp_genesis 147 ?>
mp-wp_genesis 148 </ul>
mp-wp_genesis 149 </div>
mp-wp_genesis 150 </div>
mp-wp_genesis 151 <?php
mp-wp_genesis 152 require_once('admin-footer.php');
mp-wp_genesis 153 exit;
mp-wp_genesis 154 } //Endif verify-delete
mp-wp_genesis 155 $delete_result = delete_plugins($plugins);
mp-wp_genesis 156
mp-wp_genesis 157 wp_cache_delete('plugins', 'plugins');
mp-wp_genesis 158 break;
mp-wp_genesis 159 case 'clear-recent-list':
mp-wp_genesis 160 update_option('recently_activated', array());
mp-wp_genesis 161 break;
mp-wp_genesis 162 }
mp-wp_genesis 163 }
mp-wp_genesis 164
mp-wp_genesis 165 wp_enqueue_script('plugin-install');
mp-wp_genesis 166 add_thickbox();
mp-wp_genesis 167
mp-wp_genesis 168 $title = __('Manage Plugins');
mp-wp_genesis 169 require_once('admin-header.php');
mp-wp_genesis 170
mp-wp_genesis 171 $invalid = validate_active_plugins();
mp-wp_genesis 172 if ( !empty($invalid) )
mp-wp_genesis 173 foreach ( $invalid as $plugin_file => $error )
mp-wp_genesis 174 echo '<div id="message" class="error"><p>' . sprintf(__('The plugin <code>%s</code> has been <strong>deactivated</strong> due to an error: %s'), wp_specialchars($plugin_file), $error->get_error_message()) . '</p></div>';
mp-wp_genesis 175 ?>
mp-wp_genesis 176
mp-wp_genesis 177 <?php if ( isset($_GET['error']) ) : ?>
mp-wp_genesis 178 <div id="message" class="updated fade"><p><?php _e('Plugin could not be activated because it triggered a <strong>fatal error</strong>.') ?></p>
mp-wp_genesis 179 <?php
mp-wp_genesis 180 if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $plugin) ) { ?>
mp-wp_genesis 181 <iframe style="border:0" width="100%" height="70px" src="<?php echo admin_url('plugins.php?action=error_scrape&amp;plugin=' . attribute_escape($plugin) . '&amp;_wpnonce=' . attribute_escape($_GET['_error_nonce'])); ?>"></iframe>
mp-wp_genesis 182 <?php
mp-wp_genesis 183 }
mp-wp_genesis 184 ?>
mp-wp_genesis 185 </div>
mp-wp_genesis 186 <?php elseif ( 'delete-selected' == $action ) :
mp-wp_genesis 187 if ( is_wp_error($delete_result) ) : ?>
mp-wp_genesis 188 <div id="message" class="updated fade"><p><?php printf( __('Plugin could not be deleted due to an error: %s'), $delete_result->get_error_message() ); ?></p></div>
mp-wp_genesis 189 <?php else : ?>
mp-wp_genesis 190 <div id="message" class="updated fade"><p><?php _e('The selected plugins have been <strong>deleted</strong>.'); ?></p></div>
mp-wp_genesis 191 <?php endif; ?>
mp-wp_genesis 192 <?php elseif ( isset($_GET['activate']) ) : ?>
mp-wp_genesis 193 <div id="message" class="updated fade"><p><?php _e('Plugin <strong>activated</strong>.') ?></p></div>
mp-wp_genesis 194 <?php elseif (isset($_GET['activate-multi'])) : ?>
mp-wp_genesis 195 <div id="message" class="updated fade"><p><?php _e('Selected plugins <strong>activated</strong>.'); ?></p></div>
mp-wp_genesis 196 <?php elseif ( isset($_GET['deactivate']) ) : ?>
mp-wp_genesis 197 <div id="message" class="updated fade"><p><?php _e('Plugin <strong>deactivated</strong>.') ?></p></div>
mp-wp_genesis 198 <?php elseif (isset($_GET['deactivate-multi'])) : ?>
mp-wp_genesis 199 <div id="message" class="updated fade"><p><?php _e('Selected plugins <strong>deactivated</strong>.'); ?></p></div>
mp-wp_genesis 200 <?php endif; ?>
mp-wp_genesis 201
mp-wp_genesis 202 <div class="wrap">
mp-wp_genesis 203 <?php screen_icon(); ?>
mp-wp_genesis 204 <h2><?php echo wp_specialchars( $title ); ?></h2>
mp-wp_genesis 205
mp-wp_genesis 206 <p><?php _e('Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.'); ?></p>
mp-wp_genesis 207 <?php
mp-wp_genesis 208
mp-wp_genesis 209 $all_plugins = get_plugins();
mp-wp_genesis 210 $active_plugins = array();
mp-wp_genesis 211 $inactive_plugins = array();
mp-wp_genesis 212 $recent_plugins = array();
mp-wp_genesis 213 $recently_activated = (array) get_option('recently_activated');
mp-wp_genesis 214
mp-wp_genesis 215 //Clean out any plugins which were deactivated over a week ago.
mp-wp_genesis 216 foreach ( $recently_activated as $key => $time )
mp-wp_genesis 217 if ( $time + (7*24*60*60) < time() ) //1 week
mp-wp_genesis 218 unset($recently_activated[ $key ]);
mp-wp_genesis 219 if ( $recently_activated != get_option('recently_activated') ) //If array changed, update it.
mp-wp_genesis 220 update_option('recently_activated', $recently_activated);
mp-wp_genesis 221
mp-wp_genesis 222 foreach ( (array)$all_plugins as $plugin_file => $plugin_data) {
mp-wp_genesis 223
mp-wp_genesis 224 //Translate, Apply Markup, Sanitize HTML
mp-wp_genesis 225 $plugin_data = _get_plugin_data_markup_translate($plugin_data, true, true);
mp-wp_genesis 226
mp-wp_genesis 227 //Filter into individual sections
mp-wp_genesis 228 if ( is_plugin_active($plugin_file) ) {
mp-wp_genesis 229 $active_plugins[ $plugin_file ] = $plugin_data;
mp-wp_genesis 230 } else {
mp-wp_genesis 231 if ( isset( $recently_activated[ $plugin_file ] ) ) //Was the plugin recently activated?
mp-wp_genesis 232 $recent_plugins[ $plugin_file ] = $plugin_data;
mp-wp_genesis 233 else
mp-wp_genesis 234 $inactive_plugins[ $plugin_file ] = $plugin_data;
mp-wp_genesis 235 }
mp-wp_genesis 236 }
mp-wp_genesis 237
mp-wp_genesis 238 ?>
mp-wp_genesis 239
mp-wp_genesis 240 <?php
mp-wp_genesis 241 /**
mp-wp_genesis 242 * @ignore
mp-wp_genesis 243 *
mp-wp_genesis 244 * @param array $plugins
mp-wp_genesis 245 * @param string $context
mp-wp_genesis 246 */
mp-wp_genesis 247 function print_plugins_table($plugins, $context = '') {
mp-wp_genesis 248 ?>
mp-wp_genesis 249 <table class="widefat" cellspacing="0" id="<?php echo $context ?>-plugins-table">
mp-wp_genesis 250 <thead>
mp-wp_genesis 251 <tr>
mp-wp_genesis 252 <th scope="col" class="check-column"><input type="checkbox" /></th>
mp-wp_genesis 253 <th scope="col"><?php _e('Plugin'); ?></th>
mp-wp_genesis 254 <th scope="col" class="num"><?php _e('Version'); ?></th>
mp-wp_genesis 255 <th scope="col"><?php _e('Description'); ?></th>
mp-wp_genesis 256 <th scope="col" class="action-links"><?php _e('Action'); ?></th>
mp-wp_genesis 257 </tr>
mp-wp_genesis 258 </thead>
mp-wp_genesis 259
mp-wp_genesis 260 <tfoot>
mp-wp_genesis 261 <tr>
mp-wp_genesis 262 <th scope="col" class="check-column"><input type="checkbox" /></th>
mp-wp_genesis 263 <th scope="col"><?php _e('Plugin'); ?></th>
mp-wp_genesis 264 <th scope="col" class="num"><?php _e('Version'); ?></th>
mp-wp_genesis 265 <th scope="col"><?php _e('Description'); ?></th>
mp-wp_genesis 266 <th scope="col" class="action-links"><?php _e('Action'); ?></th>
mp-wp_genesis 267 </tr>
mp-wp_genesis 268 </tfoot>
mp-wp_genesis 269
mp-wp_genesis 270 <tbody class="plugins">
mp-wp_genesis 271 <?php
mp-wp_genesis 272
mp-wp_genesis 273 if ( empty($plugins) ) {
mp-wp_genesis 274 echo '<tr>
mp-wp_genesis 275 <td colspan="6">' . __('No plugins to show') . '</td>
mp-wp_genesis 276 </tr>';
mp-wp_genesis 277 }
mp-wp_genesis 278 foreach ( (array)$plugins as $plugin_file => $plugin_data) {
mp-wp_genesis 279 $action_links = array();
mp-wp_genesis 280
mp-wp_genesis 281 if ( 'active' == $context )
mp-wp_genesis 282 $action_links[] = '<a href="' . wp_nonce_url('plugins.php?action=deactivate&amp;plugin=' . $plugin_file, 'deactivate-plugin_' . $plugin_file) . '" title="' . __('Deactivate this plugin') . '">' . __('Deactivate') . '</a>';
mp-wp_genesis 283 else //Inactive or Recently deactivated
mp-wp_genesis 284 $action_links[] = '<a href="' . wp_nonce_url('plugins.php?action=activate&amp;plugin=' . $plugin_file, 'activate-plugin_' . $plugin_file) . '" title="' . __('Activate this plugin') . '" class="edit">' . __('Activate') . '</a>';
mp-wp_genesis 285
mp-wp_genesis 286 if ( current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) )
mp-wp_genesis 287 $action_links[] = '<a href="plugin-editor.php?file=' . $plugin_file . '" title="' . __('Open this file in the Plugin Editor') . '" class="edit">' . __('Edit') . '</a>';
mp-wp_genesis 288
mp-wp_genesis 289 $action_links = apply_filters( 'plugin_action_links', $action_links, $plugin_file, $plugin_data, $context );
mp-wp_genesis 290 $action_links = apply_filters( "plugin_action_links_$plugin_file", $action_links, $plugin_file, $plugin_data, $context );
mp-wp_genesis 291
mp-wp_genesis 292 echo "
mp-wp_genesis 293 <tr class='$context'>
mp-wp_genesis 294 <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . attribute_escape($plugin_file) . "' /></th>
mp-wp_genesis 295 <td class='name'>{$plugin_data['Title']}</td>
mp-wp_genesis 296 <td class='vers'>{$plugin_data['Version']}</td>
mp-wp_genesis 297 <td class='desc'><p>{$plugin_data['Description']}</p></td>
mp-wp_genesis 298 <td class='togl action-links'>";
mp-wp_genesis 299 if ( !empty($action_links) )
mp-wp_genesis 300 echo implode(' | ', $action_links);
mp-wp_genesis 301 echo '</td>
mp-wp_genesis 302 </tr>';
mp-wp_genesis 303 do_action( 'after_plugin_row', $plugin_file, $plugin_data, $context );
mp-wp_genesis 304 do_action( "after_plugin_row_$plugin_file", $plugin_file, $plugin_data, $context );
mp-wp_genesis 305 }
mp-wp_genesis 306 ?>
mp-wp_genesis 307 </tbody>
mp-wp_genesis 308 </table>
mp-wp_genesis 309 <?php
mp-wp_genesis 310 } //End print_plugins_table()
mp-wp_genesis 311
mp-wp_genesis 312 /**
mp-wp_genesis 313 * @ignore
mp-wp_genesis 314 *
mp-wp_genesis 315 * @param string $context
mp-wp_genesis 316 */
mp-wp_genesis 317 function print_plugin_actions($context) {
mp-wp_genesis 318 ?>
mp-wp_genesis 319 <div class="alignleft actions">
mp-wp_genesis 320 <select name="action">
mp-wp_genesis 321 <option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
mp-wp_genesis 322 <?php if( 'active' != $context ) : ?>
mp-wp_genesis 323 <option value="activate-selected"><?php _e('Activate'); ?></option>
mp-wp_genesis 324 <?php endif; ?>
mp-wp_genesis 325 <?php if ( 'active' == $context ) : ?>
mp-wp_genesis 326 <option value="deactivate-selected"><?php _e('Deactivate'); ?></option>
mp-wp_genesis 327 <?php endif; ?>
mp-wp_genesis 328 <?php if( current_user_can('delete_plugins') && ( 'recent' == $context || 'inactive' == $context ) ) : ?>
mp-wp_genesis 329 <option value="delete-selected"><?php _e('Delete'); ?></option>
mp-wp_genesis 330 <?php endif; ?>
mp-wp_genesis 331 </select>
mp-wp_genesis 332 <input type="submit" name="doaction_active" value="<?php _e('Apply'); ?>" class="button-secondary action" />
mp-wp_genesis 333 <?php if( 'recent' == $context ) : ?>
mp-wp_genesis 334 <input type="submit" name="clear-recent-list" value="<?php _e('Clear List') ?>" class="button-secondary" />
mp-wp_genesis 335 <?php endif; ?>
mp-wp_genesis 336 </div>
mp-wp_genesis 337 <?php
mp-wp_genesis 338 }
mp-wp_genesis 339 ?>
mp-wp_genesis 340
mp-wp_genesis 341 <?php if ( ! empty($active_plugins) ) : ?>
mp-wp_genesis 342 <h3 id="currently-active"><?php _e('Currently Active Plugins') ?></h3>
mp-wp_genesis 343 <form method="post" action="<?php echo admin_url('plugins.php') ?>">
mp-wp_genesis 344 <?php wp_nonce_field('bulk-manage-plugins') ?>
mp-wp_genesis 345
mp-wp_genesis 346 <div class="tablenav">
mp-wp_genesis 347 <?php print_plugin_actions('active') ?>
mp-wp_genesis 348 </div>
mp-wp_genesis 349 <div class="clear"></div>
mp-wp_genesis 350 <?php print_plugins_table($active_plugins, 'active') ?>
mp-wp_genesis 351 </form>
mp-wp_genesis 352
mp-wp_genesis 353 <p><?php printf(__('If something goes wrong with a plugin and you can&#8217;t use WordPress, delete or rename that file in the <code>%s</code> directory and it will be automatically deactivated.'), WP_PLUGIN_DIR); ?></p>
mp-wp_genesis 354 <?php endif; ?>
mp-wp_genesis 355
mp-wp_genesis 356 <?php if ( ! empty($recent_plugins) ) : ?>
mp-wp_genesis 357 <h3 id="recent-plugins"><?php _e('Recently Active Plugins') ?></h3>
mp-wp_genesis 358 <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>
mp-wp_genesis 359 <form method="post" action="<?php echo admin_url('plugins.php') ?>">
mp-wp_genesis 360 <?php wp_nonce_field('bulk-manage-plugins') ?>
mp-wp_genesis 361
mp-wp_genesis 362 <div class="tablenav">
mp-wp_genesis 363 <?php print_plugin_actions('recent') ?>
mp-wp_genesis 364 </div>
mp-wp_genesis 365 <div class="clear"></div>
mp-wp_genesis 366 <?php print_plugins_table($recent_plugins, 'recent') ?>
mp-wp_genesis 367 </form>
mp-wp_genesis 368 <?php endif; ?>
mp-wp_genesis 369
mp-wp_genesis 370 <?php if ( ! empty($inactive_plugins) ) : ?>
mp-wp_genesis 371 <h3 id="inactive-plugins"><?php _e('Inactive Plugins') ?></h3>
mp-wp_genesis 372 <form method="post" action="<?php echo admin_url('plugins.php') ?>">
mp-wp_genesis 373 <?php wp_nonce_field('bulk-manage-plugins') ?>
mp-wp_genesis 374
mp-wp_genesis 375 <div class="tablenav">
mp-wp_genesis 376 <?php print_plugin_actions('inactive') ?>
mp-wp_genesis 377 </div>
mp-wp_genesis 378 <div class="clear"></div>
mp-wp_genesis 379 <?php print_plugins_table($inactive_plugins, 'inactive') ?>
mp-wp_genesis 380 </form>
mp-wp_genesis 381 <?php endif; ?>
mp-wp_genesis 382
mp-wp_genesis 383 <?php if ( empty($all_plugins) ) : ?>
mp-wp_genesis 384 <p><?php _e('You do not appear to have any plugins available at this time.') ?></p>
mp-wp_genesis 385 <?php endif; ?>
mp-wp_genesis 386
mp-wp_genesis 387 <h2><?php _e('Get More Plugins'); ?></h2>
mp-wp_genesis 388 <p><?php _e('You can find additional plugins for your site by using the new <a href="plugin-install.php">Plugin Browser/Installer</a> functionality, Or by browsing the <a href="http://wordpress.org/extend/plugins/">WordPress Plugin Directory</a> directly and installing manually.'); ?></p>
mp-wp_genesis 389 <p><?php printf(__('To <em>manually</em> install a plugin you generally just need to upload the plugin file into your <code>%s</code> directory.'), WP_PLUGIN_DIR); ?></p>
mp-wp_genesis 390 <p><?php _e('Once a plugin has been installed, you may activate it here.'); ?></p>
mp-wp_genesis 391
mp-wp_genesis 392 </div>
mp-wp_genesis 393
mp-wp_genesis 394 <?php
mp-wp_genesis 395 include('admin-footer.php');
mp-wp_genesis 396 ?>