PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 2.5.2
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v2.5.2
3.4.4 3.4.3 3.4.2 3.4.1 3.4.0 3.3.9 3.3.8 3.3.7 3.3.6 3.3.5 3.3.4 3.3.3 3.3.2 3.3.1 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 All 197 releases
← All changes | views/backend/post/quick-edit.php +46 -48 2.2.42.5.2 View file →
@@ -11,21 +11,21 @@
11 11 <!-- Form -->
12 12 <div>
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 - <select name="wp-convertkit[form]" id="wp-convertkit-quick-edit-form" size="1">
16 - <option value="-1" data-preserve-on-refresh="1"><?php esc_html_e( 'Default', 'convertkit' ); ?></option>
17 - <option value="0" data-preserve-on-refresh="1"><?php esc_html_e( 'None', 'convertkit' ); ?></option>
18 - <?php
19 - if ( $convertkit_forms->exist() ) {
20 - foreach ( $convertkit_forms->get() as $form ) {
21 - ?>
22 - <option value="<?php echo esc_attr( $form['id'] ); ?>"><?php echo esc_attr( $form['name'] ); ?></option>
23 - <?php
24 - }
25 - }
26 - ?>
27 - </select>
15 +
16 + <?php
17 + echo $convertkit_forms->get_select_field_all( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
18 + 'wp-convertkit[form]',
19 + 'wp-convertkit-quick-edit-form',
20 + false,
21 + false,
22 + array(
23 + '-1' => esc_html__( 'Default', 'convertkit' ),
24 + '0' => esc_html__( 'None', 'convertkit' ),
25 + )
26 + );
27 + ?>
28 28 </label>
29 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>
@@ -35,11 +35,9 @@
35 35 <div>
36 36 <label for="wp-convertkit-quick-edit-tag">
37 37 <span class="title convertkit-icon-tag"><?php esc_html_e( 'Tag', 'convertkit' ); ?></span>
38 38 <select name="wp-convertkit[tag]" id="wp-convertkit-quick-edit-tag" size="1">
39 - <option value="0" data-preserve-on-refresh="1">
40 - <?php esc_html_e( 'None', 'convertkit' ); ?>
41 - </option>
39 + <option value="0" data-preserve-on-refresh="1"><?php esc_html_e( 'None', 'convertkit' ); ?></option>
42 40 <?php
43 41 if ( $convertkit_tags->exist() ) {
44 42 foreach ( $convertkit_tags->get() as $convertkit_tag ) {
45 43 ?>
@@ -54,46 +52,46 @@
54 52 <span class="dashicons dashicons-update"></span>
55 53 </button>
56 54 </div>
57 55
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>
56 + <!-- Restrict Content -->
57 + <div>
58 + <label for="wp-convertkit-quick-edit-restrict_content">
59 + <span class="title convertkit-icon-restrict-content"><?php esc_html_e( 'Member', 'convertkit' ); ?></span>
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 members only.', 'convertkit' ); ?></option>
69 62
63 + <optgroup label="<?php esc_attr_e( 'Tags', 'convertkit' ); ?>" data-resource="tags">
70 64 <?php
65 + // Tags.
66 + if ( $convertkit_tags->exist() ) {
67 + foreach ( $convertkit_tags->get() as $convertkit_tag ) {
68 + ?>
69 + <option value="tag_<?php echo esc_attr( $convertkit_tag['id'] ); ?>"><?php echo esc_attr( $convertkit_tag['name'] ); ?></option>
70 + <?php
71 + }
72 + }
73 + ?>
74 + </optgroup>
75 +
76 + <optgroup label="<?php esc_attr_e( 'Products', 'convertkit' ); ?>" data-resource="products">
77 + <?php
71 78 // Products.
72 79 if ( $convertkit_products->exist() ) {
73 - ?>
74 - <optgroup label="<?php esc_attr_e( 'Products', 'convertkit' ); ?>">
80 + foreach ( $convertkit_products->get() as $product ) {
81 + ?>
82 + <option value="product_<?php echo esc_attr( $product['id'] ); ?>"><?php echo esc_attr( $product['name'] ); ?></option>
75 83 <?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
84 + }
86 85 }
87 86 ?>
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 -
87 + </optgroup>
88 + </select>
89 + </label>
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">
91 + <span class="dashicons dashicons-update"></span>
92 + </button>
93 + </div>
94 + <?php
97 95 wp_nonce_field( 'wp-convertkit-save-meta', 'wp-convertkit-save-meta-nonce' );
98 96 ?>
99 97 </div>