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