Skip to content
Newer
Older
100644 351 lines (293 sloc) 13.7 KB
95a1e1d New custom field functionality.
saxmatt authored
1 <?php
8e547a3 attribute_escape()s and int casts. see #4333
ryan authored
2 if ( isset($_GET['message']) )
3 $_GET['message'] = (int) $_GET['message'];
95a1e1d New custom field functionality.
saxmatt authored
4 $messages[1] = __('Post updated');
5 $messages[2] = __('Custom field updated');
6 $messages[3] = __('Custom field deleted.');
7 ?>
a23fd4c Some fixes for E_ALL.
saxmatt authored
8 <?php if (isset($_GET['message'])) : ?>
8e547a3 attribute_escape()s and int casts. see #4333
ryan authored
9 <div id="message" class="updated fade"><p><?php echo wp_specialchars($messages[$_GET['message']]); ?></p></div>
95a1e1d New custom field functionality.
saxmatt authored
10 <?php endif; ?>
414d3cd HTML nesting error
saxmatt authored
11
12 <form name="post" action="post.php" method="post" id="post">
9f534eb Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixe…
ryan authored
13 <?php if ( (isset($mode) && 'bookmarklet' == $mode) || isset($_GET['popupurl']) ): ?>
b0386fa Restore accidental reversion.
ryan authored
14 <input type="hidden" name="mode" value="bookmarklet" />
15 <?php endif; ?>
414d3cd HTML nesting error
saxmatt authored
16
31d01ac New two-stage post process.Some HTML cleanup and general tweaking. Sp…
saxmatt authored
17 <div class="wrap">
18 <?php
19
363afe6 Fixed posting problems when 'advanced controls' is the default writin…
emc3 authored
20 if (0 == $post_ID) {
21 $form_action = 'post';
8c6162e Autosave fixes from mdawaffe. fixes #3601
ryan authored
22 $temp_ID = -1 * time(); // don't change this formula without looking at wp_write_post()
baa30dd AJAX, cause you love it. Props mdawaffe. fixes #2561
ryan authored
23 $form_extra = "<input type='hidden' id='post_ID' name='temp_ID' value='$temp_ID' />";
3f57a94 Nonce from above. #2678
ryan authored
24 wp_nonce_field('add-post');
363afe6 Fixed posting problems when 'advanced controls' is the default writin…
emc3 authored
25 } else {
8e547a3 attribute_escape()s and int casts. see #4333
ryan authored
26 $post_ID = (int) $post_ID;
363afe6 Fixed posting problems when 'advanced controls' is the default writin…
emc3 authored
27 $form_action = 'editpost';
baa30dd AJAX, cause you love it. Props mdawaffe. fixes #2561
ryan authored
28 $form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='$post_ID' />";
96c3f73 Update nonce action strings. Props mdawaffe.
ryan authored
29 wp_nonce_field('update-post_' . $post_ID);
363afe6 Fixed posting problems when 'advanced controls' is the default writin…
emc3 authored
30 }
6c5157a Cleaning out some errors and fixing some XHTML 1.1 problems.
saxmatt authored
31
8e547a3 attribute_escape()s and int casts. see #4333
ryan authored
32 $form_pingback = '<input type="hidden" name="post_pingback" value="' . (int) get_option('default_pingback_flag') . '" id="post_pingback" />';
363afe6 Fixed posting problems when 'advanced controls' is the default writin…
emc3 authored
33
8e547a3 attribute_escape()s and int casts. see #4333
ryan authored
34 $form_prevstatus = '<input type="hidden" name="prev_status" value="' . attribute_escape( $post->post_status ) . '" />';
6c5157a Cleaning out some errors and fixing some XHTML 1.1 problems.
saxmatt authored
35
8e547a3 attribute_escape()s and int casts. see #4333
ryan authored
36 $form_trackback = '<input type="text" name="trackback_url" style="width: 415px" id="trackback" tabindex="7" value="'. attribute_escape( str_replace("\n", ' ', $post->to_ping) ) .'" />';
d1ddb15 Allow users 9+ to post as other users, minor advanced post reorg.
saxmatt authored
37
71d5605 Fix already pinged list. Props pirateking. fixes #2136
ryan authored
38 if ('' != $post->pinged) {
39 $pings = '<p>'. __('Already pinged:') . '</p><ul>';
40 $already_pinged = explode("\n", trim($post->pinged));
dad5def Added enclosure support.
donncha authored
41 foreach ($already_pinged as $pinged_url) {
207d876 Make those chars feel special.
ryan authored
42 $pings .= "\n\t<li>" . wp_specialchars($pinged_url) . "</li>";
31d01ac New two-stage post process.Some HTML cleanup and general tweaking. Sp…
saxmatt authored
43 }
dad5def Added enclosure support.
donncha authored
44 $pings .= '</ul>';
45 }
c913685 Massive options cleanup and another step of cleaning up the upgrade/i…
saxmatt authored
46
8e547a3 attribute_escape()s and int casts. see #4333
ryan authored
47 $saveasdraft = '<input name="save" type="submit" id="save" tabindex="3" value="' . attribute_escape( __('Save and Continue Editing') ) . '" />';
31d01ac New two-stage post process.Some HTML cleanup and general tweaking. Sp…
saxmatt authored
48
49 ?>
50
0a5781d Remember last editor chosen. Props mdawaffe. fixes #3978
ryan authored
51 <input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />
baa30dd AJAX, cause you love it. Props mdawaffe. fixes #2561
ryan authored
52 <input type="hidden" id="hiddenaction" name="action" value="<?php echo $form_action ?>" />
a458715 Fix autosave redirects
ryan authored
53 <input type="hidden" id="originalaction" name="originalaction" value="<?php echo $form_action ?>" />
8e547a3 attribute_escape()s and int casts. see #4333
ryan authored
54 <input type="hidden" name="post_author" value="<?php echo attribute_escape( $post->post_author ); ?>" />
d42b1a8 Don't hard code post type in edit forms. Props filosofo and DD32. fix…
ryan authored
55 <input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" />
4015316 http://mosquito.wordpress.org/view.php?id=521
saxmatt authored
56
363afe6 Fixed posting problems when 'advanced controls' is the default writin…
emc3 authored
57 <?php echo $form_extra ?>
229a52b focus the cursor when writing a new post. Props foolswisdom and Nazgu…
markjaquith authored
58 <?php if ((isset($post->post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message'])) : ?>
31d01ac New two-stage post process.Some HTML cleanup and general tweaking. Sp…
saxmatt authored
59 <script type="text/javascript">
60 function focusit() {
61 // focus on first input field
62 document.post.title.focus();
63 }
65546ba Draw more attention to the messages, which now blend in a little with…
matt authored
64 addLoadEvent(focusit);
31d01ac New two-stage post process.Some HTML cleanup and general tweaking. Sp…
saxmatt authored
65 </script>
95a1e1d New custom field functionality.
saxmatt authored
66 <?php endif; ?>
31d01ac New two-stage post process.Some HTML cleanup and general tweaking. Sp…
saxmatt authored
67 <div id="poststuff">
4a25d16 New schmancy posting interface
matt authored
68
2073c22 Post screen improvements^H^H^H, er, changes. Will file tickets for to…
matt authored
69 <div id="titlediv">
70 <h3><?php _e('Title') ?></h3>
5fbca12 Edit permalink in place. Fixes #5679. Hat tip: nbachiyski.
matt authored
71 <div class="inside">
72 <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" />
73 <?php
74 $sample_permalink_html = get_sample_permalink_html($post->ID);
75 if ($post->ID && $sample_permalink_html):
76 ?>
77 <div id="edit-slug-box" style="display: <?php echo $post->ID? 'block' : 'none';?>">
78 <strong><?php _e('Permalink:'); ?></strong>
79 <span id="sample-permalink"><?php echo $sample_permalink_html; ?></span>
80 <span id="edit-slug-buttons"><a href="#post_name" class="edit-slug" onclick="edit_permalink(<?php echo $post->ID; ?>);return false;"><?php _e('Edit');?></a></span>
81 </div>
82 <?php
83 endif;
84 ?>
85 </div>
4a25d16 New schmancy posting interface
matt authored
86 </div>
87
2073c22 Post screen improvements^H^H^H, er, changes. Will file tickets for to…
matt authored
88 <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
89 <h3><?php _e('Post') ?></h3>
90 <?php the_editor($post->post_content); ?>
7b946b9 Remove cookie checking from check_ajax_referer(). Check nonces instea…
ryan authored
91 <?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?>
bc817d2 Postbox save updates and admin js refactoring from nbachiyski. fixes …
ryan authored
92 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
2b7ea6a Fix edit slug ajax nonce. props nbachiyski. see #5816
ryan authored
93 <?php wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); ?>
4a25d16 New schmancy posting interface
matt authored
94 </div>
95
2073c22 Post screen improvements^H^H^H, er, changes. Will file tickets for to…
matt authored
96 <?php echo $form_pingback ?>
97 <?php echo $form_prevstatus ?>
01961fb Kill the slow-loading iframe in favor of a popup link
matt authored
98
2169d4e submit box actions hooks from filosofo. fixes #5873
ryan authored
99 <div class="submitbox" id="submitpost">
d01592f Rough pass at submit box.
matt authored
100
101 <div id="previewview">
01961fb Kill the slow-loading iframe in favor of a popup link
matt authored
102 <?php if ( 'publish' == $post->post_status ) { ?>
5ff7c81 Some styling tweaks to header and submit box.
matt authored
103 <a href="<?php echo clean_url(get_permalink($post->ID)); ?>" target="_blank"><?php _e('View this Post'); ?></a>
01961fb Kill the slow-loading iframe in favor of a popup link
matt authored
104 <?php } elseif ( 'edit' == $action ) { ?>
5ff7c81 Some styling tweaks to header and submit box.
matt authored
105 <a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" target="_blank"><?php _e('Preview this Post'); ?></a>
01961fb Kill the slow-loading iframe in favor of a popup link
matt authored
106 <?php } ?>
d01592f Rough pass at submit box.
matt authored
107 </div>
108
109 <div class="inside">
110
5bfe199 Add date display and pending status.
ryan authored
111 <p><strong><?php _e('Publish Status') ?></strong></p>
d01592f Rough pass at submit box.
matt authored
112 <p>
102b274 Make publish status a dropdown.
ryan authored
113 <select name='post_status'>
d01592f Rough pass at submit box.
matt authored
114 <?php if ( current_user_can('publish_posts') ) : ?>
7c51664 Fix typo and clean up ternary logic. Props fitzrev. fixes #5677
ryan authored
115 <?php $pub_value = ( 'private' == $post->post_status ) ? 'private' : 'publish'; ?>
5bfe199 Add date display and pending status.
ryan authored
116 <option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='<?php echo $pub_value ?>'><?php _e('Published') ?></option>
102b274 Make publish status a dropdown.
ryan authored
117 <?php else: ?>
118 <option<?php selected( $post->post_status, 'private' ); ?> value='private'><?php _e('Published') ?></option>
d01592f Rough pass at submit box.
matt authored
119 <?php endif; ?>
5bfe199 Add date display and pending status.
ryan authored
120 <?php if ( 'future' == $post->post_status ) : ?>
121 <option<?php selected( $post->post_status, 'future' ); ?> value='future'><?php _e('Pending') ?></option>
122 <?php endif; ?>
102b274 Make publish status a dropdown.
ryan authored
123 <option<?php selected( $post->post_status, 'pending' ); ?> value='pending'><?php _e('Pending Review') ?></option>
124 <option<?php selected( $post->post_status, 'draft' ); ?> value='draft'><?php _e('Unpublished') ?></option>
125 </select>
d01592f Rough pass at submit box.
matt authored
126 </p>
127
128 <p><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> /> <?php _e('Keep this post private') ?></label></p>
5bfe199 Add date display and pending status.
ryan authored
129 <?php
7d06b85 Move timestamp to submitbox. Put it in a slidedown. see #5846
ryan authored
130 if ($post_ID) {
131
132 if ( 'future' == $post->post_status ) {
133 $stamp = __('Scheduled for:<br />%1$s at %2$s');
134 } else if ( 'publish' == $post->post_status ) {
135 $stamp = __('Published on:<br />%1$s at %2$s');
136 } else {
137 $stamp = __('Saved on:<br />%1$s at %2$s');
138 }
139
140 $date = mysql2date(get_option('date_format'), $post->post_date);
141 $time = mysql2date(get_option('time_format'), $post->post_date);
62a4e65 Fix display of dates for drafts and future posts. Props DD32 and ffem…
ryan authored
142 } else {
7d06b85 Move timestamp to submitbox. Put it in a slidedown. see #5846
ryan authored
143 $stamp = __('Timestamp:<br />%1$s at %2$s');
144 $date = mysql2date(get_option('date_format'), current_time('mysql'));
145 $time = mysql2date(get_option('time_format'), current_time('mysql'));
62a4e65 Fix display of dates for drafts and future posts. Props DD32 and ffem…
ryan authored
146 }
5bfe199 Add date display and pending status.
ryan authored
147 ?>
7d06b85 Move timestamp to submitbox. Put it in a slidedown. see #5846
ryan authored
148 <p><?php printf($stamp, $date, $time); ?>
149 &nbsp;<a href="#edit_timestamp" class="edit-timestamp"><?php _e('Edit') ?></a></p>
150
151 <div id='timestamp'><?php touch_time(($action == 'edit')); ?></div>
152
d01592f Rough pass at submit box.
matt authored
153 </div>
154
155 <p class="submit">
3453246 Save tags lingering in quick add box upon save. Props fitzrev. fixes …
ryan authored
156 <input type="submit" name="save" id="save-post" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" />
321c310 Remove trailing whitespace
ryan authored
157 <?php
d5842ab don't show Publish button when editing a future post. Props tellyworth.
ryan authored
158 if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) {
f70d37f don't show publish button on posts that are already published, task 153
alex_t_king authored
159 ?>
02523f5 Migrate to caps.
ryan authored
160 <?php if ( current_user_can('publish_posts') ) : ?>
321c310 Remove trailing whitespace
ryan authored
161 <input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" />
7f44512 Introducing post_status="pending". see #4446 and put any initial bug …
markjaquith authored
162 <?php else : ?>
321c310 Remove trailing whitespace
ryan authored
163 <input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Submit for Review') ?>" />
fc0583b Initial functionality so level 1 users may be allowed to publish or j…
saxmatt authored
164 <?php endif; ?>
9a309b8 Categories should scroll if there are too many, made admin less busy.
saxmatt authored
165 <?php
f70d37f don't show publish button on posts that are already published, task 153
alex_t_king authored
166 }
78acad2 Relocate delete post on edit screen. Needs styling.
ryan authored
167
168 if ( ('edit' == $action) && current_user_can('delete_post', $post_ID) )
169 echo "<a href='" . wp_nonce_url("post.php?action=delete&amp;post=$post_ID", 'delete-post_' . $post_ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete post') . "</a>";
9a309b8 Categories should scroll if there are too many, made admin less busy.
saxmatt authored
170 ?>
51e4044 Show post modification time. Needs style. Rough.
ryan authored
171 <?php if ($post_ID): ?>
172 <br />
173 <?php printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); ?>
174 <?php endif; ?>
d01592f Rough pass at submit box.
matt authored
175 </p>
ecba594 Rough in Related section of preview view. Needs styling. see #5847
ryan authored
176
177 <?php if ($post_ID): ?>
171cb54 Styling fix for previewview from hansengel. see #5847
ryan authored
178 <div class="inside">
ecba594 Rough in Related section of preview view. Needs styling. see #5847
ryan authored
179 <p><strong><?php _e('Related') ?></strong></p>
180
181 <ul>
182 <li><a href="edit.php?p=<?php echo $post_ID ?>"><?php _e('See Comments on this Post') ?></a></li>
183 <li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li>
184 <li><a href="edit.php"><?php _e('Manage All Posts') ?></a></li>
185 </ul>
d01592f Rough pass at submit box.
matt authored
186 </div>
1bec10a Put closing div inside conditional.
ryan authored
187 <?php endif; ?>
ffe43e7 Add submitpost_box action to post edit form. Props filosofo. see #5873
ryan authored
188 <?php do_action('submitpost_box'); ?>
171cb54 Styling fix for previewview from hansengel. see #5847
ryan authored
189 </div>
d01592f Rough pass at submit box.
matt authored
190
191 <p class="submit">
192
193 <span id="autosave"></span>
194
195
321c310 Remove trailing whitespace
ryan authored
196 <input name="referredby" type="hidden" id="referredby" value="<?php
b0386fa Restore accidental reversion.
ryan authored
197 if ( !empty($_REQUEST['popupurl']) )
611b037 use clean_url() instead of attribute_escape() when dealing with src/h…
markjaquith authored
198 echo clean_url(stripslashes($_REQUEST['popupurl']));
99d63ca Use wp_get_referer(). Props robmiller. fixes #2855
ryan authored
199 else if ( url_to_postid(wp_get_referer()) == $post_ID )
9c88f39 Redirect to new permalink if slug changes. Fixes #1068
matt authored
200 echo 'redo';
201 else
611b037 use clean_url() instead of attribute_escape() when dealing with src/h…
markjaquith authored
202 echo clean_url(stripslashes(wp_get_referer()));
9c88f39 Redirect to new permalink if slug changes. Fixes #1068
matt authored
203 ?>" /></p>
31d01ac New two-stage post process.Some HTML cleanup and general tweaking. Sp…
saxmatt authored
204
bc817d2 Postbox save updates and admin js refactoring from nbachiyski. fixes …
ryan authored
205 <div id="tagsdiv" class="postbox <?php echo postbox_classes('tagsdiv', 'post'); ?>">
2073c22 Post screen improvements^H^H^H, er, changes. Will file tickets for to…
matt authored
206 <h3><?php _e('Tags'); ?></h3>
207 <div class="inside">
208 <p id="jaxtag"><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php echo get_tags_to_edit( $post_ID ); ?>" /></p>
209 <p id="tagchecklist"></p>
210 </div>
211 </div>
212
bc817d2 Postbox save updates and admin js refactoring from nbachiyski. fixes …
ryan authored
213 <div id="categorydiv" class="postbox <?php echo postbox_classes('categorydiv', 'post'); ?>">
2073c22 Post screen improvements^H^H^H, er, changes. Will file tickets for to…
matt authored
214 <h3><?php _e('Categories') ?></h3>
215 <div class="inside">
16d42d6 New experimental category interface, fixes #5618. Hat tip: mdawaffe.
matt authored
216
217 <div id="category-adder" class="wp-hidden-children">
218 <h4><a id="category-add-toggle" href="#category-add"><?php _e( '+ Add New Category' ); ?></a></h4>
219 <p id="category-add" class="wp-hidden-child">
db44305 Fixes for new categories interface from mdawaffe. fixes #5618
ryan authored
220 <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" />
16d42d6 New experimental category interface, fixes #5618. Hat tip: mdawaffe.
matt authored
221 <?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category') ) ); ?>
917d5a7 Fixes to category list saving. Hat tip: mdawaffe. Fixes #5631
matt authored
222 <input type="button" id="category-add-sumbit" class="add:categorychecklist:categorydiv button" value="<?php _e( 'Add' ); ?>" />
223 <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?>
16d42d6 New experimental category interface, fixes #5618. Hat tip: mdawaffe.
matt authored
224 <span id="category-ajax-response"></span>
225 </p>
226 </div>
227
228 <ul id="category-tabs">
229 <li class="ui-tabs-selected"><a href="#categories-all"><?php _e( 'All Categories' ); ?></a></li>
917d5a7 Fixes to category list saving. Hat tip: mdawaffe. Fixes #5631
matt authored
230 <li class="wp-no-js-hidden"><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li>
16d42d6 New experimental category interface, fixes #5618. Hat tip: mdawaffe.
matt authored
231 </ul>
232
233 <div id="categories-all" class="ui-tabs-panel">
234 <ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
235 <?php dropdown_categories(); ?>
236 </ul>
237 </div>
238
917d5a7 Fixes to category list saving. Hat tip: mdawaffe. Fixes #5631
matt authored
239 <div id="categories-pop" class="ui-tabs-panel" style="display: none;">
16d42d6 New experimental category interface, fixes #5618. Hat tip: mdawaffe.
matt authored
240 <ul id="categorychecklist-pop" class="categorychecklist form-no-clear">
45ebbd5 Fix edit link form categories a bit. AJAX add still needs work.
ryan authored
241 <?php wp_popular_terms_checklist('category'); ?>
16d42d6 New experimental category interface, fixes #5618. Hat tip: mdawaffe.
matt authored
242 </ul>
243 </div>
244
2073c22 Post screen improvements^H^H^H, er, changes. Will file tickets for to…
matt authored
245 </div>
246 </div>
247
7f78733 Separate meta box context into page and context to accommodate postbo…
ryan authored
248 <?php do_meta_boxes('post', 'normal', $post); ?>
47ac60f add_meta_box(). see #5798
ryan authored
249
a7b8ae2 Tweaks and catchups
matt authored
250 <?php do_action('edit_form_advanced'); ?>
d1ddb15 Allow users 9+ to post as other users, minor advanced post reorg.
saxmatt authored
251
344b1dc TinyMCE 2.0RC4 Props skeltoac. fixes #1830
ryan authored
252 <?php
2073c22 Post screen improvements^H^H^H, er, changes. Will file tickets for to…
matt authored
253 if (current_user_can('upload_files') && false) {
8e547a3 attribute_escape()s and int casts. see #4333
ryan authored
254 $uploading_iframe_ID = (int) (0 == $post_ID ? $temp_ID : $post_ID);
b5741c1 Uploader improvements from mdawaffe. fixes #3191
ryan authored
255 $uploading_iframe_src = wp_nonce_url("upload.php?style=inline&amp;tab=upload&amp;post_id=$uploading_iframe_ID", 'inlineuploading');
19b29d0 Check upload_files cap for inline uploader. Props David House and doi…
ryan authored
256 $uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src);
257 if ( false != $uploading_iframe_src )
44088f5 Add id attribute where it's only name. fixes #3696
rob1n authored
258 echo '<iframe id="uploading" name="uploading" frameborder="0" src="' . $uploading_iframe_src . '">' . __('This feature requires iframe support.') . '</iframe>';
19b29d0 Check upload_files cap for inline uploader. Props David House and doi…
ryan authored
259 }
344b1dc TinyMCE 2.0RC4 Props skeltoac. fixes #1830
ryan authored
260 ?>
d1ddb15 Allow users 9+ to post as other users, minor advanced post reorg.
saxmatt authored
261
2073c22 Post screen improvements^H^H^H, er, changes. Will file tickets for to…
matt authored
262 <h2><?php _e('Advanced Options'); ?></h2>
ae18e22 New tag interface, tag auto-suggest while typing. Rough - suggest and…
matt authored
263
bc817d2 Postbox save updates and admin js refactoring from nbachiyski. fixes …
ryan authored
264 <div id="postexcerpt" class="postbox <?php echo postbox_classes('postexcerpt', 'post'); ?>">
2073c22 Post screen improvements^H^H^H, er, changes. Will file tickets for to…
matt authored
265 <h3><?php _e('Optional Excerpt') ?></h3>
266 <div class="inside"><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea></div>
2df0ebe Nice curves. Props ketsugi. fixes #2896
ryan authored
267 </div>
d1ddb15 Allow users 9+ to post as other users, minor advanced post reorg.
saxmatt authored
268
bc817d2 Postbox save updates and admin js refactoring from nbachiyski. fixes …
ryan authored
269 <div id="trackbacksdiv" class="postbox <?php echo postbox_classes('trackbacksdiv', 'post'); ?>">
2073c22 Post screen improvements^H^H^H, er, changes. Will file tickets for to…
matt authored
270 <h3><?php _e('Trackbacks') ?></h3>
271 <div class="inside">
272 <?php _e('Send trackbacks to:'); ?> <?php echo $form_trackback; ?> (<?php _e('Separate multiple URLs with spaces'); ?>)
9f534eb Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixe…
ryan authored
273 <?php
71d5605 Fix already pinged list. Props pirateking. fixes #2136
ryan authored
274 if ( ! empty($pings) )
4a25d16 New schmancy posting interface
matt authored
275 echo $pings;
276 ?>
277 </div>
2df0ebe Nice curves. Props ketsugi. fixes #2896
ryan authored
278 </div>
d1ddb15 Allow users 9+ to post as other users, minor advanced post reorg.
saxmatt authored
279
bc817d2 Postbox save updates and admin js refactoring from nbachiyski. fixes …
ryan authored
280 <div id="postcustom" class="postbox <?php echo postbox_classes('postcustom', 'post'); ?>">
2073c22 Post screen improvements^H^H^H, er, changes. Will file tickets for to…
matt authored
281 <h3><?php _e('Custom Fields') ?></h3>
282 <div class="inside">
283 <div id="postcustomstuff">
baa30dd AJAX, cause you love it. Props mdawaffe. fixes #2561
ryan authored
284 <table cellpadding="3">
9616224 How the custom fields should look.
saxmatt authored
285 <?php
baa30dd AJAX, cause you love it. Props mdawaffe. fixes #2561
ryan authored
286 $metadata = has_meta($post_ID);
9f534eb Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixe…
ryan authored
287 list_meta($metadata);
9616224 How the custom fields should look.
saxmatt authored
288 ?>
baa30dd AJAX, cause you love it. Props mdawaffe. fixes #2561
ryan authored
289
290 </table>
9616224 How the custom fields should look.
saxmatt authored
291 <?php
292 meta_form();
293 ?>
baa30dd AJAX, cause you love it. Props mdawaffe. fixes #2561
ryan authored
294 <div id="ajax-response"></div>
31d01ac New two-stage post process.Some HTML cleanup and general tweaking. Sp…
saxmatt authored
295 </div>
6b095dd Validation fixes
ryan authored
296 </div>
2df0ebe Nice curves. Props ketsugi. fixes #2896
ryan authored
297 </div>
4a25d16 New schmancy posting interface
matt authored
298
410206a dbx hooks from Owen. fixes #2250
ryan authored
299 <?php do_action('dbx_post_advanced'); ?>
300
bc817d2 Postbox save updates and admin js refactoring from nbachiyski. fixes …
ryan authored
301 <div id="commentstatusdiv" class="postbox <?php echo postbox_classes('commentstatusdiv', 'post'); ?>">
2073c22 Post screen improvements^H^H^H, er, changes. Will file tickets for to…
matt authored
302 <h3><?php _e('Discussion') ?></h3>
303 <div class="inside">
304 <input name="advanced_view" type="hidden" value="1" />
305 <label for="comment_status" class="selectit">
306 <input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> />
307 <?php _e('Allow Comments') ?></label>
308 <label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php _e('Allow Pings') ?></label>
309 </div>
310 </div>
311
bc817d2 Postbox save updates and admin js refactoring from nbachiyski. fixes …
ryan authored
312 <div id="passworddiv" class="postbox <?php echo postbox_classes('passworddiv', 'post'); ?>">
2073c22 Post screen improvements^H^H^H, er, changes. Will file tickets for to…
matt authored
313 <h3><?php _e('Post Password') ?></h3>
314 <div class="inside">
315 <input name="post_password" type="text" size="13" id="post_password" value="<?php echo attribute_escape( $post->post_password ); ?>" />
316 </div>
317 </div>
318
bc817d2 Postbox save updates and admin js refactoring from nbachiyski. fixes …
ryan authored
319 <div id="slugdiv" class="postbox <?php echo postbox_classes('slugdiv', 'post'); ?>">
2073c22 Post screen improvements^H^H^H, er, changes. Will file tickets for to…
matt authored
320 <h3><?php _e('Post Slug') ?></h3>
321 <div class="inside">
322 <input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name ); ?>" />
323 </div>
324 </div>
325
326 <?php
327 $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
328 if ( $post->post_author && !in_array($post->post_author, $authors) )
329 $authors[] = $post->post_author;
330 if ( $authors && count( $authors ) > 1 ) :
331 ?>
bc817d2 Postbox save updates and admin js refactoring from nbachiyski. fixes …
ryan authored
332 <div id="authordiv" class="postbox <?php echo postbox_classes('authordiv', 'post'); ?>">
2073c22 Post screen improvements^H^H^H, er, changes. Will file tickets for to…
matt authored
333 <h3><?php _e('Post Author'); ?></h3>
334 <div class="inside">
335 <?php wp_dropdown_users( array('include' => $authors, 'name' => 'post_author_override', 'selected' => empty($post_ID) ? $user_ID : $post->post_author) ); ?>
336 </div>
337 </div>
338 <?php endif; ?>
339
7f78733 Separate meta box context into page and context to accommodate postbo…
ryan authored
340 <?php do_meta_boxes('post', 'advanced', $post); ?>
47ac60f add_meta_box(). see #5798
ryan authored
341
2073c22 Post screen improvements^H^H^H, er, changes. Will file tickets for to…
matt authored
342 <?php do_action('dbx_post_sidebar'); ?>
343
4a25d16 New schmancy posting interface
matt authored
344 </div>
345
346 </div>
347
31d01ac New two-stage post process.Some HTML cleanup and general tweaking. Sp…
saxmatt authored
348 </div>
d1ddb15 Allow users 9+ to post as other users, minor advanced post reorg.
saxmatt authored
349
7b0442e Image uploading widget from skeltoac. fixes #1710
ryan authored
350 </form>
Something went wrong with that request. Please try again.