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
convertkit / views / backend / setup-wizard / convertkit-setup / content-configuration.php

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

157 lines 4.7 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 Plugin Setup Wizard > Form Configuration step.
4 *
5 * @package ConvertKit
6 * @author ConvertKit
7 */
8
9 // If no Forms exist on the ConvertKit account, show the user how to add a Form to ConvertKit,
10 // with an option to refresh this page so that they can then select the Form to be displayed on e.g. Posts.
11 if ( ! $this->forms->exist() ) {
12 ?>
13 <h1><?php esc_html_e( 'Create your first Kit Form', 'convertkit' ); ?></h1>
14 <p>
15 <?php
16 esc_html_e( 'To get email subscribers, you first need to create a form in Kit. Click the button below to get started.', 'convertkit' );
17 ?>
18 </p>
19
20 <hr />
21
22 <a href="<?php echo esc_url( convertkit_get_new_form_url() ); ?>" target="_blank" class="button button-primary button-hero">
23 <?php esc_html_e( 'Create form', 'convertkit' ); ?>
24 </a>
25
26 <p>
27 <?php
28 printf(
29 '%1$s <a href="https://help.kit.com/en/articles/3860348-how-to-create-your-first-form-in-convertkit" target="_blank">%2$s</a>',
30 esc_html__( 'Not sure how to do this in Kit?', 'convertkit' ),
31 esc_html__( 'Follow our step by step documentation', 'convertkit' )
32 );
33 ?>
34 </p>
35 <?php
36 } else {
37 // Show options to configure Form to display on Posts and Pages.
38 ?>
39 <h1><?php esc_html_e( 'Display an email capture form', 'convertkit' ); ?></h1>
40 <p>
41 <?php
42 esc_html_e( 'To get email subscribers, you need to display a Kit form on your site, using the options below.', 'convertkit' );
43 ?>
44 </p>
45
46 <hr />
47
48 <div>
49 <label for="wp-convertkit-form-posts">
50 <?php esc_html_e( 'Which form would you like to display below all blog posts?', 'convertkit' ); ?>
51 </label>
52
53 <?php
54 $this->forms->output_select_field_all(
55 'post_form',
56 'wp-convertkit-form-posts',
57 array(
58 'convertkit-select2',
59 'convertkit-preview-output-link',
60 'widefat',
61 ),
62 esc_attr( $this->settings->get_default_form( 'post' ) ),
63 array(
64 '0' => esc_html__( 'Don\'t display an email subscription form on posts.', 'convertkit' ),
65 ),
66 array(
67 'data-target' => '#convertkit-preview-form-post',
68 'data-link' => esc_attr( $this->preview_post_url ) . '&convertkit_form_id=',
69 )
70 );
71 ?>
72
73 <p class="description">
74 <?php
75 if ( $this->preview_post_url ) {
76 printf(
77 '%s %s %s',
78 esc_html__( 'Select a form above.', 'convertkit' ),
79 '<a href="' . esc_url( $this->preview_post_url ) . '" id="convertkit-preview-form-post" target="_blank">' . esc_html__( 'Click here', 'convertkit' ) . '</a>',
80 esc_html__( 'to preview how this will look on individual posts.', 'convertkit' )
81 );
82 } else {
83 esc_html_e( 'Select a form above.', 'convertkit' );
84 }
85 ?>
86 </p>
87 </div>
88
89 <div>
90 <label for="wp-convertkit-form-pages">
91 <?php esc_html_e( 'Which form would you like to display below all pages?', 'convertkit' ); ?>
92 </label>
93
94 <?php
95 $this->forms->output_select_field_all(
96 'page_form',
97 'wp-convertkit-form-pages',
98 array(
99 'convertkit-select2',
100 'convertkit-preview-output-link',
101 'widefat',
102 ),
103 esc_attr( $this->settings->get_default_form( 'page' ) ),
104 array(
105 '0' => esc_html__( 'Don\'t display an email subscription form on pages.', 'convertkit' ),
106 ),
107 array(
108 'data-target' => '#convertkit-preview-form-page',
109 'data-link' => esc_attr( $this->preview_page_url ) . '&convertkit_form_id=',
110 )
111 );
112 ?>
113
114 <p class="description">
115 <?php
116 if ( $this->preview_page_url ) {
117 printf(
118 '%s %s %s',
119 esc_html__( 'Select a form above.', 'convertkit' ),
120 '<a href="' . esc_url( $this->preview_page_url ) . '" id="convertkit-preview-form-page" target="_blank">' . esc_html__( 'Click here', 'convertkit' ) . '</a>',
121 esc_html__( 'to preview how this will look on individual pages.', 'convertkit' )
122 );
123 } else {
124 esc_html_e( 'Select a form above.', 'convertkit' );
125 }
126 ?>
127 </p>
128 </div>
129
130 <div class="notice notice-info">
131 <p class="description">
132 <?php
133 esc_html_e( 'To embed email subscriber forms in particular sections of your content on specific Pages or Posts, use the Kit Form block or shortcode when editing a Page or Post.', 'convertkit' );
134 ?>
135 </p>
136 </div>
137
138 <div>
139 <label for="wp-convertkit-usage-tracking">
140 <?php esc_html_e( 'Usage tracking', 'convertkit' ); ?>
141 </label>
142
143 <input type="checkbox" name="usage_tracking" id="wp-convertkit-usage-tracking" value="on" checked />
144
145 <p class="description">
146 <?php
147 printf(
148 '%s <a href="https://help.kit.com/en/articles/2502591-how-to-set-up-the-kit-plugin-on-your-wordpress-website" target="_blank">%s</a>',
149 esc_html__( 'By allowing us to collect usage data, we can better understand which WordPress configurations, themes and plugins we should test. Complete documentation on usage tracking can be found', 'convertkit' ),
150 esc_html__( 'here', 'convertkit' )
151 );
152 ?>
153 </p>
154 </div>
155 <?php
156 }
157