| @@ -8,14 +8,14 @@ | ||
| 8 | 8 | |
| 9 | 9 | ?> |
| 10 | 10 | <tr class="form-field"> |
| 11 | 11 | <th scope="row"> |
| 12 | - <label for="wp-convertkit-form"><?php esc_html_e( 'Kit Form', 'convertkit' ); ?></label> | |
| 12 | + <label for="wp-convertkit-form"><?php esc_html_e( 'ConvertKit Form', 'convertkit' ); ?></label> | |
| 13 | 13 | </th> |
| 14 | 14 | <td> |
| 15 | 15 | <div class="convertkit-select2-container convertkit-select2-container-grid"> |
| 16 | 16 | <?php |
| 17 | - $convertkit_forms->output_select_field_all( | |
| 17 | + echo $convertkit_forms->get_select_field_all( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 18 | 18 | 'wp-convertkit[form]', |
| 19 | 19 | 'wp-convertkit-form', |
| 20 | 20 | array( |
| 21 | 21 | 'convertkit-select2', |
| @@ -21,15 +21,14 @@ | ||
| 21 | 21 | 'convertkit-select2', |
| 22 | 22 | ), |
| 23 | 23 | esc_attr( $convertkit_term->get_form() ), |
| 24 | 24 | array( |
| 25 | - '-1' => esc_html__( 'Default', 'convertkit' ), | |
| 26 | - '0' => esc_html__( 'None', 'convertkit' ), | |
| 25 | + '0' => esc_html__( 'Default', 'convertkit' ), | |
| 27 | 26 | ) |
| 28 | 27 | ); |
| 29 | 28 | ?> |
| 30 | 29 | |
| 31 | - <button class="wp-convertkit-refresh-resources" class="button button-secondary" title="<?php esc_attr_e( 'Refresh Forms from Kit account', 'convertkit' ); ?>" data-resource="forms" data-field="#wp-convertkit-form"> | |
| 30 | + <button class="wp-convertkit-refresh-resources" class="button button-secondary" title="<?php esc_attr_e( 'Refresh Forms from ConvertKit account', 'convertkit' ); ?>" data-resource="forms" data-field="#wp-convertkit-form"> | |
| 32 | 31 | <span class="dashicons dashicons-update"></span> |
| 33 | 32 | </button> |
| 34 | 33 | <p class="description"> |
| 35 | 34 | <code><?php esc_html_e( 'Default', 'convertkit' ); ?></code> |
| @@ -34,11 +33,8 @@ | ||
| 34 | 33 | <p class="description"> |
| 35 | 34 | <code><?php esc_html_e( 'Default', 'convertkit' ); ?></code> |
| 36 | 35 | <?php esc_html_e( ': Display a form based on the Post\'s settings.', 'convertkit' ); ?> |
| 37 | 36 | <br /> |
| 38 | - <code><?php esc_html_e( 'None', 'convertkit' ); ?></code> | |
| 39 | - <?php esc_html_e( ': do not display a form.', 'convertkit' ); ?> | |
| 40 | - <br /> | |
| 41 | 37 | <?php |
| 42 | 38 | printf( |
| 43 | 39 | /* translators: Taxonomy Name */ |
| 44 | 40 | esc_html__( 'Any other option will display that form after the main content for Posts assigned to this %s.', 'convertkit' ), |
| @@ -46,26 +42,8 @@ | ||
| 46 | 42 | ); |
| 47 | 43 | ?> |
| 48 | 44 | </p> |
| 49 | 45 | </div> |
| 50 | - </td> | |
| 51 | -</tr> | |
| 52 | -<tr class="form-field"> | |
| 53 | - <th scope="row"> | |
| 54 | - <label for="wp-convertkit-form-position"><?php esc_html_e( 'Display Kit Form on Archive?', 'convertkit' ); ?></label> | |
| 55 | - </th> | |
| 56 | - <td> | |
| 57 | - <select name="wp-convertkit[form_position]" id="wp-convertkit-form-position" size="1"> | |
| 58 | - <option value=""><?php esc_attr_e( 'No', 'convertkit' ); ?></option> | |
| 59 | - <option value="before"<?php selected( 'before', $convertkit_term->get_form_position() ); ?>><?php esc_attr_e( 'Before Posts', 'convertkit' ); ?></option> | |
| 60 | - <option value="after"<?php selected( 'after', $convertkit_term->get_form_position() ); ?>><?php esc_attr_e( 'After Posts', 'convertkit' ); ?></option> | |
| 61 | - </select> | |
| 62 | - <p class="description"> | |
| 63 | - <?php | |
| 64 | - esc_html_e( 'Whether to display the Form on this Category\'s archive page, above or below the main posts list.', 'convertkit' ); | |
| 65 | - ?> | |
| 66 | - </p> | |
| 67 | - | |
| 68 | 46 | <?php |
| 69 | 47 | wp_nonce_field( 'wp-convertkit-save-meta', 'wp-convertkit-save-meta-nonce' ); |
| 70 | 48 | ?> |
| 71 | 49 | </td> |