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
← All changes | includes/integrations/divi/scripts/builder-bundle.min.js +33 -0 3.4.33.4.4 View file →
@@ -136,8 +136,40 @@
136 136 }
137 137 }
138 138
139 139 /**
140 + * ConvertKit Member Content Login Divi Module.
141 + */
142 +class ConvertKitDiviLogin extends React.Component {
143 + /**
144 + * The Divi module name. Must match the slug defined in
145 + * the PHP class ConvertKit_Divi_Module_Login.
146 + *
147 + * @since 3.4.4
148 + */
149 + static slug = 'convertkit_login';
150 +
151 + /**
152 + * Renders the frontend output for this module.
153 + *
154 + * @since 3.4.4
155 + */
156 + render() {
157 + const block = window.ConvertkitDiviBuilderData.login;
158 +
159 + // If no Access Token has been defined in the Plugin, show a message in the module to tell the user what to do.
160 + if (!block.has_access_token) {
161 + return ConvertKitDiviNoAccessMessage(block);
162 + }
163 +
164 + // Return module with text.
165 + return ConvertKitDiviMessage(
166 + 'Configure this member content login module by clicking the settings cog.'
167 + );
168 + }
169 +}
170 +
171 +/**
140 172 * Returns the block's notice and instruction text when no access token exists.
141 173 *
142 174 * @since 2.5.7
143 175 *
@@ -258,7 +290,8 @@
258 290 API.registerModules([
259 291 ConvertKitDiviBroadcasts,
260 292 ConvertKitDiviForm,
261 293 ConvertKitDiviFormTrigger,
294 + ConvertKitDiviLogin,
262 295 ConvertKitDiviProduct,
263 296 ]);
264 297 });