Changeset 21311 for trunk/wp-admin/includes/meta-boxes.php
- Timestamp:
- 07/24/2012 12:15:15 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/meta-boxes.php
r21107 r21311 29 29 <div id="save-action"> 30 30 <?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) { ?> 31 <input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save Draft'); ?>" tabindex="4"class="button button-highlighted" />31 <input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save Draft'); ?>" class="button button-highlighted" /> 32 32 <?php } elseif ( 'pending' == $post->post_status && $can_publish ) { ?> 33 <input type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save as Pending'); ?>" tabindex="4"class="button button-highlighted" />33 <input type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save as Pending'); ?>" class="button button-highlighted" /> 34 34 <?php } ?> 35 35 <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading" id="draft-ajax-loading" alt="" /> … … 49 49 } 50 50 ?> 51 <a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview" id="post-preview" tabindex="4"><?php echo $preview_button; ?></a>51 <a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview" id="post-preview"><?php echo $preview_button; ?></a> 52 52 <input type="hidden" name="wp-preview" id="wp-preview" value="" /> 53 53 </div> … … 82 82 </span> 83 83 <?php if ( 'publish' == $post->post_status || 'private' == $post->post_status || $can_publish ) { ?> 84 <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>84 <a href="#post_status" <?php if ( 'private' == $post->post_status ) { ?>style="display:none;" <?php } ?>class="edit-post-status hide-if-no-js"><?php _e('Edit') ?></a> 85 85 86 86 <div id="post-status-select" class="hide-if-js"> 87 87 <input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo esc_attr( ('auto-draft' == $post->post_status ) ? 'draft' : $post->post_status); ?>" /> 88 <select name='post_status' id='post_status' tabindex='4'>88 <select name='post_status' id='post_status'> 89 89 <?php if ( 'publish' == $post->post_status ) : ?> 90 90 <option<?php selected( $post->post_status, 'publish' ); ?> value='publish'><?php _e('Published') ?></option> … … 138 138 <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 /> 139 139 <?php if ( $post_type == 'post' && current_user_can( 'edit_others_posts' ) ) : ?> 140 <span id="sticky-span"><input id="sticky" name="sticky" type="checkbox" value="sticky" <?php checked( is_sticky( $post->ID ) ); ?> tabindex="4"/> <label for="sticky" class="selectit"><?php _e( 'Stick this post to the front page' ); ?></label><br /></span>140 <span id="sticky-span"><input id="sticky" name="sticky" type="checkbox" value="sticky" <?php checked( is_sticky( $post->ID ) ); ?> /> <label for="sticky" class="selectit"><?php _e( 'Stick this post to the front page' ); ?></label><br /></span> 141 141 <?php endif; ?> 142 142 <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 /> … … 178 178 <span id="timestamp"> 179 179 <?php printf($stamp, $date); ?></span> 180 <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>181 <div id="timestampdiv" class="hide-if-js"><?php touch_time(($action == 'edit'), 1,4); ?></div>180 <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><?php _e('Edit') ?></a> 181 <div id="timestampdiv" class="hide-if-js"><?php touch_time(($action == 'edit'), 1); ?></div> 182 182 </div><?php // /misc-pub-section ?> 183 183 <?php endif; ?> … … 209 209 if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?> 210 210 <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Schedule') ?>" /> 211 <?php submit_button( __( 'Schedule' ), 'primary', 'publish', false, array( ' tabindex' => '5', 'accesskey' => 'p' ) ); ?>211 <?php submit_button( __( 'Schedule' ), 'primary', 'publish', false, array( 'accesskey' => 'p' ) ); ?> 212 212 <?php else : ?> 213 213 <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Publish') ?>" /> 214 <?php submit_button( __( 'Publish' ), 'primary', 'publish', false, array( ' tabindex' => '5', 'accesskey' => 'p' ) ); ?>214 <?php submit_button( __( 'Publish' ), 'primary', 'publish', false, array( 'accesskey' => 'p' ) ); ?> 215 215 <?php endif; 216 216 else : ?> 217 217 <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Submit for Review') ?>" /> 218 <?php submit_button( __( 'Submit for Review' ), 'primary', 'publish', false, array( ' tabindex' => '5', 'accesskey' => 'p' ) ); ?>218 <?php submit_button( __( 'Submit for Review' ), 'primary', 'publish', false, array( 'accesskey' => 'p' ) ); ?> 219 219 <?php 220 220 endif; 221 221 } else { ?> 222 222 <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Update') ?>" /> 223 <input name="save" type="submit" class="button-primary" id="publish" tabindex="5"accesskey="p" value="<?php esc_attr_e('Update') ?>" />223 <input name="save" type="submit" class="button-primary" id="publish" accesskey="p" value="<?php esc_attr_e('Update') ?>" /> 224 224 <?php 225 225 } ?> … … 289 289 <div class="taghint"><?php echo $taxonomy->labels->add_new_item; ?></div> 290 290 <p><input type="text" id="new-tag-<?php echo $tax_name; ?>" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="" /> 291 <input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" tabindex="3"/></p>291 <input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" /></p> 292 292 </div> 293 293 <p class="howto"><?php echo esc_attr( $taxonomy->labels->separate_items_with_commas ); ?></p> … … 321 321 <div id="taxonomy-<?php echo $taxonomy; ?>" class="categorydiv"> 322 322 <ul id="<?php echo $taxonomy; ?>-tabs" class="category-tabs"> 323 <li class="tabs"><a href="#<?php echo $taxonomy; ?>-all" tabindex="3"><?php echo $tax->labels->all_items; ?></a></li>324 <li class="hide-if-no-js"><a href="#<?php echo $taxonomy; ?>-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li>323 <li class="tabs"><a href="#<?php echo $taxonomy; ?>-all"><?php echo $tax->labels->all_items; ?></a></li> 324 <li class="hide-if-no-js"><a href="#<?php echo $taxonomy; ?>-pop"><?php _e( 'Most Used' ); ?></a></li> 325 325 </ul> 326 326 … … 343 343 <div id="<?php echo $taxonomy; ?>-adder" class="wp-hidden-children"> 344 344 <h4> 345 <a id="<?php echo $taxonomy; ?>-add-toggle" href="#<?php echo $taxonomy; ?>-add" class="hide-if-no-js" tabindex="3">345 <a id="<?php echo $taxonomy; ?>-add-toggle" href="#<?php echo $taxonomy; ?>-add" class="hide-if-no-js"> 346 346 <?php 347 347 /* translators: %s: add new taxonomy label */ … … 352 352 <p id="<?php echo $taxonomy; ?>-add" class="category-add wp-hidden-child"> 353 353 <label class="screen-reader-text" for="new<?php echo $taxonomy; ?>"><?php echo $tax->labels->add_new_item; ?></label> 354 <input type="text" name="new<?php echo $taxonomy; ?>" id="new<?php echo $taxonomy; ?>" class="form-required form-input-tip" value="<?php echo esc_attr( $tax->labels->new_item_name ); ?>" tabindex="3"aria-required="true"/>354 <input type="text" name="new<?php echo $taxonomy; ?>" id="new<?php echo $taxonomy; ?>" class="form-required form-input-tip" value="<?php echo esc_attr( $tax->labels->new_item_name ); ?>" aria-required="true"/> 355 355 <label class="screen-reader-text" for="new<?php echo $taxonomy; ?>_parent"> 356 356 <?php echo $tax->labels->parent_item_colon; ?> 357 357 </label> 358 <?php wp_dropdown_categories( array( 'taxonomy' => $taxonomy, 'hide_empty' => 0, 'name' => 'new'.$taxonomy.'_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —' , 'tab_index' => 3) ); ?>359 <input type="button" id="<?php echo $taxonomy; ?>-add-submit" class="add:<?php echo $taxonomy ?>checklist:<?php echo $taxonomy ?>-add button category-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" tabindex="3"/>358 <?php wp_dropdown_categories( array( 'taxonomy' => $taxonomy, 'hide_empty' => 0, 'name' => 'new'.$taxonomy.'_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —' ) ); ?> 359 <input type="button" id="<?php echo $taxonomy; ?>-add-submit" class="add:<?php echo $taxonomy ?>checklist:<?php echo $taxonomy ?>-add button category-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" /> 360 360 <?php wp_nonce_field( 'add-'.$taxonomy, '_ajax_nonce-add-'.$taxonomy, false ); ?> 361 361 <span id="<?php echo $taxonomy; ?>-ajax-response"></span> … … 376 376 function post_excerpt_meta_box($post) { 377 377 ?> 378 <label class="screen-reader-text" for="excerpt"><?php _e('Excerpt') ?></label><textarea rows="1" cols="40" name="excerpt" tabindex="6"id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea>378 <label class="screen-reader-text" for="excerpt"><?php _e('Excerpt') ?></label><textarea rows="1" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea> 379 379 <p><?php _e('Excerpts are optional hand-crafted summaries of your content that can be used in your theme. <a href="http://codex.wordpress.org/Excerpt" target="_blank">Learn more about manual excerpts.</a>'); ?></p> 380 380 <?php … … 389 389 */ 390 390 function post_trackback_meta_box($post) { 391 $form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" tabindex="7"value="'. esc_attr( str_replace("\n", ' ', $post->to_ping) ) .'" />';391 $form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" value="'. esc_attr( str_replace("\n", ' ', $post->to_ping) ) .'" />'; 392 392 if ('' != $post->pinged) { 393 393 $pings = '<p>'. __('Already pinged:') . '</p><ul>'; … … 614 614 <div id="preview-action"> 615 615 <?php if ( !empty($link->link_id) ) { ?> 616 <a class="preview button" href="<?php echo $link->link_url; ?>" target="_blank" tabindex="4"><?php _e('Visit Link'); ?></a>616 <a class="preview button" href="<?php echo $link->link_url; ?>" target="_blank"><?php _e('Visit Link'); ?></a> 617 617 <?php } ?> 618 618 </div> … … 639 639 <div id="publishing-action"> 640 640 <?php if ( !empty($link->link_id) ) { ?> 641 <input name="save" type="submit" class="button-primary" id="publish" tabindex="4"accesskey="p" value="<?php esc_attr_e('Update Link') ?>" />641 <input name="save" type="submit" class="button-primary" id="publish" accesskey="p" value="<?php esc_attr_e('Update Link') ?>" /> 642 642 <?php } else { ?> 643 <input name="save" type="submit" class="button-primary" id="publish" tabindex="4"accesskey="p" value="<?php esc_attr_e('Add Link') ?>" />643 <input name="save" type="submit" class="button-primary" id="publish" accesskey="p" value="<?php esc_attr_e('Add Link') ?>" /> 644 644 <?php } ?> 645 645 </div>
Note: See TracChangeset
for help on using the changeset viewer.