Changeset 4495 for trunk/wp-admin/templates.php
- Timestamp:
- 11/19/2006 07:56:05 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/templates.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/templates.php
r4480 r4495 83 83 <?php endif; ?> 84 84 <?php endif; ?> 85 <div class="wrap"> 85 <div class="wrap"> 86 86 <?php 87 87 if (is_writeable($real_file)) { … … 92 92 ?> 93 93 <div id="templateside"> 94 <?php 95 if ( $recents ) : 94 <?php 95 if ( $recents ) : 96 96 ?> 97 97 <h3><?php _e('Recent'); ?></h3> … … 111 111 $common_files[] = $old_file; 112 112 } ?> 113 <ul>114 <?php foreach ($common_files as $common_file) : ?>115 <li><a href="templates.php?file=<?php echo $common_file?>"><?php echo get_file_description($common_file); ?></a></li>116 <?php endforeach; ?>117 </ul>113 <ul> 114 <?php foreach ($common_files as $common_file) : ?> 115 <li><a href="templates.php?file=<?php echo $common_file?>"><?php echo get_file_description($common_file); ?></a></li> 116 <?php endforeach; ?> 117 </ul> 118 118 </div> 119 119 <?php if (!$error) { ?> 120 <form name="template" id="template" action="templates.php" method="post"> 121 <?php wp_nonce_field('edit-file_' . $file) ?>122 <div><textarea cols="70" rows="25" name="newcontent" id='newcontent' tabindex="1"><?php echo $content ?></textarea> 123 <input type="hidden" name="action" value="update" /> 124 <input type="hidden" name="file" value="<?php echo $file ?>" /> 125 </div>120 <form name="template" id="template" action="templates.php" method="post"> 121 <?php wp_nonce_field('edit-file_' . $file) ?> 122 <div><textarea cols="70" rows="25" name="newcontent" id='newcontent' tabindex="1"><?php echo $content ?></textarea> 123 <input type="hidden" name="action" value="update" /> 124 <input type="hidden" name="file" value="<?php echo $file ?>" /> 125 </div> 126 126 <?php if ( is_writeable($real_file) ) : ?> 127 <p class="submit">127 <p class="submit"> 128 128 <?php 129 129 echo "<input type='submit' name='submit' value=' " . __('Update File »') . "' tabindex='2' />"; … … 133 133 <p><em><?php _e('If this file were writable you could edit it.'); ?></em></p> 134 134 <?php endif; ?> 135 </form> 136 <?php135 </form> 136 <?php 137 137 } else { 138 138 echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>'; … … 144 144 <h2><?php _e('Other Files') ?></h2> 145 145 146 <p><?php _e('To edit a file, type its name here. You can edit any file <a href="http://codex.wordpress.org/Changing_File_Permissions" title="Read more about making files writable">writable by the server</a>, e.g. CHMOD 666.') ?></p> 147 <form name="file" action="templates.php" method="get"> 148 <input type="text" name="file" /> 149 <input type="submit" name="submit" value="<?php _e('Edit file »') ?>" /> 150 </form> 146 <p><?php _e('To edit a file, type its name here. You can edit any file <a href="http://codex.wordpress.org/Changing_File_Permissions" title="Read more about making files writable">writable by the server</a>, e.g. CHMOD 666.') ?></p> 147 <form name="file" action="templates.php" method="get"> 148 <input type="text" name="file" /> 149 <input type="submit" name="submit" value="<?php _e('Edit file »') ?>" /> 150 </form> 151 151 152 <p><?php _e('Note: of course, you can also edit the files/templates in your text editor of choice and upload them. This online editor is only meant to be used when you don’t have access to a text editor or FTP client.') ?></p>153 </div> 152 <p><?php _e('Note: of course, you can also edit the files/templates in your text editor of choice and upload them. This online editor is only meant to be used when you don’t have access to a text editor or FTP client.') ?></p> 153 </div> 154 154 <?php 155 155
Note: See TracChangeset
for help on using the changeset viewer.