| @@ -10,9 +10,9 @@ | ||
| 10 | 10 | <div id="convertkit-quick-edit" class="convertkit-bulk-quick-edit" style="display:none;"> |
| 11 | 11 | <!-- Form --> |
| 12 | 12 | <div> |
| 13 | 13 | <label for="wp-convertkit-quick-edit-form"> |
| 14 | - <span class="title convertkit-icon-form"><?php esc_html_e( 'Form', 'convertkit' ); ?></span> | |
| 14 | + <span class="title"><?php esc_html_e( 'Form', 'convertkit' ); ?></span> | |
| 15 | 15 | <select name="wp-convertkit[form]" id="wp-convertkit-quick-edit-form" size="1"> |
| 16 | 16 | <option value="-1" data-preserve-on-refresh="1"><?php esc_html_e( 'Default', 'convertkit' ); ?></option> |
| 17 | 17 | <option value="0" data-preserve-on-refresh="1"><?php esc_html_e( 'None', 'convertkit' ); ?></option> |
| 18 | 18 | <?php |
| @@ -33,9 +33,9 @@ | ||
| 33 | 33 | |
| 34 | 34 | <!-- Tag --> |
| 35 | 35 | <div> |
| 36 | 36 | <label for="wp-convertkit-quick-edit-tag"> |
| 37 | - <span class="title convertkit-icon-tag"><?php esc_html_e( 'Tag', 'convertkit' ); ?></span> | |
| 37 | + <span class="title"><?php esc_html_e( 'Tag', 'convertkit' ); ?></span> | |
| 38 | 38 | <select name="wp-convertkit[tag]" id="wp-convertkit-quick-edit-tag" size="1"> |
| 39 | 39 | <option value="0" data-preserve-on-refresh="1"> |
| 40 | 40 | <?php esc_html_e( 'None', 'convertkit' ); ?> |
| 41 | 41 | </option> |
| @@ -52,48 +52,8 @@ | ||
| 52 | 52 | </label> |
| 53 | 53 | <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"> |
| 54 | 54 | <span class="dashicons dashicons-update"></span> |
| 55 | 55 | </button> |
| 56 | + <?php wp_nonce_field( 'wp-convertkit-save-meta', 'wp-convertkit-save-meta-nonce' ); ?> | |
| 56 | 57 | </div> |
| 58 | +</div> | |
| 57 | 59 | |
| 58 | - <?php | |
| 59 | - if ( $restrict_content_settings->enabled() ) { | |
| 60 | - ?> | |
| 61 | - <!-- Restrict Content --> | |
| 62 | - <div> | |
| 63 | - <label for="wp-convertkit-quick-edit-restrict_content"> | |
| 64 | - <span class="title convertkit-icon-restrict-content"><?php esc_html_e( 'Member', 'convertkit' ); ?></span> | |
| 65 | - <select name="wp-convertkit[restrict_content]" id="wp-convertkit-quick-edit-restrict_content" size="1"> | |
| 66 | - <option value="0" data-preserve-on-refresh="1"> | |
| 67 | - <?php esc_html_e( 'Don\'t restrict content to members only.', 'convertkit' ); ?> | |
| 68 | - </option> | |
| 69 | - | |
| 70 | - <?php | |
| 71 | - // Products. | |
| 72 | - if ( $convertkit_products->exist() ) { | |
| 73 | - ?> | |
| 74 | - <optgroup label="<?php esc_attr_e( 'Products', 'convertkit' ); ?>"> | |
| 75 | - <?php | |
| 76 | - foreach ( $convertkit_products->get() as $product ) { | |
| 77 | - ?> | |
| 78 | - <option value="product_<?php echo esc_attr( $product['id'] ); ?>"> | |
| 79 | - <?php echo esc_attr( $product['name'] ); ?> | |
| 80 | - </option> | |
| 81 | - <?php | |
| 82 | - } | |
| 83 | - ?> | |
| 84 | - </optgroup> | |
| 85 | - <?php | |
| 86 | - } | |
| 87 | - ?> | |
| 88 | - </select> | |
| 89 | - </label> | |
| 90 | - <button class="wp-convertkit-refresh-resources" class="button button-secondary" title="<?php esc_attr_e( 'Refresh Products from ConvertKit account', 'convertkit' ); ?>" data-resource="products" data-field="#wp-convertkit-quick-edit-restrict_content"> | |
| 91 | - <span class="dashicons dashicons-update"></span> | |
| 92 | - </button> | |
| 93 | - </div> | |
| 94 | - <?php | |
| 95 | - } | |
| 96 | - | |
| 97 | - wp_nonce_field( 'wp-convertkit-save-meta', 'wp-convertkit-save-meta-nonce' ); | |
| 98 | - ?> | |
| 99 | -</div> | |