PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 2.7.4
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v2.7.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 2.3.1 All 196 releases
← All changes | includes/widgets/class-ck-widget-form.php +13 -12 2.3.22.7.4 View file →
@@ -31,12 +31,12 @@
31 31 public function __construct() {
32 32
33 33 parent::__construct(
34 34 'convertkit_form',
35 - __( 'ConvertKit Form (Legacy Widget)', 'convertkit' ),
35 + __( 'Kit Form (Legacy Widget)', 'convertkit' ),
36 36 array(
37 37 'classname' => 'convertkit widget_convertkit_form',
38 - 'description' => __( 'Display a ConvertKit form.', 'convertkit' ),
38 + 'description' => __( 'Display a Kit form.', 'convertkit' ),
39 39 'customize_selective_refresh' => true,
40 40 )
41 41 );
42 42
@@ -57,9 +57,9 @@
57 57 // Bail if no Forms exist.
58 58 if ( ! $forms->exist() ) {
59 59 ?>
60 60 <p>
61 - <?php esc_html_e( 'To display a ConvertKit Form, at least one form must be defined in your ConvertKit Account.', 'convertkit' ); ?>
61 + <?php esc_html_e( 'To display a Kit Form, at least one form must be defined in your Kit Account.', 'convertkit' ); ?>
62 62 </p>
63 63 <?php
64 64 }
65 65
@@ -76,17 +76,18 @@
76 76 <input type="text" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" value="<?php esc_attr( $instance['title'] ); ?>" />
77 77 </p>
78 78 <p>
79 79 <label for="<?php echo esc_attr( $this->get_field_id( 'form' ) ); ?>"><?php esc_html_e( 'Form', 'convertkit' ); ?></label>
80 - <select name="<?php echo esc_attr( $this->get_field_name( 'form' ) ); ?>" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'form' ) ); ?>" size="1">
81 - <?php
82 - foreach ( $forms->get() as $form ) {
83 - ?>
84 - <option value="<?php echo esc_attr( $form['id'] ); ?>"<?php selected( $form['id'], $instance['form'] ); ?>><?php echo esc_attr( $form['name'] ); ?></option>
85 - <?php
86 - }
87 - ?>
88 - </select>
80 + <?php
81 + echo $forms->get_select_field_all( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
82 + esc_attr( $this->get_field_name( 'form' ) ),
83 + esc_attr( $this->get_field_id( 'form' ) ),
84 + array(
85 + 'widefat',
86 + ),
87 + esc_attr( $instance['form'] )
88 + );
89 + ?>
89 90 </p>
90 91 <?php
91 92
92 93 return '';