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/frontend/restrict-content/product-code.php +15 -9 2.3.0 → 2.5.2 View file →
@@ -10,21 +10,27 @@
10 10
11 11 ?>
12 12
13 13 <div id="convertkit-restrict-content">
14 - <?php
15 - require 'notices.php';
16 - ?>
14 + <h4><?php echo esc_html( WP_ConvertKit()->get_class( 'output_restrict_content' )->restrict_content_settings->get_by_key( 'email_check_heading' ) ); ?></h4>
15 + <p>
16 + <?php echo esc_html( WP_ConvertKit()->get_class( 'output_restrict_content' )->restrict_content_settings->get_by_key( 'email_check_text' ) ); ?>
17 + </p>
17 18
18 19 <div class="convertkit-restrict-content-actions">
19 - <form class="convertkit-restrict-content-subscriber-code" action="<?php echo esc_attr( add_query_arg( array( 'convertkit_login' => 1 ), get_permalink( $post_id ) ) ); ?>" method="post">
20 + <form id="convertkit-restrict-content-form" action="<?php echo esc_attr( add_query_arg( array( 'convertkit_login' => 1 ), get_permalink( WP_ConvertKit()->get_class( 'output_restrict_content' )->post_id ) ) ); ?>" method="post">
21 + <div id="convertkit-subscriber-code-container" class="<?php echo sanitize_html_class( ( is_wp_error( WP_ConvertKit()->get_class( 'output_restrict_content' )->error ) ? 'convertkit-restrict-content-error' : '' ) ); ?>">
22 + <input type="text" name="subscriber_code" id="convertkit_subscriber_code" inputmode="numeric" maxlength="6" pattern="[0-9]{6}" autocomplete="one-time-code" value="" required />
23 + </div>
24 +
25 + <?php
26 + require 'notices.php';
27 + ?>
28 +
20 29 <div>
21 - <input type="text" name="subscriber_code" id="convertkit_subscriber_code" inputmode="numeric" pattern="[0-9]{6}" autocomplete="one-time-code" value="" placeholder="<?php esc_attr_e( 'Email Code', 'convertkit' ); ?>" />
22 -
23 30 <input type="submit" class="wp-block-button__link" value="<?php esc_html_e( 'Verify', 'convertkit' ); ?>" />
24 -
25 - <input type="hidden" name="token" value="<?php echo esc_attr( $this->token ); ?>" />
26 -
31 + <input type="hidden" name="token" value="<?php echo esc_attr( WP_ConvertKit()->get_class( 'output_restrict_content' )->token ); ?>" />
32 + <input type="hidden" name="convertkit_post_id" value="<?php echo esc_attr( $post_id ); ?>" />
27 33 <?php wp_nonce_field( 'convertkit_restrict_content_subscriber_code' ); ?>
28 34 </div>
29 35 </form>
30 36 </div>