115 | | <div id="customize-header-actions" class="wp-full-overlay-header"> |
116 | | <?php |
117 | | $save_text = $wp_customize->is_theme_active() ? __( 'Save & Publish' ) : __( 'Save & Activate' ); |
118 | | submit_button( $save_text, 'primary save', 'save', false ); |
119 | | ?> |
120 | | <span class="spinner"></span> |
121 | | <button type="button" class="customize-controls-preview-toggle"> |
122 | | <span class="controls"><?php _e( 'Customize' ); ?></span> |
123 | | <span class="preview"><?php _e( 'Preview' ); ?></span> |
124 | | </button> |
125 | | <a class="customize-controls-close" href="<?php echo esc_url( $wp_customize->get_return_url() ); ?>"> |
126 | | <span class="screen-reader-text"><?php _e( 'Close the Customizer and go back to the previous page' ); ?></span> |
127 | | </a> |
128 | | </div> |
| 115 | <fieldset> |
| 116 | <div id="customize-header-actions" class="wp-full-overlay-header"> |
| 117 | <?php |
| 118 | $save_text = $wp_customize->is_theme_active() ? __( 'Save & Publish' ) : __( 'Save & Activate' ); |
| 119 | submit_button( $save_text, 'primary save', 'save', false ); |
| 120 | ?> |
| 121 | <span class="spinner"></span> |
| 122 | <button type="button" class="customize-controls-preview-toggle"> |
| 123 | <span class="controls"><?php _e( 'Customize' ); ?></span> |
| 124 | <span class="preview"><?php _e( 'Preview' ); ?></span> |
| 125 | </button> |
| 126 | <a class="customize-controls-close" href="<?php echo esc_url( $wp_customize->get_return_url() ); ?>"> |
| 127 | <span class="screen-reader-text"><?php _e( 'Close the Customizer and go back to the previous page' ); ?></span> |
| 128 | </a> |
| 129 | </div> |
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 | | <div class="wp-full-overlay-sidebar-content" tabindex="-1"> |
132 | | <div id="customize-info" class="accordion-section customize-info"> |
133 | | <div class="accordion-section-title"> |
134 | | <span class="preview-notice"><?php |
135 | | echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name' ) . '</strong>' ); |
136 | | ?></span> |
137 | | <button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button> |
| 131 | <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 --> |
| 132 | <div class="wp-full-overlay-sidebar-content" tabindex="-1"> |
| 133 | <div id="customize-info" class="accordion-section customize-info"> |
| 134 | <div class="accordion-section-title"> |
| 135 | <span class="preview-notice"><?php |
| 136 | echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name' ) . '</strong>' ); |
| 137 | ?></span> |
| 138 | <button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button> |
| 139 | </div> |
| 140 | <div class="customize-panel-description"><?php |
| 141 | _e( 'The Customizer allows you to preview changes to your site before publishing them. You can also navigate to different pages on your site to preview them.' ); |
| 142 | ?></div> |
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; ?> |
| 151 | <div id="customize-footer-actions" class="wp-full-overlay-footer"> |
| 152 | <?php $previewable_devices = $wp_customize->get_previewable_devices(); ?> |
| 153 | <?php if ( ! empty( $previewable_devices ) ) : ?> |
| 154 | <div class="devices"> |
| 155 | <?php foreach ( (array) $previewable_devices as $device => $settings ) : ?> |
| 156 | <?php |
| 157 | if ( empty( $settings['label'] ) ) { |
| 158 | continue; |
| 159 | } |
| 160 | $active = ! empty( $settings['default'] ); |
| 161 | $class = 'preview-' . $device; |
| 162 | if ( $active ) { |
| 163 | $class .= ' active'; |
| 164 | } |
| 165 | ?> |
| 166 | <button type="button" class="<?php echo esc_attr( $class ); ?>" aria-pressed="<?php echo esc_attr( $active ) ?>" data-device="<?php echo esc_attr( $device ); ?>"> |
| 167 | <span class="screen-reader-text"><?php echo esc_html( $settings['label'] ); ?></span> |
| 168 | </button> |
| 169 | <?php endforeach; ?> |
| 170 | </div> |
| 171 | <?php endif; ?> |
| 172 | <button type="button" class="collapse-sidebar button-secondary" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>"> |
| 173 | <span class="collapse-sidebar-arrow"></span> |
| 174 | <span class="collapse-sidebar-label"><?php _e( 'Collapse' ); ?></span> |
| 175 | </button> |