| @@ -13,9 +13,9 @@ | ||
| 13 | 13 | <label for="wp-convertkit-quick-edit-form"> |
| 14 | 14 | <span class="title convertkit-icon-form"><?php esc_html_e( 'Form', 'convertkit' ); ?></span> |
| 15 | 15 | |
| 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-quick-edit-form', |
| 20 | 20 | false, |
| 21 | 21 | false, |
| @@ -25,9 +25,9 @@ | ||
| 25 | 25 | ) |
| 26 | 26 | ); |
| 27 | 27 | ?> |
| 28 | 28 | </label> |
| 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-quick-edit-form"> | |
| 29 | + <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-quick-edit-form"> | |
| 30 | 30 | <span class="dashicons dashicons-update"></span> |
| 31 | 31 | </button> |
| 32 | 32 | </div> |
| 33 | 33 | |
| @@ -47,9 +47,9 @@ | ||
| 47 | 47 | } |
| 48 | 48 | ?> |
| 49 | 49 | </select> |
| 50 | 50 | </label> |
| 51 | - <button class="wp-convertkit-refresh-resources" class="button button-secondary" title="<?php esc_attr_e( 'Refresh Tags from Kit account', 'convertkit' ); ?>" data-resource="tags" data-field="#wp-convertkit-quick-edit-tag"> | |
| 51 | + <button class="wp-convertkit-refresh-resources" class="button button-secondary" title="<?php esc_attr_e( 'Refresh Tags from ConvertKit account', 'convertkit' ); ?>" data-resource="tags" data-field="#wp-convertkit-quick-edit-tag"> | |
| 52 | 52 | <span class="dashicons dashicons-update"></span> |
| 53 | 53 | </button> |
| 54 | 54 | </div> |
| 55 | 55 | |
| @@ -57,26 +57,10 @@ | ||
| 57 | 57 | <div> |
| 58 | 58 | <label for="wp-convertkit-quick-edit-restrict_content"> |
| 59 | 59 | <span class="title convertkit-icon-restrict-content"><?php esc_html_e( 'Member', 'convertkit' ); ?></span> |
| 60 | 60 | <select name="wp-convertkit[restrict_content]" id="wp-convertkit-quick-edit-restrict_content" size="1"> |
| 61 | - <option value="0" data-preserve-on-refresh="1"><?php esc_html_e( 'Don\'t restrict content to member-only.', 'convertkit' ); ?></option> | |
| 61 | + <option value="0" data-preserve-on-refresh="1"><?php esc_html_e( 'Don\'t restrict content to members only.', 'convertkit' ); ?></option> | |
| 62 | 62 | |
| 63 | - <optgroup label="<?php esc_attr_e( 'Forms', 'convertkit' ); ?>" data-resource="forms"> | |
| 64 | - <?php | |
| 65 | - // Forms. | |
| 66 | - if ( $convertkit_forms->inline_exist() ) { | |
| 67 | - foreach ( $convertkit_forms->get_inline() as $convertkit_form ) { | |
| 68 | - printf( | |
| 69 | - '<option value="form_%s">%s [%s]</option>', | |
| 70 | - esc_attr( $convertkit_form['id'] ), | |
| 71 | - esc_attr( $convertkit_form['name'] ), | |
| 72 | - ( ! empty( $convertkit_form['format'] ) ? esc_attr( $convertkit_form['format'] ) : 'inline' ) | |
| 73 | - ); | |
| 74 | - } | |
| 75 | - } | |
| 76 | - ?> | |
| 77 | - </optgroup> | |
| 78 | - | |
| 79 | 63 | <optgroup label="<?php esc_attr_e( 'Tags', 'convertkit' ); ?>" data-resource="tags"> |
| 80 | 64 | <?php |
| 81 | 65 | // Tags. |
| 82 | 66 | if ( $convertkit_tags->exist() ) { |
| @@ -102,9 +86,9 @@ | ||
| 102 | 86 | ?> |
| 103 | 87 | </optgroup> |
| 104 | 88 | </select> |
| 105 | 89 | </label> |
| 106 | - <button class="wp-convertkit-refresh-resources" class="button button-secondary" title="<?php esc_attr_e( 'Refresh Products and Tags from Kit account', 'convertkit' ); ?>" data-resource="restrict_content" data-field="#wp-convertkit-quick-edit-restrict_content"> | |
| 90 | + <button class="wp-convertkit-refresh-resources" class="button button-secondary" title="<?php esc_attr_e( 'Refresh Products and Tags from ConvertKit account', 'convertkit' ); ?>" data-resource="restrict_content" data-field="#wp-convertkit-quick-edit-restrict_content"> | |
| 107 | 91 | <span class="dashicons dashicons-update"></span> |
| 108 | 92 | </button> |
| 109 | 93 | </div> |
| 110 | 94 | <?php |