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 class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button> |
138 | | </div> |
139 | | <div class="customize-panel-description"><?php |
140 | | _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.' ); |
141 | | ?></div> |
142 | | </div> |
| 131 | <div class="wp-full-overlay-sidebar-content" tabindex="-1"><?php |
| 132 | |
| 133 | $original_customizer_title = get_bloginfo( 'name' ); |
| 134 | |
| 135 | /** |
| 136 | * Filter title in root Customizer panel. |
| 137 | * |
| 138 | * @since 4.6 |
| 139 | * |
| 140 | * @param string $customizer_title Appears at top of root Customizer panel. |
| 141 | */ |
| 142 | $filtered_customizer_title = apply_filters( 'customize_root_panel_title', $original_customizer_title ); |
| 143 | |
| 144 | if ( ! empty( $filtered_customizer_title ) ): |
| 145 | ?> |
| 146 | <div id="customize-info" class="accordion-section customize-info"> |
| 147 | <div class="accordion-section-title"> |
| 148 | <span class="preview-notice"><?php |
| 149 | // If the title has been filtered, add a class so that JavaScript won't change it on updating the 'Site Title' control. |
| 150 | $is_filtered_class = ( $filtered_customizer_title === $original_customizer_title ) ? '' : ' title-is-filtered'; |
| 151 | echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title site-title' . esc_attr( $is_filtered_class ) . '">' . $filtered_customizer_title . '</strong>' ); |
| 152 | ?></span><?php |
| 153 | |
| 154 | /** |
| 155 | * Filter description in primary Customizer panel. |
| 156 | * |
| 157 | * @since 4.6 |
| 158 | * |
| 159 | * @param string $customizer_description Appears at top of root Customizer panel, under Customizer title. |
| 160 | */ |
| 161 | $customizer_description = apply_filters( 'customize_root_panel_description', __( '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.' ) ); |
| 162 | if ( ! empty( $customizer_description ) ): |
| 163 | ?> |
| 164 | <button class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"> |
| 165 | <span class="screen-reader-text"><?php _e( 'Help' ); ?></span> |
| 166 | </button> |
| 167 | <?php endif; ?> |
| 168 | </div> |
| 169 | <div class="customize-panel-description"> |
| 170 | <?php echo $customizer_description; ?> |
| 171 | </div> |
| 172 | </div> |
| 173 | <?php endif; ?> |