Make WordPress Core


Ignore:
Timestamp:
06/24/2015 02:45:38 AM (9 years ago)
Author:
azaozz
Message:

Press This: convert the Preview | Save | Publish buttons to a split button.
See #32757.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-press-this.php

    r32901 r32920  
    14501450        <div class="post-actions">
    14511451            <span class="spinner">&nbsp;</span>
    1452             <button type="button" class="button-subtle draft-button" aria-live="polite">
    1453                 <span class="save-draft"><?php _e( 'Save Draft' ); ?></span>
    1454                 <span class="saving-draft"><?php _e( 'Saving...' ); ?></span>
    1455             </button>
    1456             <a href="<?php echo esc_url( get_edit_post_link( $post_ID ) ); ?>" class="edit-post-link" style="display: none;" target="_blank"><?php _e( 'Standard Editor' ); ?></a>
    1457             <button type="button" class="button-subtle preview-button"><?php _e( 'Preview' ); ?></button>
    1458             <button type="button" class="button-primary publish-button"><?php echo ( current_user_can( 'publish_posts' ) ) ? __( 'Publish' ) : __( 'Submit for Review' ); ?></button>
     1452            <div class="split-button">
     1453                <div class="split-button-body">
     1454                    <button type="button" class="button-subtle draft-button split-button-option" aria-live="polite"><?php _e( 'Save Draft' ); ?></button>
     1455                    <a href="<?php echo esc_url( get_edit_post_link( $post_ID ) ); ?>" class="edit-post-link split-button-option" target="_blank"><?php _e( 'Standard Editor' ); ?></a>
     1456                    <button type="button" class="button-subtle preview-button split-button-option"><?php _e( 'Preview' ); ?></button>
     1457                </div>
     1458                <div class="split-button-head">
     1459                    <button type="button" class="publish-button split-button-primary"><?php
     1460                        echo ( current_user_can( 'publish_posts' ) ) ? __( 'Publish' ) : __( 'Submit for Review' );
     1461                    ?></button><button type="button" class="split-button-toggle" aria-haspopup="true" aria-expanded="false">
     1462                        <i class="dashicons dashicons-arrow-down-alt2"></i>
     1463                        <span class="screen-reader-text"><?php _e('Toggle dropdown'); ?></span>
     1464                    </button>
     1465                </div>
     1466            </div>
    14591467        </div>
    14601468    </div>
Note: See TracChangeset for help on using the changeset viewer.