Make WordPress Core


Ignore:
Timestamp:
06/26/2009 11:07:10 AM (15 years ago)
Author:
azaozz
Message:

Fix overlap in plugin and theme editors, props eddieringle, fixes #10101 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugin-editor.php

    r11530 r11647  
    137137<?php screen_icon(); ?>
    138138<h2><?php echo esc_html( $title ); ?></h2>
    139 <div class="bordertitle">
    140     <form id="themeselector" action="plugin-editor.php" method="post">
    141         <strong><label for="plugin"><?php _e('Select plugin to edit:'); ?> </label></strong>
    142         <select name="plugin" id="plugin">
    143 <?php
    144     foreach ( $plugins as $plugin_key => $a_plugin ) {
    145         $plugin_name = $a_plugin['Name'];
    146         if ( $plugin_key == $plugin )
    147             $selected = " selected='selected'";
    148         else
    149             $selected = '';
    150         $plugin_name = esc_attr($plugin_name);
    151         $plugin_key = esc_attr($plugin_key);
    152         echo "\n\t<option value=\"$plugin_key\" $selected>$plugin_name</option>";
    153     }
    154 ?>
    155         </select>
    156         <input type="submit" name="Submit" value="<?php esc_attr_e('Select') ?>" class="button" />
    157     </form>
    158 </div>
    159 <div class="tablenav">
     139
     140<div class="fileedit-sub">
    160141<div class="alignleft">
    161142<big><?php
     
    173154    ?></big>
    174155</div>
     156<div class="alignright">
     157    <form action="plugin-editor.php" method="post">
     158        <strong><label for="plugin"><?php _e('Select plugin to edit:'); ?> </label></strong>
     159        <select name="plugin" id="plugin">
     160<?php
     161    foreach ( $plugins as $plugin_key => $a_plugin ) {
     162        $plugin_name = $a_plugin['Name'];
     163        if ( $plugin_key == $plugin )
     164            $selected = " selected='selected'";
     165        else
     166            $selected = '';
     167        $plugin_name = esc_attr($plugin_name);
     168        $plugin_key = esc_attr($plugin_key);
     169        echo "\n\t<option value=\"$plugin_key\" $selected>$plugin_name</option>";
     170    }
     171?>
     172        </select>
     173        <input type="submit" name="Submit" value="<?php esc_attr_e('Select') ?>" class="button" />
     174    </form>
     175</div>
    175176<br class="clear" />
    176177</div>
    177 <br class="clear" />
    178     <div id="templateside">
    179     <h3 id="bordertitle"><?php _e('Plugin Files'); ?></h3>
     178
     179<div id="templateside">
     180    <h3><?php _e('Plugin Files'); ?></h3>
    180181
    181182    <ul>
     
    196197<?php endforeach; ?>
    197198    </ul>
    198     </div>
    199     <form name="template" id="template" action="plugin-editor.php" method="post">
     199</div>
     200<form name="template" id="template" action="plugin-editor.php" method="post">
    200201    <?php wp_nonce_field('edit-plugin_' . $file) ?>
    201202        <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1" class="codepress <?php echo $codepress_lang ?>"><?php echo $content ?></textarea>
     
    222223    <p><em><?php _e('You need to make this file writable before you can save your changes. See <a href="http://codex.wordpress.org/Changing_File_Permissions">the Codex</a> for more information.'); ?></em></p>
    223224<?php endif; ?>
    224  </form>
    225 <div class="clear"> &nbsp; </div>
     225</form>
     226<br class="clear" />
    226227</div>
    227228<?php
    228229    break;
    229230}
    230 include("admin-footer.php") ?>
     231include("admin-footer.php");
Note: See TracChangeset for help on using the changeset viewer.