Changeset 1656 for trunk/wp-admin/edit-form.php
- Timestamp:
- 09/14/2004 12:41:09 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit-form.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form.php
r1651 r1656 1 1 2 2 <div class="wrap"> 3 <?php4 $form_action = 'post';5 $form_extra = '';6 7 $form_pingback = '<input type="hidden" name="post_pingback" value="1" id="post_pingback" />';8 9 $form_trackback = '<p><label for="trackback">' . sprintf(__('<a href="%s" title="Help on trackbacks"><strong>TrackBack</strong> a <abbr title="Universal Resource Identifier">URI</abbr></a>:</label> (Separate multiple <abbr title="Universal Resource Identifier">URI</abbr>s with spaces.)<br />'), 'http://wordpress.org/docs/reference/post/#trackback') .10 '<input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" /></p>';11 12 13 $saveasdraft = '';14 15 16 ?>17 3 18 4 <form name="post" action="post.php" method="post" id="simple"> 19 5 20 <?php 21 if (isset($mode) && 'bookmarklet' == $mode) { 22 echo '<input type="hidden" name="mode" value="bookmarklet" />'; 23 } 24 ?> 6 <?php if (isset($mode) && 'bookmarklet' == $mode) : ?> 7 <input type="hidden" name="mode" value="bookmarklet" /> 8 <?php endif; ?> 25 9 <input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" /> 26 <input type="hidden" name="action" value=' <?php echo $form_action . $form_extra ?>' />10 <input type="hidden" name="action" value='post' /> 27 11 28 12 <script type="text/javascript"> … … 67 51 </script> 68 52 69 <?php echo $form_pingback ?> 70 <?php echo $form_trackback; ?> 53 <input type="hidden" name="post_pingback" value="1" id="post_pingback" /> 54 55 <p><label for="trackback"> <?php printf(__('<a href="%s" title="Help on trackbacks"><strong>TrackBack</strong> a <abbr title="Universal Resource Identifier">URI</abbr></a>:</label> (Separate multiple <abbr title="Universal Resource Identifier">URI</abbr>s with spaces.)<br />'), 'http://wordpress.org/docs/reference/post/#trackback') ?> 56 <input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" /></p> 71 57 72 58 <p class="submit"><input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="<?php _e('Save as Draft') ?>" /> 73 <input name="saveasprivate" type="submit" id="saveasprivate" tabindex="10" value="<?php _e('Save as Private') ?>" /> 59 <input name="saveasprivate" type="submit" id="saveasprivate" tabindex="10" value="<?php _e('Save as Private') ?>" /> 60 61 <?php if ( 1 < $user_level || (1 == $user_level && 2 == get_option('new_users_can_blog')) ) : ?> 74 62 <input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="<?php _e('Publish') ?>" /> 75 <?php if ('bookmarklet' != $mode) { 63 <?php endif; ?> 64 65 <?php if ('bookmarklet' != $mode) { 76 66 echo '<input name="advanced" type="submit" id="advancededit" tabindex="7" value="' . __('Advanced Editing »') . '" />'; 77 67 } ?> 78 68 <input name="referredby" type="hidden" id="referredby" value="<?php if (isset($_SERVER['HTTP_REFERER'])) echo urlencode($_SERVER['HTTP_REFERER']); ?>" /> 79 69 </p> 80 <?php do_action('edit_form', ''); ?> 70 71 <?php do_action('simple_edit_form', ''); ?> 72 81 73 </div> 82 74 </form>
Note: See TracChangeset
for help on using the changeset viewer.