PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 3.4.4
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v3.4.4
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
convertkit / views / backend / setup-wizard / convertkit-restrict-content-setup / content-configuration.php

content-configuration.php in Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages 3.4.4, at views/backend/setup-wizard/convertkit-restrict-content-setup/content-configuration.php

117 lines 4.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Outputs the content for the Restrict Content Setup Wizard > Configure step.
4 *
5 * @package ConvertKit
6 * @author ConvertKit
7 */
8
9 ?>
10
11 <h1>
12 <?php
13 printf(
14 /* translators: Type of content (download, course) */
15 esc_html__( 'Configure %s', 'convertkit' ),
16 esc_html( $this->type_label )
17 );
18 ?>
19 </h1>
20
21 <hr />
22
23 <div>
24 <label for="title">
25 <?php esc_html_e( 'What is the name of the content?', 'convertkit' ); ?>
26 </label>
27 <input type="text" name="title" id="title" class="widefat" placeholder="<?php esc_attr_e( 'e.g. Free PDF, Macro Photography Course', 'convertkit' ); ?>" required />
28 <input type="hidden" name="type" value="<?php echo esc_attr( $this->type ); ?>" />
29 </div>
30
31 <div>
32 <label for="description">
33 <?php esc_html_e( 'Describe the content for non-members.', 'convertkit' ); ?>
34 </label>
35 <textarea name="description" id="description" class="widefat" required></textarea>
36 <p class="description"><?php esc_html_e( 'This will be displayed above product\'s call to action button.', 'convertkit' ); ?></p>
37 </div>
38
39 <?php
40 if ( $this->type === 'course' ) {
41 ?>
42 <div class="course">
43 <div>
44 <label for="number_of_pages">
45 <?php esc_html_e( 'How many lessons does this course consist of?', 'convertkit' ); ?>
46 </label>
47 <input type="number" name="number_of_pages" min="1" max="99" step="1" id="number_of_pages" value="3" required />
48 </div>
49 </div>
50 <?php
51 }
52 ?>
53
54 <div>
55 <label for="wp-convertkit-restrict_content">
56 <?php esc_html_e( 'The Kit Product, Tag or Form the visitor must subscribe to, in order to see the content', 'convertkit' ); ?>
57 </label>
58
59 <div class="convertkit-select2-container">
60 <select name="restrict_content" id="wp-convertkit-restrict_content" class="convertkit-select2 widefat">
61 <optgroup label="<?php esc_attr_e( 'Forms', 'convertkit' ); ?>" data-resource="forms">
62 <?php
63 // Forms.
64 if ( $this->forms->inline_exist() ) {
65 foreach ( $this->forms->get_inline() as $convertkit_form ) {
66 printf(
67 '<option value="form_%s">%s [%s]</option>',
68 esc_attr( $convertkit_form['id'] ),
69 esc_attr( $convertkit_form['name'] ),
70 ( ! empty( $convertkit_form['format'] ) ? esc_attr( $convertkit_form['format'] ) : 'inline' )
71 );
72 }
73 }
74 ?>
75 </optgroup>
76
77 <optgroup label="<?php esc_attr_e( 'Tags', 'convertkit' ); ?>" data-resource="tags">
78 <?php
79 // Tags.
80 if ( $this->tags->exist() ) {
81 foreach ( $this->tags->get() as $convertkit_tag ) {
82 ?>
83 <option value="tag_<?php echo esc_attr( $convertkit_tag['id'] ); ?>"><?php echo esc_attr( $convertkit_tag['name'] ); ?></option>
84 <?php
85 }
86 }
87 ?>
88 </optgroup>
89
90 <optgroup label="<?php esc_attr_e( 'Products', 'convertkit' ); ?>" data-resource="products">
91 <?php
92 // Products.
93 if ( $this->products->exist() ) {
94 foreach ( $this->products->get() as $product ) {
95 ?>
96 <option value="product_<?php echo esc_attr( $product['id'] ); ?>"><?php echo esc_attr( $product['name'] ); ?></option>
97 <?php
98 }
99 }
100 ?>
101 </optgroup>
102 </select>
103 <p class="description">
104 <?php esc_html_e( 'Select the Kit form, tag or product that the visitor must be subscribed to, permitting them access to view this member-only content.', 'convertkit' ); ?>
105 <br />
106 <code><?php esc_html_e( 'Form', 'convertkit' ); ?></code>
107 <?php esc_html_e( ': Displays the Kit form. On submission, the email address will be subscribed to the selected form, granting access to the member-only content. Useful to gate free content in return for an email address.', 'convertkit' ); ?>
108 <br />
109 <code><?php esc_html_e( 'Tag', 'convertkit' ); ?></code>
110 <?php esc_html_e( ': Displays a WordPress styled subscription form. On submission, the email address will be subscribed to the selected tag, granting access to the member-only content. Useful to gate free content in return for an email address.', 'convertkit' ); ?>
111 <br />
112 <code><?php esc_html_e( 'Product', 'convertkit' ); ?></code>
113 <?php esc_html_e( ': Displays a link to the Kit product, and a login form. Useful to gate content that can only be accessed by purchasing the Kit product.', 'convertkit' ); ?>
114 </p>
115 </div>
116 </div>
117