Make WordPress Core


Ignore:
Timestamp:
05/29/2015 01:56:39 PM (9 years ago)
Author:
ocean90
Message:

Customizer: Replace accordion behavior of sections with a slide-in navigation.

This allows users to focus on the contents of the active section more easily and separating the navigation from the content/controls in the Customizer.

props valendesigns, celloexpressions.
see #31336.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-widgets.php

    r32601 r32649  
    682682        <div id="widgets-left"><!-- compatibility with JS which looks for widget templates here -->
    683683        <div id="available-widgets">
     684            <div class="customize-section-title">
     685                <button class="customize-section-back" tabindex="-1">
     686                    <span class="screen-reader-text"><?php _e( 'Back' ); ?></span>
     687                </button>
     688                <h3>
     689                    <span class="customize-action"><?php
     690                        /* translators: &#9656; is the unicode right-pointing triangle, and %s is the section title in the Customizer */
     691                        echo sprintf( __( 'Customizing &#9656; %s' ), esc_html( $this->manager->get_panel( 'widgets' )->title ) );
     692                    ?></span>
     693                    <?php _e( 'Add a Widget' ); ?>
     694                </h3>
     695            </div>
    684696            <div id="available-widgets-filter">
    685697                <label class="screen-reader-text" for="widgets-search"><?php _e( 'Search Widgets' ); ?></label>
Note: See TracChangeset for help on using the changeset viewer.