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/frontend/restrict-content/product.php +12 -28 2.2.13.4.3 View file →
@@ -1,10 +1,10 @@
1 1 <?php
2 2 /**
3 - * Outputs the restricted content product message,
3 + * Outputs the restricted content message,
4 4 * and a form for the subscriber to enter their
5 5 * email address if they've already subscribed
6 - * to the ConvertKit Product.
6 + * to the Kit Product.
7 7 *
8 8 * @package ConvertKit
9 9 * @author ConvertKit
10 10 */
@@ -12,34 +12,18 @@
12 12 ?>
13 13
14 14 <div id="convertkit-restrict-content">
15 15 <?php
16 - require 'notices.php';
17 - ?>
16 + require 'header.php';
18 17
19 - <div class="convertkit-restrict-content-actions">
20 - <p><?php echo esc_html( $this->restrict_content_settings->get_by_key( 'subscribe_text' ) ); ?></p>
18 + // Output product button, if specified.
19 + if ( isset( $button ) ) {
20 + echo wp_kses( $button, convertkit_kses_allowed_html() );
21 + }
21 22
22 - <?php
23 - echo $button; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
24 - ?>
23 + // Output a login link or form.
24 + require 'login.php';
25 25
26 - <hr />
27 -
28 - <p>
29 - <?php
30 - echo esc_html( $this->restrict_content_settings->get_by_key( 'email_text' ) );
31 - ?>
32 - </p>
33 -
34 - <form class="convertkit-restrict-content-login" action="<?php echo esc_attr( add_query_arg( array( 'convertkit_login' => 1 ), get_permalink( $post_id ) ) ); ?>#convertkit-restrict-content" method="post">
35 - <div>
36 - <input type="email" name="convertkit_email" id="convertkit_email" value="" placeholder="example@convertkit.com" />
37 - </div>
38 - <div>
39 - <input type="submit" class="wp-block-button__link wp-block-button__link" value="<?php echo esc_attr( $this->restrict_content_settings->get_by_key( 'email_button_label' ) ); ?>" />
40 -
41 - <?php wp_nonce_field( 'convertkit_restrict_content_login' ); ?>
42 - </div>
43 - </form>
44 - </div>
26 + // Output notices.
27 + require 'notices.php';
28 + ?>
45 29 </div>