Make WordPress Core

Changeset 6966


Ignore:
Timestamp:
02/22/2008 02:04:17 AM (17 years ago)
Author:
ryan
Message:

Move submitboxes to be the first thing in the poststuff div. Props fitztrev. fixes #5947

Location:
trunk/wp-admin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r6962 r6966  
    6868<div id="poststuff">
    6969
    70 <div id="titlediv">
    71 <h3><?php _e('Title') ?></h3>
    72 <div class="inside">
    73     <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" />
    74 <?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?>
    75     <div id="edit-slug-box">
    76 <?php if ( ! empty($post->ID) && ! empty($sample_permalink_html) ) :
    77     echo $sample_permalink_html;
    78 endif; ?>
    79     </div>
    80 </div>
    81 </div>
    82 
    83 <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
    84 <h3><?php _e('Post') ?></h3>
    85 <?php the_editor($post->post_content); ?>
    86 <?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?>
    87 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
    88 <?php wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); ?>
    89 <?php wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); ?>
    90 </div>
    91 
    92 <?php echo $form_pingback ?>
    93 <?php echo $form_prevstatus ?>
    94 
    9570<div class="submitbox" id="submitpost">
    9671
     
    186161<?php do_action('submitpost_box'); ?>
    187162</div>
     163
     164<div id="titlediv">
     165<h3><?php _e('Title') ?></h3>
     166<div class="inside">
     167    <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" />
     168<?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?>
     169    <div id="edit-slug-box">
     170<?php if ( ! empty($post->ID) && ! empty($sample_permalink_html) ) :
     171    echo $sample_permalink_html;
     172endif; ?>
     173    </div>
     174</div>
     175</div>
     176
     177<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
     178<h3><?php _e('Post') ?></h3>
     179<?php the_editor($post->post_content); ?>
     180<?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?>
     181<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
     182<?php wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); ?>
     183<?php wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); ?>
     184</div>
     185
     186<?php echo $form_pingback ?>
     187<?php echo $form_prevstatus ?>
    188188
    189189<p class="submit">
  • trunk/wp-admin/edit-form-comment.php

    r6961 r6966  
    2121
    2222<div id="poststuff">
    23 
    24 <div id="namediv" class="stuffbox">
    25 <h3><?php _e('Name') ?></h3>
    26 <div class="inside">
    27 <input type="text" name="newcomment_author" size="30" value="<?php echo attribute_escape( $comment->comment_author ); ?>" tabindex="1" id="name" />
    28 </div>
    29 </div>
    30 
    31 <div id="emaildiv" class="stuffbox">
    32 <h3><?php _e('E-mail') ?></h3>
    33 <div class="inside">
    34 <input type="text" name="newcomment_author_email" size="30" value="<?php echo attribute_escape( $comment->comment_author_email ); ?>" tabindex="2" id="email" />
    35 </div>
    36 </div>
    37 
    38 <div id="uridiv" class="stuffbox">
    39 <h3><?php _e('URL') ?></h3>
    40 <div class="inside">
    41 <input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" value="<?php echo attribute_escape( $comment->comment_author_url ); ?>" tabindex="2" />
    42 </div>
    43 </div>
    44 
    45 <div id="postdiv" class="postarea">
    46 <h3><?php _e('Comment') ?></h3>
    47 <?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false); ?>
    48 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
    49 </div>
    5023
    5124<div class="submitbox" id="submitcomment">
     
    9669</div>
    9770
     71<div id="namediv" class="stuffbox">
     72<h3><?php _e('Name') ?></h3>
     73<div class="inside">
     74<input type="text" name="newcomment_author" size="30" value="<?php echo attribute_escape( $comment->comment_author ); ?>" tabindex="1" id="name" />
     75</div>
     76</div>
     77
     78<div id="emaildiv" class="stuffbox">
     79<h3><?php _e('E-mail') ?></h3>
     80<div class="inside">
     81<input type="text" name="newcomment_author_email" size="30" value="<?php echo attribute_escape( $comment->comment_author_email ); ?>" tabindex="2" id="email" />
     82</div>
     83</div>
     84
     85<div id="uridiv" class="stuffbox">
     86<h3><?php _e('URL') ?></h3>
     87<div class="inside">
     88<input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" value="<?php echo attribute_escape( $comment->comment_author_url ); ?>" tabindex="2" />
     89</div>
     90</div>
     91
     92<div id="postdiv" class="postarea">
     93<h3><?php _e('Comment') ?></h3>
     94<?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false); ?>
     95<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
     96</div>
     97
    9898<?php do_meta_boxes('comment', 'normal', $comment); ?>
    9999
  • trunk/wp-admin/edit-link-form.php

    r6963 r6966  
    4040<div id="poststuff">
    4141
    42 <div id="namediv" class="stuffbox">
    43 <h3><?php _e('Name') ?></h3>
    44 <div class="inside">
    45     <input type="text" name="link_name" size="30" tabindex="1" value="<?php echo $link->link_name; ?>" id="link_name" />
    46 </div>
    47 </div>
    48 
    49 <div id="addressdiv" class="stuffbox">
    50 <h3><?php _e('Address') ?></h3>
    51 <div class="inside">
    52     <input type="text" name="link_url" size="30" tabindex="1" value="<?php echo $link->link_url; ?>" id="link_url" />
    53 </div>
    54 </div>
    55 
    56 <div id="descriptiondiv" class="stuffbox">
    57 <h3><?php _e('Description') ?></h3>
    58 <div class="inside">
    59     <input type="text" name="link_description" size="30" tabindex="1" value="<?php echo $link->link_description; ?>" id="link_description" />
    60 </div>
    61 </div>
    62 
    6342<div class="submitbox" id="submitlink">
    6443
     
    8766</div>
    8867<?php do_action('submitlink_box'); ?>
     68</div>
     69
     70<div id="namediv" class="stuffbox">
     71<h3><?php _e('Name') ?></h3>
     72<div class="inside">
     73    <input type="text" name="link_name" size="30" tabindex="1" value="<?php echo $link->link_name; ?>" id="link_name" />
     74</div>
     75</div>
     76
     77<div id="addressdiv" class="stuffbox">
     78<h3><?php _e('Address') ?></h3>
     79<div class="inside">
     80    <input type="text" name="link_url" size="30" tabindex="1" value="<?php echo $link->link_url; ?>" id="link_url" />
     81</div>
     82</div>
     83
     84<div id="descriptiondiv" class="stuffbox">
     85<h3><?php _e('Description') ?></h3>
     86<div class="inside">
     87    <input type="text" name="link_description" size="30" tabindex="1" value="<?php echo $link->link_description; ?>" id="link_description" />
     88</div>
    8989</div>
    9090
  • trunk/wp-admin/edit-page-form.php

    r6962 r6966  
    4848<div id="poststuff">
    4949
    50 <div id="titlediv">
    51 <h3><?php _e('Title') ?></h3>
    52 <div class="inside">
    53   <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( $post->post_title ); ?>" id="title" />
    54 <?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?>
    55     <div id="edit-slug-box">
    56 <?php if ( ! empty($post->ID) && ! empty($sample_permalink_html) ) :
    57     echo $sample_permalink_html;
    58 endif; ?>
    59     </div>
    60 </div>
    61 </div>
    62 
    63 <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
    64 <h3><?php _e('Page') ?></h3>
    65 <?php the_editor($post->post_content); ?>
    66 <?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?>
    67 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
    68 <?php wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); ?>
    69 <?php wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); ?>
    70 </div>
    71 
    7250<div class="submitbox" id="submitpage">
    7351
     
    163141</div>
    164142
     143<div id="titlediv">
     144<h3><?php _e('Title') ?></h3>
     145<div class="inside">
     146  <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( $post->post_title ); ?>" id="title" />
     147<?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?>
     148    <div id="edit-slug-box">
     149<?php if ( ! empty($post->ID) && ! empty($sample_permalink_html) ) :
     150    echo $sample_permalink_html;
     151endif; ?>
     152    </div>
     153</div>
     154</div>
     155
     156<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
     157<h3><?php _e('Page') ?></h3>
     158<?php the_editor($post->post_content); ?>
     159<?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?>
     160<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
     161<?php wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); ?>
     162<?php wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); ?>
     163</div>
     164
    165165<p class="submit">
    166166
  • trunk/wp-admin/wp-admin.css

    r6950 r6966  
    11111111    background-color: #eaf3fa;
    11121112    width: 200px;
    1113     top: 234px;
    11141113    right: 15%;
    11151114    -moz-border-radius: 3px;
Note: See TracChangeset for help on using the changeset viewer.