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