PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 2.0.2
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v2.0.2
3.4.6 3.4.5 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 All 199 releases
← All changes | views/backend/post/quick-edit.php +34 -92 3.4.2 → 2.0.2 View file →
@@ -6,108 +6,50 @@
6 6 * @author ConvertKit
7 7 */
8 8
9 9 ?>
10 -<div id="convertkit-quick-edit" class="convertkit-bulk-quick-edit" style="display:none;">
10 +<div id="convertkit-quick-edit" style="display:none;">
11 11 <!-- Form -->
12 - <div>
13 - <label for="wp-convertkit-quick-edit-form">
14 - <span class="title convertkit-icon-form"><?php esc_html_e( 'Form', 'convertkit' ); ?></span>
15 -
12 + <label for="wp-convertkit-quick-edit-form">
13 + <span class="title"><?php esc_html_e( 'Form', 'convertkit' ); ?></span>
14 + <select name="wp-convertkit[form]" id="wp-convertkit-quick-edit-form" size="1">
15 + <option value="-1" data-preserve-on-refresh="1"><?php esc_html_e( 'Default', 'convertkit' ); ?></option>
16 + <option value="0" data-preserve-on-refresh="1"><?php esc_html_e( 'None', 'convertkit' ); ?></option>
16 17 <?php
17 - $convertkit_forms->output_select_field_all(
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 - );
18 + if ( $convertkit_forms->exist() ) {
19 + foreach ( $convertkit_forms->get() as $form ) {
20 + ?>
21 + <option value="<?php echo esc_attr( $form['id'] ); ?>"><?php echo esc_attr( $form['name'] ); ?></option>
22 + <?php
23 + }
24 + }
27 25 ?>
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">
26 + </select>
27 + <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 28 <span class="dashicons dashicons-update"></span>
31 29 </button>
32 - </div>
30 + </label>
33 31
34 32 <!-- Tag -->
35 - <div>
36 - <label for="wp-convertkit-quick-edit-tag">
37 - <span class="title convertkit-icon-tag"><?php esc_html_e( 'Tag', 'convertkit' ); ?></span>
38 - <select name="wp-convertkit[tag]" id="wp-convertkit-quick-edit-tag" size="1">
39 - <option value="0" data-preserve-on-refresh="1"><?php esc_html_e( 'None', 'convertkit' ); ?></option>
40 - <?php
41 - if ( $convertkit_tags->exist() ) {
42 - foreach ( $convertkit_tags->get() as $convertkit_tag ) {
43 - ?>
44 - <option value="<?php echo esc_attr( $convertkit_tag['id'] ); ?>"><?php echo esc_attr( $convertkit_tag['name'] ); ?></option>
45 - <?php
46 - }
47 - }
48 - ?>
49 - </select>
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">
52 - <span class="dashicons dashicons-update"></span>
53 - </button>
54 - </div>
55 -
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 member-only.', 'convertkit' ); ?></option>
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 - }
33 + <label for="wp-convertkit-quick-edit-tag">
34 + <span class="title"><?php esc_html_e( 'Tag', 'convertkit' ); ?></span>
35 + <select name="wp-convertkit[tag]" id="wp-convertkit-quick-edit-tag" size="1">
36 + <option value="0" data-preserve-on-refresh="1">
37 + <?php esc_html_e( 'None', 'convertkit' ); ?>
38 + </option>
39 + <?php
40 + if ( $convertkit_tags->exist() ) {
41 + foreach ( $convertkit_tags->get() as $convertkit_tag ) {
76 42 ?>
77 - </optgroup>
78 -
79 - <optgroup label="<?php esc_attr_e( 'Tags', 'convertkit' ); ?>" data-resource="tags">
43 + <option value="<?php echo esc_attr( $convertkit_tag['id'] ); ?>"><?php echo esc_attr( $convertkit_tag['name'] ); ?></option>
80 44 <?php
81 - // Tags.
82 - if ( $convertkit_tags->exist() ) {
83 - foreach ( $convertkit_tags->get() as $convertkit_tag ) {
84 - ?>
85 - <option value="tag_<?php echo esc_attr( $convertkit_tag['id'] ); ?>"><?php echo esc_attr( $convertkit_tag['name'] ); ?></option>
86 - <?php
87 - }
88 - }
89 - ?>
90 - </optgroup>
91 -
92 - <optgroup label="<?php esc_attr_e( 'Products', 'convertkit' ); ?>" data-resource="products">
93 - <?php
94 - // Products.
95 - if ( $convertkit_products->exist() ) {
96 - foreach ( $convertkit_products->get() as $product ) {
97 - ?>
98 - <option value="product_<?php echo esc_attr( $product['id'] ); ?>"><?php echo esc_attr( $product['name'] ); ?></option>
99 - <?php
100 - }
101 - }
102 - ?>
103 - </optgroup>
104 - </select>
105 - </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">
45 + }
46 + }
47 + ?>
48 + </select>
49 + <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">
107 50 <span class="dashicons dashicons-update"></span>
108 51 </button>
109 - </div>
110 - <?php
111 - wp_nonce_field( 'wp-convertkit-save-meta', 'wp-convertkit-save-meta-nonce' );
112 - ?>
52 + </label>
53 + <?php wp_nonce_field( 'wp-convertkit-save-meta', 'wp-convertkit-save-meta-nonce' ); ?>
113 54 </div>
55 +