Make WordPress Core


Ignore:
Timestamp:
04/01/2015 10:24:21 PM (11 years ago)
Author:
ocean90
Message:

Customizer: Make the available widgets overlay closable on narrow screens.

see #28784.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/customize.php

    r31921 r31974  
    120120        <form id="customize-controls" class="wrap wp-full-overlay-sidebar">
    121121                <div id="customize-header-actions" class="wp-full-overlay-header">
    122                         <?php
    123                                 $save_text = $wp_customize->is_theme_active() ? __( 'Save &amp; Publish' ) : __( 'Save &amp; Activate' );
    124                                 submit_button( $save_text, 'primary save', 'save', false );
    125                         ?>
    126                         <span class="spinner"></span>
    127                         <a class="customize-controls-preview-toggle" href="#">
    128                                 <span class="controls"><?php _e( 'Customize' ); ?></span>
    129                                 <span class="preview"><?php _e( 'Preview' ); ?></span>
    130                         </a>
    131                         <a class="customize-controls-close" href="<?php echo esc_url( $return ); ?>">
    132                                 <span class="screen-reader-text"><?php _e( 'Cancel' ); ?></span>
    133                         </a>
    134                         <span class="control-panel-back" tabindex="-1"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></span>
     122                        <div class="primary-actions">
     123                                <?php
     124                                        $save_text = $wp_customize->is_theme_active() ? __( 'Save &amp; Publish' ) : __( 'Save &amp; Activate' );
     125                                        submit_button( $save_text, 'primary save', 'save', false );
     126                                ?>
     127                                <span class="spinner"></span>
     128                                <a class="customize-controls-preview-toggle" href="#">
     129                                        <span class="controls"><?php _e( 'Customize' ); ?></span>
     130                                        <span class="preview"><?php _e( 'Preview' ); ?></span>
     131                                </a>
     132                                <a class="customize-controls-close" href="<?php echo esc_url( $return ); ?>">
     133                                        <span class="screen-reader-text"><?php _e( 'Cancel' ); ?></span>
     134                                </a>
     135                                <span class="control-panel-back" tabindex="-1"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></span>
     136                        </div>
     137                        <div class="secondary-actions">
     138                                <button type="button" class="dashicons dashicons-no customize-close-overlay">
     139                                        <span class="screen-reader-text"><?php _e( 'Close' ); ?></span>
     140                                </button>
     141                        </div>
    135142                </div>
    136143
Note: See TracChangeset for help on using the changeset viewer.