-
+ 86FD23E1BDAEE66780C0E6ABAD986574FABC356BE898629F73DB5E705D06CB41E5828BEFA072C69156C9CB7B6A7F2C12A40E99ABDA3F52E35092D8415C006EE5
mp-wp/wp-admin/edit-page-form.php
(0 . 0)(1 . 496)
11808 <?php
11809 /**
11810 * Edit page form for inclusion in the administration panels.
11811 *
11812 * @package WordPress
11813 * @subpackage Administration
11814 */
11815
11816 /**
11817 * Post ID global.
11818 * @name $post_ID
11819 * @var int
11820 */
11821 if ( ! isset( $post_ID ) )
11822 $post_ID = 0;
11823 if ( ! isset( $temp_ID ) )
11824 $temp_ID = 0;
11825
11826 if ( isset($_GET['message']) )
11827 $_GET['message'] = absint( $_GET['message'] );
11828 $messages[1] = sprintf( __( 'Page updated. Continue editing below or <a href="%s">go back</a>.' ), attribute_escape( stripslashes( ( isset( $_GET['_wp_original_http_referer'] ) ? $_GET['_wp_original_http_referer'] : '') ) ) );
11829 $messages[2] = __('Custom field updated.');
11830 $messages[3] = __('Custom field deleted.');
11831 $messages[4] = __('Page updated.');
11832 $messages[5] = sprintf(__('Page published. <a href="%s">View page</a>'), get_permalink($post_ID));
11833 $messages[6] = sprintf(__('Page submitted. <a href="%s">Preview page</a>'), add_query_arg( 'preview', 'true', get_permalink($post_ID) ) );
11834
11835 if ( isset($_GET['revision']) )
11836 $messages[5] = sprintf( __('Page restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) );
11837
11838 $notice = false;
11839 $notices[1] = __( 'There is an autosave of this page that is more recent than the version below. <a href="%s">View the autosave</a>.' );
11840
11841 if ( 0 == $post_ID) {
11842 $form_action = 'post';
11843 $nonce_action = 'add-page';
11844 $temp_ID = -1 * time(); // don't change this formula without looking at wp_write_post()
11845 $form_extra = "<input type='hidden' id='post_ID' name='temp_ID' value='$temp_ID' />";
11846 } else {
11847 $post_ID = (int) $post_ID;
11848 $form_action = 'editpost';
11849 $nonce_action = 'update-page_' . $post_ID;
11850 $form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='$post_ID' />";
11851 $autosave = wp_get_post_autosave( $post_ID );
11852 if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt ) > mysql2date( 'U', $post->post_modified_gmt ) )
11853 $notice = sprintf( $notices[1], get_edit_post_link( $autosave->ID ) );
11854 }
11855
11856 $temp_ID = (int) $temp_ID;
11857 $user_ID = (int) $user_ID;
11858
11859 /**
11860 * Display submit form fields.
11861 *
11862 * @since 2.7.0
11863 *
11864 * @param object $post
11865 */
11866 function page_submit_meta_box($post) {
11867 global $action;
11868
11869 $can_publish = current_user_can('publish_pages');
11870 ?>
11871 <div class="submitbox" id="submitpage">
11872
11873 <div id="minor-publishing">
11874
11875 <?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key ?>
11876 <div style="display:none;">
11877 <input type="submit" name="save" value="<?php echo attribute_escape( __('Save') ); ?>" />
11878 </div>
11879
11880 <div id="minor-publishing-actions">
11881 <div id="save-action">
11882 <?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) { ?>
11883 <input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php echo attribute_escape( __('Save Draft') ); ?>" tabindex="4" class="button button-highlighted" />
11884 <?php } elseif ( 'pending' == $post->post_status && $can_publish ) { ?>
11885 <input type="submit" name="save" id="save-post" value="<?php echo attribute_escape( __('Save as Pending') ); ?>" tabindex="4" class="button button-highlighted" />
11886 <?php } ?>
11887 </div>
11888
11889 <div id="preview-action">
11890 <?php $preview_link = 'publish' == $post->post_status ? clean_url(get_permalink($post->ID)) : clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>
11891
11892 <a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview" id="post-preview" tabindex="4"><?php _e('Preview'); ?></a>
11893 <input type="hidden" name="wp-preview" id="wp-preview" value="" />
11894 </div>
11895
11896 <div class="clear"></div>
11897 </div><?php // /minor-publishing-actions ?>
11898
11899 <div id="misc-publishing-actions">
11900
11901 <div class="misc-pub-section<?php if ( !$can_publish ) { echo ' misc-pub-section-last'; } ?>"><label for="post_status"><?php _e('Status:') ?></label>
11902 <b><span id="post-status-display">
11903 <?php
11904 switch ( $post->post_status ) {
11905 case 'private':
11906 _e('Privately Published');
11907 break;
11908 case 'publish':
11909 _e('Published');
11910 break;
11911 case 'future':
11912 _e('Scheduled');
11913 break;
11914 case 'pending':
11915 _e('Pending Review');
11916 break;
11917 case 'draft':
11918 _e('Draft');
11919 break;
11920 }
11921 ?>
11922 </span></b>
11923 <?php if ( 'publish' == $post->post_status || 'private' == $post->post_status || $can_publish ) { ?>
11924 <a href="#post_status" <?php if ( 'private' == $post->post_status ) { ?>style="display:none;" <?php } ?>class="edit-post-status hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>
11925
11926 <div id="post-status-select" class="hide-if-js">
11927 <input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo $post->post_status; ?>" />
11928 <select name='post_status' id='post_status' tabindex='4'>
11929 <?php if ( 'publish' == $post->post_status ) : ?>
11930 <option<?php selected( $post->post_status, 'publish' ); ?> value='publish'><?php _e('Published') ?></option>
11931 <?php elseif ( 'private' == $post->post_status ) : ?>
11932 <option<?php selected( $post->post_status, 'private' ); ?> value='publish'><?php _e('Privately Published') ?></option>
11933 <?php elseif ( 'future' == $post->post_status ) : ?>
11934 <option<?php selected( $post->post_status, 'future' ); ?> value='future'><?php _e('Scheduled') ?></option>
11935 <?php endif; ?>
11936 <option<?php selected( $post->post_status, 'pending' ); ?> value='pending'><?php _e('Pending Review') ?></option>
11937 <option<?php selected( $post->post_status, 'draft' ); ?> value='draft'><?php _e('Draft') ?></option>
11938 </select>
11939
11940 <a href="#post_status" class="save-post-status hide-if-no-js button"><?php _e('OK'); ?></a>
11941 <a href="#post_status" class="cancel-post-status hide-if-no-js"><?php _e('Cancel'); ?></a>
11942 </div>
11943
11944 <?php } ?>
11945 </div><?php // /misc-pub-section ?>
11946
11947 <div class="misc-pub-section " id="visibility">
11948 <?php _e('Visibility:'); ?> <b><span id="post-visibility-display"><?php
11949
11950 if ( 'private' == $post->post_status ) {
11951 $post->post_password = '';
11952 $visibility = 'private';
11953 $visibility_trans = __('Private');
11954 } elseif ( !empty( $post->post_password ) ) {
11955 $visibility = 'password';
11956 $visibility_trans = __('Password protected');
11957 } else {
11958 $visibility = 'public';
11959 $visibility_trans = __('Public');
11960 }
11961
11962 ?><?php echo wp_specialchars( $visibility_trans ); ?></span></b> <?php if ( $can_publish ) { ?> <a href="#visibility" class="edit-visibility hide-if-no-js"><?php _e('Edit'); ?></a>
11963
11964 <div id="post-visibility-select" class="hide-if-js">
11965 <input type="hidden" name="hidden_post_password" id="hidden-post-password" value="<?php echo attribute_escape($post->post_password); ?>" />
11966 <input type="hidden" name="hidden_post_visibility" id="hidden-post-visibility" value="<?php echo attribute_escape( $visibility ); ?>" />
11967
11968
11969 <input type="radio" name="visibility" id="visibility-radio-public" value="public" <?php checked( $visibility, 'public' ); ?> /> <label for="visibility-radio-public" class="selectit"><?php _e('Public'); ?></label><br />
11970 <input type="radio" name="visibility" id="visibility-radio-password" value="password" <?php checked( $visibility, 'password' ); ?> /> <label for="visibility-radio-password" class="selectit"><?php _e('Password protected'); ?></label><br />
11971 <span id="password-span"><label for="post_password"><?php _e('Password:'); ?></label> <input type="text" name="post_password" id="post_password" value="<?php echo attribute_escape($post->post_password); ?>" /><br /></span>
11972 <input type="radio" name="visibility" id="visibility-radio-private" value="private" <?php checked( $visibility, 'private' ); ?> /> <label for="visibility-radio-private" class="selectit"><?php _e('Private'); ?></label><br />
11973
11974 <p>
11975 <a href="#visibility" class="save-post-visibility hide-if-no-js button"><?php _e('OK'); ?></a>
11976 <a href="#visibility" class="cancel-post-visibility hide-if-no-js"><?php _e('Cancel'); ?></a>
11977 </p>
11978 </div>
11979 <?php } ?>
11980
11981 </div><?php // /misc-pub-section ?>
11982
11983 <?php
11984 $datef = _c( 'M j, Y @ G:i|Publish box date format');
11985 if ( 0 != $post->ID ) {
11986 if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date
11987 $stamp = __('Scheduled for: <b>%1$s</b>');
11988 } else if ( 'publish' == $post->post_status || 'private' == $post->post_status ) { // already published
11989 $stamp = __('Published on: <b>%1$s</b>');
11990 } else if ( '0000-00-00 00:00:00' == $post->post_date_gmt ) { // draft, 1 or more saves, no date specified
11991 $stamp = __('Publish <b>immediately</b>');
11992 } else if ( time() < strtotime( $post->post_date_gmt . ' +0000' ) ) { // draft, 1 or more saves, future date specified
11993 $stamp = __('Schedule for: <b>%1$s</b>');
11994 } else { // draft, 1 or more saves, date specified
11995 $stamp = __('Publish on: <b>%1$s</b>');
11996 }
11997 $date = date_i18n( $datef, strtotime( $post->post_date ) );
11998 } else { // draft (no saves, and thus no date specified)
11999 $stamp = __('Publish <b>immediately</b>');
12000 $date = date_i18n( $datef, strtotime( current_time('mysql') ) );
12001 }
12002 ?>
12003 <?php if ( $can_publish ) : // Contributors don't get to choose the date of publish ?>
12004 <div class="misc-pub-section curtime misc-pub-section-last">
12005 <span id="timestamp">
12006 <?php printf($stamp, $date); ?></span>
12007 <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>
12008 <div id="timestampdiv" class="hide-if-js"><?php touch_time(($action == 'edit'),1,4); ?></div>
12009 </div><?php // /misc-pub-section ?>
12010 <?php endif; ?>
12011
12012 </div>
12013 <div class="clear"></div>
12014 </div>
12015
12016 <div id="major-publishing-actions">
12017 <?php do_action('post_submitbox_start'); ?>
12018 <div id="delete-action">
12019 <?php
12020 if ( ( 'edit' == $action ) && current_user_can('delete_page', $post->ID) ) { ?>
12021 <a class="submitdelete deletion" href="<?php echo wp_nonce_url("page.php?action=delete&post=$post->ID", 'delete-page_' . $post->ID); ?>" onclick="if ( confirm('<?php echo 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 page '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )); ?>') ) {return true;}return false;"><?php _e('Delete'); ?></a>
12022 <?php } ?>
12023 </div>
12024
12025 <div id="publishing-action">
12026 <?php
12027 if ( !in_array( $post->post_status, array('publish', 'future', 'private') ) || 0 == $post->ID ) { ?>
12028 <?php if ( $can_publish ) : ?>
12029 <?php if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>
12030 <input name="original_publish" type="hidden" id="original_publish" value="<?php _e('Schedule') ?>" />
12031 <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _e('Schedule') ?>" />
12032 <?php else : ?>
12033 <input name="original_publish" type="hidden" id="original_publish" value="<?php _e('Publish') ?>" />
12034 <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" />
12035 <?php endif; ?>
12036 <?php else : ?>
12037 <input name="original_publish" type="hidden" id="original_publish" value="<?php _e('Submit for Review') ?>" />
12038 <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _e('Submit for Review') ?>" />
12039 <?php endif; ?>
12040 <?php } else { ?>
12041 <input name="original_publish" type="hidden" id="original_publish" value="<?php _e('Update Page') ?>" />
12042 <input name="save" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _e('Update Page') ?>" />
12043 <?php } ?>
12044 </div>
12045 <div class="clear"></div>
12046 </div>
12047 </div>
12048 <?php
12049 }
12050 add_meta_box('pagesubmitdiv', __('Publish'), 'page_submit_meta_box', 'page', 'side', 'core');
12051
12052 /**
12053 * Display page password form fields.
12054 *
12055 * @since 2.6.0
12056 *
12057 * @param object $post
12058 */
12059 function page_password_meta_box($post){
12060 ?>
12061 <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'); ?> tabindex='4' /> <?php _e('Keep this page private') ?></label></p>
12062 <h4><?php _e( 'Page Password' ); ?></h4>
12063 <p><label class="hidden" for="post_password"><?php _e('Password Protect This Page') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php the_post_password(); ?>" /></p>
12064 <p><?php _e('Setting a password will require people who visit your blog to enter the above password to view this page and its comments.'); ?></p>
12065 <?php
12066 }
12067 // add_meta_box('pagepassworddiv', __('Privacy Options'), 'page_password_meta_box', 'page', 'side', 'core');
12068
12069 /**
12070 * Display page attributes form fields.
12071 *
12072 * @since 2.7.0
12073 *
12074 * @param object $post
12075 */
12076 function page_attributes_meta_box($post){
12077 ?>
12078 <h5><?php _e('Parent') ?></h5>
12079 <label class="hidden" for="parent_id"><?php _e('Page Parent') ?></label>
12080 <?php wp_dropdown_pages(array('exclude_tree' => $post->ID, 'selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __('Main Page (no parent)'), 'sort_column'=> 'menu_order, post_title')); ?>
12081 <p><?php _e('You can arrange your pages in hierarchies, for example you could have an “About” page that has “Life Story” and “My Dog” pages under it. There are no limits to how deeply nested you can make pages.'); ?></p>
12082 <?php
12083 if ( 0 != count( get_page_templates() ) ) {
12084 ?>
12085 <h5><?php _e('Template') ?></h5>
12086 <label class="hidden" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template">
12087 <option value='default'><?php _e('Default Template'); ?></option>
12088 <?php page_template_dropdown($post->page_template); ?>
12089 </select>
12090 <p><?php _e('Some themes have custom templates you can use for certain pages that might have additional features or custom layouts. If so, you’ll see them above.'); ?></p>
12091 <?php
12092 }
12093 ?>
12094 <h5><?php _e('Order') ?></h5>
12095 <p><label class="hidden" for="menu_order"><?php _e('Page Order') ?></label><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo $post->menu_order ?>" /></p>
12096 <p><?php _e('Pages are usually ordered alphabetically, but you can put a number above to change the order pages appear in. (We know this is a little janky, it’ll be better in future releases.)'); ?></p>
12097 <?php
12098 }
12099 add_meta_box('pageparentdiv', __('Attributes'), 'page_attributes_meta_box', 'page', 'side', 'core');
12100
12101 /**
12102 * Display custom field for page form fields.
12103 *
12104 * @since 2.6.0
12105 *
12106 * @param object $post
12107 */
12108 function page_custom_meta_box($post){
12109 ?>
12110 <div id="postcustomstuff">
12111 <?php
12112 $metadata = has_meta($post->ID);
12113 list_meta($metadata);
12114 meta_form();
12115 ?>
12116 <div id="ajax-response"></div>
12117 </div>
12118 <p><?php _e('Custom fields can be used to add extra metadata to a post that you can <a href="http://codex.wordpress.org/Using_Custom_Fields" target="_blank">use in your theme</a>.'); ?></p>
12119 <?php
12120 }
12121 add_meta_box('pagecustomdiv', __('Custom Fields'), 'page_custom_meta_box', 'page', 'normal', 'core');
12122
12123 /**
12124 * Display comments status form fields.
12125 *
12126 * @since 2.6.0
12127 *
12128 * @param object $post
12129 */
12130 function page_comments_status_meta_box($post){
12131 ?>
12132 <input name="advanced_view" type="hidden" value="1" />
12133 <p><label for="comment_status" class="selectit">
12134 <input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> />
12135 <?php _e('Allow Comments') ?></label></p>
12136 <p><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></p>
12137 <p><?php _e('These settings apply to this page only. “Pings” are <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">trackbacks and pingbacks</a>.'); ?></p>
12138 <?php
12139 }
12140 add_meta_box('pagecommentstatusdiv', __('Discussion'), 'page_comments_status_meta_box', 'page', 'normal', 'core');
12141
12142 /**
12143 * Display page slug form fields.
12144 *
12145 * @since 2.6.0
12146 *
12147 * @param object $post
12148 */
12149 function page_slug_meta_box($post){
12150 ?>
12151 <label class="hidden" for="post_name"><?php _e('Page Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name ); ?>" />
12152 <?php
12153 }
12154 add_meta_box('pageslugdiv', __('Page Slug'), 'page_slug_meta_box', 'page', 'normal', 'core');
12155
12156 $authors = get_editable_user_ids( $current_user->id, true, 'page' ); // TODO: ROLE SYSTEM
12157 if ( $post->post_author && !in_array($post->post_author, $authors) )
12158 $authors[] = $post->post_author;
12159 if ( $authors && count( $authors ) > 1 ) {
12160 /**
12161 * Display page author form fields, when more than one author exists.
12162 *
12163 * @since 2.6.0
12164 *
12165 * @param object $post
12166 */
12167 function page_author_meta_box($post){
12168 global $current_user, $user_ID;
12169 $authors = get_editable_user_ids( $current_user->id, true, 'page' ); // TODO: ROLE SYSTEM
12170 if ( $post->post_author && !in_array($post->post_author, $authors) )
12171 $authors[] = $post->post_author;
12172 ?>
12173 <label class="hidden" for="post_author_override"><?php _e('Page Author'); ?></label><?php wp_dropdown_users( array('include' => $authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?>
12174 <?php
12175 }
12176 add_meta_box('pageauthordiv', __('Page Author'), 'page_author_meta_box', 'page', 'normal', 'core');
12177 }
12178
12179 if ( 0 < $post_ID && wp_get_post_revisions( $post_ID ) ) :
12180 /**
12181 * Display list of page revisions.
12182 *
12183 * @since 2.6.0
12184 *
12185 * @param object $post
12186 */
12187 function page_revisions_meta_box($post) {
12188 wp_list_post_revisions();
12189 }
12190 add_meta_box('revisionsdiv', __('Page Revisions'), 'page_revisions_meta_box', 'page', 'normal', 'core');
12191 endif;
12192
12193 do_action('do_meta_boxes', 'page', 'normal', $post);
12194 do_action('do_meta_boxes', 'page', 'advanced', $post);
12195 do_action('do_meta_boxes', 'page', 'side', $post);
12196
12197 require_once('admin-header.php');
12198 ?>
12199
12200 <div class="wrap">
12201 <?php screen_icon(); ?>
12202 <h2><?php echo wp_specialchars( $title ); ?></h2>
12203
12204 <form name="post" action="page.php" method="post" id="post">
12205 <?php if ( $notice ) : ?>
12206 <div id="notice" class="error"><p><?php echo $notice ?></p></div>
12207 <?php endif; ?>
12208 <?php if (isset($_GET['message'])) : ?>
12209 <div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>
12210 <?php endif; ?>
12211
12212 <?php
12213 wp_nonce_field($nonce_action);
12214
12215 if (isset($mode) && 'bookmarklet' == $mode)
12216 echo '<input type="hidden" name="mode" value="bookmarklet" />';
12217 ?>
12218 <input type="hidden" id="user-id" name="user_ID" value="<?php echo $user_ID ?>" />
12219 <input type="hidden" id="hiddenaction" name="action" value='<?php echo $form_action ?>' />
12220 <input type="hidden" id="originalaction" name="originalaction" value="<?php echo $form_action ?>" />
12221 <input type="hidden" id="post_author" name="post_author" value="<?php echo attribute_escape( $post->post_author ); ?>" />
12222 <?php echo $form_extra ?>
12223 <input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" />
12224 <input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" />
12225 <input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" />
12226 <?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>
12227
12228 <div id="poststuff" class="metabox-holder">
12229
12230 <div id="side-info-column" class="inner-sidebar">
12231
12232 <?php
12233
12234 do_action('submitpage_box');
12235 $side_meta_boxes = do_meta_boxes('page', 'side', $post);
12236
12237 ?>
12238 </div>
12239
12240 <div id="post-body" class="<?php echo $side_meta_boxes ? 'has-sidebar' : ''; ?>">
12241 <div id="post-body-content" class="has-sidebar-content">
12242
12243 <div id="titlediv">
12244 <div id="titlewrap">
12245 <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( $post->post_title ); ?>" id="title" autocomplete="off" />
12246 </div>
12247 <div class="inside">
12248 <?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?>
12249 <div id="edit-slug-box">
12250 <?php if ( ! empty($post->ID) && ! empty($sample_permalink_html) ) :
12251 echo $sample_permalink_html;
12252 endif; ?>
12253 </div>
12254 </div>
12255 </div>
12256
12257 <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
12258
12259 <?php the_editor($post->post_content); ?>
12260 <div id="post-status-info">
12261 <span id="wp-word-count" class="alignleft"></span>
12262 <span class="alignright">
12263 <span id="autosave"> </span>
12264
12265 <?php
12266 if ($post_ID) {
12267 if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) {
12268 $last_user = get_userdata($last_id);
12269 printf(__('Last edited by %1$s on %2$s at %3$s'), wp_specialchars( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));
12270 } else {
12271 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));
12272 }
12273 }
12274 ?>
12275 </span>
12276 <br class="clear" />
12277 </div>
12278
12279 <?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?>
12280 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
12281 <?php wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); ?>
12282 <?php wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); ?>
12283 <?php wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
12284 </div>
12285
12286 <?php
12287
12288 do_meta_boxes('page', 'normal', $post);
12289 do_action('edit_page_form');
12290 do_meta_boxes('page', 'advanced', $post);
12291
12292 ?>
12293
12294 </div>
12295 </div>
12296 </div>
12297
12298 </form>
12299 </div>
12300
12301 <script type="text/javascript">
12302 try{document.post.title.focus();}catch(e){}
12303 </script>