| @@ -28,8 +28,9 @@ | ||
| 28 | 28 | <input type="hidden" id="active-tab" name="active-tab" value="<?php echo isset( $_GET['active-tab'] ) ? (int) $_GET['active-tab'] : '0'; ?>" /> |
| 29 | 29 | <?php wp_nonce_field( 'wpcf7-save-contact-form_' . $post_id, '_wpcf7nonce' ); ?> |
| 30 | 30 | |
| 31 | 31 | <div id="contact-form-editor"> |
| 32 | + <div class="loading-screen"><h2><?= __('Loading form editor ...','cf7-grid-layout')?><span class="spinner"></span></h2></div> | |
| 32 | 33 | <div class="keyboard-interaction"><?php echo sprintf( esc_html( __cf7sg( '%s keys switch panels') ), '<span class="dashicons dashicons-leftright"></span>' ); ?></div> |
| 33 | 34 | |
| 34 | 35 | <?php |
| 35 | 36 | |
| @@ -62,9 +63,9 @@ | ||
| 62 | 63 | 'callback' => 'wpcf7_editor_panel_additional_settings' ); |
| 63 | 64 | } |
| 64 | 65 | /** |
| 65 | 66 | * filter to add/remove panels from the cf7 post editor |
| 66 | - * @param array $panel aarray of panels presented as tabs in the editor, $id => array( 'title' => $panel_title, 'callback' => $callback_function). The $callback_function must be a valid function to echo the panel html script. | |
| 67 | + * @param Array $panel array of panels presented as tabs in the editor, $id => array( 'title' => $panel_title, 'callback' => $callback_function). The $callback_function must be a valid function to echo the panel html script. | |
| 67 | 68 | */ |
| 68 | 69 | $panels = apply_filters( 'wpcf7_editor_panels', $panels ); |
| 69 | 70 | |
| 70 | 71 | foreach ( $panels as $id => $panel ) { |