Make WordPress Core


Ignore:
Timestamp:
11/19/2006 07:56:05 AM (19 years ago)
Author:
ryan
Message:

Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixes #986

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/templates.php

    r4480 r4495  
    8383    <?php endif; ?>
    8484<?php endif; ?>
    85  <div class="wrap"> 
     85 <div class="wrap">
    8686<?php
    8787if (is_writeable($real_file)) {
     
    9292?>
    9393<div id="templateside">
    94 <?php 
    95 if ( $recents ) : 
     94<?php
     95if ( $recents ) :
    9696?>
    9797<h3><?php _e('Recent'); ?></h3>
     
    111111         $common_files[] = $old_file;
    112112 } ?>
    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>
    118118</div>
    119119<?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>
    126126<?php if ( is_writeable($real_file) ) : ?>
    127      <p class="submit">
     127    <p class="submit">
    128128<?php
    129129    echo "<input type='submit' name='submit' value='    " . __('Update File &raquo;') . "' tabindex='2' />";
     
    133133<p><em><?php _e('If this file were writable you could edit it.'); ?></em></p>
    134134<?php endif; ?>
    135    </form>
    136   <?php
     135    </form>
     136    <?php
    137137    } else {
    138138        echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>';
     
    144144<h2><?php _e('Other Files') ?></h2>
    145145
    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 &raquo;') ?>" />
    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 &raquo;') ?>" />
     150    </form>
    151151
    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&#8217;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&#8217;t have access to a text editor or FTP client.') ?></p>
     153</div>
    154154<?php
    155155
Note: See TracChangeset for help on using the changeset viewer.