~canonical-sysadmins/wordpress/4.6.1

« back to all changes in this revision

Viewing changes to wp-admin/customize.php

  • Committer: Nick Moffitt
  • Date: 2016-04-14 10:44:19 UTC
  • mfrom: (1.1.14 upstream)
  • Revision ID: nick.moffitt@canonical.com-20160414104419-w6lxcr3ru4enc2w5
Merge WP4.5 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
                        </a>
128
128
                </div>
129
129
 
130
 
                <div id="widgets-right"><!-- For Widget Customizer, many widgets try to look for instances under div#widgets-right, so we have to add that ID to a container div in the Customizer for compat -->
 
130
                <div id="widgets-right" class="wp-clearfix"><!-- For Widget Customizer, many widgets try to look for instances under div#widgets-right, so we have to add that ID to a container div in the Customizer for compat -->
131
131
                <div class="wp-full-overlay-sidebar-content" tabindex="-1">
132
132
                        <div id="customize-info" class="accordion-section customize-info">
133
133
                                <div class="accordion-section-title">
148
148
                </div>
149
149
 
150
150
                <div id="customize-footer-actions" class="wp-full-overlay-footer">
 
151
                        <?php $previewable_devices = $wp_customize->get_previewable_devices(); ?>
 
152
                        <?php if ( ! empty( $previewable_devices ) ) : ?>
 
153
                        <div class="devices">
 
154
                                <?php foreach ( (array) $previewable_devices as $device => $settings ) : ?>
 
155
                                        <?php
 
156
                                        if ( empty( $settings['label'] ) ) {
 
157
                                                continue;
 
158
                                        }
 
159
                                        $active = ! empty( $settings['default'] );
 
160
                                        $class = 'preview-' . $device;
 
161
                                        if ( $active ) {
 
162
                                                $class .= ' active';
 
163
                                        }
 
164
                                        ?>
 
165
                                        <button type="button" class="<?php echo esc_attr( $class ); ?>" aria-pressed="<?php echo esc_attr( $active ) ?>" data-device="<?php echo esc_attr( $device ); ?>">
 
166
                                                <span class="screen-reader-text"><?php echo esc_html( $settings['label'] ); ?></span>
 
167
                                        </button>
 
168
                                <?php endforeach; ?>
 
169
                        </div>
 
170
                        <?php endif; ?>
151
171
                        <button type="button" class="collapse-sidebar button-secondary" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>">
152
172
                                <span class="collapse-sidebar-arrow"></span>
153
173
                                <span class="collapse-sidebar-label"><?php _e( 'Collapse' ); ?></span>