PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 3.4.3
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v3.4.3
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 2.3.1 All 196 releases
← All changes | views/backend/term/fields-edit.php +39 -19 2.2.63.4.3 View file →
@@ -8,29 +8,28 @@
8 8
9 9 ?>
10 10 <tr class="form-field">
11 11 <th scope="row">
12 - <label for="description"><?php esc_html_e( 'ConvertKit Form', 'convertkit' ); ?></label>
12 + <label for="wp-convertkit-form"><?php esc_html_e( 'Kit Form', 'convertkit' ); ?></label>
13 13 </th>
14 14 <td>
15 15 <div class="convertkit-select2-container convertkit-select2-container-grid">
16 - <select name="wp-convertkit[form]" id="wp-convertkit-form" class="convertkit-select2">
17 - <option value="0"<?php selected( 0, $convertkit_term->get_form() ); ?> data-preserve-on-refresh="1">
18 - <?php esc_html_e( 'Default', 'convertkit' ); ?>
19 - </option>
20 - <?php
21 - if ( $convertkit_forms->exist() ) {
22 - foreach ( $convertkit_forms->get() as $convertkit_form ) {
23 - ?>
24 - <option value="<?php echo esc_attr( $convertkit_form['id'] ); ?>"<?php selected( $convertkit_form['id'], $convertkit_term->get_form() ); ?>>
25 - <?php echo esc_html( $convertkit_form['name'] ); ?>
26 - </option>
27 - <?php
28 - }
29 - }
30 - ?>
31 - </select>
32 - <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">
16 + <?php
17 + $convertkit_forms->output_select_field_all(
18 + 'wp-convertkit[form]',
19 + 'wp-convertkit-form',
20 + array(
21 + 'convertkit-select2',
22 + ),
23 + esc_attr( $convertkit_term->get_form() ),
24 + array(
25 + '-1' => esc_html__( 'Default', 'convertkit' ),
26 + '0' => esc_html__( 'None', 'convertkit' ),
27 + )
28 + );
29 + ?>
30 +
31 + <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">
33 32 <span class="dashicons dashicons-update"></span>
34 33 </button>
35 34 <p class="description">
36 35 <code><?php esc_html_e( 'Default', 'convertkit' ); ?></code>
@@ -35,10 +34,13 @@
35 34 <p class="description">
36 35 <code><?php esc_html_e( 'Default', 'convertkit' ); ?></code>
37 36 <?php esc_html_e( ': Display a form based on the Post\'s settings.', 'convertkit' ); ?>
38 37 <br />
38 + <code><?php esc_html_e( 'None', 'convertkit' ); ?></code>
39 + <?php esc_html_e( ': do not display a form.', 'convertkit' ); ?>
40 + <br />
39 41 <?php
40 - echo sprintf(
42 + printf(
41 43 /* translators: Taxonomy Name */
42 44 esc_html__( 'Any other option will display that form after the main content for Posts assigned to this %s.', 'convertkit' ),
43 45 'category'
44 46 );
@@ -44,8 +46,26 @@
44 46 );
45 47 ?>
46 48 </p>
47 49 </div>
50 + </td>
51 +</tr>
52 +<tr class="form-field">
53 + <th scope="row">
54 + <label for="wp-convertkit-form-position"><?php esc_html_e( 'Display Kit Form on Archive?', 'convertkit' ); ?></label>
55 + </th>
56 + <td>
57 + <select name="wp-convertkit[form_position]" id="wp-convertkit-form-position" size="1">
58 + <option value=""><?php esc_attr_e( 'No', 'convertkit' ); ?></option>
59 + <option value="before"<?php selected( 'before', $convertkit_term->get_form_position() ); ?>><?php esc_attr_e( 'Before Posts', 'convertkit' ); ?></option>
60 + <option value="after"<?php selected( 'after', $convertkit_term->get_form_position() ); ?>><?php esc_attr_e( 'After Posts', 'convertkit' ); ?></option>
61 + </select>
62 + <p class="description">
63 + <?php
64 + esc_html_e( 'Whether to display the Form on this Category\'s archive page, above or below the main posts list.', 'convertkit' );
65 + ?>
66 + </p>
67 +
48 68 <?php
49 69 wp_nonce_field( 'wp-convertkit-save-meta', 'wp-convertkit-save-meta-nonce' );
50 70 ?>
51 71 </td>