Changeset 11183 for trunk/wp-admin/edit-page-form.php
- Timestamp:
- 05/05/2009 02:14:25 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-page-form.php
r11180 r11183 99 99 100 100 <div class="misc-pub-section<?php if ( !$can_publish ) { echo ' misc-pub-section-last'; } ?>"><label for="post_status"><?php _e('Status:') ?></label> 101 < b><span id="post-status-display">101 <span id="post-status-display"> 102 102 <?php 103 103 switch ( $post->post_status ) { … … 119 119 } 120 120 ?> 121 </span> </b>121 </span> 122 122 <?php if ( 'publish' == $post->post_status || 'private' == $post->post_status || $can_publish ) { ?> 123 123 <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> … … 145 145 146 146 <div class="misc-pub-section " id="visibility"> 147 <?php _e('Visibility:'); ?> < b><span id="post-visibility-display"><?php147 <?php _e('Visibility:'); ?> <span id="post-visibility-display"><?php 148 148 149 149 if ( 'private' == $post->post_status ) { … … 159 159 } 160 160 161 ?><?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> 161 echo wp_specialchars( $visibility_trans ); ?></span> 162 <?php if ( $can_publish ) { ?> 163 <a href="#visibility" class="edit-visibility hide-if-no-js"><?php _e('Edit'); ?></a> 162 164 163 165 <div id="post-visibility-select" class="hide-if-js"> 164 166 <input type="hidden" name="hidden_post_password" id="hidden-post-password" value="<?php echo attr($post->post_password); ?>" /> 165 167 <input type="hidden" name="hidden_post_visibility" id="hidden-post-visibility" value="<?php echo attr( $visibility ); ?>" /> 166 167 168 168 169 <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 /> … … 171 172 <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 /> 172 173 173 <p> 174 <a href="#visibility" class="save-post-visibility hide-if-no-js button"><?php _e('OK'); ?></a> 175 <a href="#visibility" class="cancel-post-visibility hide-if-no-js"><?php _e('Cancel'); ?></a> 176 </p> 174 <p><a href="#visibility" class="save-post-visibility hide-if-no-js button"><?php _e('OK'); ?></a> 175 <a href="#visibility" class="cancel-post-visibility hide-if-no-js"><?php _e('Cancel'); ?></a></p> 177 176 </div> 178 177 <?php } ?> … … 200 199 $date = date_i18n( $datef, strtotime( current_time('mysql') ) ); 201 200 } 202 ?> 203 <?phpif ( $can_publish ) : // Contributors don't get to choose the date of publish ?>201 202 if ( $can_publish ) : // Contributors don't get to choose the date of publish ?> 204 203 <div class="misc-pub-section curtime misc-pub-section-last"> 205 <span id="timestamp"> 206 <?php printf($stamp, $date); ?></span> 204 <span id="timestamp"><?php printf($stamp, $date); ?></span> 207 205 <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a> 208 206 <div id="timestampdiv" class="hide-if-js"><?php touch_time(($action == 'edit'),1,4); ?></div> 209 </div><?php // /misc-pub-section ?>210 <?phpendif; ?>207 </div><?php // /misc-pub-section 208 endif; ?> 211 209 212 210 </div> … … 226 224 <?php 227 225 if ( !in_array( $post->post_status, array('publish', 'future', 'private') ) || 0 == $post->ID ) { ?> 228 <?php if ( $can_publish ) : ?> 229 <?php if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?> 226 <?php 227 if ( $can_publish ) : 228 if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?> 230 229 <input name="original_publish" type="hidden" id="original_publish" value="<?php _ea('Schedule') ?>" /> 231 230 <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _ea('Schedule') ?>" /> 232 <?phpelse : ?>231 <?php else : ?> 233 232 <input name="original_publish" type="hidden" id="original_publish" value="<?php _ea('Publish') ?>" /> 234 233 <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _ea('Publish') ?>" /> 235 <?php endif; ?> 236 <?phpelse : ?>234 <?php endif; 235 else : ?> 237 236 <input name="original_publish" type="hidden" id="original_publish" value="<?php _ea('Submit for Review') ?>" /> 238 237 <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _ea('Submit for Review') ?>" /> 239 <?php endif; ?> 240 <?php } else { ?> 238 <?php 239 endif; 240 } else { ?> 241 241 <input name="original_publish" type="hidden" id="original_publish" value="<?php _ea('Update Page') ?>" /> 242 242 <input name="save" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _ea('Update Page') ?>" /> 243 <?php } ?> 243 <?php 244 } ?> 244 245 </div> 245 246 <div class="clear"></div> … … 281 282 <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> 282 283 <?php 283 if ( 0 != count( get_page_templates() ) ) { 284 ?> 284 if ( 0 != count( get_page_templates() ) ) { ?> 285 285 <h5><?php _e('Template') ?></h5> 286 286 <label class="invisible" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template"> … … 290 290 <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> 291 291 <?php 292 } 293 ?> 292 } ?> 294 293 <h5><?php _e('Order') ?></h5> 295 294 <p><label class="invisible" for="menu_order"><?php _e('Page Order') ?></label><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo attr($post->menu_order) ?>" /></p> … … 310 309 <div id="postcustomstuff"> 311 310 <?php 312 $metadata = has_meta($post->ID); 313 list_meta($metadata); 314 meta_form(); 315 ?> 316 <div id="ajax-response"></div> 311 $metadata = has_meta($post->ID); 312 list_meta($metadata); 313 meta_form(); ?> 314 <div id="ajax-response"></div> 317 315 </div> 318 316 <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> … … 429 427 430 428 <div id="side-info-column" class="inner-sidebar"> 431 432 <?php 433 429 <?php 434 430 do_action('submitpage_box'); 435 $side_meta_boxes = do_meta_boxes('page', 'side', $post); 436 437 ?> 431 $side_meta_boxes = do_meta_boxes('page', 'side', $post); ?> 438 432 </div> 439 433 … … 476 470 </tr></tbody></table> 477 471 478 <?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?>479 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> 480 <?php wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); ?> 481 <?php wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); ?> 482 <?php wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?> 483 </div>484 485 <?php 486 472 <?php 473 wp_nonce_field( 'autosave', 'autosavenonce', false ); 474 wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); 475 wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); 476 wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); 477 wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?> 478 </div> 479 480 <?php 487 481 do_meta_boxes('page', 'normal', $post); 488 482 do_action('edit_page_form'); 489 483 do_meta_boxes('page', 'advanced', $post); 490 491 484 ?> 492 485
Note: See TracChangeset
for help on using the changeset viewer.