Changeset 11647 for trunk/wp-admin/plugin-editor.php
- Timestamp:
- 06/26/2009 11:07:10 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugin-editor.php
r11530 r11647 137 137 <?php screen_icon(); ?> 138 138 <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"> 160 141 <div class="alignleft"> 161 142 <big><?php … … 173 154 ?></big> 174 155 </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> 175 176 <br class="clear" /> 176 177 </div> 177 <br class="clear" /> 178 179 <h3 id="bordertitle"><?php _e('Plugin Files'); ?></h3>178 179 <div id="templateside"> 180 <h3><?php _e('Plugin Files'); ?></h3> 180 181 181 182 <ul> … … 196 197 <?php endforeach; ?> 197 198 </ul> 198 199 199 </div> 200 <form name="template" id="template" action="plugin-editor.php" method="post"> 200 201 <?php wp_nonce_field('edit-plugin_' . $file) ?> 201 202 <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1" class="codepress <?php echo $codepress_lang ?>"><?php echo $content ?></textarea> … … 222 223 <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> 223 224 <?php endif; ?> 224 225 < div class="clear"> </div>225 </form> 226 <br class="clear" /> 226 227 </div> 227 228 <?php 228 229 break; 229 230 } 230 include("admin-footer.php") ?>231 include("admin-footer.php");
Note: See TracChangeset
for help on using the changeset viewer.