- if ( in_array($file, (array) get_option('active_plugins')) ) {
- if (is_writeable($real_file)) {
- echo '<h2>' . sprintf(__('Editing <strong>%s</strong> (active)'), $file) . '</h2>';
- } else {
- echo '<h2>' . sprintf(__('Browsing <strong>%s</strong> (active)'), $file) . '</h2>';
- }
+ if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $file) ) { ?>
+ <iframe style="border:0" width="100%" height="70px" src="<?php bloginfo('wpurl'); ?>/wp-admin/plugins.php?action=error_scrape&plugin=<?php echo esc_attr($file); ?>&_wpnonce=<?php echo esc_attr($_GET['_error_nonce']); ?>"></iframe>
+ <?php } ?>
+</div>
+<?php endif; ?>
+<div class="wrap">
+<?php screen_icon(); ?>
+<h2><?php echo esc_html( $title ); ?></h2>
+<div class="bordertitle">
+ <form id="themeselector" action="plugin-editor.php" method="post">
+ <strong><label for="plugin"><?php _e('Select plugin to edit:'); ?> </label></strong>
+ <select name="plugin" id="plugin">
+<?php
+ foreach ( $plugins as $plugin_key => $a_plugin ) {
+ $plugin_name = $a_plugin['Name'];
+ if ( $plugin_key == $plugin )
+ $selected = " selected='selected'";
+ else
+ $selected = '';
+ $plugin_name = esc_attr($plugin_name);
+ $plugin_key = esc_attr($plugin_key);
+ echo "\n\t<option value=\"$plugin_key\" $selected>$plugin_name</option>";
+ }
+?>
+ </select>
+ <input type="submit" name="Submit" value="<?php esc_attr_e('Select') ?>" class="button" />
+ </form>
+</div>
+<div class="tablenav">
+<div class="alignleft">
+<big><?php
+ if ( is_plugin_active($plugin) ) {
+ if ( is_writeable($real_file) )
+ echo sprintf(__('Editing <strong>%s</strong> (active)'), $file);
+ else
+ echo sprintf(__('Browsing <strong>%s</strong> (active)'), $file);