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 include(ABSPATH . 'wp-admin/update.php');
mp-wp_genesis 91
mp-wp_genesis 92 $title = __('Delete Plugin');
mp-wp_genesis 93 $parent_file = 'plugins.php';
mp-wp_genesis 94
mp-wp_genesis 95 if ( ! isset($_REQUEST['verify-delete']) ) {
mp-wp_genesis 96 wp_enqueue_script('jquery');
mp-wp_genesis 97 require_once('admin-header.php');
mp-wp_genesis 98 ?>
mp-wp_genesis 99 <div class="wrap">
mp-wp_genesis 100 <h2><?php _e('Delete Plugin(s)'); ?></h2>
mp-wp_genesis 101 <?php
mp-wp_genesis 102 $files_to_delete = $plugin_info = array();
mp-wp_genesis 103 foreach ( (array) $plugins as $plugin ) {
mp-wp_genesis 104 if ( '.' == dirname($plugin) ) {
mp-wp_genesis 105 $files_to_delete[] = WP_PLUGIN_DIR . '/' . $plugin;
mp-wp_genesis 106 if( $data = get_plugin_data(WP_PLUGIN_DIR . '/' . $plugin) )
mp-wp_genesis 107 $plugin_info[ $plugin ] = $data;
mp-wp_genesis 108 } else {
mp-wp_genesis 109 //Locate all the files in that folder:
mp-wp_genesis 110 $files = list_files( WP_PLUGIN_DIR . '/' . dirname($plugin) );
mp-wp_genesis 111 if( $files ) {
mp-wp_genesis 112 $files_to_delete = array_merge($files_to_delete, $files);
mp-wp_genesis 113 }
mp-wp_genesis 114 //Get plugins list from that folder
mp-wp_genesis 115 if ( $folder_plugins = get_plugins( '/' . dirname($plugin)) )
mp-wp_genesis 116 $plugin_info = array_merge($plugin_info, $folder_plugins);
mp-wp_genesis 117 }
mp-wp_genesis 118 }
mp-wp_genesis 119 ?>
mp-wp_genesis 120 <p><?php _e('Deleting the selected plugins will remove the following plugin(s) and their files:'); ?></p>
mp-wp_genesis 121 <ul>
mp-wp_genesis 122 <?php
mp-wp_genesis 123 foreach ( $plugin_info as $plugin )
mp-wp_genesis 124 echo '<li>', sprintf(__('%s by %s'), $plugin['Name'], $plugin['Author']), '</li>';
mp-wp_genesis 125 ?>
mp-wp_genesis 126 </ul>
mp-wp_genesis 127 <p><?php _e('Are you sure you wish to delete these files?') ?></p>
mp-wp_genesis 128 <form method="post" action="<?php echo clean_url($_SERVER['REQUEST_URI']); ?>" style="display:inline;">
mp-wp_genesis 129 <input type="hidden" name="verify-delete" value="1" />
mp-wp_genesis 130 <input type="hidden" name="delete-selected" value="1" />
mp-wp_genesis 131 <?php
mp-wp_genesis 132 foreach ( (array)$plugins as $plugin )
mp-wp_genesis 133 echo '<input type="hidden" name="checked[]" value="' . attribute_escape($plugin) . '" />';
mp-wp_genesis 134 ?>
mp-wp_genesis 135 <?php wp_nonce_field('bulk-manage-plugins') ?>
mp-wp_genesis 136 <input type="submit" name="submit" value="<?php _e('Yes, Delete these files') ?>" class="button" />
mp-wp_genesis 137 </form>
mp-wp_genesis 138 <form method="post" action="<?php echo clean_url(wp_get_referer()); ?>" style="display:inline;">
mp-wp_genesis 139 <input type="submit" name="submit" value="<?php _e('No, Return me to the plugin list') ?>" class="button" />
mp-wp_genesis 140 </form>
mp-wp_genesis 141
mp-wp_genesis 142 <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 143 <div id="files-list" style="display:none;">
mp-wp_genesis 144 <ul>
mp-wp_genesis 145 <?php
mp-wp_genesis 146 foreach ( (array)$files_to_delete as $file )
mp-wp_genesis 147 echo '<li>' . str_replace(WP_PLUGIN_DIR, '', $file) . '</li>';
mp-wp_genesis 148 ?>
mp-wp_genesis 149 </ul>
mp-wp_genesis 150 </div>
mp-wp_genesis 151 </div>
mp-wp_genesis 152 <?php
mp-wp_genesis 153 require_once('admin-footer.php');
mp-wp_genesis 154 exit;
mp-wp_genesis 155 } //Endif verify-delete
mp-wp_genesis 156 $delete_result = delete_plugins($plugins);
mp-wp_genesis 157
mp-wp_genesis 158 wp_cache_delete('plugins', 'plugins');
mp-wp_genesis 159 break;
mp-wp_genesis 160 case 'clear-recent-list':
mp-wp_genesis 161 update_option('recently_activated', array());
mp-wp_genesis 162 break;
mp-wp_genesis 163 }
mp-wp_genesis 164 }
mp-wp_genesis 165
mp-wp_genesis 166 wp_enqueue_script('plugin-install');
mp-wp_genesis 167 add_thickbox();
mp-wp_genesis 168
mp-wp_genesis 169 $title = __('Manage Plugins');
mp-wp_genesis 170 require_once('admin-header.php');
mp-wp_genesis 171
mp-wp_genesis 172 $invalid = validate_active_plugins();
mp-wp_genesis 173 if ( !empty($invalid) )
mp-wp_genesis 174 foreach ( $invalid as $plugin_file => $error )
mp-wp_genesis 175 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 176 ?>
mp-wp_genesis 177
mp-wp_genesis 178 <?php if ( isset($_GET['error']) ) : ?>
mp-wp_genesis 179 <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 180 <?php
mp-wp_genesis 181 if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $plugin) ) { ?>
mp-wp_genesis 182 <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 183 <?php
mp-wp_genesis 184 }
mp-wp_genesis 185 ?>
mp-wp_genesis 186 </div>
mp-wp_genesis 187 <?php elseif ( 'delete-selected' == $action ) :
mp-wp_genesis 188 if ( is_wp_error($delete_result) ) : ?>
mp-wp_genesis 189 <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 190 <?php else : ?>
mp-wp_genesis 191 <div id="message" class="updated fade"><p><?php _e('The selected plugins have been <strong>deleted</strong>.'); ?></p></div>
mp-wp_genesis 192 <?php endif; ?>
mp-wp_genesis 193 <?php elseif ( isset($_GET['activate']) ) : ?>
mp-wp_genesis 194 <div id="message" class="updated fade"><p><?php _e('Plugin <strong>activated</strong>.') ?></p></div>
mp-wp_genesis 195 <?php elseif (isset($_GET['activate-multi'])) : ?>
mp-wp_genesis 196 <div id="message" class="updated fade"><p><?php _e('Selected plugins <strong>activated</strong>.'); ?></p></div>
mp-wp_genesis 197 <?php elseif ( isset($_GET['deactivate']) ) : ?>
mp-wp_genesis 198 <div id="message" class="updated fade"><p><?php _e('Plugin <strong>deactivated</strong>.') ?></p></div>
mp-wp_genesis 199 <?php elseif (isset($_GET['deactivate-multi'])) : ?>
mp-wp_genesis 200 <div id="message" class="updated fade"><p><?php _e('Selected plugins <strong>deactivated</strong>.'); ?></p></div>
mp-wp_genesis 201 <?php endif; ?>
mp-wp_genesis 202
mp-wp_genesis 203 <div class="wrap">
mp-wp_genesis 204 <?php screen_icon(); ?>
mp-wp_genesis 205 <h2><?php echo wp_specialchars( $title ); ?></h2>
mp-wp_genesis 206
mp-wp_genesis 207 <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 208 <?php
mp-wp_genesis 209
mp-wp_genesis 210 $all_plugins = get_plugins();
mp-wp_genesis 211 $active_plugins = array();
mp-wp_genesis 212 $inactive_plugins = array();
mp-wp_genesis 213 $recent_plugins = array();
mp-wp_genesis 214 $recently_activated = (array) get_option('recently_activated');
mp-wp_genesis 215
mp-wp_genesis 216 //Clean out any plugins which were deactivated over a week ago.
mp-wp_genesis 217 foreach ( $recently_activated as $key => $time )
mp-wp_genesis 218 if ( $time + (7*24*60*60) < time() ) //1 week
mp-wp_genesis 219 unset($recently_activated[ $key ]);
mp-wp_genesis 220 if ( $recently_activated != get_option('recently_activated') ) //If array changed, update it.
mp-wp_genesis 221 update_option('recently_activated', $recently_activated);
mp-wp_genesis 222
mp-wp_genesis 223 foreach ( (array)$all_plugins as $plugin_file => $plugin_data) {
mp-wp_genesis 224
mp-wp_genesis 225 //Translate, Apply Markup, Sanitize HTML
mp-wp_genesis 226 $plugin_data = _get_plugin_data_markup_translate($plugin_data, true, true);
mp-wp_genesis 227
mp-wp_genesis 228 //Filter into individual sections
mp-wp_genesis 229 if ( is_plugin_active($plugin_file) ) {
mp-wp_genesis 230 $active_plugins[ $plugin_file ] = $plugin_data;
mp-wp_genesis 231 } else {
mp-wp_genesis 232 if ( isset( $recently_activated[ $plugin_file ] ) ) //Was the plugin recently activated?
mp-wp_genesis 233 $recent_plugins[ $plugin_file ] = $plugin_data;
mp-wp_genesis 234 else
mp-wp_genesis 235 $inactive_plugins[ $plugin_file ] = $plugin_data;
mp-wp_genesis 236 }
mp-wp_genesis 237 }
mp-wp_genesis 238
mp-wp_genesis 239 ?>
mp-wp_genesis 240
mp-wp_genesis 241 <?php
mp-wp_genesis 242 /**
mp-wp_genesis 243 * @ignore
mp-wp_genesis 244 *
mp-wp_genesis 245 * @param array $plugins
mp-wp_genesis 246 * @param string $context
mp-wp_genesis 247 */
mp-wp_genesis 248 function print_plugins_table($plugins, $context = '') {
mp-wp_genesis 249 ?>
mp-wp_genesis 250 <table class="widefat" cellspacing="0" id="<?php echo $context ?>-plugins-table">
mp-wp_genesis 251 <thead>
mp-wp_genesis 252 <tr>
mp-wp_genesis 253 <th scope="col" class="check-column"><input type="checkbox" /></th>
mp-wp_genesis 254 <th scope="col"><?php _e('Plugin'); ?></th>
mp-wp_genesis 255 <th scope="col" class="num"><?php _e('Version'); ?></th>
mp-wp_genesis 256 <th scope="col"><?php _e('Description'); ?></th>
mp-wp_genesis 257 <th scope="col" class="action-links"><?php _e('Action'); ?></th>
mp-wp_genesis 258 </tr>
mp-wp_genesis 259 </thead>
mp-wp_genesis 260
mp-wp_genesis 261 <tfoot>
mp-wp_genesis 262 <tr>
mp-wp_genesis 263 <th scope="col" class="check-column"><input type="checkbox" /></th>
mp-wp_genesis 264 <th scope="col"><?php _e('Plugin'); ?></th>
mp-wp_genesis 265 <th scope="col" class="num"><?php _e('Version'); ?></th>
mp-wp_genesis 266 <th scope="col"><?php _e('Description'); ?></th>
mp-wp_genesis 267 <th scope="col" class="action-links"><?php _e('Action'); ?></th>
mp-wp_genesis 268 </tr>
mp-wp_genesis 269 </tfoot>
mp-wp_genesis 270
mp-wp_genesis 271 <tbody class="plugins">
mp-wp_genesis 272 <?php
mp-wp_genesis 273
mp-wp_genesis 274 if ( empty($plugins) ) {
mp-wp_genesis 275 echo '<tr>
mp-wp_genesis 276 <td colspan="6">' . __('No plugins to show') . '</td>
mp-wp_genesis 277 </tr>';
mp-wp_genesis 278 }
mp-wp_genesis 279 foreach ( (array)$plugins as $plugin_file => $plugin_data) {
mp-wp_genesis 280 $action_links = array();
mp-wp_genesis 281
mp-wp_genesis 282 if ( 'active' == $context )
mp-wp_genesis 283 $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 284 else //Inactive or Recently deactivated
mp-wp_genesis 285 $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 286
mp-wp_genesis 287 if ( current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) )
mp-wp_genesis 288 $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 289
mp-wp_genesis 290 $action_links = apply_filters( 'plugin_action_links', $action_links, $plugin_file, $plugin_data, $context );
mp-wp_genesis 291 $action_links = apply_filters( "plugin_action_links_$plugin_file", $action_links, $plugin_file, $plugin_data, $context );
mp-wp_genesis 292
mp-wp_genesis 293 echo "
mp-wp_genesis 294 <tr class='$context'>
mp-wp_genesis 295 <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . attribute_escape($plugin_file) . "' /></th>
mp-wp_genesis 296 <td class='name'>{$plugin_data['Title']}</td>
mp-wp_genesis 297 <td class='vers'>{$plugin_data['Version']}</td>
mp-wp_genesis 298 <td class='desc'><p>{$plugin_data['Description']}</p></td>
mp-wp_genesis 299 <td class='togl action-links'>";
mp-wp_genesis 300 if ( !empty($action_links) )
mp-wp_genesis 301 echo implode(' | ', $action_links);
mp-wp_genesis 302 echo '</td>
mp-wp_genesis 303 </tr>';
mp-wp_genesis 304 do_action( 'after_plugin_row', $plugin_file, $plugin_data, $context );
mp-wp_genesis 305 do_action( "after_plugin_row_$plugin_file", $plugin_file, $plugin_data, $context );
mp-wp_genesis 306 }
mp-wp_genesis 307 ?>
mp-wp_genesis 308 </tbody>
mp-wp_genesis 309 </table>
mp-wp_genesis 310 <?php
mp-wp_genesis 311 } //End print_plugins_table()
mp-wp_genesis 312
mp-wp_genesis 313 /**
mp-wp_genesis 314 * @ignore
mp-wp_genesis 315 *
mp-wp_genesis 316 * @param string $context
mp-wp_genesis 317 */
mp-wp_genesis 318 function print_plugin_actions($context) {
mp-wp_genesis 319 ?>
mp-wp_genesis 320 <div class="alignleft actions">
mp-wp_genesis 321 <select name="action">
mp-wp_genesis 322 <option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
mp-wp_genesis 323 <?php if( 'active' != $context ) : ?>
mp-wp_genesis 324 <option value="activate-selected"><?php _e('Activate'); ?></option>
mp-wp_genesis 325 <?php endif; ?>
mp-wp_genesis 326 <?php if ( 'active' == $context ) : ?>
mp-wp_genesis 327 <option value="deactivate-selected"><?php _e('Deactivate'); ?></option>
mp-wp_genesis 328 <?php endif; ?>
mp-wp_genesis 329 <?php if( current_user_can('delete_plugins') && ( 'recent' == $context || 'inactive' == $context ) ) : ?>
mp-wp_genesis 330 <option value="delete-selected"><?php _e('Delete'); ?></option>
mp-wp_genesis 331 <?php endif; ?>
mp-wp_genesis 332 </select>
mp-wp_genesis 333 <input type="submit" name="doaction_active" value="<?php _e('Apply'); ?>" class="button-secondary action" />
mp-wp_genesis 334 <?php if( 'recent' == $context ) : ?>
mp-wp_genesis 335 <input type="submit" name="clear-recent-list" value="<?php _e('Clear List') ?>" class="button-secondary" />
mp-wp_genesis 336 <?php endif; ?>
mp-wp_genesis 337 </div>
mp-wp_genesis 338 <?php
mp-wp_genesis 339 }
mp-wp_genesis 340 ?>
mp-wp_genesis 341
mp-wp_genesis 342 <?php if ( ! empty($active_plugins) ) : ?>
mp-wp_genesis 343 <h3 id="currently-active"><?php _e('Currently Active Plugins') ?></h3>
mp-wp_genesis 344 <form method="post" action="<?php echo admin_url('plugins.php') ?>">
mp-wp_genesis 345 <?php wp_nonce_field('bulk-manage-plugins') ?>
mp-wp_genesis 346
mp-wp_genesis 347 <div class="tablenav">
mp-wp_genesis 348 <?php print_plugin_actions('active') ?>
mp-wp_genesis 349 </div>
mp-wp_genesis 350 <div class="clear"></div>
mp-wp_genesis 351 <?php print_plugins_table($active_plugins, 'active') ?>
mp-wp_genesis 352 </form>
mp-wp_genesis 353
mp-wp_genesis 354 <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 355 <?php endif; ?>
mp-wp_genesis 356
mp-wp_genesis 357 <?php if ( ! empty($recent_plugins) ) : ?>
mp-wp_genesis 358 <h3 id="recent-plugins"><?php _e('Recently Active Plugins') ?></h3>
mp-wp_genesis 359 <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 360 <form method="post" action="<?php echo admin_url('plugins.php') ?>">
mp-wp_genesis 361 <?php wp_nonce_field('bulk-manage-plugins') ?>
mp-wp_genesis 362
mp-wp_genesis 363 <div class="tablenav">
mp-wp_genesis 364 <?php print_plugin_actions('recent') ?>
mp-wp_genesis 365 </div>
mp-wp_genesis 366 <div class="clear"></div>
mp-wp_genesis 367 <?php print_plugins_table($recent_plugins, 'recent') ?>
mp-wp_genesis 368 </form>
mp-wp_genesis 369 <?php endif; ?>
mp-wp_genesis 370
mp-wp_genesis 371 <?php if ( ! empty($inactive_plugins) ) : ?>
mp-wp_genesis 372 <h3 id="inactive-plugins"><?php _e('Inactive Plugins') ?></h3>
mp-wp_genesis 373 <form method="post" action="<?php echo admin_url('plugins.php') ?>">
mp-wp_genesis 374 <?php wp_nonce_field('bulk-manage-plugins') ?>
mp-wp_genesis 375
mp-wp_genesis 376 <div class="tablenav">
mp-wp_genesis 377 <?php print_plugin_actions('inactive') ?>
mp-wp_genesis 378 </div>
mp-wp_genesis 379 <div class="clear"></div>
mp-wp_genesis 380 <?php print_plugins_table($inactive_plugins, 'inactive') ?>
mp-wp_genesis 381 </form>
mp-wp_genesis 382 <?php endif; ?>
mp-wp_genesis 383
mp-wp_genesis 384 <?php if ( empty($all_plugins) ) : ?>
mp-wp_genesis 385 <p><?php _e('You do not appear to have any plugins available at this time.') ?></p>
mp-wp_genesis 386 <?php endif; ?>
mp-wp_genesis 387
mp-wp_genesis 388 <h2><?php _e('Get More Plugins'); ?></h2>
mp-wp_genesis 389 <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 390 <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 391 <p><?php _e('Once a plugin has been installed, you may activate it here.'); ?></p>
mp-wp_genesis 392
mp-wp_genesis 393 </div>
mp-wp_genesis 394
mp-wp_genesis 395 <?php
mp-wp_genesis 396 include('admin-footer.php');
mp-wp_genesis 397 ?>