Version Description
- May 1st, 2018 =
- All calls to the MailChimp v2 API have been removed or updated to the v3 API where possible.
- The Account page has been removed because it was relying on V2 API endpoints. Some account data from this page has been moved to the Manage Lists page.
- The ChimpChatter dashboard widget has been removed.
- The List Activity dashboard widget has a new filter,
yikes-mailchimp-dashboard-widgets-enabled
, that controls whether the widget is loaded or not. - The welcome screen you see on plugin activation/updates has been removed.
- The error log now lives in a new place outside the plugin: wp-content/uploads/yikes-log/yikes-easy-mailchimp-error-log.php.
- The changelog is now in its own file, changelog.txt, and has been removed from the readme.
- The inline form styles should now handle a theme's default padding/margin better. There are also a bunch of new filters for customizing a form's inline styles.
- Setting up a scheduled form should be a much smoother process now.
- Some inline JavaScript for processing a form's shortcode has been moved into the form-submission-helpers.js file.
- You can now customize the message displayed to the user after an update profile email is requested. You'll see a new custom message section has been added to the form builder.
- Our checkbox integrations (e.g. Contact Form 7, WooCommerce) now allow you to choose multiple lists (and corresponding interest groups) for your subscribers to sign up to.
- Added some initial support for Easy Forms in Gutenberg. Feel free to download the Gutenberg plugin and test out the Easy Forms Block!
Download this release
Release Info
Developer | yikesitskevin |
Plugin | Easy Forms for MailChimp |
Version | 6.4.0 |
Comparing to | |
See all releases |
Code changes from version 6.3.30 to 6.4.0
- admin/class-yikes-inc-easy-mailchimp-extender-admin.php +370 -420
- admin/css/yikes-inc-easy-mailchimp-extender-admin.css +80 -341
- admin/css/yikes-inc-easy-mailchimp-extender-admin.min.css +1 -1
- admin/js/min/yikes-inc-easy-mailchimp-extender-admin.min.js +1 -1
- admin/js/min/yikes-inc-easy-mailchimp-extender-edit-form.min.js +1 -1
- admin/js/yikes-inc-easy-mailchimp-extender-admin.js +1 -1
- admin/js/yikes-inc-easy-mailchimp-extender-edit-form.js +19 -7
- admin/partials/dashboard-widgets/class.list-activity-widget.php +10 -31
- admin/partials/dashboard-widgets/templates/account-activity-template.php +0 -35
- admin/partials/edit-form.php +25 -8
- admin/partials/menu/account-details.php +0 -264
- admin/partials/menu/manage-lists.php +90 -24
- admin/partials/menu/options-sections/integration-settings.php +96 -93
- admin/partials/menu/options-sections/recaptcha-settings.php +24 -25
- admin/partials/menu/options-sections/templates/integration-interest-groups.php +100 -79
- admin/partials/welcome-page/welcome-sections/add-ons-section.php +0 -25
- admin/partials/welcome-page/welcome-sections/getting-started-section.php +0 -63
- admin/partials/welcome-page/welcome-sections/knowledge-base-section.php +0 -17
- admin/partials/welcome-page/welcome-sections/whats-new-section.php +0 -14
- admin/partials/welcome-page/welcome.php +0 -71
- blocks/blocks.php +172 -0
- blocks/development/form/css/blocks.scss +11 -0
- blocks/development/form/js/block-form.js +211 -0
- blocks/development/form/js/class.MailChimpForms.js +850 -0
- blocks/development/form/js/countries.js +248 -0
- blocks/development/form/js/enable-submit-button-editing.js +17 -0
- blocks/development/form/js/get-form.js +11 -0
- blocks/development/form/js/get-forms.js +11 -0
- blocks/development/form/js/get-recaptcha.js +11 -0
- blocks/development/form/js/locales.js +74 -0
- blocks/development/form/js/slugify.js +19 -0
- blocks/development/form/js/states.js +69 -0
- blocks/index.js +1 -0
- blocks/release/blocks.js +4551 -0
- blocks/release/blocks.js.map +1 -0
- changelog.txt +1093 -0
- class-map.php +0 -3
- includes/api/class-yikes-inc-easy-mailchimp-api-account-details.php +0 -48
- includes/api/class-yikes-inc-easy-mailchimp-api-chimp-chatter.php +0 -46
- includes/api/class-yikes-inc-easy-mailchimp-api-manager.php +0 -71
- includes/api/class-yikes-inc-easy-mailchimp-api-profile.php +0 -46
- includes/class-yikes-inc-easy-mailchimp-extender.php +4 -0
- includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php +59 -17
- includes/third-party-integrations/visual-composer/visual-composer.php +10 -1
- languages/yikes-inc-easy-mailchimp-extender.pot +453 -695
- public/class-yikes-inc-easy-mailchimp-extender-public.php +0 -1
- public/classes/checkbox-integrations.php +88 -47
- public/classes/checkbox-integrations/class.registration_form-checkbox.php +0 -1
- public/classes/checkbox-integrations/class.woocommerce_checkout_form-checkbox.php +11 -18
- public/js/form-submission-helpers.js +41 -0
- public/js/form-submission-helpers.min.js +1 -1
- public/partials/ajax/class.public_ajax.php +26 -11
- public/partials/shortcodes/process/process_form_submission_ajax.php +7 -2
- public/partials/shortcodes/process_form_shortcode.php +23 -63
- public/partials/shortcodes/process_form_shortcode_depracated.php +0 -24
- readme.txt +1 -356
admin/class-yikes-inc-easy-mailchimp-extender-admin.php
CHANGED
@@ -51,8 +51,8 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
51 |
Yikes_Inc_Easy_MailChimp_Extender_Form_Interface $form_interface
|
52 |
) {
|
53 |
$this->yikes_inc_easy_mailchimp_extender = $yikes_inc_easy_mailchimp_extender;
|
54 |
-
$this->version
|
55 |
-
$this->form_interface
|
56 |
}
|
57 |
|
58 |
/**
|
@@ -62,43 +62,40 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
62 |
*/
|
63 |
public function hooks() {
|
64 |
|
65 |
-
// check for old plugin options and migrate if exist
|
66 |
add_action( 'admin_menu', array( $this, 'register_admin_pages' ), 11 );
|
67 |
|
68 |
-
// check for old plugin options and migrate if exist
|
69 |
add_action( 'admin_init', array( $this, 'check_for_old_yks_mc_options' ) );
|
70 |
|
71 |
// Ajax function to update new options...
|
72 |
add_action( 'wp_ajax_migrate_old_plugin_settings', array( $this, 'migrate_archived_options' ) );
|
73 |
|
74 |
-
// Ajax function to migrate our forms
|
75 |
add_action( 'wp_ajax_migrate_prevoious_forms', array( $this, 'migrate_previously_setup_forms' ) );
|
76 |
|
77 |
-
// fix menu icon spacing
|
78 |
add_action( 'admin_head', array( $this, 'fix_menu_icon_spacing' ) );
|
79 |
|
80 |
-
// register our plugin settings
|
81 |
add_action( 'admin_init', array( $this, 'yikes_easy_mc_settings_init' ) );
|
82 |
|
83 |
-
//
|
84 |
-
add_action( 'admin_init', array( $this, 'yikes_easy_mc_activation_redirect' ) );
|
85 |
-
|
86 |
-
// Include Third Party Extensions
|
87 |
new YIKES_MailChimp_ThirdParty_Integrations();
|
88 |
|
89 |
-
// Include our dashboard widget class
|
90 |
new YIKES_Inc_Easy_MailChimp_Dashboard_Widgets();
|
91 |
|
92 |
-
// Include our front end widget class
|
93 |
add_action( 'widgets_init', array( $this, 'register_optin_widget' ) );
|
94 |
|
95 |
-
// Include our ajax processing class
|
96 |
new YIKES_Inc_Easy_MailChimp_Process_Ajax();
|
97 |
|
98 |
-
// load up our helper class
|
99 |
add_action( 'admin_init', array( $this, 'yikes_mailchimp_load_helper_class' ) );
|
100 |
|
101 |
-
// process the subscriber count shortcode in form descriptions
|
102 |
add_action( 'yikes-mailchimp-form-description', array( $this, 'process_subscriber_count_shortcode_in_form_descriptions' ), 10, 2 );
|
103 |
|
104 |
/***********************/
|
@@ -178,22 +175,22 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
178 |
/*****************************************/
|
179 |
add_action( 'admin_head', array( $this, 'add_tinyMCE_buttons' ) );
|
180 |
|
181 |
-
// pass our lists data to tinyMCE button for use
|
182 |
foreach ( array( 'post.php', 'post-new.php' ) as $hook ) {
|
183 |
|
184 |
add_action( 'admin_enqueue_scripts', array( $this, 'tinymce_yikes_easy_mc' ) );
|
185 |
|
186 |
}
|
187 |
|
188 |
-
// display an admin notice for users on PHP < 5.3
|
189 |
if ( phpversion() < '5.3' ) {
|
190 |
add_action( "admin_notices", array( $this, 'display_php_warning' ), 999 );
|
191 |
}
|
192 |
|
193 |
-
// two week , dismissable notification - check the users plugin installation date
|
194 |
add_action( 'admin_init', array( $this, 'yikes_easy_mailchimp_check_installation_date' ) );
|
195 |
|
196 |
-
// dismissable notice admin side
|
197 |
add_action( 'admin_init', array( $this, 'yikes_easy_mailchimp_stop_bugging_me' ), 5 );
|
198 |
|
199 |
/**************************************************/
|
@@ -262,10 +259,10 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
262 |
/* Alter the color scheme based on the users selection */
|
263 |
add_action( 'admin_print_scripts', array( $this, 'alter_yikes_easy_mc_color_scheme' ) );
|
264 |
|
265 |
-
// Display our premium support page if we have add-ons
|
266 |
add_action( 'yikes-mailchimp-support-page', array( $this, 'display_support_page_content' ), 40 );
|
267 |
|
268 |
-
// ensure that the upgrade went smoothly, else we have to let the user know we need to upgrade the database
|
269 |
// after upgrading f rom 6.0.3.7 users need to upgrade the database as well
|
270 |
add_action( 'plugins_loaded', array( $this, 'check_yikes_mc_table_version' ) );
|
271 |
|
@@ -274,26 +271,26 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
274 |
|
275 |
}
|
276 |
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
public function easy_forms_plugin_action_links( $links ) {
|
283 |
$links[] = '<a href="'. esc_url( get_admin_url(null, 'admin.php?page=yikes-inc-easy-mailchimp-settings') ) .'">' . __( 'Settings', 'yikes-inc-easy-mailchimp-extender' ) . '</a>';
|
284 |
-
$links[] = '<a href="' . esc_url( 'http://www.yikesplugins.com?utm_source=plugins-page&utm_medium=plugin-row&utm_campaign=admin' ) . '" target="_blank">' . __( 'More plugins by YIKES, Inc.'
|
285 |
return $links;
|
286 |
}
|
287 |
|
288 |
/**
|
289 |
-
*
|
290 |
-
*
|
291 |
*
|
292 |
-
* @since
|
293 |
*
|
294 |
-
* @param
|
295 |
*
|
296 |
-
* @return
|
297 |
*/
|
298 |
public function yikes_easy_forms_admin_disclaimer( $footer_text ) {
|
299 |
$page = get_current_screen();
|
@@ -314,29 +311,29 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
314 |
* @return parsed tag content
|
315 |
*/
|
316 |
public function parse_mailchimp_default_tag( $default_tag ) {
|
317 |
-
if( ! $default_tag || $default_tag == '' ) {
|
318 |
return $default_tag;
|
319 |
}
|
320 |
global $post;
|
321 |
-
// page title
|
322 |
-
if( $default_tag == '{page_title}' ) {
|
323 |
$default_tag = get_the_title( $post->ID );
|
324 |
}
|
325 |
-
// page id
|
326 |
-
if( $default_tag == '{page_id}' ) {
|
327 |
$default_tag = $post->ID;
|
328 |
}
|
329 |
-
// page url
|
330 |
-
if( $default_tag == '{page_url}' ) {
|
331 |
$default_tag = get_permalink( $post->ID );
|
332 |
}
|
333 |
-
// blog name
|
334 |
-
if( $default_tag == '{blog_name}' ) {
|
335 |
$default_tag = get_bloginfo( 'name' );
|
336 |
}
|
337 |
-
// is user logged in
|
338 |
-
if( $default_tag == '{user_logged_in}' ) {
|
339 |
-
if( is_user_logged_in() ) {
|
340 |
$default_tag = 'Registered User';
|
341 |
} else {
|
342 |
$default_tag = 'Guest User';
|
@@ -353,17 +350,22 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
353 |
* is used to clear the data out of our php file.
|
354 |
*/
|
355 |
public function yikes_easy_mailchimp_clear_error_log() {
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
|
|
|
|
|
|
|
|
364 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=debug-settings&error-log-cleared=false' ) ) );
|
365 |
} else {
|
366 |
-
|
|
|
367 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=debug-settings&error-log-cleared=true' ) ) );
|
368 |
}
|
369 |
}
|
@@ -376,19 +378,19 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
376 |
* @return CSV export file
|
377 |
*/
|
378 |
public function yikes_easy_mailchimp_export_forms() {
|
379 |
-
// grab our nonce
|
380 |
$nonce = $_REQUEST['nonce'];
|
381 |
-
// grab the forms
|
382 |
$forms = isset( $_REQUEST['export_forms'] ) ? $_REQUEST['export_forms'] : array();
|
383 |
-
// validate nonce
|
384 |
-
if( ! wp_verify_nonce( $nonce, 'export-forms' ) ) {
|
385 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
386 |
}
|
387 |
|
388 |
-
// run the export function
|
389 |
-
// parameters: ( $table_name, $form_ids, $file_name )
|
390 |
Yikes_Inc_Easy_MailChimp_Export_Class::yikes_mailchimp_form_export('Yikes-Inc-Easy-MailChimp-Forms-Export', $forms );
|
391 |
-
// re-direct the user back to the page
|
392 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=import-export-forms' ) ) );
|
393 |
die();
|
394 |
}
|
@@ -402,15 +404,15 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
402 |
public function yikes_easy_mailchimp_export_plugin_settings() {
|
403 |
// grab our nonce
|
404 |
$nonce = $_REQUEST['nonce'];
|
405 |
-
// validate nonce
|
406 |
-
if( ! wp_verify_nonce( $nonce, 'export-settings' ) ) {
|
407 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
408 |
}
|
409 |
|
410 |
-
// run the export function
|
411 |
-
// parameters: ( $table_name, $form_ids, $file_name )
|
412 |
Yikes_Inc_Easy_MailChimp_Export_Class::yikes_mailchimp_settings_export( 'Yikes-Inc-Easy-MailChimp-Settings-Export' );
|
413 |
-
// re-direct the user back to the page
|
414 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=import-export-forms' ) ) );
|
415 |
die();
|
416 |
}
|
@@ -420,21 +422,21 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
420 |
* @since 6.0.0
|
421 |
*/
|
422 |
public function yikes_easy_mailchimp_import_forms() {
|
423 |
-
// grab our nonce
|
424 |
$nonce = $_REQUEST['nonce'];
|
425 |
-
// validate nonce
|
426 |
-
if( ! wp_verify_nonce( $nonce, 'import-forms' ) ) {
|
427 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
428 |
}
|
429 |
-
// include the export class
|
430 |
-
if( ! class_exists( 'Yikes_Inc_Easy_MailChimp_Import_Class' ) ) {
|
431 |
include_once( YIKES_MC_PATH . 'includes/import-export/yikes-easy-mailchimp-import.class.php' );
|
432 |
}
|
433 |
-
// run the import function
|
434 |
-
// parameters: ( $_FILES )
|
435 |
Yikes_Inc_Easy_MailChimp_Import_Class::yikes_mailchimp_import_forms( $_FILES );
|
436 |
$import_query_arg = Yikes_Inc_Easy_MailChimp_Import_Class::yikes_mailchimp_import_type( $_FILES );
|
437 |
-
// re-direct the user back to the page
|
438 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=import-export-forms&' . $import_query_arg . '=true' ) ) );
|
439 |
die();
|
440 |
}
|
@@ -445,8 +447,8 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
445 |
*/
|
446 |
public function yikes_easy_mailchimp_premium_support_request() {
|
447 |
|
448 |
-
if( isset( $_POST['action'] ) && $_POST['action'] != 'yikes-support-request' ) {
|
449 |
-
return __( 'We encountered an error. Please contact the YIKES Inc. support team.'
|
450 |
}
|
451 |
|
452 |
$email = isset( $_POST['user-email'] ) ? $_POST['user-email'] : '';
|
@@ -480,12 +482,12 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
480 |
'body' => $ticket_array
|
481 |
) );
|
482 |
|
483 |
-
// Catch the error
|
484 |
-
if( is_wp_error( $response ) ) {
|
485 |
wp_send_json_error( $response->getMessage() );
|
486 |
}
|
487 |
|
488 |
-
// Retrieve our body
|
489 |
$response_body = json_decode( wp_remote_retrieve_body( $response ) );
|
490 |
}
|
491 |
|
@@ -513,12 +515,12 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
513 |
* @since 6.0.0
|
514 |
**/
|
515 |
public function yikes_easy_mailchimp_dismiss_option_migrate() {
|
516 |
-
// delete the options and allow the user to manually
|
517 |
|
518 |
-
// Verify the NONCE is valid
|
519 |
-
check_admin_referer( 'yikes-mc-dismiss-migration'
|
520 |
|
521 |
-
// re-direct the user back to the page
|
522 |
wp_redirect( esc_url_raw( admin_url( 'index.php?yikes-mc-options-migration-dismissed="true"' ) ) );
|
523 |
die();
|
524 |
}
|
@@ -531,7 +533,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
531 |
* @since 6.0.0
|
532 |
*/
|
533 |
public function load_error_logging_class() {
|
534 |
-
if( get_option( 'yikes-mailchimp-debug-status'
|
535 |
// if error logging is enabled we should include our error logging class
|
536 |
/* Generate oure error logging table */
|
537 |
require_once YIKES_MC_PATH . '/includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php';
|
@@ -539,17 +541,18 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
539 |
}
|
540 |
}
|
541 |
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
|
|
548 |
public function yikes_easy_mailchimp_check_installation_date() {
|
549 |
|
550 |
-
// add a new option to store the plugin activation date/time
|
551 |
-
// @since v6.0.0
|
552 |
-
// this is used to notify the user that they should review after 2 weeks
|
553 |
if ( !get_option( 'yikes_easy_mailchimp_activation_date' ) ) {
|
554 |
add_option( 'yikes_easy_mailchimp_activation_date', strtotime( "now" ) );
|
555 |
}
|
@@ -573,7 +576,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
573 |
*/
|
574 |
public function yikes_easy_mailchimp_display_review_us_notice() {
|
575 |
/* Lets only display our admin notice on YT4WP pages to not annoy the hell out of people :) */
|
576 |
-
if ( in_array( get_current_screen()->base , array( 'dashboard'
|
577 |
|
578 |
// The URL of the page the user is currently on
|
579 |
$current_uri = isset( $_SERVER['REQUEST_URI'] ) && ! empty( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : false;
|
@@ -582,19 +585,19 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
582 |
$current_url = ( $current_uri !== false && $current_host !== false ) ? $current_protocol . $current_host . $current_uri : admin_url();
|
583 |
|
584 |
$plugin_name = '<strong>Easy Forms for MailChimp</strong>';
|
585 |
-
// Review URL - Change to the URL of your plugin on WordPress.org
|
586 |
$reviewurl = 'https://wordpress.org/support/view/plugin-reviews/yikes-inc-easy-mailchimp-extender';
|
587 |
$addons_url = esc_url( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-addons' ) );
|
588 |
$nobugurl = esc_url_raw( add_query_arg( 'yikes_easy_mc_icons_nobug', '1', $current_url ) );
|
589 |
|
590 |
-
// Make sure all of our variables have values
|
591 |
$reviewurl = ( ! empty( $reviewurl ) ) ? $reviewurl : '';
|
592 |
$addons_url = ( ! empty( $addons_url ) ) ? $addons_url : '';
|
593 |
$nobugurl = ( ! empty( $nobugurl ) ) ? $nobugurl : '';
|
594 |
|
595 |
$review_message = '<div id="yikes-mailchimp-logo"></div>';
|
596 |
$review_message .= sprintf(
|
597 |
-
__( 'It looks like you\'ve been using %1$s for 2 weeks now. We hope you\'re enjoying the features included with the free version. If so, please consider leaving us a review. Reviews only help to catch other users attention as well as provide us with feedback to grow and improve upon. If you\'re really enjoying the plugin, consider buying an add-on or developer license for some really awesome features and premium support.'
|
598 |
. '<span class="button-container"> <a href="%2$s" target="_blank" class="button-secondary"><span class="dashicons dashicons-star-filled"></span>'
|
599 |
. __( "Leave A Review" , 'yikes-inc-easy-mailchimp-extender' )
|
600 |
. '</a> <a href="%3$s" class="button-secondary"><span class="dashicons dashicons-upload"></span>'
|
@@ -602,7 +605,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
602 |
. '</a> <a href="%4$s" class="button-secondary"><span class="dashicons dashicons-no-alt"></span>'
|
603 |
. __( "Dismiss" , 'yikes-inc-easy-mailchimp-extender' )
|
604 |
. "</a> </span>",
|
605 |
-
|
606 |
?>
|
607 |
<div id="review-yikes-easy-mailchimp-notice">
|
608 |
<?php echo $review_message; ?>
|
@@ -611,7 +614,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
611 |
}
|
612 |
}
|
613 |
|
614 |
-
|
615 |
yikes_easy_mailchimp_stop_bugging_me()
|
616 |
Remove the Review us notification when user clicks 'Dismiss'
|
617 |
@since v3.1.1
|
@@ -622,109 +625,90 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
622 |
}
|
623 |
}
|
624 |
|
625 |
-
/* End Two Week
|
626 |
|
627 |
/* Display a warning users who are using PHP < 5.3 */
|
628 |
public function display_php_warning() {
|
629 |
-
$message = __( 'Easy Forms for MailChimp requires a minimum of PHP 5.3. The plugin will not function properly until you update. Please reach out to your host provider for assistance.'
|
630 |
echo "<div class='error'> <p><span class='dashicons dashicons-no-alt' style='color:rgb(231, 98, 98)'></span> $message</p></div>";
|
631 |
}
|
632 |
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
add_filter( 'mce_buttons', array( $this, 'yks_mc_add_tinymce_button' ) );
|
644 |
-
add_filter( 'mce_external_plugins', array( $this, 'yks_mc_add_tinymce_plugin' ) );
|
645 |
-
}
|
646 |
-
|
647 |
-
// Add the button key for address via JS
|
648 |
-
public function yks_mc_add_tinymce_button( $buttons ) {
|
649 |
-
array_push( $buttons, 'yks_mc_tinymce_button_key' );
|
650 |
-
// Print all buttons
|
651 |
-
return $buttons;
|
652 |
}
|
|
|
|
|
|
|
653 |
|
654 |
-
|
655 |
-
|
|
|
|
|
|
|
|
|
656 |
|
657 |
-
|
|
|
658 |
|
659 |
-
|
660 |
|
661 |
-
|
|
|
662 |
|
663 |
/**
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
);
|
683 |
-
}
|
684 |
-
} else {
|
685 |
-
$lists[0] = array(
|
686 |
-
'text' => __( 'Please Import Some MailChimp Lists' , 'yikes-inc-easy-mailchimp-extender' ),
|
687 |
-
'value' => '-'
|
688 |
);
|
689 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
690 |
|
691 |
/* Pass our form data to our JS file for use */
|
692 |
wp_localize_script( 'editor', 'localized_data', array(
|
693 |
-
'forms'
|
694 |
-
'button_title'
|
695 |
-
'popup_title'
|
696 |
-
'list_id_label'
|
697 |
-
'show_title_label'
|
698 |
-
'show_description_label'
|
699 |
-
'submit_button_text_label' => __( 'Custom Submit Button Text'
|
700 |
-
'submit_button_message'
|
701 |
-
'alert_translated'
|
702 |
) );
|
703 |
-
|
704 |
-
}
|
705 |
-
/* End TinyMCE Functions */
|
706 |
-
|
707 |
-
/*
|
708 |
-
* Redirect the user to our Welcome page
|
709 |
-
* when they activate the plug in, if they haven't been redirected before
|
710 |
-
*/
|
711 |
-
public function yikes_easy_mc_activation_redirect() {
|
712 |
-
if ( get_option( 'yikes_mailchimp_activation_redirect', 'true' ) == 'true' ) {
|
713 |
-
update_option( 'yikes_mailchimp_activation_redirect', 'false' );
|
714 |
-
/* If the user had this plugin activated prior to today, redirect to 'Whats New' */
|
715 |
-
if( get_option( 'yikes_easy_mailchimp_activation_date', strtotime( 'now' ) ) == strtotime( 'now' ) ) {
|
716 |
-
wp_redirect( esc_url( admin_url( 'admin.php?page=yikes-mailchimp-welcome' ) ) );
|
717 |
-
} else {
|
718 |
-
/* Else redirect the user over to the 'Getting Started' tab */
|
719 |
-
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-mailchimp-welcome§ion=whats-new' ) ) );
|
720 |
-
}
|
721 |
-
exit();
|
722 |
-
}
|
723 |
}
|
|
|
724 |
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
public function fix_menu_icon_spacing() {
|
729 |
?>
|
730 |
<style>
|
@@ -742,17 +726,19 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
742 |
*/
|
743 |
public function enqueue_styles() {
|
744 |
/**
|
745 |
-
* Enqueue our global dashboard styles
|
746 |
*/
|
747 |
wp_enqueue_style( 'yikes-inc-easy-mailchimp-extender-admin', plugin_dir_url( __FILE__ ) . 'css/yikes-inc-easy-mailchimp-extender-admin.min.css', array(), $this->version, 'all' );
|
|
|
748 |
/*
|
749 |
-
* Enqueue Add-ons styles
|
750 |
*/
|
751 |
if ( get_current_screen()->base == 'easy-forms_page_yikes-inc-easy-mailchimp-addons' ) {
|
752 |
wp_enqueue_style( 'yikes-inc-easy-mailchimp-extender-addons-styles', plugin_dir_url( __FILE__ ) . 'css/yikes-inc-easy-mailchimp-extender-addons.min.css', array(), $this->version, 'all' );
|
753 |
}
|
|
|
754 |
/*
|
755 |
-
* Enqueue Subscriber Profile Flags
|
756 |
*/
|
757 |
if ( get_current_screen()->base == 'admin_page_yikes-mailchimp-view-user' ) {
|
758 |
wp_enqueue_style( 'yikes-inc-easy-mailchimp-extender-subscriber-flags', plugin_dir_url( __FILE__ ) . 'css/flag-icon.min.css', array(), $this->version, 'all' );
|
@@ -764,7 +750,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
764 |
* @since 6.0.0
|
765 |
*/
|
766 |
public function enqueue_scripts() {
|
767 |
-
wp_enqueue_script( 'yikes-inc-easy-mailchimp-extender-admin-js', plugin_dir_url( __FILE__ ) . 'js/min/yikes-inc-easy-mailchimp-extender-admin.min.js', array( 'jquery'
|
768 |
|
769 |
$localized_data = array(
|
770 |
'admin_url' => esc_url_raw( admin_url() ),
|
@@ -774,7 +760,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
774 |
'preloader_url' => esc_url_raw( admin_url( '/images/wpspin_light.gif' ) ),
|
775 |
);
|
776 |
|
777 |
-
wp_localize_script( 'yikes-inc-easy-mailchimp-extender-admin-js'
|
778 |
|
779 |
// Enqueue required scripts for the form editor
|
780 |
$screen = get_current_screen();
|
@@ -787,8 +773,8 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
787 |
|
788 |
wp_enqueue_style( 'wp-color-picker' );
|
789 |
wp_enqueue_script( 'wp-color-picker' );
|
790 |
-
wp_enqueue_script( 'jquery.timepicker.js',YIKES_MC_URL . 'admin/js/jquery.timepicker.min.js'
|
791 |
-
wp_enqueue_script( 'edit-form-js'
|
792 |
|
793 |
$localized_data = array(
|
794 |
'ajax_url' => esc_url_raw( admin_url( 'admin-ajax.php' ) ),
|
@@ -818,7 +804,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
818 |
'edit_field_label_cancel_title' => __( 'Click to cancel editing. Your changes will not be saved.', 'yikes-inc-easy-mailchimp-extender' ),
|
819 |
'save_field_label_nonce' => wp_create_nonce( 'save_field_label_nonce' ),
|
820 |
);
|
821 |
-
wp_localize_script( 'edit-form-js'
|
822 |
}
|
823 |
|
824 |
/**
|
@@ -946,21 +932,6 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
946 |
*/
|
947 |
do_action( 'yikes-mailchimp-menu' );
|
948 |
|
949 |
-
|
950 |
-
/* Easy MailChimp Account Overview */
|
951 |
-
if ( get_option( 'yikes-mc-api-validation' ) == 'valid_api_key' ) {
|
952 |
-
/* Easy MailChimp Settings */
|
953 |
-
add_submenu_page(
|
954 |
-
'yikes-inc-easy-mailchimp',
|
955 |
-
__( 'Account', 'yikes-inc-easy-mailchimp-extender' ),
|
956 |
-
__( 'Account', 'yikes-inc-easy-mailchimp-extender' ),
|
957 |
-
apply_filters( 'yikes-mailchimp-user-role-access', 'manage_options' ),
|
958 |
-
'yikes-inc-easy-mailchimp-account-overview',
|
959 |
-
array( $this, 'generateAccountDetailsPage' )
|
960 |
-
);
|
961 |
-
}
|
962 |
-
|
963 |
-
|
964 |
/* Easy MailChimp Settings */
|
965 |
add_submenu_page(
|
966 |
'yikes-inc-easy-mailchimp',
|
@@ -1013,16 +984,6 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1013 |
array( $this, 'migrate_old_yks_mc_options' )
|
1014 |
);
|
1015 |
|
1016 |
-
/* Add Hidden Welcome Page */
|
1017 |
-
add_submenu_page(
|
1018 |
-
'options.php',
|
1019 |
-
__( 'Welcome', 'yikes-inc-easy-mailchimp-extender' ),
|
1020 |
-
__( 'Welcome', 'yikes-inc-easy-mailchimp-extender' ),
|
1021 |
-
apply_filters( 'yikes-mailchimp-user-role-access', 'manage_options' ),
|
1022 |
-
'yikes-mailchimp-welcome',
|
1023 |
-
array( $this, 'generateWelcomePage' )
|
1024 |
-
);
|
1025 |
-
|
1026 |
/* Add Hidden 'View List' Page */
|
1027 |
add_submenu_page(
|
1028 |
'options.php',
|
@@ -1072,15 +1033,6 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1072 |
require_once YIKES_MC_PATH . 'admin/partials/menu/manage-lists.php'; // include our lists page
|
1073 |
}
|
1074 |
|
1075 |
-
/**
|
1076 |
-
* Generate Us Easy MailChimp Account Details Page
|
1077 |
-
*
|
1078 |
-
* @since 1.0.0
|
1079 |
-
*/
|
1080 |
-
function generateAccountDetailsPage() {
|
1081 |
-
require_once YIKES_MC_PATH . 'admin/partials/menu/account-details.php'; // include our account details page
|
1082 |
-
}
|
1083 |
-
|
1084 |
/**
|
1085 |
* Generate Us Easy MailChimp Support Page
|
1086 |
*
|
@@ -1101,15 +1053,6 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1101 |
require_once YIKES_MC_PATH . 'admin/partials/edit-form.php'; // include our options page
|
1102 |
}
|
1103 |
|
1104 |
-
/**
|
1105 |
-
* Generate Us Easy MailChimp Welcome Page
|
1106 |
-
*
|
1107 |
-
* @since 1.0.0
|
1108 |
-
*/
|
1109 |
-
function generateWelcomePage() {
|
1110 |
-
require_once YIKES_MC_PATH . 'admin/partials/welcome-page/welcome.php'; // include our options page
|
1111 |
-
}
|
1112 |
-
|
1113 |
/**
|
1114 |
* Generate Us Easy MailChimp View List Page
|
1115 |
*
|
@@ -1189,9 +1132,9 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1189 |
|
1190 |
/* reCAPTCHA Settings */
|
1191 |
|
1192 |
-
register_setting( 'yikes_inc_easy_mc_recaptcha_settings_page'
|
1193 |
-
register_setting( 'yikes_inc_easy_mc_recaptcha_settings_page'
|
1194 |
-
register_setting( 'yikes_inc_easy_mc_recaptcha_settings_page'
|
1195 |
|
1196 |
/* Register reCAPTCHA Settings Section */
|
1197 |
add_settings_section(
|
@@ -1225,7 +1168,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1225 |
/* End reCAPTCHA Settings */
|
1226 |
|
1227 |
/* Debug Settings */
|
1228 |
-
register_setting( 'yikes_inc_easy_mc_debug_settings_page'
|
1229 |
|
1230 |
/* Register Debug Settings Section */
|
1231 |
add_settings_section(
|
@@ -1254,30 +1197,30 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1254 |
* @since complete re-write
|
1255 |
**/
|
1256 |
function yikes_mc_validate_api_key( $input ) {
|
1257 |
-
if( $input === '' ) {
|
1258 |
-
update_option( 'yikes-mc-api-validation'
|
1259 |
return '';
|
1260 |
}
|
1261 |
$api_key = strip_tags ( trim( $input ) );
|
1262 |
$dash_position = strpos( trim( $input ), '-' );
|
1263 |
-
if( $dash_position !== false ) {
|
1264 |
$manager = new Yikes_Inc_Easy_MailChimp_API_Manager( $api_key );
|
1265 |
} else {
|
1266 |
update_option( 'yikes-mc-api-invalid-key-response', __( 'Your API key appears to be invalid.', 'yikes-inc-easy-mailchimp-extender' ) );
|
1267 |
-
update_option( 'yikes-mc-api-validation'
|
1268 |
return $api_key;
|
1269 |
}
|
1270 |
|
1271 |
$response = $manager->get_account_handler()->get_account( false );
|
1272 |
-
if( ! is_wp_error( $response ) ) {
|
1273 |
-
update_option( 'yikes-mc-api-validation'
|
1274 |
// Clear the API key transient data
|
1275 |
$this->delete_yikes_mailchimp_transients();
|
1276 |
} else {
|
1277 |
$error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging();
|
1278 |
$error_logging->yikes_easy_mailchimp_write_to_error_log( $response->get_error_message() , __( "Connecting to MailChimp" , 'yikes-inc-easy-mailchimp-extender' ) , __( "Settings Page/General Settings" , 'yikes-inc-easy-mailchimp-extender' ) );
|
1279 |
-
update_option( 'yikes-mc-api-invalid-key-response'
|
1280 |
-
update_option( 'yikes-mc-api-validation'
|
1281 |
}
|
1282 |
// returned the api key
|
1283 |
return $api_key;
|
@@ -1325,7 +1268,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1325 |
$old_plugin_options = get_option( 'ykseme_storage' );
|
1326 |
// only perform options migrations if the site is not a multi-site setup
|
1327 |
if ( !is_multisite() ) {
|
1328 |
-
if( apply_filters( 'yikes_mc_old_options_filter'
|
1329 |
// display a notice to the user that they should 'migrate'
|
1330 |
// from the old plugin settings to the new ones
|
1331 |
add_action( 'admin_notices', array( $this , 'display_options_migrate_notice' ) , 11 );
|
@@ -1361,11 +1304,11 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1361 |
|
1362 |
// Confirm that the necessary forms table in the database exists, else bail
|
1363 |
global $wpdb;
|
1364 |
-
if( $wpdb->get_var("show tables like '" . $wpdb->prefix . "yikes_easy_mc_forms'") != $wpdb->prefix . "yikes_easy_mc_forms" ) {
|
1365 |
return;
|
1366 |
}
|
1367 |
|
1368 |
-
if( isset( $_GET['yikes-mc-options-migration-dismissed'] ) && $_GET['yikes-mc-options-migration-dismissed'] == 'true' ) {
|
1369 |
// Delete the options, start a-new! (this will disable the migration notice altogether)
|
1370 |
delete_option( 'widget_yikes_mc_widget' );
|
1371 |
delete_option( 'api_validation' );
|
@@ -1386,11 +1329,11 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1386 |
<!-- migrate button -->
|
1387 |
<form>
|
1388 |
<input type="hidden" name="yikes-mc-update-option-structure" value="yikes-mc-update-option-structure" />
|
1389 |
-
<a href="<?php echo wp_nonce_url( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-update' ) ), 'yikes-mc-migrate-options'
|
1390 |
</form>
|
1391 |
<!-- dismiss button -->
|
1392 |
<form>
|
1393 |
-
<a href="<?php echo wp_nonce_url( esc_url_raw( admin_url() ), 'yikes-mc-dismiss-migration'
|
1394 |
</form>
|
1395 |
</section>
|
1396 |
|
@@ -1418,7 +1361,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1418 |
// all options prefixed with 'yikes-mc-'
|
1419 |
$option_name = 'yikes-mc-'.$_POST['option_name'];
|
1420 |
$option_value = $_POST['option_value'];
|
1421 |
-
if( json_decode( $option_value ) ) {
|
1422 |
// decode our lists() array, and store it
|
1423 |
$opt_value = json_decode( $option_value, true );
|
1424 |
} else {
|
@@ -1435,7 +1378,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1435 |
$done = $_POST['done_import'];
|
1436 |
// Create some starter forms for the user
|
1437 |
// based on previously imported lists (to our old version)
|
1438 |
-
if( $option_name == 'yikes-mc-lists' ) {
|
1439 |
$option_value = $_POST['option_value'];
|
1440 |
$new_options = json_decode( stripslashes_deep( $option_value ) , true );
|
1441 |
|
@@ -1467,7 +1410,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1467 |
'custom_fields' => '',
|
1468 |
) );
|
1469 |
}
|
1470 |
-
if( $done == 'done' ) {
|
1471 |
wp_send_json( array( 'form_name' => $form_name, 'completed_import' => true ) );
|
1472 |
} else {
|
1473 |
wp_send_json( array( 'form_name' => $form_name, 'completed_import' => false ) );
|
@@ -1482,43 +1425,43 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1482 |
* @since v5.6 - complete re-write
|
1483 |
*/
|
1484 |
public function generate_options_pages_sidebar_menu() {
|
1485 |
-
if( isset( $_REQUEST['section'] ) ) {
|
1486 |
$selected = $_REQUEST['section'];
|
1487 |
}
|
1488 |
-
$installed_addons = get_option( 'yikes-easy-mc-active-addons'
|
1489 |
|
1490 |
// Make sure we don't have any duplicates by mistake
|
1491 |
$installed_addons = array_unique( $installed_addons );
|
1492 |
|
1493 |
// v1.2.6 of popups plugin had a bug that expanded the array indefinitely, so let's trim it in one place here.
|
1494 |
// This can be removed within a few weeks
|
1495 |
-
update_option( 'yikes-easy-mc-active-addons'
|
1496 |
|
1497 |
// sort our addons array alphabetically so they appear in similar orders across all sites
|
1498 |
asort( $installed_addons );
|
1499 |
?>
|
1500 |
-
<h3><span><?php _e( 'Additional Settings'
|
1501 |
<div class="inside">
|
1502 |
<ul id="settings-nav">
|
1503 |
-
<li><?php if( isset( $_REQUEST['section'] ) && $_REQUEST['section'] == 'general-settings' || !isset( $_REQUEST['section'] ) ) { ?><div class="option-menu-selected-arrow"></div><?php } ?><a href="<?php echo esc_url_raw( add_query_arg( array( 'section' => 'general-settings' ) , admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=general-settings' ) ) ); ?>"><?php _e( 'General Settings'
|
1504 |
-
<li><?php if( isset( $_REQUEST['section'] ) && $_REQUEST['section'] == 'integration-settings' ) { ?><div class="option-menu-selected-arrow"></div><?php } ?><a href="<?php echo esc_url_raw( add_query_arg( array( 'section' => 'integration-settings' ) , admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=integration-settings' ) ) ); ?>"><?php _e( 'Integration Settings'
|
1505 |
-
<li><?php if( isset( $_REQUEST['section'] ) && $_REQUEST['section'] == 'recaptcha-settings' ) { ?><div class="option-menu-selected-arrow"></div><?php } ?><a href="<?php echo esc_url_raw( add_query_arg( array( 'section' => 'recaptcha-settings' ) , admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=recaptcha-settings' ) ) ); ?>"><?php _e( 'ReCaptcha Settings'
|
1506 |
-
<li><?php if( isset( $_REQUEST['section'] ) && $_REQUEST['section'] == 'api-cache-settings' ) { ?><div class="option-menu-selected-arrow"></div><?php } ?><a href="<?php echo esc_url_raw( add_query_arg( array( 'section' => 'api-cache-settings' ) , admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=api-cache-settings' ) ) ); ?>"><?php _e( 'API Cache Settings'
|
1507 |
-
<li><?php if( isset( $_REQUEST['section'] ) && $_REQUEST['section'] == 'debug-settings' ) { ?><div class="option-menu-selected-arrow"></div><?php } ?><a href="<?php echo esc_url_raw( add_query_arg( array( 'section' => 'debug-settings' ) , admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=debug-settings' ) ) ); ?>"><?php _e( 'Debug Settings'
|
1508 |
-
<li><?php if( isset( $_REQUEST['section'] ) && $_REQUEST['section'] == 'import-export-forms' ) { ?><div class="option-menu-selected-arrow"></div><?php } ?><a href="<?php echo esc_url_raw( add_query_arg( array( 'section' => 'import-export-forms' ) , admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=import-export-forms' ) ) ); ?>"><?php _e( 'Import/Export'
|
1509 |
</ul>
|
1510 |
<?php
|
1511 |
// create our add-on settings pages
|
1512 |
-
if( !empty( $installed_addons ) ) {
|
1513 |
?>
|
1514 |
<hr class="add-on-settings-divider" />
|
1515 |
-
<strong><?php _e( 'Addon Settings'
|
1516 |
<ul id="addon-settings-nav">
|
1517 |
<?php
|
1518 |
foreach( $installed_addons as $addon_name ) {
|
1519 |
?>
|
1520 |
<li>
|
1521 |
-
<?php if( isset( $_REQUEST['section'] ) && $_REQUEST['section'] == $addon_name ) { ?><div class="option-menu-selected-arrow"></div><?php } ?><a href="<?php echo esc_url_raw( add_query_arg( array( 'section' => $addon_name, 'addon' => 'true' ) , admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion='.$addon_name ) ) ); ?>"><?php echo ucwords( str_replace( '-'
|
1522 |
<?php
|
1523 |
}
|
1524 |
?>
|
@@ -1546,7 +1489,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1546 |
)
|
1547 |
);
|
1548 |
?>
|
1549 |
-
<h3><?php _e( 'Create a New Signup Form'
|
1550 |
|
1551 |
<div class="inside">
|
1552 |
|
@@ -1555,15 +1498,15 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1555 |
<form id="import-list-to-site" method="POST" action="<?php echo $url; ?>">
|
1556 |
<input type="hidden" name="import-list-to-site" value="1" />
|
1557 |
<!-- Name your new form -->
|
1558 |
-
<label for="form-name"><strong><?php _e( 'Form Name'
|
1559 |
-
<input type="text" class="widefat input-field" placeholder="<?php _e( 'Form Name'
|
1560 |
</label>
|
1561 |
<!-- Name your new form -->
|
1562 |
-
<label for="form-description"><strong><?php _e( 'Form Description'
|
1563 |
-
<textarea class="widefat input-field form-description" placeholder="<?php _e( 'Form Description'
|
1564 |
</label>
|
1565 |
<!-- Associate this form with a list! -->
|
1566 |
-
<label for="associated-list"><strong><?php _e( 'Associated List'
|
1567 |
<select name="associated-list" id="associated-list" class=" input-field" <?php $this->is_user_mc_api_valid_form( true ); disabled( true, empty( $lists ) ); ?>>
|
1568 |
<?php
|
1569 |
if ( ! empty( $lists ) ) {
|
@@ -1573,7 +1516,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1573 |
<?php
|
1574 |
}
|
1575 |
} else {
|
1576 |
-
if( get_option( 'yikes-mc-api-validation'
|
1577 |
?>
|
1578 |
<option><?php echo __( "Please enter a valid API key." , 'yikes-inc-easy-mailchimp-extender' ); ?></option>
|
1579 |
<?php
|
@@ -1598,11 +1541,11 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1598 |
}
|
1599 |
}
|
1600 |
|
1601 |
-
if( isset( $lists ) && empty( $lists ) ) {
|
1602 |
-
if( get_option( 'yikes-mc-api-validation'
|
1603 |
?>
|
1604 |
<p class="description">
|
1605 |
-
<?php printf( __( 'Head over to <a href="http://www.MailChimp.com" title="%s">MailChimp</a> to create a new list.', 'yikes-inc-easy-mailchimp-extender' ) , __( 'Create a list'
|
1606 |
</p>
|
1607 |
<?php
|
1608 |
}
|
@@ -1610,12 +1553,12 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1610 |
?>
|
1611 |
</label>
|
1612 |
<?php
|
1613 |
-
if( $this->is_user_mc_api_valid_form( false ) ) {
|
1614 |
-
echo submit_button( __( 'Create', 'yikes-inc-easy-mailchimp-extender' ) , 'primary'
|
1615 |
} else {
|
1616 |
echo '<p class="description">' . __( "Please enter a valid MailChimp API key to get started." , 'yikes-inc-easy-mailchimp-extender' ) . '</p>';
|
1617 |
?>
|
1618 |
-
<a href="<?php echo esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings&settings-updated=true' ) ); ?>"><?php _e( 'general settings'
|
1619 |
<?php
|
1620 |
}
|
1621 |
?>
|
@@ -1623,10 +1566,10 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1623 |
|
1624 |
<!-- Clear API CACHE -->
|
1625 |
<?php
|
1626 |
-
if( isset( $lists ) && ! empty( $lists ) ) {
|
1627 |
if ( false !== get_transient( 'yikes-easy-mailchimp-list-data' ) ) { ?>
|
1628 |
-
<form action="<?php echo esc_url_raw( add_query_arg( array( 'action' => 'yikes-easy-mc-clear-transient-data'
|
1629 |
-
<input type="submit" class="button-secondary clear-mailchimp-api-cache" value="<?php _e( 'Refresh Lists'
|
1630 |
</form>
|
1631 |
<?php }
|
1632 |
}
|
@@ -1642,7 +1585,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1642 |
public function generate_page_redirect_dropdown( $redirect, $redirect_page, $custom_redirect_url ) {
|
1643 |
$post_types = get_post_types();
|
1644 |
?>
|
1645 |
-
<label id="redirect-user-to-selection-label" for="redirect-user-to-selection" class="<?php if( $redirect == '0' ) { echo 'yikes-easy-mc-hidden'; } ?>">
|
1646 |
<?php _e( "Select A Page or Post" , 'yikes-inc-easy-mailchimp-extender' ); ?>
|
1647 |
<select id="redirect-user-to-selection" name="redirect-user-to-selection" onchange="shouldWeDisplayCustomURL( this );return;">
|
1648 |
<?php
|
@@ -1655,14 +1598,14 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1655 |
* @param array | $excluded_post_types | The array of default excluded post types
|
1656 |
* @return array| $excluded_post_types | The array of user-defined excluded post types
|
1657 |
*/
|
1658 |
-
$excluded_post_types = array( 'attachment'
|
1659 |
$excluded_post_types = apply_filters( 'yikes-mailchimp-excluded-redirect-post-types', $excluded_post_types );
|
1660 |
|
1661 |
// loop over registered post types, and query!
|
1662 |
foreach( $post_types as $registered_post_type ) {
|
1663 |
|
1664 |
// exclude a few built in custom post types and any defined by the filter
|
1665 |
-
if( ! in_array( $registered_post_type, $excluded_post_types ) ) {
|
1666 |
|
1667 |
// Grab only the post IDs - in the past we've created timeout issues on some servers with lots of posts
|
1668 |
$wp_query_args = array(
|
@@ -1679,7 +1622,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1679 |
|
1680 |
if ( ! empty ( $post_ids ) ) {
|
1681 |
?>
|
1682 |
-
<optgroup label="<?php echo ucwords( str_replace( '_'
|
1683 |
<?php
|
1684 |
foreach( $post_ids as $post_id ) {
|
1685 |
?><option <?php selected( $redirect_page , $post_id ); ?> value="<?php echo $post_id; ?>"><?php echo get_the_title( $post_id ) ?></option><?php
|
@@ -1697,7 +1640,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1697 |
</optgroup>
|
1698 |
</select>
|
1699 |
|
1700 |
-
<label name="custom-redirect-url" class="custom_redirect_url_label" <?php if( ! isset( $redirect_page ) || $redirect_page != 'custom_url' ) { echo 'style="display:none;"'; } ?>>
|
1701 |
<?php _e( "Enter Custom URL" , 'yikes-inc-easy-mailchimp-extender' ); ?>
|
1702 |
<input type="text" class="widefat custom-redirect-url" name="custom-redirect-url" value="<?php echo $custom_redirect_url; ?>" />
|
1703 |
</label>
|
@@ -1715,11 +1658,11 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1715 |
public function generate_show_some_love_container() {
|
1716 |
// if no active add-ons are installed,
|
1717 |
// lets display our branding and add-on sidebar
|
1718 |
-
if( get_option( 'yikes-easy-mc-active-addons'
|
1719 |
|
1720 |
/* On Edit Forms Page Display Upsell to Customizer */
|
1721 |
$screen = get_current_screen();
|
1722 |
-
if( isset( $screen ) && $screen->base == 'admin_page_yikes-mailchimp-edit-form' ) {
|
1723 |
?>
|
1724 |
|
1725 |
<div class="postbox yikes-easy-mc-postbox show-some-love-container">
|
@@ -1733,11 +1676,11 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1733 |
<div class="postbox yikes-easy-mc-postbox show-some-love-container">
|
1734 |
|
1735 |
<!-- review us container -->
|
1736 |
-
<h3 data-alt-text="<?php _e( 'About YIKES, Inc.', 'yikes-inc-easy-mailchimp-extender' ); ?>"><?php _e( 'Show Us Some Love'
|
1737 |
<div id="review-yikes-easy-mc" class="inside">
|
1738 |
|
1739 |
<p>
|
1740 |
-
<?php _e( 'Leave a review'
|
1741 |
<p class="star-container">
|
1742 |
<a href="https://wordpress.org/support/view/plugin-reviews/yikes-inc-easy-mailchimp-extender" target="_blank">
|
1743 |
<b class="dashicons dashicons-star-filled"></b>
|
@@ -1749,16 +1692,16 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1749 |
</p>
|
1750 |
</p>
|
1751 |
|
1752 |
-
<?php _e( 'Tweet about it'
|
1753 |
<p class="sidebar-container">
|
1754 |
<a href="https://twitter.com/share" class="twitter-share-button" data-url="https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/" data-text="I'm using the Easy Forms for MailChimp plugin by @YikesInc to grow my mailing list - it's awesome! -" data-hashtags="MailChimp">Tweet</a>
|
1755 |
-
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
|
1756 |
</p>
|
1757 |
|
1758 |
-
<?php _e( 'Vote that the plugin works'
|
1759 |
<p class="sidebar-container">
|
1760 |
<a href="https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/" target="_blank">
|
1761 |
-
<?php _e( 'Vote for Compatibility'
|
1762 |
</a>
|
1763 |
</p>
|
1764 |
</div>
|
@@ -1779,10 +1722,10 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1779 |
<div class="postbox yikes-easy-mc-postbox">
|
1780 |
|
1781 |
<!-- review us container -->
|
1782 |
-
<h3><?php _e( 'Easy Forms for MailChimp Add-Ons'
|
1783 |
<div id="review-yikes-easy-mc" class="inside">
|
1784 |
<p><?php _e( "Check out available add-ons for some seriously enhanced features." , 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
1785 |
-
<p><a class="button-secondary" href="<?php echo esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-addons' ) ); ?>" title="<?php _e( 'View Add-Ons'
|
1786 |
</div>
|
1787 |
|
1788 |
</div>
|
@@ -1807,15 +1750,15 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1807 |
public function generate_form_editor( $form_fields, $list_id, $merge_variables, $interest_groups ) {
|
1808 |
|
1809 |
// if no list id, die!
|
1810 |
-
if( ! $list_id ) {
|
1811 |
wp_die( __( "We've encountered an error. No list ID was sent." , 'yikes-inc-easy-mailchimp-extender' ) );
|
1812 |
}
|
1813 |
|
1814 |
-
if( ! $merge_variables ) {
|
1815 |
wp_die( __( "We've encountered an error. Reload the page and try again. If the error persists, please reach out to support." , 'yikes-inc-easy-mailchimp-extender' ) );
|
1816 |
}
|
1817 |
|
1818 |
-
if( ! empty( $form_fields ) ) {
|
1819 |
|
1820 |
// find any fields that are assigned to this form, that don't exist in MailChimp
|
1821 |
// or else were going to run into issues when we submit the form
|
@@ -1860,13 +1803,13 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1860 |
<span class="dashicons dashicons-plus yikes-mc-expansion-toggle"></span>
|
1861 |
<span class="yikes-mc-expansion-section-field-label"> <?php echo stripslashes( $field['label'] ); ?> </span>
|
1862 |
<?php if ( $excluded_field ) { ?>
|
1863 |
-
<img src="<?php echo YIKES_MC_URL . 'includes/images/warning.svg'; ?>" class="field-doesnt-exist-notice" title="<?php _e( 'Field no longer exists.'
|
1864 |
<?php } ?>
|
1865 |
<input maxlength="45" type="text" class="yikes-mc-edit-field-label-input" value="<?php echo stripslashes( $field['label'] ); ?>" />
|
1866 |
-
<span class="dashicons dashicons-yes yikes-mc-save-field-label-edits-icon" title="<?php _e( 'Click to save changes.'
|
1867 |
-
<span class="dashicons dashicons-edit yikes-mc-edit-field-label-icon" title="<?php _e( 'Click to edit the label'
|
1868 |
<span class="yikes-mc-edit-field-label-message"></span>
|
1869 |
-
<span class="field-type-text"><small><?php echo __( 'type'
|
1870 |
</a>
|
1871 |
<!-- expansion section -->
|
1872 |
<div class="yikes-mc-settings-expansion-section">
|
@@ -1899,7 +1842,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1899 |
<tr valign="top">
|
1900 |
<td scope="row">
|
1901 |
<label for="merge-tag">
|
1902 |
-
<?php _e( 'Merge Tag'
|
1903 |
</label>
|
1904 |
</td>
|
1905 |
<td>
|
@@ -1923,7 +1866,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1923 |
<tr valign="top">
|
1924 |
<td scope="row">
|
1925 |
<label for="placeholder_<?php echo esc_attr( $field['merge'] ); ?>">
|
1926 |
-
<?php _e( 'Placeholder'
|
1927 |
</label>
|
1928 |
</td>
|
1929 |
<td>
|
@@ -1940,7 +1883,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1940 |
<tr valign="top">
|
1941 |
<td scope="row">
|
1942 |
<label for="placeholder_<?php echo esc_attr( $field['merge'] ); ?>">
|
1943 |
-
<?php _e( 'Placeholder'
|
1944 |
</label>
|
1945 |
</td>
|
1946 |
<td>
|
@@ -1964,17 +1907,17 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1964 |
<tr valign="top">
|
1965 |
<td scope="row">
|
1966 |
<label for="default_value_<?php echo esc_attr( $field['merge'] ); ?>">
|
1967 |
-
<?php _e( 'Default Value'
|
1968 |
</label>
|
1969 |
</td>
|
1970 |
<td>
|
1971 |
-
<input id="default_value_<?php echo esc_attr( $field['merge'] ); ?>" <?php if( $field['type'] != 'number' ) { ?> type="text" <?php } else { ?> type="number" <?php } ?> class="widefat" name="field[<?php echo $field['merge']; ?>][default]" <?php if( $field['type'] != 'url' ) { ?> value="<?php echo isset( $field['default'] ) ? stripslashes( wp_strip_all_tags( $field['default'] ) ) : ''; ?>" <?php } else { ?> value="<?php echo isset( $field['default'] ) ? stripslashes( wp_strip_all_tags( esc_url_raw( $field['default'] ) ) ) : ''; ?>" <?php } ?> />
|
1972 |
<p class="description"><small><?php _e( "Assign a default value to populate this field with on initial page load.", 'yikes-inc-easy-mailchimp-extender' );?></small></p>
|
1973 |
<?php
|
1974 |
switch( $field['type'] ) {
|
1975 |
case 'text':
|
1976 |
?>
|
1977 |
-
<p><small class="pre-defined-tag-link"><a href="#TB_inline?width=600&height=550&inlineId=pre-defined-tag-container" onclick="storeGlobalClicked( jQuery( this ) );" class="thickbox"><?php _e( 'View Pre-Defined Tags'
|
1978 |
<?php
|
1979 |
break;
|
1980 |
} ?>
|
@@ -1988,7 +1931,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1988 |
<tr valign="top">
|
1989 |
<td scope="row">
|
1990 |
<label for="placeholder">
|
1991 |
-
<?php _e( 'Default Selection'
|
1992 |
</label>
|
1993 |
</td>
|
1994 |
<td>
|
@@ -2018,7 +1961,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2018 |
<tr valign="top">
|
2019 |
<td scope="row">
|
2020 |
<label for="placeholder">
|
2021 |
-
<?php _e( 'Default Selection'
|
2022 |
</label>
|
2023 |
</td>
|
2024 |
<td>
|
@@ -2045,7 +1988,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2045 |
<tr valign="top">
|
2046 |
<td scope="row">
|
2047 |
<label for="description_<?php echo esc_attr( $field['merge'] ); ?>">
|
2048 |
-
<?php _e( 'Description'
|
2049 |
</label>
|
2050 |
</td>
|
2051 |
<td>
|
@@ -2057,7 +2000,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2057 |
<tr valign="top">
|
2058 |
<td scope="row">
|
2059 |
<label for="description_above_<?php echo esc_attr( $field['merge'] ); ?>">
|
2060 |
-
<?php _e( 'Description Above Field'
|
2061 |
</label>
|
2062 |
</td>
|
2063 |
<td>
|
@@ -2069,7 +2012,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2069 |
<tr valign="top">
|
2070 |
<td scope="row">
|
2071 |
<label for="classes_<?php echo esc_attr( $field['merge'] ); ?>">
|
2072 |
-
<?php _e( 'Additional Classes'
|
2073 |
</label>
|
2074 |
</td>
|
2075 |
<td>
|
@@ -2081,12 +2024,12 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2081 |
<tr valign="top" class="yikes-checkbox-container yikes-checkbox-container-first">
|
2082 |
<td scope="row">
|
2083 |
<label for="field-required-<?php echo esc_attr( $field['merge'] ); ?>">
|
2084 |
-
<?php _e( 'Field Required?'
|
2085 |
</label>
|
2086 |
</td>
|
2087 |
<td>
|
2088 |
<?php $checked = isset( $field['require'] ) ? $field['require'] : '0'; ?>
|
2089 |
-
<input id="field-required-<?php echo esc_attr( $field['merge'] ); ?>" type="checkbox" class="widefat" value="1" name="field[<?php echo $field['merge']; ?>][require]" <?php checked( $checked , 1 ); ?> <?php if( $field['merge'] == 'EMAIL' ) { ?> disabled="disabled" checked="checked" title="<?php echo __( 'Email is a required field.'
|
2090 |
<p class="description"><small><?php _e( "Require this field to be filled in before the form can be submitted.", 'yikes-inc-easy-mailchimp-extender' );?></small></p>
|
2091 |
</td>
|
2092 |
</tr>
|
@@ -2094,12 +2037,12 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2094 |
<tr valign="top" class="yikes-checkbox-container">
|
2095 |
<td scope="row">
|
2096 |
<label for="hide-field-<?php echo esc_attr( $field['merge'] ); ?>">
|
2097 |
-
<?php _e( 'Hide Field'
|
2098 |
</label>
|
2099 |
</td>
|
2100 |
<td>
|
2101 |
<?php $hide = isset( $field['hide'] ) ? $field['hide'] : '0'; ?>
|
2102 |
-
<input id="hide-field-<?php echo esc_attr( $field['merge'] ); ?>" type="checkbox" class="widefat" value="1" name="field[<?php echo $field['merge']; ?>][hide]" <?php checked( $hide , 1 ); ?> <?php if( $field['merge'] == 'EMAIL' ) { ?> disabled="disabled" title="<?php echo __( 'Cannot toggle email field visibility.'
|
2103 |
<p class="description"><small><?php _e( "Hide this field from being displayed on the front end.", 'yikes-inc-easy-mailchimp-extender' );?></small></p>
|
2104 |
</td>
|
2105 |
</tr>
|
@@ -2107,7 +2050,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2107 |
<tr valign="top" class="yikes-checkbox-container">
|
2108 |
<td scope="row">
|
2109 |
<label for="hide-label-<?php echo esc_attr( $field['merge'] ); ?>">
|
2110 |
-
<?php _e( 'Hide Label'
|
2111 |
</label>
|
2112 |
</td>
|
2113 |
<td>
|
@@ -2132,19 +2075,19 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2132 |
switch( $field['type'] ) {
|
2133 |
default:
|
2134 |
case 'birthday':
|
2135 |
-
$type = __( 'Date Format'
|
2136 |
$format = ( isset( $field['date_format'] ) ) ? $field['date_format'] : 'MM/DD';
|
2137 |
$format_name = 'date_format';
|
2138 |
break;
|
2139 |
|
2140 |
case 'date':
|
2141 |
-
$type = __( 'Date Format'
|
2142 |
$format = ( isset( $field['date_format'] ) ) ? $field['date_format'] : 'MM/DD/YYYY';
|
2143 |
$format_name = 'date_format';
|
2144 |
break;
|
2145 |
|
2146 |
case 'phone':
|
2147 |
-
$type = __( 'Phone Format'
|
2148 |
$format = isset( $field['phone_format'] ) && ! empty( $field['phone_format'] ) ? $field['phone_format'] : __( 'International', 'yikes-inc-easy-mailchimp-extender' );
|
2149 |
$format_name = 'phone_format';
|
2150 |
break;
|
@@ -2199,16 +2142,16 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2199 |
<!-- top -->
|
2200 |
<a href="#" class="expansion-section-title settings-sidebar">
|
2201 |
<span class="dashicons dashicons-plus yikes-mc-expansion-toggle"></span><?php echo stripslashes( $field['label'] ); ?>
|
2202 |
-
<?php if( in_array( $field['group_id'] , $excluded_fields ) ) { ?>
|
2203 |
-
<img src="<?php echo YIKES_MC_URL . 'includes/images/warning.svg'; ?>" class="field-no-longer-exists-warning" title="<?php _e( 'Field no longer exists.'
|
2204 |
<?php } ?>
|
2205 |
-
<span class="field-type-text"><small><?php echo __( 'type'
|
2206 |
</a>
|
2207 |
<!-- expansion section -->
|
2208 |
<div class="yikes-mc-settings-expansion-section">
|
2209 |
|
2210 |
<!-- check if this field exists in the available interest group array -->
|
2211 |
-
<?php if( in_array( $field['group_id'] , $excluded_fields ) ) { ?>
|
2212 |
<p class="yikes-mc-warning-message"><?php _e( "This field no longer exists in this list. Delete this field from the form to prevent issues on the front end." , 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
2213 |
<?php } ?>
|
2214 |
|
@@ -2231,12 +2174,12 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2231 |
<tr valign="top">
|
2232 |
<td scope="row">
|
2233 |
<label for="placeholder">
|
2234 |
-
<?php _e( 'Default Selection'
|
2235 |
</label>
|
2236 |
</td>
|
2237 |
<td>
|
2238 |
<?php
|
2239 |
-
if( $field['type'] != 'checkboxes' ) {
|
2240 |
if ( ! isset( $field['default_choice'] ) ) {
|
2241 |
$group_options = json_decode( stripslashes( $field['groups'] ), true );
|
2242 |
$field['default_choice'] = key( $group_options );
|
@@ -2275,7 +2218,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2275 |
type="<?php echo $field_type; ?>"
|
2276 |
name="<?php echo $field_name; ?>"
|
2277 |
value="<?php echo $id; ?>" <?php echo $checked; ?>>
|
2278 |
-
<?php echo stripslashes( str_replace( '\''
|
2279 |
</label>
|
2280 |
<?php
|
2281 |
} ?>
|
@@ -2291,7 +2234,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2291 |
<tr valign="top">
|
2292 |
<td scope="row">
|
2293 |
<label for="placeholder">
|
2294 |
-
<?php _e( 'Default Selection'
|
2295 |
</label>
|
2296 |
</td>
|
2297 |
<td>
|
@@ -2314,7 +2257,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2314 |
<tr valign="top">
|
2315 |
<td scope="row">
|
2316 |
<label for="description_<?php echo esc_attr( $field['group_id'] ); ?>">
|
2317 |
-
<?php _e( 'Description'
|
2318 |
</label>
|
2319 |
</td>
|
2320 |
<td>
|
@@ -2327,7 +2270,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2327 |
<tr valign="top">
|
2328 |
<td scope="row">
|
2329 |
<label for="description_above_<?php echo $field['group_id']; ?>">
|
2330 |
-
<?php _e( 'Description Above Field'
|
2331 |
</label>
|
2332 |
</td>
|
2333 |
<td>
|
@@ -2340,7 +2283,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2340 |
<tr valign="top">
|
2341 |
<td scope="row">
|
2342 |
<label for="classes_<?php echo esc_attr( $field['group_id'] ); ?>">
|
2343 |
-
<?php _e( 'Additional Classes'
|
2344 |
</label>
|
2345 |
</td>
|
2346 |
<td>
|
@@ -2352,7 +2295,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2352 |
<tr valign="top">
|
2353 |
<td scope="row">
|
2354 |
<label for="field-required-<?php echo esc_attr( $field['group_id'] ); ?>">
|
2355 |
-
<?php _e( 'Field Required?'
|
2356 |
</label>
|
2357 |
</td>
|
2358 |
<td>
|
@@ -2365,7 +2308,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2365 |
<tr valign="top">
|
2366 |
<td scope="row">
|
2367 |
<label for="hide-field-<?php echo esc_attr( $field['group_id'] ); ?>">
|
2368 |
-
<?php _e( 'Hide Field'
|
2369 |
</label>
|
2370 |
</td>
|
2371 |
<td>
|
@@ -2378,7 +2321,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2378 |
<tr valign="top">
|
2379 |
<td scope="row">
|
2380 |
<label for="hide-label-<?php echo esc_attr( $field['group_id'] ); ?>">
|
2381 |
-
<?php _e( 'Hide Label'
|
2382 |
</label>
|
2383 |
</td>
|
2384 |
<td>
|
@@ -2409,38 +2352,38 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2409 |
}
|
2410 |
} else {
|
2411 |
?>
|
2412 |
-
<h4 class="no-fields-assigned-notice non-draggable-yikes"><em><?php _e( 'No fields are assigned to this form. Select fields from the right hand column to add to this form.'
|
2413 |
<?php
|
2414 |
}
|
2415 |
/* Pre Defined Merge Tag Container - Always rendered so the modal appears and links are clickable on initial page load */
|
2416 |
add_thickbox();
|
2417 |
// enqueue jquery qtip for our tooltip
|
2418 |
-
wp_enqueue_script( 'jquery-qtip-tooltip'
|
2419 |
-
wp_enqueue_style( 'jquery-qtip-style'
|
2420 |
$available_tags = array(
|
2421 |
array(
|
2422 |
'tag' => '{page_title}',
|
2423 |
-
'description' => '<h4 class="tooltip-title">' . __( 'Page Title', 'yikes-inc-easy-mailchimp-extender' ) . ' | <small>{page_title}</small></h4><hr />' . __( 'Pre-populate the field with the current page or post title that the user is on when opting in to your mailing list.'
|
2424 |
'title' => __( 'Page Title', 'yikes-inc-easy-mailchimp-extender' )
|
2425 |
),
|
2426 |
array(
|
2427 |
'tag' => '{page_id}',
|
2428 |
-
'description' => '<h4 class="tooltip-title">' . __( 'Page ID', 'yikes-inc-easy-mailchimp-extender' ) . ' | <small>{page_id}</small></h4><hr />' . __( 'Pre-populate the field with the current page or post ID that the user is on when opting in to your mailing list.'
|
2429 |
'title' => __( 'Page ID', 'yikes-inc-easy-mailchimp-extender' )
|
2430 |
),
|
2431 |
array(
|
2432 |
'tag' => '{page_url}',
|
2433 |
-
'description' => '<h4 class="tooltip-title">' . __( 'Page URL', 'yikes-inc-easy-mailchimp-extender' ) . ' | <small>{page_url}</small></h4><hr />' . __( 'Pre-populate the field with the current page URL that the user is on when opting in to your mailing list.'
|
2434 |
'title' => __( 'Page URL', 'yikes-inc-easy-mailchimp-extender' )
|
2435 |
),
|
2436 |
array(
|
2437 |
'tag' => '{blog_name}',
|
2438 |
-
'description' => '<h4 class="tooltip-title">' . __( 'Blog Name', 'yikes-inc-easy-mailchimp-extender' ) . ' | <small>{blog_name}</small></h4><hr />' . __( 'Pre-populate the field with the current blog name that the user is on when opting in to your mailing list. This is especially helpful for multi-site networks.'
|
2439 |
'title' => __( 'Blog Name', 'yikes-inc-easy-mailchimp-extender' )
|
2440 |
),
|
2441 |
array(
|
2442 |
'tag' => '{user_logged_in}',
|
2443 |
-
'description' => '<h4 class="tooltip-title">' . __( 'User Logged In', 'yikes-inc-easy-mailchimp-extender' ) . ' | <small>{user_logged_in}</small></h4><hr />' . __( 'Detects if a user is logged in and pre-populates the field with an appropriate value.'
|
2444 |
'title' => __( 'User Logged In', 'yikes-inc-easy-mailchimp-extender' )
|
2445 |
),
|
2446 |
);
|
@@ -2468,10 +2411,10 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2468 |
<div id="pre-defined-tag-container">
|
2469 |
<input type="hidden" value="" class="clicked-input">
|
2470 |
<div id="pre-defined-tag-interior-container">
|
2471 |
-
<h3><?php _e( 'Pre Defined Tags'
|
2472 |
-
<p class="description"><?php _e( 'You can use any of the following tags to populate a MailChimp text field with dynamic content. This can be used to determine which page the user signed up on, if the user was logged in and more.'
|
2473 |
<ul>
|
2474 |
-
<?php foreach( apply_filters( 'yikes-mailchimp-custom-default-value-tags'
|
2475 |
<li class="tooltop-tag">
|
2476 |
<!-- link/tag -->
|
2477 |
<a href="#" onclick="populateDefaultValue( '<?php echo $tag['tag']; ?>' );return false;" data-attr-tag="<?php echo $tag['tag']; ?>" title="<?php echo $tag['title']; ?>"><?php echo $tag['title']; ?></a>
|
@@ -2614,7 +2557,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2614 |
*/
|
2615 |
public function yikes_easy_mailchimp_create_form() {
|
2616 |
$nonce = $_REQUEST['nonce'];
|
2617 |
-
if( ! wp_verify_nonce( $nonce, 'create_mailchimp_form' ) ) {
|
2618 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) );
|
2619 |
}
|
2620 |
|
@@ -2649,7 +2592,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2649 |
$nonce = $_REQUEST['nonce'];
|
2650 |
$post_id_to_delete = $_REQUEST['mailchimp-form'];
|
2651 |
// verify our nonce
|
2652 |
-
if( ! wp_verify_nonce( $nonce, 'delete-mailchimp-form-'.$post_id_to_delete ) ) {
|
2653 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
2654 |
}
|
2655 |
|
@@ -2669,7 +2612,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2669 |
$nonce = $_REQUEST['nonce'];
|
2670 |
$post_id_to_clone = $_REQUEST['mailchimp-form'];
|
2671 |
// verify our nonce
|
2672 |
-
if( ! wp_verify_nonce( $nonce, 'duplicate-mailchimp-form-'.$post_id_to_clone ) ) {
|
2673 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
2674 |
}
|
2675 |
|
@@ -2702,7 +2645,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2702 |
$nonce = $_REQUEST['nonce'];
|
2703 |
$form_id_to_reset = $_REQUEST['mailchimp-form'];
|
2704 |
// verify our nonce
|
2705 |
-
if( ! wp_verify_nonce( $nonce, 'reset-stats-mailchimp-form-'.$form_id_to_reset ) ) {
|
2706 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
2707 |
}
|
2708 |
|
@@ -2783,6 +2726,8 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2783 |
'update-link' => trim( $_POST['yikes-easy-mc-user-update-link'] ) ? trim( stripslashes( $_POST['yikes-easy-mc-user-update-link'] ) ) : '',
|
2784 |
'email-subject' => trim( $_POST['yikes-easy-mc-user-email-subject'] ) ? trim( stripslashes( $_POST['yikes-easy-mc-user-email-subject'] ) ) : '',
|
2785 |
'email-body' => trim( $_POST['yikes-easy-mc-user-email-body'] ) ? trim( stripslashes( $_POST['yikes-easy-mc-user-email-body'] ) ) : '',
|
|
|
|
|
2786 |
);
|
2787 |
|
2788 |
// Setup the new form settings array
|
@@ -2875,7 +2820,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2875 |
$email_id = $_REQUEST['email_id'];
|
2876 |
|
2877 |
// verify our nonce
|
2878 |
-
if( ! wp_verify_nonce( $nonce, 'unsubscribe-user-' . $email_id ) ) {
|
2879 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
2880 |
}
|
2881 |
|
@@ -2897,11 +2842,11 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2897 |
// grab our nonnce
|
2898 |
$nonce = $_REQUEST['nonce'];
|
2899 |
// validate nonce
|
2900 |
-
if( !wp_verify_nonce( $nonce, 'create_error_log' ) ) {
|
2901 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
2902 |
}
|
2903 |
// setup the path to the error log
|
2904 |
-
$error_log = fopen( plugin_dir_path( __FILE__ ) . '../includes/error_log/yikes-easy-mailchimp-error-log.php'
|
2905 |
try {
|
2906 |
// create the file
|
2907 |
fwrite( $error_log , '' );
|
@@ -2921,23 +2866,23 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2921 |
|
2922 |
// verify our nonce
|
2923 |
$nonce = $_REQUEST['nonce'];
|
2924 |
-
if( ! wp_verify_nonce( $nonce, 'clear-mc-transient-data' ) ) {
|
2925 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
2926 |
}
|
2927 |
|
2928 |
$this->delete_yikes_mailchimp_transients();
|
2929 |
|
2930 |
-
// if the request came from the settings page, redirect to the settings page
|
2931 |
$referer = wp_get_referer();
|
2932 |
if ( $referer && ( strpos( $referer, 'yikes-inc-easy-mailchimp-settings' ) > 0 ) ) {
|
2933 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=api-cache-settings&transient-cleared=true' ) ) );
|
2934 |
} elseif ( isset( $_REQUEST['page'] ) && $_REQUEST['page'] === 'yikes-mailchimp-edit-form' && isset( $_REQUEST['id'] ) && ! empty( $_REQUEST['id'] ) ) {
|
2935 |
|
2936 |
-
// else check if we were editing a form
|
2937 |
$id = filter_var( $_REQUEST['id'], FILTER_SANITIZE_NUMBER_INT );
|
2938 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-mailchimp-edit-form&id=' . $id ) ) );
|
2939 |
} else {
|
2940 |
-
// else redirect to the manage forms page
|
2941 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp&transient-cleared=true' ) ) );
|
2942 |
}
|
2943 |
|
@@ -2945,16 +2890,17 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2945 |
}
|
2946 |
|
2947 |
/**
|
2948 |
-
|
2949 |
-
|
2950 |
-
|
2951 |
-
|
2952 |
-
|
2953 |
-
|
|
|
2954 |
public function get_mailchimp_list_ids_on_account() {
|
2955 |
$api_key = yikes_get_mc_api_key();
|
2956 |
if ( ! $api_key ) {
|
2957 |
-
// if no api key is set/site is not connected, return an empty array
|
2958 |
return array();
|
2959 |
}
|
2960 |
|
@@ -2970,25 +2916,26 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
2970 |
return $lists;
|
2971 |
}
|
2972 |
|
2973 |
-
|
2974 |
-
|
2975 |
-
|
2976 |
-
|
|
|
2977 |
public function yikes_mailchimp_load_helper_class() {
|
2978 |
-
// check to see if it's already loaded up
|
2979 |
-
if( !class_exists( 'Yikes_Inc_Easy_Mailchimp_Forms_Helper' ) ) {
|
2980 |
// Include our main helper class file
|
2981 |
include_once( YIKES_MC_PATH . 'admin/partials/helpers/init.php' );
|
2982 |
}
|
2983 |
}
|
2984 |
|
2985 |
-
|
2986 |
-
|
2987 |
-
|
2988 |
-
|
2989 |
-
|
2990 |
-
|
2991 |
-
|
2992 |
public function alter_yikes_easy_mc_color_scheme() {
|
2993 |
// get the current set color scheme for the logged in user
|
2994 |
$current_color_scheme = get_user_option( 'admin_color' );
|
@@ -3034,13 +2981,13 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
3034 |
</style>
|
3035 |
<?php
|
3036 |
$override_admin_styles = ob_get_clean();
|
3037 |
-
// add our inline styles
|
3038 |
echo $override_admin_styles;
|
3039 |
}
|
3040 |
|
3041 |
/**
|
3042 |
-
|
3043 |
-
|
3044 |
public function display_support_page_content() {
|
3045 |
|
3046 |
$addons = get_option( 'yikes-easy-mc-active-addons', array() );
|
@@ -3048,21 +2995,22 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
3048 |
// If we have premium add-ons...
|
3049 |
if ( ! empty( $addons ) ) {
|
3050 |
|
3051 |
-
// Add our premium support partial
|
3052 |
include_once( YIKES_MC_PATH . 'admin/partials/helpers/premium-support.php' );
|
3053 |
} else {
|
3054 |
|
3055 |
-
// Otherwise add our free support partial
|
3056 |
include_once( YIKES_MC_PATH . 'admin/partials/helpers/free-support.php' );
|
3057 |
}
|
3058 |
}
|
3059 |
|
3060 |
/**
|
3061 |
-
|
3062 |
-
|
3063 |
-
|
|
|
3064 |
public function check_yikes_mc_table_version() {
|
3065 |
-
if( get_option( 'yikes_mc_database_version', '0.00' ) < '1.0' ) {
|
3066 |
require_once YIKES_MC_PATH . 'includes/class-yikes-inc-easy-mailchimp-extender-activator.php';
|
3067 |
global $wpdb;
|
3068 |
Yikes_Inc_Easy_Mailchimp_Extender_Activator::_activate_yikes_easy_mailchimp( $wpdb );
|
@@ -3071,30 +3019,32 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
3071 |
}
|
3072 |
}
|
3073 |
|
3074 |
-
|
3075 |
-
|
3076 |
-
|
3077 |
-
|
|
|
3078 |
public function process_subscriber_count_shortcode_in_form_descriptions( $form_description, $form_id ) {
|
3079 |
$form_description = str_replace( '[yikes-mailchimp-subscriber-count]', do_shortcode( '[yikes-mailchimp-subscriber-count form="' . $form_id . '"]' ), $form_description );
|
3080 |
return $form_description;
|
3081 |
}
|
3082 |
|
3083 |
-
|
3084 |
-
|
3085 |
-
|
3086 |
-
|
|
|
3087 |
public function generate_edit_forms_upsell_ad() {
|
3088 |
-
|
3089 |
-
|
3090 |
-
|
3091 |
-
|
3092 |
-
|
3093 |
-
|
3094 |
-
|
3095 |
-
|
3096 |
-
|
3097 |
-
|
3098 |
}
|
3099 |
|
3100 |
/***
|
@@ -3105,22 +3055,22 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
3105 |
*/
|
3106 |
public function delete_yikes_mailchimp_transients() {
|
3107 |
|
3108 |
-
|
3109 |
-
|
3110 |
-
|
3111 |
-
|
3112 |
-
|
3113 |
-
|
3114 |
-
|
3115 |
-
|
3116 |
-
|
3117 |
-
|
3118 |
-
|
3119 |
-
|
3120 |
-
|
3121 |
-
|
3122 |
-
|
3123 |
-
|
3124 |
|
3125 |
/**
|
3126 |
* Perform a DB version check to see if we need to migrate our forms.
|
51 |
Yikes_Inc_Easy_MailChimp_Extender_Form_Interface $form_interface
|
52 |
) {
|
53 |
$this->yikes_inc_easy_mailchimp_extender = $yikes_inc_easy_mailchimp_extender;
|
54 |
+
$this->version = $version;
|
55 |
+
$this->form_interface = $form_interface;
|
56 |
}
|
57 |
|
58 |
/**
|
62 |
*/
|
63 |
public function hooks() {
|
64 |
|
65 |
+
// check for old plugin options and migrate if exist.
|
66 |
add_action( 'admin_menu', array( $this, 'register_admin_pages' ), 11 );
|
67 |
|
68 |
+
// check for old plugin options and migrate if exist.
|
69 |
add_action( 'admin_init', array( $this, 'check_for_old_yks_mc_options' ) );
|
70 |
|
71 |
// Ajax function to update new options...
|
72 |
add_action( 'wp_ajax_migrate_old_plugin_settings', array( $this, 'migrate_archived_options' ) );
|
73 |
|
74 |
+
// Ajax function to migrate our forms.
|
75 |
add_action( 'wp_ajax_migrate_prevoious_forms', array( $this, 'migrate_previously_setup_forms' ) );
|
76 |
|
77 |
+
// fix menu icon spacing.
|
78 |
add_action( 'admin_head', array( $this, 'fix_menu_icon_spacing' ) );
|
79 |
|
80 |
+
// register our plugin settings.
|
81 |
add_action( 'admin_init', array( $this, 'yikes_easy_mc_settings_init' ) );
|
82 |
|
83 |
+
// Include Third Party Extensions.
|
|
|
|
|
|
|
84 |
new YIKES_MailChimp_ThirdParty_Integrations();
|
85 |
|
86 |
+
// Include our dashboard widget class.
|
87 |
new YIKES_Inc_Easy_MailChimp_Dashboard_Widgets();
|
88 |
|
89 |
+
// Include our front end widget class.
|
90 |
add_action( 'widgets_init', array( $this, 'register_optin_widget' ) );
|
91 |
|
92 |
+
// Include our ajax processing class.
|
93 |
new YIKES_Inc_Easy_MailChimp_Process_Ajax();
|
94 |
|
95 |
+
// load up our helper class.
|
96 |
add_action( 'admin_init', array( $this, 'yikes_mailchimp_load_helper_class' ) );
|
97 |
|
98 |
+
// process the subscriber count shortcode in form descriptions.
|
99 |
add_action( 'yikes-mailchimp-form-description', array( $this, 'process_subscriber_count_shortcode_in_form_descriptions' ), 10, 2 );
|
100 |
|
101 |
/***********************/
|
175 |
/*****************************************/
|
176 |
add_action( 'admin_head', array( $this, 'add_tinyMCE_buttons' ) );
|
177 |
|
178 |
+
// pass our lists data to tinyMCE button for use.
|
179 |
foreach ( array( 'post.php', 'post-new.php' ) as $hook ) {
|
180 |
|
181 |
add_action( 'admin_enqueue_scripts', array( $this, 'tinymce_yikes_easy_mc' ) );
|
182 |
|
183 |
}
|
184 |
|
185 |
+
// display an admin notice for users on PHP < 5.3.
|
186 |
if ( phpversion() < '5.3' ) {
|
187 |
add_action( "admin_notices", array( $this, 'display_php_warning' ), 999 );
|
188 |
}
|
189 |
|
190 |
+
// two week , dismissable notification - check the users plugin installation date.
|
191 |
add_action( 'admin_init', array( $this, 'yikes_easy_mailchimp_check_installation_date' ) );
|
192 |
|
193 |
+
// dismissable notice admin side.
|
194 |
add_action( 'admin_init', array( $this, 'yikes_easy_mailchimp_stop_bugging_me' ), 5 );
|
195 |
|
196 |
/**************************************************/
|
259 |
/* Alter the color scheme based on the users selection */
|
260 |
add_action( 'admin_print_scripts', array( $this, 'alter_yikes_easy_mc_color_scheme' ) );
|
261 |
|
262 |
+
// Display our premium support page if we have add-ons.
|
263 |
add_action( 'yikes-mailchimp-support-page', array( $this, 'display_support_page_content' ), 40 );
|
264 |
|
265 |
+
// ensure that the upgrade went smoothly, else we have to let the user know we need to upgrade the database.
|
266 |
// after upgrading f rom 6.0.3.7 users need to upgrade the database as well
|
267 |
add_action( 'plugins_loaded', array( $this, 'check_yikes_mc_table_version' ) );
|
268 |
|
271 |
|
272 |
}
|
273 |
|
274 |
+
/**
|
275 |
+
* Add custom action links on plugins.php
|
276 |
+
* @ param array $links Pre-existing plugin action links
|
277 |
+
* @ return array $links New array of plugin actions
|
278 |
+
*/
|
279 |
public function easy_forms_plugin_action_links( $links ) {
|
280 |
$links[] = '<a href="'. esc_url( get_admin_url(null, 'admin.php?page=yikes-inc-easy-mailchimp-settings') ) .'">' . __( 'Settings', 'yikes-inc-easy-mailchimp-extender' ) . '</a>';
|
281 |
+
$links[] = '<a href="' . esc_url( 'http://www.yikesplugins.com?utm_source=plugins-page&utm_medium=plugin-row&utm_campaign=admin' ) . '" target="_blank">' . __( 'More plugins by YIKES, Inc.', 'yikes-inc-easy-mailchimp-extender' ) . '</a>';
|
282 |
return $links;
|
283 |
}
|
284 |
|
285 |
/**
|
286 |
+
* Add a disclaimer to the admin footer for all YIKES pages to ensure that users understand there is no correlation between this plugin and MailChimp.
|
287 |
+
* This plugin simply provides the service of linking MailChimp with your site.
|
288 |
*
|
289 |
+
* @since 6.0
|
290 |
*
|
291 |
+
* @param string $footer_text The existing footer text.
|
292 |
*
|
293 |
+
* @return string
|
294 |
*/
|
295 |
public function yikes_easy_forms_admin_disclaimer( $footer_text ) {
|
296 |
$page = get_current_screen();
|
311 |
* @return parsed tag content
|
312 |
*/
|
313 |
public function parse_mailchimp_default_tag( $default_tag ) {
|
314 |
+
if ( ! $default_tag || $default_tag == '' ) {
|
315 |
return $default_tag;
|
316 |
}
|
317 |
global $post;
|
318 |
+
// page title.
|
319 |
+
if ( $default_tag == '{page_title}' ) {
|
320 |
$default_tag = get_the_title( $post->ID );
|
321 |
}
|
322 |
+
// page id.
|
323 |
+
if ( $default_tag == '{page_id}' ) {
|
324 |
$default_tag = $post->ID;
|
325 |
}
|
326 |
+
// page url.
|
327 |
+
if ( $default_tag == '{page_url}' ) {
|
328 |
$default_tag = get_permalink( $post->ID );
|
329 |
}
|
330 |
+
// blog name.
|
331 |
+
if ( $default_tag == '{blog_name}' ) {
|
332 |
$default_tag = get_bloginfo( 'name' );
|
333 |
}
|
334 |
+
// is user logged in.
|
335 |
+
if ( $default_tag == '{user_logged_in}' ) {
|
336 |
+
if ( is_user_logged_in() ) {
|
337 |
$default_tag = 'Registered User';
|
338 |
} else {
|
339 |
$default_tag = 'Guest User';
|
350 |
* is used to clear the data out of our php file.
|
351 |
*/
|
352 |
public function yikes_easy_mailchimp_clear_error_log() {
|
353 |
+
|
354 |
+
// Get our error log class.
|
355 |
+
$error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging();
|
356 |
+
|
357 |
+
// file put contents $returned error + other data.
|
358 |
+
if ( file_exists( $error_logging->error_log_file_path ) ) {
|
359 |
+
|
360 |
+
$clear_log = file_put_contents( $error_logging->error_log_file_path, '' );
|
361 |
+
|
362 |
+
if ( $clear_log === false ) {
|
363 |
+
|
364 |
+
// redirect the user to the manage forms page, display error message.
|
365 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=debug-settings&error-log-cleared=false' ) ) );
|
366 |
} else {
|
367 |
+
|
368 |
+
// redirect the user to the manage forms page, display confirmation.
|
369 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=debug-settings&error-log-cleared=true' ) ) );
|
370 |
}
|
371 |
}
|
378 |
* @return CSV export file
|
379 |
*/
|
380 |
public function yikes_easy_mailchimp_export_forms() {
|
381 |
+
// grab our nonce.
|
382 |
$nonce = $_REQUEST['nonce'];
|
383 |
+
// grab the forms.
|
384 |
$forms = isset( $_REQUEST['export_forms'] ) ? $_REQUEST['export_forms'] : array();
|
385 |
+
// validate nonce.
|
386 |
+
if ( ! wp_verify_nonce( $nonce, 'export-forms' ) ) {
|
387 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
388 |
}
|
389 |
|
390 |
+
// run the export function.
|
391 |
+
// parameters: ( $table_name, $form_ids, $file_name ).
|
392 |
Yikes_Inc_Easy_MailChimp_Export_Class::yikes_mailchimp_form_export('Yikes-Inc-Easy-MailChimp-Forms-Export', $forms );
|
393 |
+
// re-direct the user back to the page.
|
394 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=import-export-forms' ) ) );
|
395 |
die();
|
396 |
}
|
404 |
public function yikes_easy_mailchimp_export_plugin_settings() {
|
405 |
// grab our nonce
|
406 |
$nonce = $_REQUEST['nonce'];
|
407 |
+
// validate nonce.
|
408 |
+
if ( ! wp_verify_nonce( $nonce, 'export-settings' ) ) {
|
409 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
410 |
}
|
411 |
|
412 |
+
// run the export function.
|
413 |
+
// parameters: ( $table_name, $form_ids, $file_name ).
|
414 |
Yikes_Inc_Easy_MailChimp_Export_Class::yikes_mailchimp_settings_export( 'Yikes-Inc-Easy-MailChimp-Settings-Export' );
|
415 |
+
// re-direct the user back to the page.
|
416 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=import-export-forms' ) ) );
|
417 |
die();
|
418 |
}
|
422 |
* @since 6.0.0
|
423 |
*/
|
424 |
public function yikes_easy_mailchimp_import_forms() {
|
425 |
+
// grab our nonce.
|
426 |
$nonce = $_REQUEST['nonce'];
|
427 |
+
// validate nonce.
|
428 |
+
if ( ! wp_verify_nonce( $nonce, 'import-forms' ) ) {
|
429 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
430 |
}
|
431 |
+
// include the export class.
|
432 |
+
if ( ! class_exists( 'Yikes_Inc_Easy_MailChimp_Import_Class' ) ) {
|
433 |
include_once( YIKES_MC_PATH . 'includes/import-export/yikes-easy-mailchimp-import.class.php' );
|
434 |
}
|
435 |
+
// run the import function.
|
436 |
+
// parameters: ( $_FILES ).
|
437 |
Yikes_Inc_Easy_MailChimp_Import_Class::yikes_mailchimp_import_forms( $_FILES );
|
438 |
$import_query_arg = Yikes_Inc_Easy_MailChimp_Import_Class::yikes_mailchimp_import_type( $_FILES );
|
439 |
+
// re-direct the user back to the page.
|
440 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=import-export-forms&' . $import_query_arg . '=true' ) ) );
|
441 |
die();
|
442 |
}
|
447 |
*/
|
448 |
public function yikes_easy_mailchimp_premium_support_request() {
|
449 |
|
450 |
+
if ( isset( $_POST['action'] ) && $_POST['action'] != 'yikes-support-request' ) {
|
451 |
+
return __( 'We encountered an error. Please contact the YIKES Inc. support team.', 'yikes-inc-easy-mailchimp-extender' );
|
452 |
}
|
453 |
|
454 |
$email = isset( $_POST['user-email'] ) ? $_POST['user-email'] : '';
|
482 |
'body' => $ticket_array
|
483 |
) );
|
484 |
|
485 |
+
// Catch the error.
|
486 |
+
if ( is_wp_error( $response ) ) {
|
487 |
wp_send_json_error( $response->getMessage() );
|
488 |
}
|
489 |
|
490 |
+
// Retrieve our body.
|
491 |
$response_body = json_decode( wp_remote_retrieve_body( $response ) );
|
492 |
}
|
493 |
|
515 |
* @since 6.0.0
|
516 |
**/
|
517 |
public function yikes_easy_mailchimp_dismiss_option_migrate() {
|
518 |
+
// delete the options and allow the user to manually update things.
|
519 |
|
520 |
+
// Verify the NONCE is valid.
|
521 |
+
check_admin_referer( 'yikes-mc-dismiss-migration', 'dismiss_migration_nonce' );
|
522 |
|
523 |
+
// re-direct the user back to the page.
|
524 |
wp_redirect( esc_url_raw( admin_url( 'index.php?yikes-mc-options-migration-dismissed="true"' ) ) );
|
525 |
die();
|
526 |
}
|
533 |
* @since 6.0.0
|
534 |
*/
|
535 |
public function load_error_logging_class() {
|
536 |
+
if ( get_option( 'yikes-mailchimp-debug-status', '' ) == '1' ) {
|
537 |
// if error logging is enabled we should include our error logging class
|
538 |
/* Generate oure error logging table */
|
539 |
require_once YIKES_MC_PATH . '/includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php';
|
541 |
}
|
542 |
}
|
543 |
|
544 |
+
/**
|
545 |
+
* yikes_easy_mailchimp_check_installation_date()
|
546 |
+
* checks the user installation date, and adds our action
|
547 |
+
* - if it's past 2 weeks we ask the user for a review :)
|
548 |
+
*
|
549 |
+
* @since v6.0.0
|
550 |
+
*/
|
551 |
public function yikes_easy_mailchimp_check_installation_date() {
|
552 |
|
553 |
+
// add a new option to store the plugin activation date/time.
|
554 |
+
// @since v6.0.0.
|
555 |
+
// this is used to notify the user that they should review after 2 weeks.
|
556 |
if ( !get_option( 'yikes_easy_mailchimp_activation_date' ) ) {
|
557 |
add_option( 'yikes_easy_mailchimp_activation_date', strtotime( "now" ) );
|
558 |
}
|
576 |
*/
|
577 |
public function yikes_easy_mailchimp_display_review_us_notice() {
|
578 |
/* Lets only display our admin notice on YT4WP pages to not annoy the hell out of people :) */
|
579 |
+
if ( in_array( get_current_screen()->base , array( 'dashboard', 'post', 'edit' ) ) || strpos( get_current_screen()->base ,'yikes-inc-easy-mailchimp') !== false ) {
|
580 |
|
581 |
// The URL of the page the user is currently on
|
582 |
$current_uri = isset( $_SERVER['REQUEST_URI'] ) && ! empty( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : false;
|
585 |
$current_url = ( $current_uri !== false && $current_host !== false ) ? $current_protocol . $current_host . $current_uri : admin_url();
|
586 |
|
587 |
$plugin_name = '<strong>Easy Forms for MailChimp</strong>';
|
588 |
+
// Review URL - Change to the URL of your plugin on WordPress.org.
|
589 |
$reviewurl = 'https://wordpress.org/support/view/plugin-reviews/yikes-inc-easy-mailchimp-extender';
|
590 |
$addons_url = esc_url( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-addons' ) );
|
591 |
$nobugurl = esc_url_raw( add_query_arg( 'yikes_easy_mc_icons_nobug', '1', $current_url ) );
|
592 |
|
593 |
+
// Make sure all of our variables have values.
|
594 |
$reviewurl = ( ! empty( $reviewurl ) ) ? $reviewurl : '';
|
595 |
$addons_url = ( ! empty( $addons_url ) ) ? $addons_url : '';
|
596 |
$nobugurl = ( ! empty( $nobugurl ) ) ? $nobugurl : '';
|
597 |
|
598 |
$review_message = '<div id="yikes-mailchimp-logo"></div>';
|
599 |
$review_message .= sprintf(
|
600 |
+
__( 'It looks like you\'ve been using %1$s for 2 weeks now. We hope you\'re enjoying the features included with the free version. If so, please consider leaving us a review. Reviews only help to catch other users attention as well as provide us with feedback to grow and improve upon. If you\'re really enjoying the plugin, consider buying an add-on or developer license for some really awesome features and premium support.', 'yikes-inc-easy-mailchimp-extender' )
|
601 |
. '<span class="button-container"> <a href="%2$s" target="_blank" class="button-secondary"><span class="dashicons dashicons-star-filled"></span>'
|
602 |
. __( "Leave A Review" , 'yikes-inc-easy-mailchimp-extender' )
|
603 |
. '</a> <a href="%3$s" class="button-secondary"><span class="dashicons dashicons-upload"></span>'
|
605 |
. '</a> <a href="%4$s" class="button-secondary"><span class="dashicons dashicons-no-alt"></span>'
|
606 |
. __( "Dismiss" , 'yikes-inc-easy-mailchimp-extender' )
|
607 |
. "</a> </span>",
|
608 |
+
$plugin_name, $reviewurl, $addons_url, $nobugurl );
|
609 |
?>
|
610 |
<div id="review-yikes-easy-mailchimp-notice">
|
611 |
<?php echo $review_message; ?>
|
614 |
}
|
615 |
}
|
616 |
|
617 |
+
/**
|
618 |
yikes_easy_mailchimp_stop_bugging_me()
|
619 |
Remove the Review us notification when user clicks 'Dismiss'
|
620 |
@since v3.1.1
|
625 |
}
|
626 |
}
|
627 |
|
628 |
+
/* End Two Week Notification */
|
629 |
|
630 |
/* Display a warning users who are using PHP < 5.3 */
|
631 |
public function display_php_warning() {
|
632 |
+
$message = __( 'Easy Forms for MailChimp requires a minimum of PHP 5.3. The plugin will not function properly until you update. Please reach out to your host provider for assistance.', 'yikes-inc-easy-mailchimp-extender' );
|
633 |
echo "<div class='error'> <p><span class='dashicons dashicons-no-alt' style='color:rgb(231, 98, 98)'></span> $message</p></div>";
|
634 |
}
|
635 |
|
636 |
+
/**
|
637 |
+
*
|
638 |
+
* TinyMCE Functions
|
639 |
+
*/
|
640 |
+
// load our button and pass in the JS form data variable.
|
641 |
+
public function add_tinyMCE_buttons() {
|
642 |
+
global $typenow;
|
643 |
+
// only on Post Type: post and page.
|
644 |
+
if ( ! in_array( $typenow, array( 'post', 'page' ) ) ) {
|
645 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
646 |
}
|
647 |
+
add_filter( 'mce_buttons', array( $this, 'yks_mc_add_tinymce_button' ) );
|
648 |
+
add_filter( 'mce_external_plugins', array( $this, 'yks_mc_add_tinymce_plugin' ) );
|
649 |
+
}
|
650 |
|
651 |
+
// Add the button key for address via JS.
|
652 |
+
public function yks_mc_add_tinymce_button( $buttons ) {
|
653 |
+
array_push( $buttons, 'yks_mc_tinymce_button_key' );
|
654 |
+
// Print all buttons.
|
655 |
+
return $buttons;
|
656 |
+
}
|
657 |
|
658 |
+
// inlcude the js for tinymce.
|
659 |
+
public function yks_mc_add_tinymce_plugin( $plugin_array ) {
|
660 |
|
661 |
+
$plugin_array['yks_mc_tinymce_button'] = plugins_url( '/js/min/yikes-inc-easy-mailchimp-tinymce-button.min.js', __FILE__ );
|
662 |
|
663 |
+
return $plugin_array;
|
664 |
+
}
|
665 |
|
666 |
/**
|
667 |
+
* Localize Script
|
668 |
+
* Pass our imported list data, to the JS file
|
669 |
+
* to build the drop down list in the modal
|
670 |
+
*/
|
671 |
+
public function tinymce_yikes_easy_mc() {
|
672 |
+
// check capabilities.
|
673 |
+
if ( ! current_user_can( apply_filters( 'yikes-mailchimp-user-role-access', 'manage_options' ) ) ) {
|
674 |
+
return;
|
675 |
+
}
|
676 |
|
677 |
+
$list_data = $this->form_interface->get_all_forms();
|
678 |
+
$lists = array();
|
679 |
+
if ( ! empty( $list_data ) ) {
|
680 |
+
// build an array to pass to our javascript.
|
681 |
+
foreach ( $list_data as $id => $form ) {
|
682 |
+
$lists[] = array(
|
683 |
+
'text' => urlencode( $form['form_name'] ),
|
684 |
+
'value' => $id,
|
|
|
|
|
|
|
|
|
|
|
|
|
685 |
);
|
686 |
}
|
687 |
+
} else {
|
688 |
+
$lists[0] = array(
|
689 |
+
'text' => __( 'Please Import Some MailChimp Lists', 'yikes-inc-easy-mailchimp-extender' ),
|
690 |
+
'value' => '-',
|
691 |
+
);
|
692 |
+
}
|
693 |
|
694 |
/* Pass our form data to our JS file for use */
|
695 |
wp_localize_script( 'editor', 'localized_data', array(
|
696 |
+
'forms' => wp_json_encode( $lists ),
|
697 |
+
'button_title' => __( 'Easy Forms for MailChimp', 'yikes-inc-easy-mailchimp-extender' ),
|
698 |
+
'popup_title' => __( 'Easy Forms for MailChimp', 'yikes-inc-easy-mailchimp-extender' ),
|
699 |
+
'list_id_label' => __( 'MailChimp Opt-In Form', 'yikes-inc-easy-mailchimp-extender' ),
|
700 |
+
'show_title_label' => __( 'Display Form Title', 'yikes-inc-easy-mailchimp-extender' ),
|
701 |
+
'show_description_label' => __( 'Display Form Description', 'yikes-inc-easy-mailchimp-extender' ),
|
702 |
+
'submit_button_text_label' => __( 'Custom Submit Button Text', 'yikes-inc-easy-mailchimp-extender' ),
|
703 |
+
'submit_button_message' => '<em>' . __( 'If left empty, the button will use the default submit button text .', 'yikes-inc-easy-mailchimp-extender' ) . '</em>',
|
704 |
+
'alert_translated' => sprintf( __( 'You need to <a href=%s title="%s">create a form</a> before you can add one to a page or post.', 'yikes-inc-easy-mailchimp-extender' ), esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp' ) ), __( 'Create a form', 'yikes-inc-easy-mailchimp-extender' ) ),
|
705 |
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
706 |
}
|
707 |
+
/* End TinyMCE Functions */
|
708 |
|
709 |
+
/**
|
710 |
+
* Fix the MailChimp icon spacing in the admin menu.
|
711 |
+
*/
|
712 |
public function fix_menu_icon_spacing() {
|
713 |
?>
|
714 |
<style>
|
726 |
*/
|
727 |
public function enqueue_styles() {
|
728 |
/**
|
729 |
+
* Enqueue our global dashboard styles.
|
730 |
*/
|
731 |
wp_enqueue_style( 'yikes-inc-easy-mailchimp-extender-admin', plugin_dir_url( __FILE__ ) . 'css/yikes-inc-easy-mailchimp-extender-admin.min.css', array(), $this->version, 'all' );
|
732 |
+
|
733 |
/*
|
734 |
+
* Enqueue Add-ons styles.
|
735 |
*/
|
736 |
if ( get_current_screen()->base == 'easy-forms_page_yikes-inc-easy-mailchimp-addons' ) {
|
737 |
wp_enqueue_style( 'yikes-inc-easy-mailchimp-extender-addons-styles', plugin_dir_url( __FILE__ ) . 'css/yikes-inc-easy-mailchimp-extender-addons.min.css', array(), $this->version, 'all' );
|
738 |
}
|
739 |
+
|
740 |
/*
|
741 |
+
* Enqueue Subscriber Profile Flags.
|
742 |
*/
|
743 |
if ( get_current_screen()->base == 'admin_page_yikes-mailchimp-view-user' ) {
|
744 |
wp_enqueue_style( 'yikes-inc-easy-mailchimp-extender-subscriber-flags', plugin_dir_url( __FILE__ ) . 'css/flag-icon.min.css', array(), $this->version, 'all' );
|
750 |
* @since 6.0.0
|
751 |
*/
|
752 |
public function enqueue_scripts() {
|
753 |
+
wp_enqueue_script( 'yikes-inc-easy-mailchimp-extender-admin-js', plugin_dir_url( __FILE__ ) . 'js/min/yikes-inc-easy-mailchimp-extender-admin.min.js', array( 'jquery', 'jquery-ui-sortable' ), $this->version, false );
|
754 |
|
755 |
$localized_data = array(
|
756 |
'admin_url' => esc_url_raw( admin_url() ),
|
760 |
'preloader_url' => esc_url_raw( admin_url( '/images/wpspin_light.gif' ) ),
|
761 |
);
|
762 |
|
763 |
+
wp_localize_script( 'yikes-inc-easy-mailchimp-extender-admin-js', 'object_data', $localized_data );
|
764 |
|
765 |
// Enqueue required scripts for the form editor
|
766 |
$screen = get_current_screen();
|
773 |
|
774 |
wp_enqueue_style( 'wp-color-picker' );
|
775 |
wp_enqueue_script( 'wp-color-picker' );
|
776 |
+
wp_enqueue_script( 'jquery.timepicker.js',YIKES_MC_URL . 'admin/js/jquery.timepicker.min.js', array( 'jquery' ) , $this->version, false );
|
777 |
+
wp_enqueue_script( 'edit-form-js', YIKES_MC_URL . 'admin/js/min/yikes-inc-easy-mailchimp-extender-edit-form.min.js', array( 'jquery.timepicker.js', 'jquery-ui-datepicker' ) , $this->version, false );
|
778 |
|
779 |
$localized_data = array(
|
780 |
'ajax_url' => esc_url_raw( admin_url( 'admin-ajax.php' ) ),
|
804 |
'edit_field_label_cancel_title' => __( 'Click to cancel editing. Your changes will not be saved.', 'yikes-inc-easy-mailchimp-extender' ),
|
805 |
'save_field_label_nonce' => wp_create_nonce( 'save_field_label_nonce' ),
|
806 |
);
|
807 |
+
wp_localize_script( 'edit-form-js', 'yikes_mailchimp_edit_form', $localized_data );
|
808 |
}
|
809 |
|
810 |
/**
|
932 |
*/
|
933 |
do_action( 'yikes-mailchimp-menu' );
|
934 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
935 |
/* Easy MailChimp Settings */
|
936 |
add_submenu_page(
|
937 |
'yikes-inc-easy-mailchimp',
|
984 |
array( $this, 'migrate_old_yks_mc_options' )
|
985 |
);
|
986 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
987 |
/* Add Hidden 'View List' Page */
|
988 |
add_submenu_page(
|
989 |
'options.php',
|
1033 |
require_once YIKES_MC_PATH . 'admin/partials/menu/manage-lists.php'; // include our lists page
|
1034 |
}
|
1035 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1036 |
/**
|
1037 |
* Generate Us Easy MailChimp Support Page
|
1038 |
*
|
1053 |
require_once YIKES_MC_PATH . 'admin/partials/edit-form.php'; // include our options page
|
1054 |
}
|
1055 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1056 |
/**
|
1057 |
* Generate Us Easy MailChimp View List Page
|
1058 |
*
|
1132 |
|
1133 |
/* reCAPTCHA Settings */
|
1134 |
|
1135 |
+
register_setting( 'yikes_inc_easy_mc_recaptcha_settings_page', 'yikes-mc-recaptcha-status' );
|
1136 |
+
register_setting( 'yikes_inc_easy_mc_recaptcha_settings_page', 'yikes-mc-recaptcha-site-key' );
|
1137 |
+
register_setting( 'yikes_inc_easy_mc_recaptcha_settings_page', 'yikes-mc-recaptcha-secret-key' );
|
1138 |
|
1139 |
/* Register reCAPTCHA Settings Section */
|
1140 |
add_settings_section(
|
1168 |
/* End reCAPTCHA Settings */
|
1169 |
|
1170 |
/* Debug Settings */
|
1171 |
+
register_setting( 'yikes_inc_easy_mc_debug_settings_page', 'yikes-mailchimp-debug-status' );
|
1172 |
|
1173 |
/* Register Debug Settings Section */
|
1174 |
add_settings_section(
|
1197 |
* @since complete re-write
|
1198 |
**/
|
1199 |
function yikes_mc_validate_api_key( $input ) {
|
1200 |
+
if ( $input === '' ) {
|
1201 |
+
update_option( 'yikes-mc-api-validation', 'invalid_api_key' );
|
1202 |
return '';
|
1203 |
}
|
1204 |
$api_key = strip_tags ( trim( $input ) );
|
1205 |
$dash_position = strpos( trim( $input ), '-' );
|
1206 |
+
if ( $dash_position !== false ) {
|
1207 |
$manager = new Yikes_Inc_Easy_MailChimp_API_Manager( $api_key );
|
1208 |
} else {
|
1209 |
update_option( 'yikes-mc-api-invalid-key-response', __( 'Your API key appears to be invalid.', 'yikes-inc-easy-mailchimp-extender' ) );
|
1210 |
+
update_option( 'yikes-mc-api-validation', 'invalid_api_key' );
|
1211 |
return $api_key;
|
1212 |
}
|
1213 |
|
1214 |
$response = $manager->get_account_handler()->get_account( false );
|
1215 |
+
if ( ! is_wp_error( $response ) ) {
|
1216 |
+
update_option( 'yikes-mc-api-validation', 'valid_api_key' );
|
1217 |
// Clear the API key transient data
|
1218 |
$this->delete_yikes_mailchimp_transients();
|
1219 |
} else {
|
1220 |
$error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging();
|
1221 |
$error_logging->yikes_easy_mailchimp_write_to_error_log( $response->get_error_message() , __( "Connecting to MailChimp" , 'yikes-inc-easy-mailchimp-extender' ) , __( "Settings Page/General Settings" , 'yikes-inc-easy-mailchimp-extender' ) );
|
1222 |
+
update_option( 'yikes-mc-api-invalid-key-response', $response->get_error_message() );
|
1223 |
+
update_option( 'yikes-mc-api-validation', 'invalid_api_key' );
|
1224 |
}
|
1225 |
// returned the api key
|
1226 |
return $api_key;
|
1268 |
$old_plugin_options = get_option( 'ykseme_storage' );
|
1269 |
// only perform options migrations if the site is not a multi-site setup
|
1270 |
if ( !is_multisite() ) {
|
1271 |
+
if ( apply_filters( 'yikes_mc_old_options_filter', $old_plugin_options ) ) {
|
1272 |
// display a notice to the user that they should 'migrate'
|
1273 |
// from the old plugin settings to the new ones
|
1274 |
add_action( 'admin_notices', array( $this , 'display_options_migrate_notice' ) , 11 );
|
1304 |
|
1305 |
// Confirm that the necessary forms table in the database exists, else bail
|
1306 |
global $wpdb;
|
1307 |
+
if ( $wpdb->get_var("show tables like '" . $wpdb->prefix . "yikes_easy_mc_forms'") != $wpdb->prefix . "yikes_easy_mc_forms" ) {
|
1308 |
return;
|
1309 |
}
|
1310 |
|
1311 |
+
if ( isset( $_GET['yikes-mc-options-migration-dismissed'] ) && $_GET['yikes-mc-options-migration-dismissed'] == 'true' ) {
|
1312 |
// Delete the options, start a-new! (this will disable the migration notice altogether)
|
1313 |
delete_option( 'widget_yikes_mc_widget' );
|
1314 |
delete_option( 'api_validation' );
|
1329 |
<!-- migrate button -->
|
1330 |
<form>
|
1331 |
<input type="hidden" name="yikes-mc-update-option-structure" value="yikes-mc-update-option-structure" />
|
1332 |
+
<a href="<?php echo wp_nonce_url( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-update' ) ), 'yikes-mc-migrate-options', 'migrate_options_nonce' ); ?>" class="button-secondary"><?php _e( 'Perform Migration', 'yikes-inc-easy-mailchimp-extender' ); ?></a>
|
1333 |
</form>
|
1334 |
<!-- dismiss button -->
|
1335 |
<form>
|
1336 |
+
<a href="<?php echo wp_nonce_url( esc_url_raw( admin_url() ), 'yikes-mc-dismiss-migration', 'dismiss_migration_nonce' ); ?>" class="button-secondary"><?php _e( 'Dismiss Notice', 'yikes-inc-easy-mailchimp-extender' ); ?></a>
|
1337 |
</form>
|
1338 |
</section>
|
1339 |
|
1361 |
// all options prefixed with 'yikes-mc-'
|
1362 |
$option_name = 'yikes-mc-'.$_POST['option_name'];
|
1363 |
$option_value = $_POST['option_value'];
|
1364 |
+
if ( json_decode( $option_value ) ) {
|
1365 |
// decode our lists() array, and store it
|
1366 |
$opt_value = json_decode( $option_value, true );
|
1367 |
} else {
|
1378 |
$done = $_POST['done_import'];
|
1379 |
// Create some starter forms for the user
|
1380 |
// based on previously imported lists (to our old version)
|
1381 |
+
if ( $option_name == 'yikes-mc-lists' ) {
|
1382 |
$option_value = $_POST['option_value'];
|
1383 |
$new_options = json_decode( stripslashes_deep( $option_value ) , true );
|
1384 |
|
1410 |
'custom_fields' => '',
|
1411 |
) );
|
1412 |
}
|
1413 |
+
if ( $done == 'done' ) {
|
1414 |
wp_send_json( array( 'form_name' => $form_name, 'completed_import' => true ) );
|
1415 |
} else {
|
1416 |
wp_send_json( array( 'form_name' => $form_name, 'completed_import' => false ) );
|
1425 |
* @since v5.6 - complete re-write
|
1426 |
*/
|
1427 |
public function generate_options_pages_sidebar_menu() {
|
1428 |
+
if ( isset( $_REQUEST['section'] ) ) {
|
1429 |
$selected = $_REQUEST['section'];
|
1430 |
}
|
1431 |
+
$installed_addons = get_option( 'yikes-easy-mc-active-addons', array() );
|
1432 |
|
1433 |
// Make sure we don't have any duplicates by mistake
|
1434 |
$installed_addons = array_unique( $installed_addons );
|
1435 |
|
1436 |
// v1.2.6 of popups plugin had a bug that expanded the array indefinitely, so let's trim it in one place here.
|
1437 |
// This can be removed within a few weeks
|
1438 |
+
update_option( 'yikes-easy-mc-active-addons', $installed_addons );
|
1439 |
|
1440 |
// sort our addons array alphabetically so they appear in similar orders across all sites
|
1441 |
asort( $installed_addons );
|
1442 |
?>
|
1443 |
+
<h3><span><?php _e( 'Additional Settings', 'yikes-inc-easy-mailchimp-extender' ); ?></span></h3>
|
1444 |
<div class="inside">
|
1445 |
<ul id="settings-nav">
|
1446 |
+
<li><?php if ( isset( $_REQUEST['section'] ) && $_REQUEST['section'] == 'general-settings' || !isset( $_REQUEST['section'] ) ) { ?><div class="option-menu-selected-arrow"></div><?php } ?><a href="<?php echo esc_url_raw( add_query_arg( array( 'section' => 'general-settings' ) , admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=general-settings' ) ) ); ?>"><?php _e( 'General Settings', 'yikes-inc-easy-mailchimp-extender' ); ?></a></li>
|
1447 |
+
<li><?php if ( isset( $_REQUEST['section'] ) && $_REQUEST['section'] == 'integration-settings' ) { ?><div class="option-menu-selected-arrow"></div><?php } ?><a href="<?php echo esc_url_raw( add_query_arg( array( 'section' => 'integration-settings' ) , admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=integration-settings' ) ) ); ?>"><?php _e( 'Integration Settings', 'yikes-inc-easy-mailchimp-extender' ); ?></a></li>
|
1448 |
+
<li><?php if ( isset( $_REQUEST['section'] ) && $_REQUEST['section'] == 'recaptcha-settings' ) { ?><div class="option-menu-selected-arrow"></div><?php } ?><a href="<?php echo esc_url_raw( add_query_arg( array( 'section' => 'recaptcha-settings' ) , admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=recaptcha-settings' ) ) ); ?>"><?php _e( 'ReCaptcha Settings', 'yikes-inc-easy-mailchimp-extender' ); ?></a></li>
|
1449 |
+
<li><?php if ( isset( $_REQUEST['section'] ) && $_REQUEST['section'] == 'api-cache-settings' ) { ?><div class="option-menu-selected-arrow"></div><?php } ?><a href="<?php echo esc_url_raw( add_query_arg( array( 'section' => 'api-cache-settings' ) , admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=api-cache-settings' ) ) ); ?>"><?php _e( 'API Cache Settings', 'yikes-inc-easy-mailchimp-extender' ); ?></a></li>
|
1450 |
+
<li><?php if ( isset( $_REQUEST['section'] ) && $_REQUEST['section'] == 'debug-settings' ) { ?><div class="option-menu-selected-arrow"></div><?php } ?><a href="<?php echo esc_url_raw( add_query_arg( array( 'section' => 'debug-settings' ) , admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=debug-settings' ) ) ); ?>"><?php _e( 'Debug Settings', 'yikes-inc-easy-mailchimp-extender' ); ?></a></li>
|
1451 |
+
<li><?php if ( isset( $_REQUEST['section'] ) && $_REQUEST['section'] == 'import-export-forms' ) { ?><div class="option-menu-selected-arrow"></div><?php } ?><a href="<?php echo esc_url_raw( add_query_arg( array( 'section' => 'import-export-forms' ) , admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=import-export-forms' ) ) ); ?>"><?php _e( 'Import/Export', 'yikes-inc-easy-mailchimp-extender' ); ?></a></li>
|
1452 |
</ul>
|
1453 |
<?php
|
1454 |
// create our add-on settings pages
|
1455 |
+
if ( !empty( $installed_addons ) ) {
|
1456 |
?>
|
1457 |
<hr class="add-on-settings-divider" />
|
1458 |
+
<strong><?php _e( 'Addon Settings', 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
1459 |
<ul id="addon-settings-nav">
|
1460 |
<?php
|
1461 |
foreach( $installed_addons as $addon_name ) {
|
1462 |
?>
|
1463 |
<li>
|
1464 |
+
<?php if ( isset( $_REQUEST['section'] ) && $_REQUEST['section'] == $addon_name ) { ?><div class="option-menu-selected-arrow"></div><?php } ?><a href="<?php echo esc_url_raw( add_query_arg( array( 'section' => $addon_name, 'addon' => 'true' ) , admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion='.$addon_name ) ) ); ?>"><?php echo ucwords( str_replace( '-', ' ', $addon_name ) ); ?></a></li>
|
1465 |
<?php
|
1466 |
}
|
1467 |
?>
|
1489 |
)
|
1490 |
);
|
1491 |
?>
|
1492 |
+
<h3><?php _e( 'Create a New Signup Form', 'yikes-inc-easy-mailchimp-extender' ); ?></h3>
|
1493 |
|
1494 |
<div class="inside">
|
1495 |
|
1498 |
<form id="import-list-to-site" method="POST" action="<?php echo $url; ?>">
|
1499 |
<input type="hidden" name="import-list-to-site" value="1" />
|
1500 |
<!-- Name your new form -->
|
1501 |
+
<label for="form-name"><strong><?php _e( 'Form Name', 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
1502 |
+
<input type="text" class="widefat input-field" placeholder="<?php _e( 'Form Name', 'yikes-inc-easy-mailchimp-extender' ); ?>" name="form-name" id="form-name" <?php $this->is_user_mc_api_valid_form( true ); ?> required>
|
1503 |
</label>
|
1504 |
<!-- Name your new form -->
|
1505 |
+
<label for="form-description"><strong><?php _e( 'Form Description', 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
1506 |
+
<textarea class="widefat input-field form-description" placeholder="<?php _e( 'Form Description', 'yikes-inc-easy-mailchimp-extender' ); ?>" name="form-description" id="form-description" <?php $this->is_user_mc_api_valid_form( true ); ?>></textarea>
|
1507 |
</label>
|
1508 |
<!-- Associate this form with a list! -->
|
1509 |
+
<label for="associated-list"><strong><?php _e( 'Associated List', 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
1510 |
<select name="associated-list" id="associated-list" class=" input-field" <?php $this->is_user_mc_api_valid_form( true ); disabled( true, empty( $lists ) ); ?>>
|
1511 |
<?php
|
1512 |
if ( ! empty( $lists ) ) {
|
1516 |
<?php
|
1517 |
}
|
1518 |
} else {
|
1519 |
+
if ( get_option( 'yikes-mc-api-validation', 'invalid_api_key' ) == 'invalid_api_key' ) {
|
1520 |
?>
|
1521 |
<option><?php echo __( "Please enter a valid API key." , 'yikes-inc-easy-mailchimp-extender' ); ?></option>
|
1522 |
<?php
|
1541 |
}
|
1542 |
}
|
1543 |
|
1544 |
+
if ( isset( $lists ) && empty( $lists ) ) {
|
1545 |
+
if ( get_option( 'yikes-mc-api-validation', 'invalid_api_key' ) != 'invalid_api_key' ) {
|
1546 |
?>
|
1547 |
<p class="description">
|
1548 |
+
<?php printf( __( 'Head over to <a href="http://www.MailChimp.com" title="%s">MailChimp</a> to create a new list.', 'yikes-inc-easy-mailchimp-extender' ) , __( 'Create a list', 'yikes-inc-easy-mailchimp-extender' ) ); ?>
|
1549 |
</p>
|
1550 |
<?php
|
1551 |
}
|
1553 |
?>
|
1554 |
</label>
|
1555 |
<?php
|
1556 |
+
if ( $this->is_user_mc_api_valid_form( false ) ) {
|
1557 |
+
echo submit_button( __( 'Create', 'yikes-inc-easy-mailchimp-extender' ) , 'primary', '', false , array( 'style' => 'margin:.75em 0 .5em 0;' ) );
|
1558 |
} else {
|
1559 |
echo '<p class="description">' . __( "Please enter a valid MailChimp API key to get started." , 'yikes-inc-easy-mailchimp-extender' ) . '</p>';
|
1560 |
?>
|
1561 |
+
<a href="<?php echo esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings&settings-updated=true' ) ); ?>"><?php _e( 'general settings', 'yikes-inc-easy-mailchimp-extender' ); ?></a>
|
1562 |
<?php
|
1563 |
}
|
1564 |
?>
|
1566 |
|
1567 |
<!-- Clear API CACHE -->
|
1568 |
<?php
|
1569 |
+
if ( isset( $lists ) && ! empty( $lists ) ) {
|
1570 |
if ( false !== get_transient( 'yikes-easy-mailchimp-list-data' ) ) { ?>
|
1571 |
+
<form action="<?php echo esc_url_raw( add_query_arg( array( 'action' => 'yikes-easy-mc-clear-transient-data', 'nonce' => wp_create_nonce( 'clear-mc-transient-data' ) ) ) ); ?>" method="post">
|
1572 |
+
<input type="submit" class="button-secondary clear-mailchimp-api-cache" value="<?php _e( 'Refresh Lists', 'yikes-inc-easy-mailchimp-extender' ); ?>" />
|
1573 |
</form>
|
1574 |
<?php }
|
1575 |
}
|
1585 |
public function generate_page_redirect_dropdown( $redirect, $redirect_page, $custom_redirect_url ) {
|
1586 |
$post_types = get_post_types();
|
1587 |
?>
|
1588 |
+
<label id="redirect-user-to-selection-label" for="redirect-user-to-selection" class="<?php if ( $redirect == '0' ) { echo 'yikes-easy-mc-hidden'; } ?>">
|
1589 |
<?php _e( "Select A Page or Post" , 'yikes-inc-easy-mailchimp-extender' ); ?>
|
1590 |
<select id="redirect-user-to-selection" name="redirect-user-to-selection" onchange="shouldWeDisplayCustomURL( this );return;">
|
1591 |
<?php
|
1598 |
* @param array | $excluded_post_types | The array of default excluded post types
|
1599 |
* @return array| $excluded_post_types | The array of user-defined excluded post types
|
1600 |
*/
|
1601 |
+
$excluded_post_types = array( 'attachment', 'revision', 'nav_menu_item', 'shop_order', 'shop_order_refund', 'custom_css', 'customize_changeset', 'forum', 'topic', 'reply' );
|
1602 |
$excluded_post_types = apply_filters( 'yikes-mailchimp-excluded-redirect-post-types', $excluded_post_types );
|
1603 |
|
1604 |
// loop over registered post types, and query!
|
1605 |
foreach( $post_types as $registered_post_type ) {
|
1606 |
|
1607 |
// exclude a few built in custom post types and any defined by the filter
|
1608 |
+
if ( ! in_array( $registered_post_type, $excluded_post_types ) ) {
|
1609 |
|
1610 |
// Grab only the post IDs - in the past we've created timeout issues on some servers with lots of posts
|
1611 |
$wp_query_args = array(
|
1622 |
|
1623 |
if ( ! empty ( $post_ids ) ) {
|
1624 |
?>
|
1625 |
+
<optgroup label="<?php echo ucwords( str_replace( '_', ' ', $registered_post_type ) ); ?>">
|
1626 |
<?php
|
1627 |
foreach( $post_ids as $post_id ) {
|
1628 |
?><option <?php selected( $redirect_page , $post_id ); ?> value="<?php echo $post_id; ?>"><?php echo get_the_title( $post_id ) ?></option><?php
|
1640 |
</optgroup>
|
1641 |
</select>
|
1642 |
|
1643 |
+
<label name="custom-redirect-url" class="custom_redirect_url_label" <?php if ( ! isset( $redirect_page ) || $redirect_page != 'custom_url' ) { echo 'style="display:none;"'; } ?>>
|
1644 |
<?php _e( "Enter Custom URL" , 'yikes-inc-easy-mailchimp-extender' ); ?>
|
1645 |
<input type="text" class="widefat custom-redirect-url" name="custom-redirect-url" value="<?php echo $custom_redirect_url; ?>" />
|
1646 |
</label>
|
1658 |
public function generate_show_some_love_container() {
|
1659 |
// if no active add-ons are installed,
|
1660 |
// lets display our branding and add-on sidebar
|
1661 |
+
if ( get_option( 'yikes-easy-mc-active-addons', array() ) == array() ) {
|
1662 |
|
1663 |
/* On Edit Forms Page Display Upsell to Customizer */
|
1664 |
$screen = get_current_screen();
|
1665 |
+
if ( isset( $screen ) && $screen->base == 'admin_page_yikes-mailchimp-edit-form' ) {
|
1666 |
?>
|
1667 |
|
1668 |
<div class="postbox yikes-easy-mc-postbox show-some-love-container">
|
1676 |
<div class="postbox yikes-easy-mc-postbox show-some-love-container">
|
1677 |
|
1678 |
<!-- review us container -->
|
1679 |
+
<h3 data-alt-text="<?php _e( 'About YIKES, Inc.', 'yikes-inc-easy-mailchimp-extender' ); ?>"><?php _e( 'Show Us Some Love', 'yikes-inc-easy-mailchimp-extender' ); ?></h3>
|
1680 |
<div id="review-yikes-easy-mc" class="inside">
|
1681 |
|
1682 |
<p>
|
1683 |
+
<?php _e( 'Leave a review', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
1684 |
<p class="star-container">
|
1685 |
<a href="https://wordpress.org/support/view/plugin-reviews/yikes-inc-easy-mailchimp-extender" target="_blank">
|
1686 |
<b class="dashicons dashicons-star-filled"></b>
|
1692 |
</p>
|
1693 |
</p>
|
1694 |
|
1695 |
+
<?php _e( 'Tweet about it', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
1696 |
<p class="sidebar-container">
|
1697 |
<a href="https://twitter.com/share" class="twitter-share-button" data-url="https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/" data-text="I'm using the Easy Forms for MailChimp plugin by @YikesInc to grow my mailing list - it's awesome! -" data-hashtags="MailChimp">Tweet</a>
|
1698 |
+
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if (!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
|
1699 |
</p>
|
1700 |
|
1701 |
+
<?php _e( 'Vote that the plugin works', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
1702 |
<p class="sidebar-container">
|
1703 |
<a href="https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/" target="_blank">
|
1704 |
+
<?php _e( 'Vote for Compatibility', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
1705 |
</a>
|
1706 |
</p>
|
1707 |
</div>
|
1722 |
<div class="postbox yikes-easy-mc-postbox">
|
1723 |
|
1724 |
<!-- review us container -->
|
1725 |
+
<h3><?php _e( 'Easy Forms for MailChimp Add-Ons', 'yikes-inc-easy-mailchimp-extender' ); ?></h3>
|
1726 |
<div id="review-yikes-easy-mc" class="inside">
|
1727 |
<p><?php _e( "Check out available add-ons for some seriously enhanced features." , 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
1728 |
+
<p><a class="button-secondary" href="<?php echo esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-addons' ) ); ?>" title="<?php _e( 'View Add-Ons', 'yikes-inc-easy-mailchimp-extender' ); ?>"><?php _e( 'View Add-Ons', 'yikes-inc-easy-mailchimp-extender' ); ?></a></p>
|
1729 |
</div>
|
1730 |
|
1731 |
</div>
|
1750 |
public function generate_form_editor( $form_fields, $list_id, $merge_variables, $interest_groups ) {
|
1751 |
|
1752 |
// if no list id, die!
|
1753 |
+
if ( ! $list_id ) {
|
1754 |
wp_die( __( "We've encountered an error. No list ID was sent." , 'yikes-inc-easy-mailchimp-extender' ) );
|
1755 |
}
|
1756 |
|
1757 |
+
if ( ! $merge_variables ) {
|
1758 |
wp_die( __( "We've encountered an error. Reload the page and try again. If the error persists, please reach out to support." , 'yikes-inc-easy-mailchimp-extender' ) );
|
1759 |
}
|
1760 |
|
1761 |
+
if ( ! empty( $form_fields ) ) {
|
1762 |
|
1763 |
// find any fields that are assigned to this form, that don't exist in MailChimp
|
1764 |
// or else were going to run into issues when we submit the form
|
1803 |
<span class="dashicons dashicons-plus yikes-mc-expansion-toggle"></span>
|
1804 |
<span class="yikes-mc-expansion-section-field-label"> <?php echo stripslashes( $field['label'] ); ?> </span>
|
1805 |
<?php if ( $excluded_field ) { ?>
|
1806 |
+
<img src="<?php echo YIKES_MC_URL . 'includes/images/warning.svg'; ?>" class="field-doesnt-exist-notice" title="<?php _e( 'Field no longer exists.', 'yikes-inc-easy-mailchimp-extender' ); ?>" alt="<?php _e( 'Field no longer exists.', 'yikes-inc-easy-mailchimp-extender' ); ?>">
|
1807 |
<?php } ?>
|
1808 |
<input maxlength="45" type="text" class="yikes-mc-edit-field-label-input" value="<?php echo stripslashes( $field['label'] ); ?>" />
|
1809 |
+
<span class="dashicons dashicons-yes yikes-mc-save-field-label-edits-icon" title="<?php _e( 'Click to save changes.', 'yikes-inc-easy-mailchimp-extender' ); ?>"></span>
|
1810 |
+
<span class="dashicons dashicons-edit yikes-mc-edit-field-label-icon" title="<?php _e( 'Click to edit the label', 'yikes-inc-easy-mailchimp-extender' ); ?>"></span>
|
1811 |
<span class="yikes-mc-edit-field-label-message"></span>
|
1812 |
+
<span class="field-type-text"><small><?php echo __( 'type', 'yikes-inc-easy-mailchimp-extender' ) . ' : ' . $field['type']; ?></small></span>
|
1813 |
</a>
|
1814 |
<!-- expansion section -->
|
1815 |
<div class="yikes-mc-settings-expansion-section">
|
1842 |
<tr valign="top">
|
1843 |
<td scope="row">
|
1844 |
<label for="merge-tag">
|
1845 |
+
<?php _e( 'Merge Tag', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
1846 |
</label>
|
1847 |
</td>
|
1848 |
<td>
|
1866 |
<tr valign="top">
|
1867 |
<td scope="row">
|
1868 |
<label for="placeholder_<?php echo esc_attr( $field['merge'] ); ?>">
|
1869 |
+
<?php _e( 'Placeholder', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
1870 |
</label>
|
1871 |
</td>
|
1872 |
<td>
|
1883 |
<tr valign="top">
|
1884 |
<td scope="row">
|
1885 |
<label for="placeholder_<?php echo esc_attr( $field['merge'] ); ?>">
|
1886 |
+
<?php _e( 'Placeholder', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
1887 |
</label>
|
1888 |
</td>
|
1889 |
<td>
|
1907 |
<tr valign="top">
|
1908 |
<td scope="row">
|
1909 |
<label for="default_value_<?php echo esc_attr( $field['merge'] ); ?>">
|
1910 |
+
<?php _e( 'Default Value', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
1911 |
</label>
|
1912 |
</td>
|
1913 |
<td>
|
1914 |
+
<input id="default_value_<?php echo esc_attr( $field['merge'] ); ?>" <?php if ( $field['type'] != 'number' ) { ?> type="text" <?php } else { ?> type="number" <?php } ?> class="widefat" name="field[<?php echo $field['merge']; ?>][default]" <?php if ( $field['type'] != 'url' ) { ?> value="<?php echo isset( $field['default'] ) ? stripslashes( wp_strip_all_tags( $field['default'] ) ) : ''; ?>" <?php } else { ?> value="<?php echo isset( $field['default'] ) ? stripslashes( wp_strip_all_tags( esc_url_raw( $field['default'] ) ) ) : ''; ?>" <?php } ?> />
|
1915 |
<p class="description"><small><?php _e( "Assign a default value to populate this field with on initial page load.", 'yikes-inc-easy-mailchimp-extender' );?></small></p>
|
1916 |
<?php
|
1917 |
switch( $field['type'] ) {
|
1918 |
case 'text':
|
1919 |
?>
|
1920 |
+
<p><small class="pre-defined-tag-link"><a href="#TB_inline?width=600&height=550&inlineId=pre-defined-tag-container" onclick="storeGlobalClicked( jQuery( this ) );" class="thickbox"><?php _e( 'View Pre-Defined Tags', 'yikes-inc-easy-mailchimp-extender' ); ?></a></small></p>
|
1921 |
<?php
|
1922 |
break;
|
1923 |
} ?>
|
1931 |
<tr valign="top">
|
1932 |
<td scope="row">
|
1933 |
<label for="placeholder">
|
1934 |
+
<?php _e( 'Default Selection', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
1935 |
</label>
|
1936 |
</td>
|
1937 |
<td>
|
1961 |
<tr valign="top">
|
1962 |
<td scope="row">
|
1963 |
<label for="placeholder">
|
1964 |
+
<?php _e( 'Default Selection', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
1965 |
</label>
|
1966 |
</td>
|
1967 |
<td>
|
1988 |
<tr valign="top">
|
1989 |
<td scope="row">
|
1990 |
<label for="description_<?php echo esc_attr( $field['merge'] ); ?>">
|
1991 |
+
<?php _e( 'Description', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
1992 |
</label>
|
1993 |
</td>
|
1994 |
<td>
|
2000 |
<tr valign="top">
|
2001 |
<td scope="row">
|
2002 |
<label for="description_above_<?php echo esc_attr( $field['merge'] ); ?>">
|
2003 |
+
<?php _e( 'Description Above Field', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
2004 |
</label>
|
2005 |
</td>
|
2006 |
<td>
|
2012 |
<tr valign="top">
|
2013 |
<td scope="row">
|
2014 |
<label for="classes_<?php echo esc_attr( $field['merge'] ); ?>">
|
2015 |
+
<?php _e( 'Additional Classes', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
2016 |
</label>
|
2017 |
</td>
|
2018 |
<td>
|
2024 |
<tr valign="top" class="yikes-checkbox-container yikes-checkbox-container-first">
|
2025 |
<td scope="row">
|
2026 |
<label for="field-required-<?php echo esc_attr( $field['merge'] ); ?>">
|
2027 |
+
<?php _e( 'Field Required?', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
2028 |
</label>
|
2029 |
</td>
|
2030 |
<td>
|
2031 |
<?php $checked = isset( $field['require'] ) ? $field['require'] : '0'; ?>
|
2032 |
+
<input id="field-required-<?php echo esc_attr( $field['merge'] ); ?>" type="checkbox" class="widefat" value="1" name="field[<?php echo $field['merge']; ?>][require]" <?php checked( $checked , 1 ); ?> <?php if ( $field['merge'] == 'EMAIL' ) { ?> disabled="disabled" checked="checked" title="<?php echo __( 'Email is a required field.', 'yikes-inc-easy-mailchimp-extender' ); } ?>">
|
2033 |
<p class="description"><small><?php _e( "Require this field to be filled in before the form can be submitted.", 'yikes-inc-easy-mailchimp-extender' );?></small></p>
|
2034 |
</td>
|
2035 |
</tr>
|
2037 |
<tr valign="top" class="yikes-checkbox-container">
|
2038 |
<td scope="row">
|
2039 |
<label for="hide-field-<?php echo esc_attr( $field['merge'] ); ?>">
|
2040 |
+
<?php _e( 'Hide Field', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
2041 |
</label>
|
2042 |
</td>
|
2043 |
<td>
|
2044 |
<?php $hide = isset( $field['hide'] ) ? $field['hide'] : '0'; ?>
|
2045 |
+
<input id="hide-field-<?php echo esc_attr( $field['merge'] ); ?>" type="checkbox" class="widefat" value="1" name="field[<?php echo $field['merge']; ?>][hide]" <?php checked( $hide , 1 ); ?> <?php if ( $field['merge'] == 'EMAIL' ) { ?> disabled="disabled" title="<?php echo __( 'Cannot toggle email field visibility.', 'yikes-inc-easy-mailchimp-extender' ); } ?>">
|
2046 |
<p class="description"><small><?php _e( "Hide this field from being displayed on the front end.", 'yikes-inc-easy-mailchimp-extender' );?></small></p>
|
2047 |
</td>
|
2048 |
</tr>
|
2050 |
<tr valign="top" class="yikes-checkbox-container">
|
2051 |
<td scope="row">
|
2052 |
<label for="hide-label-<?php echo esc_attr( $field['merge'] ); ?>">
|
2053 |
+
<?php _e( 'Hide Label', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
2054 |
</label>
|
2055 |
</td>
|
2056 |
<td>
|
2075 |
switch( $field['type'] ) {
|
2076 |
default:
|
2077 |
case 'birthday':
|
2078 |
+
$type = __( 'Date Format', 'yikes-inc-easy-mailchimp-extender' );
|
2079 |
$format = ( isset( $field['date_format'] ) ) ? $field['date_format'] : 'MM/DD';
|
2080 |
$format_name = 'date_format';
|
2081 |
break;
|
2082 |
|
2083 |
case 'date':
|
2084 |
+
$type = __( 'Date Format', 'yikes-inc-easy-mailchimp-extender' );
|
2085 |
$format = ( isset( $field['date_format'] ) ) ? $field['date_format'] : 'MM/DD/YYYY';
|
2086 |
$format_name = 'date_format';
|
2087 |
break;
|
2088 |
|
2089 |
case 'phone':
|
2090 |
+
$type = __( 'Phone Format', 'yikes-inc-easy-mailchimp-extender' );
|
2091 |
$format = isset( $field['phone_format'] ) && ! empty( $field['phone_format'] ) ? $field['phone_format'] : __( 'International', 'yikes-inc-easy-mailchimp-extender' );
|
2092 |
$format_name = 'phone_format';
|
2093 |
break;
|
2142 |
<!-- top -->
|
2143 |
<a href="#" class="expansion-section-title settings-sidebar">
|
2144 |
<span class="dashicons dashicons-plus yikes-mc-expansion-toggle"></span><?php echo stripslashes( $field['label'] ); ?>
|
2145 |
+
<?php if ( in_array( $field['group_id'] , $excluded_fields ) ) { ?>
|
2146 |
+
<img src="<?php echo YIKES_MC_URL . 'includes/images/warning.svg'; ?>" class="field-no-longer-exists-warning" title="<?php _e( 'Field no longer exists.', 'yikes-inc-easy-mailchimp-extender' ); ?>" alt="<?php _e( 'Field no longer exists.', 'yikes-inc-easy-mailchimp-extender' ); ?>">
|
2147 |
<?php } ?>
|
2148 |
+
<span class="field-type-text"><small><?php echo __( 'type', 'yikes-inc-easy-mailchimp-extender' ) . ' : ' . $field['type']; ?></small></span>
|
2149 |
</a>
|
2150 |
<!-- expansion section -->
|
2151 |
<div class="yikes-mc-settings-expansion-section">
|
2152 |
|
2153 |
<!-- check if this field exists in the available interest group array -->
|
2154 |
+
<?php if ( in_array( $field['group_id'] , $excluded_fields ) ) { ?>
|
2155 |
<p class="yikes-mc-warning-message"><?php _e( "This field no longer exists in this list. Delete this field from the form to prevent issues on the front end." , 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
2156 |
<?php } ?>
|
2157 |
|
2174 |
<tr valign="top">
|
2175 |
<td scope="row">
|
2176 |
<label for="placeholder">
|
2177 |
+
<?php _e( 'Default Selection', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
2178 |
</label>
|
2179 |
</td>
|
2180 |
<td>
|
2181 |
<?php
|
2182 |
+
if ( $field['type'] != 'checkboxes' ) {
|
2183 |
if ( ! isset( $field['default_choice'] ) ) {
|
2184 |
$group_options = json_decode( stripslashes( $field['groups'] ), true );
|
2185 |
$field['default_choice'] = key( $group_options );
|
2218 |
type="<?php echo $field_type; ?>"
|
2219 |
name="<?php echo $field_name; ?>"
|
2220 |
value="<?php echo $id; ?>" <?php echo $checked; ?>>
|
2221 |
+
<?php echo stripslashes( str_replace( '\'', '', $group ) ); ?>
|
2222 |
</label>
|
2223 |
<?php
|
2224 |
} ?>
|
2234 |
<tr valign="top">
|
2235 |
<td scope="row">
|
2236 |
<label for="placeholder">
|
2237 |
+
<?php _e( 'Default Selection', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
2238 |
</label>
|
2239 |
</td>
|
2240 |
<td>
|
2257 |
<tr valign="top">
|
2258 |
<td scope="row">
|
2259 |
<label for="description_<?php echo esc_attr( $field['group_id'] ); ?>">
|
2260 |
+
<?php _e( 'Description', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
2261 |
</label>
|
2262 |
</td>
|
2263 |
<td>
|
2270 |
<tr valign="top">
|
2271 |
<td scope="row">
|
2272 |
<label for="description_above_<?php echo $field['group_id']; ?>">
|
2273 |
+
<?php _e( 'Description Above Field', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
2274 |
</label>
|
2275 |
</td>
|
2276 |
<td>
|
2283 |
<tr valign="top">
|
2284 |
<td scope="row">
|
2285 |
<label for="classes_<?php echo esc_attr( $field['group_id'] ); ?>">
|
2286 |
+
<?php _e( 'Additional Classes', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
2287 |
</label>
|
2288 |
</td>
|
2289 |
<td>
|
2295 |
<tr valign="top">
|
2296 |
<td scope="row">
|
2297 |
<label for="field-required-<?php echo esc_attr( $field['group_id'] ); ?>">
|
2298 |
+
<?php _e( 'Field Required?', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
2299 |
</label>
|
2300 |
</td>
|
2301 |
<td>
|
2308 |
<tr valign="top">
|
2309 |
<td scope="row">
|
2310 |
<label for="hide-field-<?php echo esc_attr( $field['group_id'] ); ?>">
|
2311 |
+
<?php _e( 'Hide Field', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
2312 |
</label>
|
2313 |
</td>
|
2314 |
<td>
|
2321 |
<tr valign="top">
|
2322 |
<td scope="row">
|
2323 |
<label for="hide-label-<?php echo esc_attr( $field['group_id'] ); ?>">
|
2324 |
+
<?php _e( 'Hide Label', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
2325 |
</label>
|
2326 |
</td>
|
2327 |
<td>
|
2352 |
}
|
2353 |
} else {
|
2354 |
?>
|
2355 |
+
<h4 class="no-fields-assigned-notice non-draggable-yikes"><em><?php _e( 'No fields are assigned to this form. Select fields from the right hand column to add to this form.', 'yikes-inc-easy-mailchimp-extender' ); ?></em></h4>
|
2356 |
<?php
|
2357 |
}
|
2358 |
/* Pre Defined Merge Tag Container - Always rendered so the modal appears and links are clickable on initial page load */
|
2359 |
add_thickbox();
|
2360 |
// enqueue jquery qtip for our tooltip
|
2361 |
+
wp_enqueue_script( 'jquery-qtip-tooltip', YIKES_MC_URL . 'admin/js/min/jquery.qtip.min.js', array( 'jquery' ) );
|
2362 |
+
wp_enqueue_style( 'jquery-qtip-style', YIKES_MC_URL . 'admin/css/jquery.qtip.min.css' );
|
2363 |
$available_tags = array(
|
2364 |
array(
|
2365 |
'tag' => '{page_title}',
|
2366 |
+
'description' => '<h4 class="tooltip-title">' . __( 'Page Title', 'yikes-inc-easy-mailchimp-extender' ) . ' | <small>{page_title}</small></h4><hr />' . __( 'Pre-populate the field with the current page or post title that the user is on when opting in to your mailing list.', 'yikes-inc-easy-mailchimp-extender' ),
|
2367 |
'title' => __( 'Page Title', 'yikes-inc-easy-mailchimp-extender' )
|
2368 |
),
|
2369 |
array(
|
2370 |
'tag' => '{page_id}',
|
2371 |
+
'description' => '<h4 class="tooltip-title">' . __( 'Page ID', 'yikes-inc-easy-mailchimp-extender' ) . ' | <small>{page_id}</small></h4><hr />' . __( 'Pre-populate the field with the current page or post ID that the user is on when opting in to your mailing list.', 'yikes-inc-easy-mailchimp-extender' ),
|
2372 |
'title' => __( 'Page ID', 'yikes-inc-easy-mailchimp-extender' )
|
2373 |
),
|
2374 |
array(
|
2375 |
'tag' => '{page_url}',
|
2376 |
+
'description' => '<h4 class="tooltip-title">' . __( 'Page URL', 'yikes-inc-easy-mailchimp-extender' ) . ' | <small>{page_url}</small></h4><hr />' . __( 'Pre-populate the field with the current page URL that the user is on when opting in to your mailing list.', 'yikes-inc-easy-mailchimp-extender' ),
|
2377 |
'title' => __( 'Page URL', 'yikes-inc-easy-mailchimp-extender' )
|
2378 |
),
|
2379 |
array(
|
2380 |
'tag' => '{blog_name}',
|
2381 |
+
'description' => '<h4 class="tooltip-title">' . __( 'Blog Name', 'yikes-inc-easy-mailchimp-extender' ) . ' | <small>{blog_name}</small></h4><hr />' . __( 'Pre-populate the field with the current blog name that the user is on when opting in to your mailing list. This is especially helpful for multi-site networks.', 'yikes-inc-easy-mailchimp-extender' ),
|
2382 |
'title' => __( 'Blog Name', 'yikes-inc-easy-mailchimp-extender' )
|
2383 |
),
|
2384 |
array(
|
2385 |
'tag' => '{user_logged_in}',
|
2386 |
+
'description' => '<h4 class="tooltip-title">' . __( 'User Logged In', 'yikes-inc-easy-mailchimp-extender' ) . ' | <small>{user_logged_in}</small></h4><hr />' . __( 'Detects if a user is logged in and pre-populates the field with an appropriate value.', 'yikes-inc-easy-mailchimp-extender' ),
|
2387 |
'title' => __( 'User Logged In', 'yikes-inc-easy-mailchimp-extender' )
|
2388 |
),
|
2389 |
);
|
2411 |
<div id="pre-defined-tag-container">
|
2412 |
<input type="hidden" value="" class="clicked-input">
|
2413 |
<div id="pre-defined-tag-interior-container">
|
2414 |
+
<h3><?php _e( 'Pre Defined Tags', 'yikes-inc-easy-mailchimp-extender' ); ?></h3>
|
2415 |
+
<p class="description"><?php _e( 'You can use any of the following tags to populate a MailChimp text field with dynamic content. This can be used to determine which page the user signed up on, if the user was logged in and more.', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
2416 |
<ul>
|
2417 |
+
<?php foreach( apply_filters( 'yikes-mailchimp-custom-default-value-tags', $available_tags ) as $tag ) { ?>
|
2418 |
<li class="tooltop-tag">
|
2419 |
<!-- link/tag -->
|
2420 |
<a href="#" onclick="populateDefaultValue( '<?php echo $tag['tag']; ?>' );return false;" data-attr-tag="<?php echo $tag['tag']; ?>" title="<?php echo $tag['title']; ?>"><?php echo $tag['title']; ?></a>
|
2557 |
*/
|
2558 |
public function yikes_easy_mailchimp_create_form() {
|
2559 |
$nonce = $_REQUEST['nonce'];
|
2560 |
+
if ( ! wp_verify_nonce( $nonce, 'create_mailchimp_form' ) ) {
|
2561 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) );
|
2562 |
}
|
2563 |
|
2592 |
$nonce = $_REQUEST['nonce'];
|
2593 |
$post_id_to_delete = $_REQUEST['mailchimp-form'];
|
2594 |
// verify our nonce
|
2595 |
+
if ( ! wp_verify_nonce( $nonce, 'delete-mailchimp-form-'.$post_id_to_delete ) ) {
|
2596 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
2597 |
}
|
2598 |
|
2612 |
$nonce = $_REQUEST['nonce'];
|
2613 |
$post_id_to_clone = $_REQUEST['mailchimp-form'];
|
2614 |
// verify our nonce
|
2615 |
+
if ( ! wp_verify_nonce( $nonce, 'duplicate-mailchimp-form-'.$post_id_to_clone ) ) {
|
2616 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
2617 |
}
|
2618 |
|
2645 |
$nonce = $_REQUEST['nonce'];
|
2646 |
$form_id_to_reset = $_REQUEST['mailchimp-form'];
|
2647 |
// verify our nonce
|
2648 |
+
if ( ! wp_verify_nonce( $nonce, 'reset-stats-mailchimp-form-'.$form_id_to_reset ) ) {
|
2649 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
2650 |
}
|
2651 |
|
2726 |
'update-link' => trim( $_POST['yikes-easy-mc-user-update-link'] ) ? trim( stripslashes( $_POST['yikes-easy-mc-user-update-link'] ) ) : '',
|
2727 |
'email-subject' => trim( $_POST['yikes-easy-mc-user-email-subject'] ) ? trim( stripslashes( $_POST['yikes-easy-mc-user-email-subject'] ) ) : '',
|
2728 |
'email-body' => trim( $_POST['yikes-easy-mc-user-email-body'] ) ? trim( stripslashes( $_POST['yikes-easy-mc-user-email-body'] ) ) : '',
|
2729 |
+
'update-email-success' => trim( $_POST['yikes-easy-mc-update-email-successful'] ) ? trim( stripslashes( $_POST['yikes-easy-mc-update-email-successful'] ) ) : '',
|
2730 |
+
'update-email-failure' => trim( $_POST['yikes-easy-mc-update-email-failure'] ) ? trim( stripslashes( $_POST['yikes-easy-mc-update-email-failure'] ) ) : '',
|
2731 |
);
|
2732 |
|
2733 |
// Setup the new form settings array
|
2820 |
$email_id = $_REQUEST['email_id'];
|
2821 |
|
2822 |
// verify our nonce
|
2823 |
+
if ( ! wp_verify_nonce( $nonce, 'unsubscribe-user-' . $email_id ) ) {
|
2824 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
2825 |
}
|
2826 |
|
2842 |
// grab our nonnce
|
2843 |
$nonce = $_REQUEST['nonce'];
|
2844 |
// validate nonce
|
2845 |
+
if ( !wp_verify_nonce( $nonce, 'create_error_log' ) ) {
|
2846 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
2847 |
}
|
2848 |
// setup the path to the error log
|
2849 |
+
$error_log = fopen( plugin_dir_path( __FILE__ ) . '../includes/error_log/yikes-easy-mailchimp-error-log.php', 'w' );
|
2850 |
try {
|
2851 |
// create the file
|
2852 |
fwrite( $error_log , '' );
|
2866 |
|
2867 |
// verify our nonce
|
2868 |
$nonce = $_REQUEST['nonce'];
|
2869 |
+
if ( ! wp_verify_nonce( $nonce, 'clear-mc-transient-data' ) ) {
|
2870 |
wp_die( __( "We've run into an error. The security check didn't pass. Please try again." , 'yikes-inc-easy-mailchimp-extender' ) , __( "Failed nonce validation" , 'yikes-inc-easy-mailchimp-extender' ) , array( 'response' => 500 , 'back_link' => true ) );
|
2871 |
}
|
2872 |
|
2873 |
$this->delete_yikes_mailchimp_transients();
|
2874 |
|
2875 |
+
// if the request came from the settings page, redirect to the settings page.
|
2876 |
$referer = wp_get_referer();
|
2877 |
if ( $referer && ( strpos( $referer, 'yikes-inc-easy-mailchimp-settings' ) > 0 ) ) {
|
2878 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=api-cache-settings&transient-cleared=true' ) ) );
|
2879 |
} elseif ( isset( $_REQUEST['page'] ) && $_REQUEST['page'] === 'yikes-mailchimp-edit-form' && isset( $_REQUEST['id'] ) && ! empty( $_REQUEST['id'] ) ) {
|
2880 |
|
2881 |
+
// else check if we were editing a form.
|
2882 |
$id = filter_var( $_REQUEST['id'], FILTER_SANITIZE_NUMBER_INT );
|
2883 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-mailchimp-edit-form&id=' . $id ) ) );
|
2884 |
} else {
|
2885 |
+
// else redirect to the manage forms page.
|
2886 |
wp_redirect( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp&transient-cleared=true' ) ) );
|
2887 |
}
|
2888 |
|
2890 |
}
|
2891 |
|
2892 |
/**
|
2893 |
+
* Return an array of MailChimp lists associated with this account
|
2894 |
+
*
|
2895 |
+
* Used when deleting the sites MailChimp cache stored
|
2896 |
+
*
|
2897 |
+
* @since 6.0.2
|
2898 |
+
* @return $list_id_array - array of list id's to loop over
|
2899 |
+
*/
|
2900 |
public function get_mailchimp_list_ids_on_account() {
|
2901 |
$api_key = yikes_get_mc_api_key();
|
2902 |
if ( ! $api_key ) {
|
2903 |
+
// if no api key is set/site is not connected, return an empty array.
|
2904 |
return array();
|
2905 |
}
|
2906 |
|
2916 |
return $lists;
|
2917 |
}
|
2918 |
|
2919 |
+
/**
|
2920 |
+
* Include our main Helper class file
|
2921 |
+
*
|
2922 |
+
* @since 6.0
|
2923 |
+
*/
|
2924 |
public function yikes_mailchimp_load_helper_class() {
|
2925 |
+
// check to see if it's already loaded up.
|
2926 |
+
if ( !class_exists( 'Yikes_Inc_Easy_Mailchimp_Forms_Helper' ) ) {
|
2927 |
// Include our main helper class file
|
2928 |
include_once( YIKES_MC_PATH . 'admin/partials/helpers/init.php' );
|
2929 |
}
|
2930 |
}
|
2931 |
|
2932 |
+
/**
|
2933 |
+
* Alter the color scheme based on the current user selection (this is done to help integrate the plugin into the dashboard more seamlessly)
|
2934 |
+
*
|
2935 |
+
* @since 0.1
|
2936 |
+
* @order requires that yikes-inc-easy-mailchimp-extender-admin.min.css be enqueued, so we can override the defaults (handle: yikes-inc-easy-mailchimp-extender-admin)
|
2937 |
+
* @return print out custom styles to the admin header to alter the default blue color
|
2938 |
+
*/
|
2939 |
public function alter_yikes_easy_mc_color_scheme() {
|
2940 |
// get the current set color scheme for the logged in user
|
2941 |
$current_color_scheme = get_user_option( 'admin_color' );
|
2981 |
</style>
|
2982 |
<?php
|
2983 |
$override_admin_styles = ob_get_clean();
|
2984 |
+
// add our inline styles.
|
2985 |
echo $override_admin_styles;
|
2986 |
}
|
2987 |
|
2988 |
/**
|
2989 |
+
* Display premium support page if any add-ons are installed, otherwise display free support page
|
2990 |
+
*/
|
2991 |
public function display_support_page_content() {
|
2992 |
|
2993 |
$addons = get_option( 'yikes-easy-mc-active-addons', array() );
|
2995 |
// If we have premium add-ons...
|
2996 |
if ( ! empty( $addons ) ) {
|
2997 |
|
2998 |
+
// Add our premium support partial.
|
2999 |
include_once( YIKES_MC_PATH . 'admin/partials/helpers/premium-support.php' );
|
3000 |
} else {
|
3001 |
|
3002 |
+
// Otherwise add our free support partial.
|
3003 |
include_once( YIKES_MC_PATH . 'admin/partials/helpers/free-support.php' );
|
3004 |
}
|
3005 |
}
|
3006 |
|
3007 |
/**
|
3008 |
+
* Check the users version number, and display a notice to upgrade the database if needed
|
3009 |
+
*
|
3010 |
+
* @since 6.0.4
|
3011 |
+
*/
|
3012 |
public function check_yikes_mc_table_version() {
|
3013 |
+
if ( get_option( 'yikes_mc_database_version', '0.00' ) < '1.0' ) {
|
3014 |
require_once YIKES_MC_PATH . 'includes/class-yikes-inc-easy-mailchimp-extender-activator.php';
|
3015 |
global $wpdb;
|
3016 |
Yikes_Inc_Easy_Mailchimp_Extender_Activator::_activate_yikes_easy_mailchimp( $wpdb );
|
3019 |
}
|
3020 |
}
|
3021 |
|
3022 |
+
/**
|
3023 |
+
* Process [yikes-mailchimp-form-description] into the shortcode
|
3024 |
+
*
|
3025 |
+
* @since 6.0.4.4
|
3026 |
+
*/
|
3027 |
public function process_subscriber_count_shortcode_in_form_descriptions( $form_description, $form_id ) {
|
3028 |
$form_description = str_replace( '[yikes-mailchimp-subscriber-count]', do_shortcode( '[yikes-mailchimp-subscriber-count form="' . $form_id . '"]' ), $form_description );
|
3029 |
return $form_description;
|
3030 |
}
|
3031 |
|
3032 |
+
/**
|
3033 |
+
* Generate the sidebar advertisement on the 'Edit Form' page
|
3034 |
+
*
|
3035 |
+
* @since 6.0.3
|
3036 |
+
*/
|
3037 |
public function generate_edit_forms_upsell_ad() {
|
3038 |
+
$upsell_ads = glob( YIKES_MC_PATH . 'includes/upsells/*.php' );
|
3039 |
+
if ( $upsell_ads && ! empty( $upsell_ads ) ) {
|
3040 |
+
$ad_count = absint( count( $upsell_ads ) - 1 );
|
3041 |
+
$ad = $upsell_ads[ mt_rand( 0, $ad_count ) ];
|
3042 |
+
ob_start();
|
3043 |
+
include_once( $ad );
|
3044 |
+
$ad_content = ob_get_contents();
|
3045 |
+
ob_get_clean();
|
3046 |
+
}
|
3047 |
+
echo wp_kses_post( $ad_content );
|
3048 |
}
|
3049 |
|
3050 |
/***
|
3055 |
*/
|
3056 |
public function delete_yikes_mailchimp_transients() {
|
3057 |
|
3058 |
+
// delete all of the list_id transients.
|
3059 |
+
$list_ids = $this->get_mailchimp_list_ids_on_account();
|
3060 |
+
foreach ( $list_ids as $id ) {
|
3061 |
+
delete_transient( "yikes_eme_list_{$id}" );
|
3062 |
+
delete_transient( "yikes_eme_merge_variables_{$id}" );
|
3063 |
+
delete_transient( "yikes_eme_interest_categories_{$id}" );
|
3064 |
+
delete_transient( "yikes_eme_segments_{$id}" );
|
3065 |
+
delete_transient( "yikes_eme_members_{$id}" );
|
3066 |
+
}
|
3067 |
+
|
3068 |
+
delete_transient( 'yikes-easy-mailchimp-list-data' );
|
3069 |
+
delete_transient( 'yikes-easy-mailchimp-account-data' );
|
3070 |
+
delete_transient( 'yikes-easy-mailchimp-profile-data' );
|
3071 |
+
delete_transient( 'yikesinc_eme_list_ids' );
|
3072 |
+
delete_transient( 'yikes_eme_lists' );
|
3073 |
+
}
|
3074 |
|
3075 |
/**
|
3076 |
* Perform a DB version check to see if we need to migrate our forms.
|
admin/css/yikes-inc-easy-mailchimp-extender-admin.css
CHANGED
@@ -95,8 +95,7 @@
|
|
95 |
/****************************/
|
96 |
|
97 |
/** List Statistics **/
|
98 |
-
#yikes_easy_mc_list_stats_widget h3 span
|
99 |
-
#yikes_easy_mc_account_activity_widget h3 span {
|
100 |
background: url( '../../includes/images/MailChimp_Assets/Freddie_original.png' ) no-repeat scroll 8px 4px / 25px auto;
|
101 |
background-size: 25px;
|
102 |
display: block;
|
@@ -105,10 +104,6 @@
|
|
105 |
padding-top: 5px;
|
106 |
}
|
107 |
|
108 |
-
#yikes_easy_mc_account_activity_widget h3.hndle {
|
109 |
-
padding: 0;
|
110 |
-
}
|
111 |
-
|
112 |
#yikes_easy_mc_list_stats_widget h3 {
|
113 |
padding: 0;
|
114 |
line-height: 1.6em;
|
@@ -172,10 +167,6 @@
|
|
172 |
font-family: "Open Sans";
|
173 |
}
|
174 |
|
175 |
-
/** Account Activity **/
|
176 |
-
#yikes_easy_mc_account_activity_widget table th.row-title {
|
177 |
-
padding-left: 10px;
|
178 |
-
}
|
179 |
|
180 |
/* Thickbox for Tags */
|
181 |
#pre-defined-tag-interior-container {
|
@@ -228,14 +219,13 @@
|
|
228 |
body.easy-forms_page_yikes-inc-easy-mailchimp-settings .interest-group-section {
|
229 |
display: block;
|
230 |
width: 100%;
|
231 |
-
margin: 1.5em 0;
|
232 |
}
|
233 |
|
234 |
body.easy-forms_page_yikes-inc-easy-mailchimp-settings .interest-group-section .interest-group-section-title {
|
235 |
display: block;
|
236 |
width: 100%;
|
237 |
-
margin: .5em 0;
|
238 |
-
text-decoration: underline;
|
239 |
}
|
240 |
|
241 |
body.easy-forms_page_yikes-inc-easy-mailchimp-settings .interest-group-section input {
|
@@ -303,12 +293,6 @@
|
|
303 |
width: 80px;
|
304 |
}
|
305 |
|
306 |
-
.about-wrap img.yikes-easy-mc-feature-image.yikes-easy-mc-feature-image-left, .yikes-easy-mc-feature-image-left {
|
307 |
-
float: left;
|
308 |
-
margin-right: 30px;
|
309 |
-
margin-left: 0 !important;
|
310 |
-
}
|
311 |
-
|
312 |
.need-support-icon {
|
313 |
line-height: 1.5;
|
314 |
}
|
@@ -330,42 +314,6 @@ ul.support-option-list {
|
|
330 |
width: 80pt;
|
331 |
}
|
332 |
|
333 |
-
.yikes-easy-mc-whats-new-section-image {
|
334 |
-
float: none;
|
335 |
-
width: 100%;
|
336 |
-
margin-left: 0 !important;
|
337 |
-
}
|
338 |
-
|
339 |
-
.welcome-page-tabs {
|
340 |
-
margin-top: 2em !important;
|
341 |
-
}
|
342 |
-
|
343 |
-
/* Welcome Page */
|
344 |
-
.welcome-page-about-wrap .about-text,
|
345 |
-
.welcome-page-about-wrap h2.welcome-title {
|
346 |
-
margin-left: 115px;
|
347 |
-
}
|
348 |
-
|
349 |
-
.whats-new-wrap img.yikes-easy-mc-whats-new-section-image {
|
350 |
-
margin-top: 10px;
|
351 |
-
}
|
352 |
-
|
353 |
-
.whats-new-wrap .feature-section:nth-child(1) img {
|
354 |
-
float: left;
|
355 |
-
}
|
356 |
-
|
357 |
-
.whats-new-wrap .feature-section:nth-child(3) img {
|
358 |
-
float: right;
|
359 |
-
width: 250px;
|
360 |
-
margin-right: 0 !important;
|
361 |
-
margin-left: 30px;
|
362 |
-
}
|
363 |
-
|
364 |
-
.whats-new-wrap .feature-section:nth-child(4) img {
|
365 |
-
margin-left: 0 !important;
|
366 |
-
}
|
367 |
-
|
368 |
-
|
369 |
#yikes-mailchimp-logo {
|
370 |
height: 132px;
|
371 |
width: 132px;
|
@@ -374,34 +322,6 @@ ul.support-option-list {
|
|
374 |
background: url('../../includes/images/Welcome_Page/yikes-mailchimp-welcome-logo.png') no-repeat;
|
375 |
}
|
376 |
|
377 |
-
.about-wrap #yikes-mailchimp-logo {
|
378 |
-
position: absolute;
|
379 |
-
top: 0;
|
380 |
-
left: 0;
|
381 |
-
}
|
382 |
-
|
383 |
-
.about-wrap h2 {
|
384 |
-
text-align: left;
|
385 |
-
}
|
386 |
-
|
387 |
-
.edd-welcome-screenshots {
|
388 |
-
float: right;
|
389 |
-
margin-left: 10px!important;
|
390 |
-
}
|
391 |
-
|
392 |
-
.about-wrap .feature-section {
|
393 |
-
margin-top: 20px;
|
394 |
-
}
|
395 |
-
|
396 |
-
.about-wrap .feature-section p {
|
397 |
-
max-width: 40em;
|
398 |
-
}
|
399 |
-
|
400 |
-
.about-wrap img.yikes-easy-mc-feature-image {
|
401 |
-
float: right;
|
402 |
-
margin-left: 30px;
|
403 |
-
}
|
404 |
-
|
405 |
.yikes-easy-mc-feature-image.yikes-easy-mc-feature-v3-image {
|
406 |
border: 0;
|
407 |
margin-left: 100px !important;
|
@@ -410,59 +330,6 @@ ul.support-option-list {
|
|
410 |
width: auto;
|
411 |
}
|
412 |
|
413 |
-
#credit-container,
|
414 |
-
#translators-container {
|
415 |
-
display: inline-block;
|
416 |
-
width: 100%;
|
417 |
-
}
|
418 |
-
|
419 |
-
#credit-container h2,
|
420 |
-
#translators-container h2 {
|
421 |
-
margin: 0 0 .5em 1em;
|
422 |
-
}
|
423 |
-
|
424 |
-
#translators-container {
|
425 |
-
margin-top: 5em;
|
426 |
-
}
|
427 |
-
|
428 |
-
#translators-container .translation-language {
|
429 |
-
color: #333;
|
430 |
-
}
|
431 |
-
|
432 |
-
#credit-container .team-member,
|
433 |
-
#translators-container .translator {
|
434 |
-
margin: 1em 0;
|
435 |
-
margin-right: 5%;
|
436 |
-
text-align: center;
|
437 |
-
}
|
438 |
-
|
439 |
-
#credit-container .team-member img,
|
440 |
-
#translators-container .translator img {
|
441 |
-
border-radius: 50%;
|
442 |
-
}
|
443 |
-
|
444 |
-
.admin_page_yikes-mailchimp-welcome .about-wrap div.error,
|
445 |
-
.admin_page_yikes-mailchimp-welcome .about-wrap div.updated {
|
446 |
-
display: block;
|
447 |
-
margin-left: 115px;
|
448 |
-
}
|
449 |
-
|
450 |
-
.github-avatar-image {
|
451 |
-
width: 100px;
|
452 |
-
}
|
453 |
-
|
454 |
-
.github-avatar-url {
|
455 |
-
display: inline-block;
|
456 |
-
width: 20%;
|
457 |
-
text-decoration: none;
|
458 |
-
}
|
459 |
-
|
460 |
-
github-avatar-url:focus {
|
461 |
-
outline: 0; /* remove blue outline around avatars when clicked */
|
462 |
-
}
|
463 |
-
|
464 |
-
/* End Welcome Page */
|
465 |
-
|
466 |
/* Form Customizer Upsell */
|
467 |
div.show-some-love-container img.customizer-upsell-banner,
|
468 |
body.admin_page_yikes-mailchimp-edit-form div.show-some-love-container img {
|
@@ -482,84 +349,6 @@ ul.support-option-list {
|
|
482 |
line-height: 1.5;
|
483 |
}
|
484 |
|
485 |
-
|
486 |
-
/**
|
487 |
-
* Knowledge base tab
|
488 |
-
*/
|
489 |
-
body.admin_page_yikes-mailchimp-welcome #kb-container,
|
490 |
-
body.easy-forms_page_yikes-inc-easy-mailchimp-support .knowledge-base-articles {
|
491 |
-
display: inline-block;
|
492 |
-
margin-top: 1em;
|
493 |
-
}
|
494 |
-
|
495 |
-
body.admin_page_yikes-mailchimp-welcome #kb-container h1 {
|
496 |
-
font-size: 20px;
|
497 |
-
margin-top: -1em;
|
498 |
-
}
|
499 |
-
|
500 |
-
body.admin_page_yikes-mailchimp-welcome #kb-container .knowledge-base-listing,
|
501 |
-
body.easy-forms_page_yikes-inc-easy-mailchimp-support .knowledge-base-articles .knowledge-base-listing {
|
502 |
-
width: 45%;
|
503 |
-
margin-right: 2%;
|
504 |
-
float: left;
|
505 |
-
min-height: 260px;
|
506 |
-
}
|
507 |
-
|
508 |
-
body.admin_page_yikes-mailchimp-welcome #kb-container .knowledge-base-listing li,
|
509 |
-
body.easy-forms_page_yikes-inc-easy-mailchimp-support .knowledge-base-articles .knowledge-base-listing li {
|
510 |
-
margin: 12px 0;
|
511 |
-
text-decoration: none;
|
512 |
-
}
|
513 |
-
|
514 |
-
body.admin_page_yikes-mailchimp-welcome #kb-container .knowledge-base-listing li:before,
|
515 |
-
body.easy-forms_page_yikes-inc-easy-mailchimp-support .knowledge-base-articles .knowledge-base-listing li:before {
|
516 |
-
font-family: "dashicons";
|
517 |
-
content: "\f123";
|
518 |
-
vertical-align: middle;
|
519 |
-
display: block;
|
520 |
-
float: left;
|
521 |
-
margin: 0 5px 5px 0;
|
522 |
-
}
|
523 |
-
|
524 |
-
body.admin_page_yikes-mailchimp-welcome #kb-container .knowledge-base-listing li a,
|
525 |
-
body.easy-forms_page_yikes-inc-easy-mailchimp-support .knowledge-base-articles .knowledge-base-listing li a {
|
526 |
-
text-decoration: none;
|
527 |
-
}
|
528 |
-
|
529 |
-
body.admin_page_yikes-mailchimp-welcome #kb-container .knowledge-base-listing li.list-title,
|
530 |
-
body.easy-forms_page_yikes-inc-easy-mailchimp-support .knowledge-base-articles .knowledge-base-listing li.list-title {
|
531 |
-
font-size: 17px;
|
532 |
-
font-weight: 200;
|
533 |
-
text-decoration: underline;
|
534 |
-
}
|
535 |
-
|
536 |
-
body.admin_page_yikes-mailchimp-welcome #kb-container .knowledge-base-listing li.list-title:before,
|
537 |
-
body.easy-forms_page_yikes-inc-easy-mailchimp-support .knowledge-base-articles .knowledge-base-listing li.list-title:before {
|
538 |
-
content: "";
|
539 |
-
padding-left: 12px;
|
540 |
-
}
|
541 |
-
|
542 |
-
body.admin_page_yikes-mailchimp-welcome .new-feature-list {
|
543 |
-
list-style: none;
|
544 |
-
line-height: middle;
|
545 |
-
}
|
546 |
-
|
547 |
-
body.admin_page_yikes-mailchimp-welcome .new-feature-list li {
|
548 |
-
margin-bottom: 10px;
|
549 |
-
}
|
550 |
-
|
551 |
-
body.admin_page_yikes-mailchimp-welcome .new-feature-list li:before {
|
552 |
-
font-family: "dashicons";
|
553 |
-
content: "\f139";
|
554 |
-
padding-right: 2px;
|
555 |
-
font-size: 20px;
|
556 |
-
vertical-align: middle;
|
557 |
-
}
|
558 |
-
|
559 |
-
/*
|
560 |
-
* End knowledge base listings
|
561 |
-
*/
|
562 |
-
|
563 |
/* Button Container in Review Us Container */
|
564 |
#review-yikes-easy-mailchimp-notice .button-container {
|
565 |
display: block;
|
@@ -648,6 +437,8 @@ ul.support-option-list {
|
|
648 |
.error-message-container label[for="yikes-easy-mc-general-error-message"],
|
649 |
.error-message-container label[for="yikes-easy-mc-user-subscribed-message"],
|
650 |
.error-message-container label[for="yikes-easy-mc-user-subscribed-update-link"],
|
|
|
|
|
651 |
.error-message-container label[for="yikes-easy-mc-user-email-subject"],
|
652 |
.error-message-container label[for="yikes-easy-mc-user-email-body"] {
|
653 |
padding: .5em 1em;
|
@@ -815,8 +606,9 @@ ul.support-option-list {
|
|
815 |
}
|
816 |
|
817 |
input.recaptcha-setting-checkbox {
|
818 |
-
display: block;
|
819 |
margin-top: .5em;
|
|
|
820 |
}
|
821 |
|
822 |
.recaptcha-preview-link {
|
@@ -948,105 +740,7 @@ ul.support-option-list {
|
|
948 |
.list-rating-star {
|
949 |
color: #E6B800;
|
950 |
}
|
951 |
-
/*********************************/
|
952 |
-
/* Accont Details Page */
|
953 |
-
/********************************/
|
954 |
-
/* Chimp Chatter */
|
955 |
-
#chimp-chatter {
|
956 |
-
text-align: center;
|
957 |
-
}
|
958 |
-
#chimp-chatter .chimp-chatter-container {
|
959 |
-
margin: 1em 0.2em;
|
960 |
-
background: #F8F8F8;
|
961 |
-
border-radius: 10px;
|
962 |
-
float: left;
|
963 |
-
height: 220px;
|
964 |
-
padding: 10px;
|
965 |
-
width: 44%;
|
966 |
-
}
|
967 |
-
|
968 |
-
.chimp-chatter-mailchimp-logo {
|
969 |
-
width: 100%;
|
970 |
-
display: block;
|
971 |
-
margin: 0 auto;
|
972 |
-
}
|
973 |
-
|
974 |
-
.chimp-chatter-sidebar h2.account-status {
|
975 |
-
text-align: center;
|
976 |
-
}
|
977 |
-
|
978 |
-
.mailchimp-affiliate-link {
|
979 |
-
color: #333;
|
980 |
-
display: none;
|
981 |
-
}
|
982 |
|
983 |
-
.mailchimp-avatar {
|
984 |
-
display: block;
|
985 |
-
margin: 0 auto;
|
986 |
-
box-shadow: 3px 3px 10px 0px rgba(214, 214, 214, 0.75);
|
987 |
-
}
|
988 |
-
|
989 |
-
.chimpchatter-button-container {
|
990 |
-
clear: both;
|
991 |
-
display: block;
|
992 |
-
}
|
993 |
-
|
994 |
-
.chimp-chatter-postbox {
|
995 |
-
float: left;
|
996 |
-
width: 49%;
|
997 |
-
margin-right: 1%;
|
998 |
-
}
|
999 |
-
|
1000 |
-
#account-details .chimp-chatter-postbox.even {
|
1001 |
-
margin-right: 0;
|
1002 |
-
}
|
1003 |
-
|
1004 |
-
|
1005 |
-
/* Inactive + Active Markers */
|
1006 |
-
.circle-account-inactive {
|
1007 |
-
display: inline-block;
|
1008 |
-
vertical-align: middle;
|
1009 |
-
margin-top: -3px;
|
1010 |
-
margin-right: 5px;
|
1011 |
-
height: 15px;
|
1012 |
-
width: 15px;
|
1013 |
-
border-radius: 50%;
|
1014 |
-
background: rgba(250, 138, 138, 0.79);
|
1015 |
-
}
|
1016 |
-
.chatter-type {
|
1017 |
-
font-weight: 600;
|
1018 |
-
font-family: "open sans";
|
1019 |
-
font-size: 14px;
|
1020 |
-
margin: 5px 5px 0 5px;
|
1021 |
-
}
|
1022 |
-
.chatter-message {
|
1023 |
-
margin: 2px 2px 15px 2px !important;
|
1024 |
-
}
|
1025 |
-
.circle-account-active {
|
1026 |
-
display: inline-block;
|
1027 |
-
vertical-align: middle;
|
1028 |
-
margin-top: -3px;
|
1029 |
-
margin-right: 5px;
|
1030 |
-
height: 15px;
|
1031 |
-
width: 15px;
|
1032 |
-
border-radius: 50%;
|
1033 |
-
background: rgba(128, 214, 128, 0.77);
|
1034 |
-
}
|
1035 |
-
#account-details .mailchimp-avatar {
|
1036 |
-
width: 120px;
|
1037 |
-
border-radius: 10%;
|
1038 |
-
margin-top: .5em;
|
1039 |
-
}
|
1040 |
-
/* Chatter Container Colors */
|
1041 |
-
.chimp-chatter-positive {
|
1042 |
-
border-left: 4px solid rgb(157, 223, 157);
|
1043 |
-
}
|
1044 |
-
.chimp-chatter-negative {
|
1045 |
-
border-left: 4px solid #FBA2A2;
|
1046 |
-
}
|
1047 |
-
.chimp-chatter-neutral {
|
1048 |
-
border-left: 4px solid rgb(177, 177, 177);
|
1049 |
-
}
|
1050 |
/* Sidebar Create a new opt-in form */
|
1051 |
#import-list-to-site {
|
1052 |
margin-top: 10px;
|
@@ -1317,6 +1011,14 @@ ul.support-option-list {
|
|
1317 |
/*********************************/
|
1318 |
/* Checkbox Settings Page */
|
1319 |
/********************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1320 |
#checkbox-settings-form .dashicons-editor-help {
|
1321 |
font-size: 15px;
|
1322 |
line-height: 1.6;
|
@@ -1336,6 +1038,50 @@ ul.support-option-list {
|
|
1336 |
width: 250px;
|
1337 |
}
|
1338 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1339 |
/*****************************/
|
1340 |
/* Manage Forms Page */
|
1341 |
/***************************/
|
@@ -1671,8 +1417,21 @@ a.yikes-delete-subscriber,
|
|
1671 |
padding: 0 0 10px 15px;
|
1672 |
}
|
1673 |
|
1674 |
-
|
1675 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1676 |
}
|
1677 |
|
1678 |
/***********************/
|
@@ -1844,19 +1603,20 @@ label.login-restriction-center {
|
|
1844 |
width: 100%;
|
1845 |
}
|
1846 |
|
1847 |
-
.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-
|
1848 |
display: inline-block;
|
1849 |
}
|
1850 |
|
1851 |
-
.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-
|
1852 |
color: #F56060;
|
1853 |
}
|
1854 |
|
1855 |
-
.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-
|
1856 |
float: left;
|
1857 |
margin-right: .5em;
|
1858 |
margin-top: 0;
|
1859 |
margin-bottom: 0;
|
|
|
1860 |
}
|
1861 |
.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .nested-child .yikes-easy-mc-form-restriction-pending-message,
|
1862 |
.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .nested-child .yikes-easy-mc-form-restriction-expired-message,
|
@@ -1878,11 +1638,11 @@ label.login-restriction-center {
|
|
1878 |
margin: 0;
|
1879 |
}
|
1880 |
|
1881 |
-
.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-
|
1882 |
margin-bottom: 0;
|
1883 |
}
|
1884 |
|
1885 |
-
.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-
|
1886 |
margin-bottom: .75em;
|
1887 |
}
|
1888 |
|
@@ -2244,27 +2004,6 @@ body.wp-customizer #available-widgets [id*="_yikes_easy_mc_widget"]>div.widget-t
|
|
2244 |
background-position-y: 29px;
|
2245 |
}
|
2246 |
|
2247 |
-
/*********************************/
|
2248 |
-
/* Support Page */
|
2249 |
-
/*********************************/
|
2250 |
-
.support-section {
|
2251 |
-
margin: 1.5em 0;
|
2252 |
-
padding: 1em 0;
|
2253 |
-
}
|
2254 |
-
|
2255 |
-
.github-octocat {
|
2256 |
-
background: url( '../../includes/images/Support_Page/Octocat.png' );
|
2257 |
-
background-repeat: no-repeat;
|
2258 |
-
background-size: 100%;
|
2259 |
-
background-position: left top;
|
2260 |
-
width: 50px;
|
2261 |
-
height: 45px;
|
2262 |
-
display: block;
|
2263 |
-
float: left;
|
2264 |
-
margin-top: -5px;
|
2265 |
-
}
|
2266 |
-
|
2267 |
-
|
2268 |
/** Break Points **/
|
2269 |
|
2270 |
@media screen and (max-width: 1200px) {
|
95 |
/****************************/
|
96 |
|
97 |
/** List Statistics **/
|
98 |
+
#yikes_easy_mc_list_stats_widget h3 span {
|
|
|
99 |
background: url( '../../includes/images/MailChimp_Assets/Freddie_original.png' ) no-repeat scroll 8px 4px / 25px auto;
|
100 |
background-size: 25px;
|
101 |
display: block;
|
104 |
padding-top: 5px;
|
105 |
}
|
106 |
|
|
|
|
|
|
|
|
|
107 |
#yikes_easy_mc_list_stats_widget h3 {
|
108 |
padding: 0;
|
109 |
line-height: 1.6em;
|
167 |
font-family: "Open Sans";
|
168 |
}
|
169 |
|
|
|
|
|
|
|
|
|
170 |
|
171 |
/* Thickbox for Tags */
|
172 |
#pre-defined-tag-interior-container {
|
219 |
body.easy-forms_page_yikes-inc-easy-mailchimp-settings .interest-group-section {
|
220 |
display: block;
|
221 |
width: 100%;
|
222 |
+
margin: 0 0 1.5em 0;
|
223 |
}
|
224 |
|
225 |
body.easy-forms_page_yikes-inc-easy-mailchimp-settings .interest-group-section .interest-group-section-title {
|
226 |
display: block;
|
227 |
width: 100%;
|
228 |
+
margin: .5em 0 0;
|
|
|
229 |
}
|
230 |
|
231 |
body.easy-forms_page_yikes-inc-easy-mailchimp-settings .interest-group-section input {
|
293 |
width: 80px;
|
294 |
}
|
295 |
|
|
|
|
|
|
|
|
|
|
|
|
|
296 |
.need-support-icon {
|
297 |
line-height: 1.5;
|
298 |
}
|
314 |
width: 80pt;
|
315 |
}
|
316 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
317 |
#yikes-mailchimp-logo {
|
318 |
height: 132px;
|
319 |
width: 132px;
|
322 |
background: url('../../includes/images/Welcome_Page/yikes-mailchimp-welcome-logo.png') no-repeat;
|
323 |
}
|
324 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
325 |
.yikes-easy-mc-feature-image.yikes-easy-mc-feature-v3-image {
|
326 |
border: 0;
|
327 |
margin-left: 100px !important;
|
330 |
width: auto;
|
331 |
}
|
332 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
333 |
/* Form Customizer Upsell */
|
334 |
div.show-some-love-container img.customizer-upsell-banner,
|
335 |
body.admin_page_yikes-mailchimp-edit-form div.show-some-love-container img {
|
349 |
line-height: 1.5;
|
350 |
}
|
351 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
352 |
/* Button Container in Review Us Container */
|
353 |
#review-yikes-easy-mailchimp-notice .button-container {
|
354 |
display: block;
|
437 |
.error-message-container label[for="yikes-easy-mc-general-error-message"],
|
438 |
.error-message-container label[for="yikes-easy-mc-user-subscribed-message"],
|
439 |
.error-message-container label[for="yikes-easy-mc-user-subscribed-update-link"],
|
440 |
+
.error-message-container label[for="yikes-easy-mc-update-email-successful"],
|
441 |
+
.error-message-container label[for="yikes-easy-mc-update-email-failure"],
|
442 |
.error-message-container label[for="yikes-easy-mc-user-email-subject"],
|
443 |
.error-message-container label[for="yikes-easy-mc-user-email-body"] {
|
444 |
padding: .5em 1em;
|
606 |
}
|
607 |
|
608 |
input.recaptcha-setting-checkbox {
|
609 |
+
display: inline-block;
|
610 |
margin-top: .5em;
|
611 |
+
vertical-align: bottom;
|
612 |
}
|
613 |
|
614 |
.recaptcha-preview-link {
|
740 |
.list-rating-star {
|
741 |
color: #E6B800;
|
742 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
743 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
744 |
/* Sidebar Create a new opt-in form */
|
745 |
#import-list-to-site {
|
746 |
margin-top: 10px;
|
1011 |
/*********************************/
|
1012 |
/* Checkbox Settings Page */
|
1013 |
/********************************/
|
1014 |
+
.integreation-checkbox-interest-groups-header {
|
1015 |
+
display: inline;
|
1016 |
+
}
|
1017 |
+
.yikes-mailchimp-toggle-ig {}
|
1018 |
+
.integration-checkbox-interest-groups-hr {
|
1019 |
+
margin-top: 10px;
|
1020 |
+
margin-bottom: 10px;
|
1021 |
+
}
|
1022 |
#checkbox-settings-form .dashicons-editor-help {
|
1023 |
font-size: 15px;
|
1024 |
line-height: 1.6;
|
1038 |
width: 250px;
|
1039 |
}
|
1040 |
|
1041 |
+
.integration-checkbox-interest-groups {
|
1042 |
+
margin-bottom: 10px;
|
1043 |
+
}
|
1044 |
+
|
1045 |
+
.integration-checkbox-interest-groups p, .integration-checkbox-interest-groups section {
|
1046 |
+
padding-left: 25px;
|
1047 |
+
}
|
1048 |
+
|
1049 |
+
.yikes-mailchimp-checkbox-integration-list {
|
1050 |
+
color: #006799;
|
1051 |
+
display: inline-block;
|
1052 |
+
font-weight: 600;
|
1053 |
+
margin-bottom: 5px;
|
1054 |
+
padding: 0 16px 8px 2px;
|
1055 |
+
vertical-align: top;
|
1056 |
+
}
|
1057 |
+
|
1058 |
+
.yikes-mailchimp-checkbox-integration-item {
|
1059 |
+
font-size: 14px;
|
1060 |
+
font-weight: 600;
|
1061 |
+
margin-bottom: 10px;
|
1062 |
+
}
|
1063 |
+
|
1064 |
+
.yikes-mailchimp-checkbox-integration-list input[type="checkbox"] {
|
1065 |
+
margin-right: 0;
|
1066 |
+
}
|
1067 |
+
|
1068 |
+
label.optin-checkbox-label {
|
1069 |
+
display: block;
|
1070 |
+
margin: 4px 0;
|
1071 |
+
}
|
1072 |
+
|
1073 |
+
label.optin-checkbox-label input.optin-checkbox-label-input,
|
1074 |
+
label.optin-checkbox-label select {
|
1075 |
+
display: inline-block;
|
1076 |
+
}
|
1077 |
+
|
1078 |
+
label.optin-checkbox-label select {
|
1079 |
+
margin-left: 17px;
|
1080 |
+
width: auto;
|
1081 |
+
}
|
1082 |
+
|
1083 |
+
|
1084 |
+
|
1085 |
/*****************************/
|
1086 |
/* Manage Forms Page */
|
1087 |
/***************************/
|
1417 |
padding: 0 0 10px 15px;
|
1418 |
}
|
1419 |
|
1420 |
+
|
1421 |
+
.list-page-mailchimp-logo {
|
1422 |
+
width: 100%;
|
1423 |
+
display: block;
|
1424 |
+
margin: 0 auto;
|
1425 |
+
}
|
1426 |
+
|
1427 |
+
.list-page-sidebar h2.account-status {
|
1428 |
+
text-align: center;
|
1429 |
+
}
|
1430 |
+
|
1431 |
+
.mailchimp-avatar {
|
1432 |
+
display: block;
|
1433 |
+
margin: 0 auto;
|
1434 |
+
box-shadow: 3px 3px 10px 0px rgba(214, 214, 214, 0.75);
|
1435 |
}
|
1436 |
|
1437 |
/***********************/
|
1603 |
width: 100%;
|
1604 |
}
|
1605 |
|
1606 |
+
.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-restriction-section {
|
1607 |
display: inline-block;
|
1608 |
}
|
1609 |
|
1610 |
+
.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-restriction-section p.description.error {
|
1611 |
color: #F56060;
|
1612 |
}
|
1613 |
|
1614 |
+
.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-restriction-section label {
|
1615 |
float: left;
|
1616 |
margin-right: .5em;
|
1617 |
margin-top: 0;
|
1618 |
margin-bottom: 0;
|
1619 |
+
display: inline-block;
|
1620 |
}
|
1621 |
.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .nested-child .yikes-easy-mc-form-restriction-pending-message,
|
1622 |
.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .nested-child .yikes-easy-mc-form-restriction-expired-message,
|
1638 |
margin: 0;
|
1639 |
}
|
1640 |
|
1641 |
+
.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-restriction-section {
|
1642 |
margin-bottom: 0;
|
1643 |
}
|
1644 |
|
1645 |
+
.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-restriction-section.last {
|
1646 |
margin-bottom: .75em;
|
1647 |
}
|
1648 |
|
2004 |
background-position-y: 29px;
|
2005 |
}
|
2006 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007 |
/** Break Points **/
|
2008 |
|
2009 |
@media screen and (max-width: 1200px) {
|
admin/css/yikes-inc-easy-mailchimp-extender-admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#yikes-easy-mc-dashboard-widget-stats h3,.addon-image{text-align:center}.yikes-easy-mc-hidden{display:none}.shortcode-input-field{color:#333;background:rgba(216,216,216,.35)!important}.edit-form-field-container-span{display:block;margin:.5em 0}.no-forms-widget{margin:2em 0}.view-ad-link{display:block;margin:0 auto}.no-forms-found-icon{font-size:14px;line-height:1.4;width:14px;color:#e07d7d}.coming-soon-button{position:absolute}.coming-soon-button .dashicons{font-size:14px;line-height:1.8}.add-ons-about-text{margin-top:0}#add-ons{margin:3em 0}.addon-image{display:block}.no-mailchimp-lists-found{padding:25px 0 25px 25px}.add-new-subscriber-button{display:block;margin-top:2em}.add-new-subscriber-form-container{display:none;padding-top:1em}.add-new-subscriber-form-container h4{margin-top:0}#yikes-easy-mc-widget-stat-holder,.yikes-easy-mc-stats-table{margin-top:1em}#migration-buttons{display:inline-block;margin-bottom:.5em}#migration-buttons form:first-child{margin-right:10px}#migration-buttons form{float:left}#yikes_easy_mc_account_activity_widget h3 span,#yikes_easy_mc_list_stats_widget h3 span{background:url(../../includes/images/MailChimp_Assets/Freddie_original.png) 8px 4px/25px auto no-repeat;background-size:25px;display:block;height:30px;padding-left:3em;padding-top:5px}#yikes_easy_mc_account_activity_widget h3.hndle,#yikes_easy_mc_list_stats_widget .inside{padding:0}#yikes_easy_mc_list_stats_widget h3{padding:0;line-height:1.6em}.yikes-easy-mc-stats-table,.yikes-easy-mc-stats-table .yikes-easy-mc-table-stats-tr,.yikes-easy-mc-stats-table tbody{display:block;width:100%}.yikes-easy-mc-table-stats-tr td{display:inline-block;width:48%;text-align:center}.yikes-easy-mc-table-stats-tr td:hover{cursor:pointer}.yikes-easy-mc-table-stats-tr td:first-of-type{border-right:1px solid #ececec}.yikes-easy-mc-stats-table .yikes-easy-mc-table-stats-tr-first{border-bottom:1px solid #ececec;border-top:1px solid #ececec}.yikes-easy-mc-stats-table p.yikes-easy-mc-dashboard-stat{color:#00a0d2;font-weight:800;font-size:20px;margin-bottom:2px;margin-top:15px;line-height:1.2;max-height:80px}.yikes-easy-mc-stats-table p.yikes-easy-mc-stat-list-label{font-size:13px;margin-top:0;margin-bottom:15px;font-family:"Open Sans"}#yikes_easy_mc_account_activity_widget table th.row-title{padding-left:10px}#pre-defined-tag-interior-container{background:url(../../includes/images/tinyMCE/yikes-mailchimp-combo-faded.png) bottom right no-repeat #fff;background-size:40%}.qtip-default{background-color:transparent!important;border:transparent!important;z-index:9999999!important}.qtip-bootstrap{padding:10px!important;z-index:9999999!important;font-size:12px}.search-interest-group-preloader{display:block;margin:8px 0 0 55px;width:12px}.no-interest-groupings-enabled-message{display:block;margin-top:12px!important;width:100%}.tooltip-integration-banner{max-width:100%;margin:0 0 .25em}.tooltiptext.qtip-bootstrap{font-size:12px}.tooltip-title{margin:0}.dashicons-editor-help:hover{cursor:pointer}body.easy-forms_page_yikes-inc-easy-mailchimp-settings .interest-group-section{display:block;width:100%;margin:1.5em 0}body.easy-forms_page_yikes-inc-easy-mailchimp-settings .interest-group-section .interest-group-section-title{display:block;width:100%;margin:.5em 0;text-decoration:underline}.github-avatar-url,body.admin_page_yikes-mailchimp-welcome #kb-container .knowledge-base-listing li a,body.easy-forms_page_yikes-inc-easy-mailchimp-support .knowledge-base-articles .knowledge-base-listing li a{text-decoration:none}body.easy-forms_page_yikes-inc-easy-mailchimp-settings .interest-group-section input{margin-right:0}body.easy-forms_page_yikes-inc-easy-mailchimp-settings .interest-group-section label{margin-right:10px}i.mce-ico.mce-i-yks_mc_tinymce_button_key{background:url(../../includes/images/tinyMCE/Freddie_wink.png) no-repeat;background-size:18px;background-position-y:1px}#yikes_mailchimp_tinyMCE_modal-title{padding-left:42px;background:url(../../includes/images/MailChimp_Assets/Freddie_original.png) left no-repeat;background-size:25px;background-position-x:10px}#yikes_mailchimp_tinyMCE_modal{background:url(../../includes/images/tinyMCE/yikes-mailchimp-combo-faded.png) bottom left no-repeat #fff;background-size:40%;background-position-x:10px;background-position-y:95%}#yikes_mailchimp_tinyMCE_modal .mce-foot{border-top:none!important;background:0 0}[id*="_yikes_easy_mc_widget"]>div.widget-top>div.widget-title>h4{background:url(../../includes/images/MailChimp_Assets/Freddie_original.png) 2% 50%/25px auto no-repeat #FAFAFA;padding-left:40px}#review-yikes-easy-mailchimp-notice #yikes-mailchimp-logo,#yikes-mailchimp-logo{font-size:14px;text-align:center;background:url(../../includes/images/Welcome_Page/yikes-mailchimp-welcome-logo.png) no-repeat}#review-yikes-easy-mailchimp-notice #yikes-mailchimp-logo{background-size:60px;float:left;height:80px;width:80px}.about-wrap img.yikes-easy-mc-feature-image.yikes-easy-mc-feature-image-left,.yikes-easy-mc-feature-image-left{float:left;margin-right:30px;margin-left:0!important}.need-support-icon{line-height:1.5}ul.support-option-list{display:inline-block;width:100%}.support-option{float:left}.support-option-second{margin-left:10px}#yikes-mailchimp-logo.support-page{float:left;width:80pt}.yikes-easy-mc-whats-new-section-image{float:none;width:100%;margin-left:0!important}.welcome-page-tabs{margin-top:2em!important}.welcome-page-about-wrap .about-text,.welcome-page-about-wrap h2.welcome-title{margin-left:115px}.whats-new-wrap img.yikes-easy-mc-whats-new-section-image{margin-top:10px}.whats-new-wrap .feature-section:nth-child(1) img{float:left}.whats-new-wrap .feature-section:nth-child(3) img{float:right;width:250px;margin-right:0!important;margin-left:30px}.whats-new-wrap .feature-section:nth-child(4) img{margin-left:0!important}#yikes-mailchimp-logo{height:132px;width:132px}.about-wrap #yikes-mailchimp-logo{position:absolute;top:0;left:0}.about-wrap h2{text-align:left}.edd-welcome-screenshots{float:right;margin-left:10px!important}.about-wrap .feature-section{margin-top:20px}.about-wrap .feature-section p{max-width:40em}.about-wrap img.yikes-easy-mc-feature-image{float:right;margin-left:30px}.yikes-easy-mc-feature-image.yikes-easy-mc-feature-v3-image{border:0;margin-left:100px!important;margin-right:100px;max-height:340px;width:auto}#credit-container,#translators-container{display:inline-block;width:100%}#credit-container h2,#translators-container h2{margin:0 0 .5em 1em}#translators-container{margin-top:5em}#translators-container .translation-language{color:#333}#credit-container .team-member,#translators-container .translator{margin:1em 5% 1em 0;text-align:center}#credit-container .team-member img,#translators-container .translator img{border-radius:50%}.admin_page_yikes-mailchimp-welcome .about-wrap div.error,.admin_page_yikes-mailchimp-welcome .about-wrap div.updated{display:block;margin-left:115px}.github-avatar-image{width:100px}.github-avatar-url{display:inline-block;width:20%}github-avatar-url:focus{outline:0}body.admin_page_yikes-mailchimp-edit-form div.show-some-love-container img,div.show-some-love-container img.customizer-upsell-banner{max-width:100%}body.admin_page_yikes-mailchimp-edit-form div.show-some-love-container p:first-child{font-style:italic}body.admin_page_yikes-mailchimp-edit-form div.show-some-love-container hr{margin:1em 0}body.admin_page_yikes-mailchimp-welcome .nav-tab-wrapper .nav-tab .dashicons{font-size:17px;line-height:1.5}body.admin_page_yikes-mailchimp-welcome #kb-container,body.easy-forms_page_yikes-inc-easy-mailchimp-support .knowledge-base-articles{display:inline-block;margin-top:1em}body.admin_page_yikes-mailchimp-welcome #kb-container h1{font-size:20px;margin-top:-1em}body.admin_page_yikes-mailchimp-welcome #kb-container .knowledge-base-listing,body.easy-forms_page_yikes-inc-easy-mailchimp-support .knowledge-base-articles .knowledge-base-listing{width:45%;margin-right:2%;float:left;min-height:260px}body.admin_page_yikes-mailchimp-welcome #kb-container .knowledge-base-listing li,body.easy-forms_page_yikes-inc-easy-mailchimp-support .knowledge-base-articles .knowledge-base-listing li{margin:12px 0;text-decoration:none}body.admin_page_yikes-mailchimp-welcome #kb-container .knowledge-base-listing li:before,body.easy-forms_page_yikes-inc-easy-mailchimp-support .knowledge-base-articles .knowledge-base-listing li:before{font-family:dashicons;content:"\f123";vertical-align:middle;display:block;float:left;margin:0 5px 5px 0}body.admin_page_yikes-mailchimp-welcome #kb-container .knowledge-base-listing li.list-title,body.easy-forms_page_yikes-inc-easy-mailchimp-support .knowledge-base-articles .knowledge-base-listing li.list-title{font-size:17px;font-weight:200;text-decoration:underline}body.admin_page_yikes-mailchimp-welcome #kb-container .knowledge-base-listing li.list-title:before,body.easy-forms_page_yikes-inc-easy-mailchimp-support .knowledge-base-articles .knowledge-base-listing li.list-title:before{content:"";padding-left:12px}body.admin_page_yikes-mailchimp-welcome .new-feature-list{list-style:none;line-height:middle}body.admin_page_yikes-mailchimp-welcome .new-feature-list li{margin-bottom:10px}body.admin_page_yikes-mailchimp-welcome .new-feature-list li:before{font-family:dashicons;content:"\f139";padding-right:2px;font-size:20px;vertical-align:middle}#review-yikes-easy-mailchimp-notice .button-container{display:block;width:100%;margin:.75em 0 1.5em}#review-yikes-easy-mailchimp-notice .button-container .dashicons{font-size:14px;line-height:1.9;margin-left:-4px}#review-yikes-easy-mailchimp-notice .button-container .dashicons-star-filled{color:#E6B800}#review-yikes-easy-mailchimp-notice .button-container .dashicons-upload{color:#6E8841}#review-yikes-easy-mailchimp-notice .button-container .dashicons-no-alt{color:#dc3a3a;line-height:2}body.easy-mailchimp_page_yikes-inc-easy-mailchimp-settings .dashicons-no-alt{color:#dc3a3a}#review-yikes-easy-mailchimp-notice .button-container a{margin-right:10px}#review-yikes-easy-mailchimp-notice{border-left:4px solid #00a0d2;background:#fefefe;padding:10px 12px 1px;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:15px 25px 20px 5px}input.readonly,input[readonly],textarea.readonly,textarea[readonly]{background:#D8D8D8}.dashicons.yikes-love{color:pink}.field-description-input{resize:vertical;max-height:100px}.yikes-easy-mc-postbox h3{background:#00a0d2;font-weight:800;color:#fff}.yikes-easy-mc-postbox h3.bg-transparent{color:#333;font-weight:400;background:0 0}.yikes-mc-warning-message{padding-left:15px;margin-top:0;padding-top:10px;color:#da6e6e}.error-message-container label[for=yikes-easy-mc-user-subscribed-message],.error-message-container label[for=yikes-easy-mc-user-subscribed-update-link],.error-message-container label[for=yikes-easy-mc-user-email-subject],.error-message-container label[for=yikes-easy-mc-user-email-body],.error-message-container label[for=yikes-easy-mc-success-message],.error-message-container label[for=yikes-easy-mc-success-single-optin-message],.error-message-container label[for=yikes-easy-mc-user-resubscribed-success-message],.error-message-container label[for=yikes-easy-mc-general-error-message]{padding:.5em 1em;background:rgba(241,241,241,.75);box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;margin:0}body.admin_page_yikes-mailchimp-edit-form #error-container{padding:2px 1em;background:rgba(241,241,241,.75);box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;margin:0;color:#F56060}.error-message-container label:last-child{padding-bottom:1em;margin-bottom:.5em}.error-message-container label,.form-settings-container label{display:block;margin:1em 0}.yikes-easy-forms-sidebar .yikes-mc-settings-expansion-section{padding:.5em .75em;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.yikes-mc-settings-expansion-section{display:none;background:rgba(241,241,241,.75)}.yikes-mc-settings-expansion-section .form-table td{padding:10px;vertical-align:top}.yikes-mc-settings-expansion-section .form-table td p.description{line-height:1;margin-top:2px}.expansion-section-title{background:#fff}.expansion-section-title.settings-sidebar,.form-builder-section-title{text-decoration:none;display:block;border:1px solid rgba(177,177,177,.71);color:#333;padding:5px;margin:.5em 0 0}.expansion-section-title.settings-sidebar .dashicons,.form-builder-section-title .dashicons{content:"\f132";font-family:dashicons;font-size:15px;line-height:1.5}span.easy-mailchimp-add-on-valid-license-container{color:#44ba44;display:block;margin-top:1em}.easy-mailchimp-add-on-invalid-license-container{color:rgba(227,107,107,.86);display:block;margin-top:1em}.options-sidebar .yikes-easy-mc-postbox{overflow:visible}.options-sidebar .inside{padding:0 20px 12px}.yikes-easy-mc-about-text{margin-top:0}.add-on-settings-divider{margin:1em 0!important}#yks-mailchimp-double-optin-message,#yks-mailchimp-single-optin-message,.settings-page-input{width:50%}#yks-mailchimp-double-optin-message,#yks-mailchimp-single-optin-message{min-height:75px;max-height:200px;resize:vertical}#addon-settings-nav li a,#settings-nav li a{color:#333;text-decoration:none!important;transition:color .15s ease-out;-moz-transition:color .15s ease-out;-webkit-transition:color .15s ease-out;-o-transition:color .15s ease-out}#addon-settings-nav li a:hover,#settings-nav li a:hover,.option-menu-selected-arrow+a{color:#00a0d2!important}#addon-settings-nav{margin-bottom:0;margin-top:5px}.option-menu-selected-arrow{width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:10px solid #a0a5aa;position:absolute;left:-.1em}label[for=yikes-mailchimp-debug-status]{display:inline-block;margin-bottom:1em;line-height:2.25}#yikes-mailchimp-debug-status{float:left;margin-top:.5em}label[for=yikes-mc-recaptcha-setting],label[for=yikes-mc-recaptcha-api-key]{display:block;margin-bottom:1em}.recaptcha-preview-link,input.recaptcha-setting-checkbox{display:block;margin-top:.5em}.recaptcha-preview-container{width:100%;display:none;margin:1em 0}#premium-support-form,.support-page-button,.support-page-logo{display:block;width:100%}.wrap #col-left,.wrap #col-right{width:49%}@media (max-width:800px){.wrap #col-left,.wrap #col-right{width:100%}}.support-page-logo{opacity:.7;max-width:100%}.support-page-button{min-height:40px;font-weight:700;text-align:center;line-height:3!important;margin-top:1em!important}.support-page-wordpress-font{font-size:1.3em;margin-right:13px}h2.premium-support-title{margin:1em 0 .5em}#premium-support-form input[type=text],#premium-support-form input[type=email],#premium-support-form input[type=submit],#premium-support-form select{display:block;width:100%;min-width:200px;margin:.5em 0}#premium-support-form label{font-weight:800}#premium-support-form label input,#premium-support-form label select{font-weight:500}#premium-support-form p{font-weight:300;display:block;margin-bottom:1em}#wp-support-content-wrap{min-height:150px;width:100%}.support-form-hidden{display:none!important}#yikes-mailchimp-error-log .row-title{font-weight:400}.create-error-log-help:hover{cursor:pointer}.error-log-tr td{display:table;margin-bottom:1em;margin-top:.5em}p.error-log-missing-file em,p.to-start-logging-errors-notice em{margin:10px 0}.export-custom-forms-list{display:none;margin:1em 0 2em}.export-custom-forms-list p{margin-top:0}.list-rating-star{color:#E6B800}#chimp-chatter{text-align:center}#chimp-chatter .chimp-chatter-container{margin:1em .2em;background:#F8F8F8;border-radius:10px;float:left;height:220px;padding:10px;width:44%}.chimp-chatter-mailchimp-logo{width:100%;display:block;margin:0 auto}.chimp-chatter-sidebar h2.account-status{text-align:center}.mailchimp-affiliate-link{color:#333;display:none}.mailchimp-avatar{display:block;margin:0 auto;box-shadow:3px 3px 10px 0 rgba(214,214,214,.75)}#yikes_easy_mc_toolbar_links li a:focus,.merge-tag-text{box-shadow:none}.chimpchatter-button-container{clear:both;display:block}.chimp-chatter-postbox{float:left;width:49%;margin-right:1%}.circle-account-active,.circle-account-inactive{display:inline-block;vertical-align:middle;height:15px;width:15px;border-radius:50%}#account-details .chimp-chatter-postbox.even{margin-right:0}.circle-account-inactive{margin-top:-3px;margin-right:5px;background:rgba(250,138,138,.79)}.chatter-type{font-weight:600;font-family:"open sans";font-size:14px;margin:5px 5px 0}.chatter-message{margin:2px 2px 15px!important}.circle-account-active{margin-top:-3px;margin-right:5px;background:rgba(128,214,128,.77)}#account-details .mailchimp-avatar{width:120px;border-radius:10%;margin-top:.5em}.chimp-chatter-positive{border-left:4px solid #9ddf9d}.chimp-chatter-negative{border-left:4px solid #FBA2A2}.chimp-chatter-neutral{border-left:4px solid #b1b1b1}#import-list-to-site{margin-top:10px}#import-list-to-site .input-field{display:block;width:100%;margin-top:5px;margin-bottom:5px}#import-list-to-site .form-description{resize:vertical;max-height:65px}#import-list-to-site .description{margin-top:5px}input.clear-mailchimp-api-cache{float:right;margin-top:-33px!important}.yikes-list-refreshed-notice{border-left:4px solid #46b450;margin:5px 0}.yikes-list-refreshed-notice p{margin:1em 0 .5em;padding:6px 12px;background:rgba(241,241,241,.5);font-size:13px;line-height:1.5}.sidebar-container,.star-container{margin-top:5px;margin-bottom:1.5em}.star-container a{text-decoration:none}.star-container .dashicons-star-filled{font-size:1.75em}.sidebar-footer-text{margin:15px 0!important;text-align:center}.sidebar-twitter-icon{text-decoration:none;color:#55ACEE}.field-doesnt-exist-notice{position:absolute;margin-left:5px;width:18px}.field-type-text{display:inline-block;float:right;margin-right:.1em}.type-container{margin:0}.form-field-container{margin-top:0;margin-bottom:0}.field-no-longer-exists-warning{position:absolute;margin-left:5px;width:18px}.form-field-container tr.yikes-checkbox-container input[type=checkbox]{float:left;margin:5px}.form-field-container tr.yikes-checkbox-container-first td{padding-top:12px!important}.form-field-container tr.yikes-checkbox-container td{padding:2px 12px}.form-field-container td input[type=checkbox]:first-child,.form-field-container td input[type=radio]:first-child{margin-left:0!important}.merge-tag-text{background:0 0;border:none}.pre-defined-tag-link{display:block;font-size:11px;margin-top:-2px}.toggle-container{font-size:small;float:right}#pre-defined-tag-container{display:none}#pre-defined-tag-container h3{margin-bottom:0}#pre-defined-tag-container .tooltop-tag .dashicons-editor-help{font-size:13px;line-height:1.5}.no-fields-assigned-notice{margin:4em 0 2.25em;padding-bottom:6em;width:100%;text-align:center;background:url(../../includes/images/no-form-fields-assigned-arrow.jpg) bottom center no-repeat;background-size:105px}.yikes-easy-mc-widget-preloader{position:absolute;left:48%;margin-top:-96px}.yikes-dashboard-widget-section{padding:0 12px 12px}.select-list-title{padding-left:0}.yikes-dashboard-widget-section .description{margin:.5em 0 0}. error-descripion{padding-top:.5em}.yikes-mc-freddie-logo{float:left;margin-right:10px}.mv_ig_list{width:100%;margin-bottom:8px!important;border:none!important;background:0 0!important}.mv_ig_list .list-container{position:absolute}.mv_ig_list a{width:48%;padding:5px 0!important;text-align:center;margin:0}.mv_ig_list a:first-child{margin-right:0}.mv_ig_list a:last-child{float:right}.mv_ig_list .nav-tab{border:1px solid #ccc}.mv_ig_list .nav-tab-active{color:#fff;font-weight:700;background:#00a0d2}.mv_ig_list .arrow-down{position:absolute;margin-top:21px;margin-left:50px;width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-top:12px solid #00a0d2}#container-container{display:inline-block;width:540px}#container-container .list-container{float:left;width:254px;position:relative}#container-container .list-container:last-child{margin-left:2em}#yikes_easy_mc_toolbar{margin-top:-.75em}#yikes_easy_mc_toolbar_links{display:inline-block;width:100%;margin:0;padding:10px 0}#yikes_easy_mc_toolbar_links li{float:left;margin:0 .5em}#yikes_easy_mc_toolbar_links li a{text-decoration:none;display:inline-block}#yikes_easy_mc_toolbar_links li a.selected_hidden_setting{color:#333;margin-bottom:3px}#yikes_easy_mc_toolbar_links li .selected_setting_triangle{width:0;height:0;border-left:13px solid transparent;border-right:13px solid transparent;border-top:13px solid rgba(206,206,206,1);margin:0 auto}.checkbox-settings-list-dropdown,.optin-checkbox-label-input{width:250px;display:block}#yikes_easy_mc_toolbar_links li a.form-builder:before{content:"\f116";font-family:dashicons}#yikes_easy_mc_toolbar_links li a.form-customizer:before{content:"\f100";font-family:dashicons}#yikes_easy_mc_toolbar_links li a.error-messages:before{content:"\f117";font-family:dashicons}#yikes_easy_mc_toolbar_links li a.form-settings:before{content:"\f111";font-family:dashicons}#checkbox-settings-form .dashicons-editor-help{font-size:15px;line-height:1.6}.no-lists-setup-notice{padding:.5em 0}.yikes-form-id-number{width:55px}span[title=Impressions]:hover,span[title=Submissions]:hover,span[title="Conversion Rate"]:hover{display:block;cursor:pointer}.form-id-container{padding:1px 8px;border-radius:5px;background:#49a9ec;font-weight:700;color:#fff}.manage-form-admin-notice{margin-top:1.75em!important}.remove-notification,.yikes-mc-settings-expansion-section a.remove-field,a.yikes-delete-mailchimp-form,a.yikes-delete-subscriber{color:#d96060!important}.yikes-delete-mailchimp-form{margin-top:6px}#postbox-container-1 .yikes-delete-mailchimp-form{float:right}.form-buttons-container{display:block;padding:11px 10px}.forms-buttons-container input[type=submit]{margin:0 0 .5em}.update-form-spinner{position:absolute;left:0;right:0;margin:0 auto;bottom:13px}.yikes-mc-shortcode-input{text-align:center;width:100%;color:#333}.hidden-class{display:none!important}.stat-container{width:10%;max-width:75px}.no-current-subscriber-notice em,.no-mailchimp-forms-found em{padding:25px 0 25px 25px}.column-columnname span.stats{display:block;width:100%;text-align:center}.column-columnname span.stats span{display:inline-block;width:20%}.column-columnname span.stats span:hover{cursor:pointer}#available-fields li,#available-interest-groups li{text-decoration:none;display:block;border:1px solid rgba(177,177,177,.71);color:#333;padding:5px;margin:.5em 0}#available-fields li.not-available,#available-interest-groups li.not-available{opacity:.6!important}#available-fields li.field-to-add-to-form,#available-interest-groups li.group-to-add-to-form{background:rgba(46,162,204,.25)}.add-field-to-editor .add-to-form-builder-arrow,.button-secondary .add-to-form-builder-arrow{width:15px;font-size:15px;line-height:1.8}.clear-form-fields{background:#e14d43;border-color:#d02c21;color:#fff;box-shadow:inset 0 1px 0 #ec8b85,0 1px 0 rgba(0,0,0,.15);text-decoration:none;display:inline-block;height:28px;padding:0 10px 1px;border-width:1px;-webkit-appearance:none;border-radius:3px;white-space:nowrap;font-size:13px;line-height:26px;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;float:right;margin:0 11px 10px 0}.clear-form-fields:active,.clear-form-fields:focus,.clear-form-fields:hover{background:#dd382d;border-color:#ba281e;color:#fff;box-shadow:inset 0 1px 0 #e8776f}.yikes-mc-view-list-breadcrumbs{padding:.8em;border:1px solid #D8D8D8;background:#ECECEC;margin:1.5em 0 .8em}.yikes-mc-member-rating-star{color:#daa520}#yikes-mc-subscriber-card-wrapper{background:#fefefe;min-height:200px;display:inline-block;box-shadow:0 1px 1px rgba(0,0,0,.04);webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);border:1px solid #e5e5e5;padding:15px 20px;width:500px;float:left}#yikes-mc-subscriber-card-wrapper .subscriber-optin-ip{display:inline-block;margin:1em 0 0;font-style:italic}.view-user-data-wrap #customer-tab-wrapper-list{float:left;background:#fefefe;margin-top:0;padding:12px;margin-left:-1px;border-right:1px solid #e5e5e5;border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5}.view-user-data-wrap #customer-tab-wrapper-list .dashicons{font-size:23px;height:23px;width:23px;margin:3px 0}.view-user-data-wrap #customer-tab-wrapper-list li.inactive{color:rgba(51,51,51,.31);transition:color ease-out .1s}.view-user-data-wrap #customer-tab-wrapper-list li.active,.view-user-data-wrap #customer-tab-wrapper-list li.inactive:hover{color:rgba(51,51,51,1)}#yikes-mc-subscriber-card-wrapper .yikes-mc-card-top .member-star-rating-container,#yikes-mc-subscriber-card-wrapper .yikes-mc-card-top h2,#yikes-mc-subscriber-card-wrapper .yikes-mc-card-top img{float:left}#yikes-mc-subscriber-card-wrapper #delete-mailchimp-subscriber{display:block;margin:0 auto}#yikes-mc-subscriber-card-wrapper .yikes-mc-card-top img{border-radius:3px}#yikes-mc-subscriber-card-wrapper .merge-variable-section li{display:inline-block;list-style:none;float:left;width:50%;min-height:65px;border-bottom:1px dotted #ddd}#yikes-mc-subscriber-card-wrapper .merge-variable-section li p{margin:0 0 1em}#yikes-mc-subscriber-card-wrapper .yikes-mc-card-top h2{max-width:370px;width:75%;padding:0}#yikes-mc-subscriber-card-wrapper .member-star-rating-container{display:block;margin:.5em 0 .5em 10px}#yikes-mc-subscriber-card-wrapper h2{margin-left:10px;margin-top:0;padding-top:0}#yikes-mc-subscriber-card-wrapper .yikes-mc-card-body,#yikes-mc-subscriber-card-wrapper .yikes-mc-card-top{display:inline-block;width:100%}.member-location-data,.member-subscription-date{width:70%;max-width:370px;display:block;float:left}#yikes-mc-subscriber-card-wrapper .yikes-mc-card-body h4{margin-top:0;margin-left:5px}.yikes-mc-subscriber-hr{margin:1.5em 0}.member-subscription-date{margin:.5em 0 .5em 10px}.member-location-data{margin:.25em 0 .25em 10px}.addon-required-link{color:#333;opacity:.5}.view-list-sidebar-input{color:#333}.interest-group-ul,.merge-variable-ul,.segment-ul{padding-left:15px;font-size:14px}.interest-group-ul li .dashicons,.merge-variable-ul li .dashicons{line-height:1.8;font-size:9px}a.button-primary.edit-fields-button{margin:0 0 10px 15px}.interest-group-count,.merge-variable-count,.segment-group-count{text-decoration:underline;margin-bottom:.75em;padding-left:7px}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-calendar td a,body.admin_page_yikes-mailchimp-edit-form .ui-datepicker a,body.admin_page_yikes-mailchimp-edit-form .ui-datepicker a:hover{text-decoration:none}.interest-group-title{padding-left:5px}.edit-segments-button{margin:0 0 10px 15px}.edit-segment-description{padding:0 0 10px 15px}#credit-container{margin-top:1.5em}.yikes-easy-mailchimp-custom-content-icon{font-size:15px;line-height:1}.custom-field-section{display:block;margin:1em 0}#associated-list{width:100%;margin-top:5px}#redirect-user-to-selection{width:100%}#edit-yikes-mc-form label h3{margin-left:0;padding-left:0}#available-fields .field-required{color:#d96060!important}body.admin_page_yikes-mailchimp-edit-form #poststuff h2{padding:8px 12px;margin-top:0}.edit-form-form-description{width:100%;resize:vertical;min-height:65px;max-height:100px}.edit-form-title{padding-left:12px!important}#edit-form-description{padding:0 12px;margin:1em 0}.yikes-easy-mc-postbox{overflow:hidden}.no-interest-groups-found-message{opacity:.35}.upgrading-ellipse-one,.upgrading-ellipse-two{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";-moz-opacity:0;-webkit-animation:dot 1.3s infinite}#interest-groups-container .description,#merge-variables-container .description{padding-top:.5em}.inside-section-1{margin-top:0;margin-bottom:1.5em}.inside-section-2{margin-top:0;margin-bottom:2em}.form-field-container-span{display:block;margin:.5em 0}#style-list ul li{display:block;width:100%;margin:1em 0}.form-style-adjustment,.wp-picker-container{display:block!important;width:100%;margin:.5em 0}.dynamic-email-tag{display:inline-block;margin-right:5px}.dynamic-tag-description td{padding-top:0}#create-new-notification-button{margin-top:1em}.file-container{display:none}.yikes-mailchimp-file-field input[name*="custom-field[incentive-attachment]"]{margin-bottom:.5em}.yikes-mailchimp-file-field input[name*="custom-field[incentive-attachment]"]+.button-secondary{margin-left:4px}input#upload-btn[data-attr-position="1"]{margin-left:0}.remove-file-button{background:url(../partials/helpers/fields/img/icon-delete.png);height:16px;position:absolute;text-indent:-99999px;width:16px}a.add-new-incentive-attachment{display:block;width:40px;margin-right:100%!important;margin-top:.5em!important}a.add-new-incentive-attachment .dashicons{font-size:15px;line-height:1.8}.form-builder-placeholder{background:rgba(206,206,206,.2);height:30px}.admin_page_yikes-mailchimp-edit-form #form-settings .section-title{font-size:1em;border-bottom:1px solid rgba(187,187,187,.29);display:block;width:100%;padding-bottom:6px;margin-bottom:.5em;margin-top:1.5em}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior label,.admin_page_yikes-mailchimp-edit-form #form-settings .section-title.first{margin-top:0}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior{display:inline-block;width:100%;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:rgba(241,241,241,.75);padding:1em}label.login-restriction-center{display:block;width:100%}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-restirction-section{display:inline-block}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-restirction-section p.description.error{color:#F56060}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-restirction-section label{float:left;margin-right:.5em;margin-top:0;margin-bottom:0}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .nested-child .yikes-easy-mc-form-restriction-expired-message,.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .nested-child .yikes-easy-mc-form-restriction-login-message,.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .nested-child .yikes-easy-mc-form-restriction-pending-message{display:block;width:100%;min-height:50px}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .nested-child{float:left;padding-left:2%;width:98%;border-left:1px dashed #BDBDBD;border-spacing:2px;margin:.5em 0 1em}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .nested-child .yikes-easy-mc-submit-button-text{margin:0}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-restirction-section{margin-bottom:0}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-restirction-section.last{margin-bottom:.75em}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .nested-child.hidden{display:none}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .description+label{margin-top:1em;float:left;width:100%}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior label.inline-form-label{margin-bottom:0;margin-top:0}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .description{display:block;width:100%;float:left}.admin_page_yikes-mailchimp-edit-form #form-settings .nested-child strong:first-child,.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior strong:first-child{display:block;width:100%}.admin_page_yikes-mailchimp-edit-form #form-settings .inline-form-label{float:left;margin-right:10px}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-wrapper{overflow-y:auto;height:150px;width:170px;background:#fff;border:1px solid #ddd;box-shadow:0 5px 10px rgba(0,0,0,.2);outline:0;z-index:10001;margin:0}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-wrapper.ui-timepicker-with-duration{width:13em}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-wrapper.ui-timepicker-with-duration.ui-timepicker-step-30,body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-wrapper.ui-timepicker-with-duration.ui-timepicker-step-60{width:11em}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list{margin:0;padding:0;list-style:none}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-duration{margin-left:5px;color:#888}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list:hover .ui-timepicker-duration{color:#888}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list li{padding:3px 0 3px 5px;cursor:pointer;white-space:nowrap;color:#000;list-style:none;margin:0}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list:hover .ui-timepicker-selected{background:#fff;color:#000}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list .ui-timepicker-selected:hover,body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list li:hover,body.admin_page_yikes-mailchimp-edit-form li.ui-timepicker-selected{background:#1980EC;color:#fff}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list li:hover .ui-timepicker-duration,body.admin_page_yikes-mailchimp-edit-form li.ui-timepicker-selected .ui-timepicker-duration{color:#ccc}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list li.ui-timepicker-disabled,body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list li.ui-timepicker-disabled:hover,body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list li.ui-timepicker-selected.ui-timepicker-disabled{color:#888;cursor:default}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list li.ui-timepicker-disabled:hover,body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list li.ui-timepicker-selected.ui-timepicker-disabled{background:#f2f2f2}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker{background-color:#fff;border:1px solid #66AFE9;border-radius:4px;box-shadow:0 0 8px rgba(102,175,233,.6);display:none;margin-top:4px;padding:10px;width:240px}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker a:hover,body.admin_page_yikes-mailchimp-edit-form .ui-datepicker td:hover a{color:#2A6496;transition:color .1s ease-in-out}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-header{margin-bottom:4px;text-align:center}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-title{font-weight:700}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-next,body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-prev{cursor:default;font-family:'Glyphicons Halflings';-webkit-font-smoothing:antialiased;font-style:normal;font-weight:400;height:20px;line-height:1;margin-top:2px;width:30px}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-prev{float:left;text-align:left}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-next{float:right;text-align:right}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-prev:before{content:"\f141";font-family:dashicons}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-next:before{content:"\f139";font-family:dashicons}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker-next:hover,body.admin_page_yikes-mailchimp-edit-form .ui-datepicker-prev:hover{cursor:pointer!important}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker-close{display:none}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker-current{color:#555!important;border-color:#ccc!important;background:#f7f7f7!important;box-shadow:0 1px 0 #ccc!important;vertical-align:top!important;display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;margin-top:10px}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-current-day a,body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-today a{color:#fff}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-icon{display:none}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-calendar{table-layout:fixed;width:100%}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-calendar td,body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-calendar th{text-align:center;padding:4px 0}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-calendar td{border-radius:4px;transition:background-color .1s ease-in-out,color .1s ease-in-out}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-calendar td:hover{background-color:#EBEBEB;cursor:pointer}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-today{background-color:rgba(66,137,204,.65)}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-current-day{background-color:#4289cc}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-calendar .ui-datepicker-unselectable:hover{background-color:#fff;cursor:default}.custom-radio-holder{display:inline-block;width:100%;margin:.5em 0}.custom-radio-label{display:block;float:left;margin:0 5px}.custom-radio-label:first-child{margin-left:0!important}.custom-radio-label input[type=radio]{margin-right:0!important}.custom-select-field{display:block;width:100%;margin:.5em 0}#available-widgets [class*=yikes_easy] .widget-title:before{content:""!important;background:url(../../includes/images/MailChimp_Assets/Freddie_original.png) no-repeat #FAFAFA;background-size:contain}body.wp-customizer #available-widgets [id*="_yikes_easy_mc_widget"]>div.widget-top>div.widget-title>h4{background:0 0!important}#connection-container{float:right;color:#fff;padding:.25em .75em .25em .25em;margin-top:-4px}#connection-container.api-connected{background:#44ba44}#connection-container.api-not-connected{background:#b5b5b5}.yikes-mc-api-connected,.yikes-mc-api-not-connected{line-height:1}.show-some-love-container{transition:max-height .75s}#review-yikes-easy-mc{text-align:center}#review-yikes-easy-mc .dashicons-star-filled{color:#E6B800}.meta-box-sortables hr{margin:1.75em 0 0}#about-yikes-inc{display:none}#about-yikes-inc .about-sidebar-yikes-logo{float:left;width:95px;margin:5px 7px 0 0}#about-yikes-inc p{margin-top:0}.yikes-easy-mc-updated{display:block;border-left:4px solid #4EAEF0;margin:1em 20px 1em 0;padding:2px 10px;background:right bottom no-repeat #fff;background-size:120px;background-position-y:29px}.support-section{margin:1.5em 0;padding:1em 0}.github-octocat{background:url(../../includes/images/Support_Page/Octocat.png) left top no-repeat;background-size:100%;width:50px;height:45px;display:block;float:left;margin-top:-5px}@media screen and (max-width:1200px){.yikes-easy-mc-postbox #post-body.columns-2 #postbox-container-1{float:none}}@media screen and (max-width:850px){.option-menu-selected-arrow{display:none!important}}@media screen and (max-width:782px){#chimp-chatter .chimp-chatter-container{float:none;height:auto;width:100%}}.recaptcha-demo-gif{width:275px}.pro-version-only-notice{color:#d96060}.upgrading-ellipse-one{filter:alpha(opacity=0);-khtml-opacity:0;opacity:0;-webkit-animation-delay:0ms;animation:dot 1.3s infinite;animation-delay:0ms}.upgrading-ellipse-two{filter:alpha(opacity=0);-khtml-opacity:0;opacity:0;-webkit-animation-delay:.2s;animation:dot 1.3s infinite;animation-delay:.2s}.upgrading-ellipse-three{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:alpha(opacity=0);-moz-opacity:0;-khtml-opacity:0;opacity:0;-webkit-animation:dot 1.3s infinite;-webkit-animation-delay:.3s;animation:dot 1.3s infinite;animation-delay:.3s}.yikes-mc-edit-field-label-icon{display:inline}.yikes-mc-edit-field-label-input{display:none;width:auto;border-radius:5px}.yikes-mc-save-field-label-edits-icon{display:none}.yikes-mc-edit-field-label-message{display:none;color:#F56060;margin-left:26px}@keyframes dot{0%,50%{opacity:0}100%{opacity:1}}
|
1 |
+
.yikes-easy-mc-hidden{display:none}.shortcode-input-field{color:#333;background:rgba(216,216,216,.35)!important}.edit-form-field-container-span{display:block;margin:.5em 0}.no-forms-widget{margin:2em 0}.view-ad-link{display:block;margin:0 auto}.no-forms-found-icon{font-size:14px;line-height:1.4;width:14px;color:#e07d7d}.coming-soon-button{position:absolute}.coming-soon-button .dashicons{font-size:14px;line-height:1.8}.add-ons-about-text{margin-top:0}#add-ons{margin:3em 0}.addon-image{display:block;text-align:center}.no-mailchimp-lists-found{padding:25px 0 25px 25px}.add-new-subscriber-button{display:block;margin-top:2em}.add-new-subscriber-form-container{display:none;padding-top:1em}.add-new-subscriber-form-container h4{margin-top:0}#migration-buttons{display:inline-block;margin-bottom:.5em}#migration-buttons form:first-child{margin-right:10px}#migration-buttons form{float:left}#yikes_easy_mc_list_stats_widget h3 span{background:url( '../../includes/images/MailChimp_Assets/Freddie_original.png' ) no-repeat scroll 8px 4px/25px auto;background-size:25px;display:block;height:30px;padding-left:3em;padding-top:5px}#yikes_easy_mc_list_stats_widget h3{padding:0;line-height:1.6em}#yikes-easy-mc-dashboard-widget-stats h3{text-align:center}#yikes_easy_mc_list_stats_widget .inside{padding:0}.yikes-easy-mc-stats-table{margin-top:1em}.yikes-easy-mc-stats-table,.yikes-easy-mc-stats-table .yikes-easy-mc-table-stats-tr,.yikes-easy-mc-stats-table tbody{display:block;width:100%}.yikes-easy-mc-table-stats-tr td{display:inline-block;width:48%;text-align:center}.yikes-easy-mc-table-stats-tr td:hover{cursor:pointer}.yikes-easy-mc-table-stats-tr td:first-of-type{border-right:1px solid #ececec}.yikes-easy-mc-stats-table .yikes-easy-mc-table-stats-tr-first{border-bottom:1px solid #ececec;border-top:1px solid #ececec}#yikes-easy-mc-widget-stat-holder{margin-top:1em}.yikes-easy-mc-stats-table p.yikes-easy-mc-dashboard-stat{color:#00a0d2;font-weight:800;font-size:20px;margin-bottom:2px;margin-top:15px;line-height:1.2;max-height:80px}.yikes-easy-mc-stats-table p.yikes-easy-mc-stat-list-label{font-size:13px;margin-top:0;margin-bottom:15px;font-family:"Open Sans"}#pre-defined-tag-interior-container{background:url(../../includes/images/tinyMCE/yikes-mailchimp-combo-faded.png) bottom right no-repeat #fff;background-size:40%}.qtip-default{background-color:transparent!important;border:transparent!important;z-index:9999999!important}.qtip-bootstrap{padding:10px!important;z-index:9999999!important;font-size:12px}.search-interest-group-preloader{display:block;margin:8px 0 0 55px;width:12px}.no-interest-groupings-enabled-message{display:block;margin-top:12px!important;width:100%}.tooltip-integration-banner{max-width:100%;margin:0 0 .25em 0}.tooltiptext.qtip-bootstrap{font-size:12px}.tooltip-title{margin:0}.dashicons-editor-help:hover{cursor:pointer}body.easy-forms_page_yikes-inc-easy-mailchimp-settings .interest-group-section{display:block;width:100%;margin:0 0 1.5em 0}body.easy-forms_page_yikes-inc-easy-mailchimp-settings .interest-group-section .interest-group-section-title{display:block;width:100%;margin:.5em 0 0}body.easy-forms_page_yikes-inc-easy-mailchimp-settings .interest-group-section input{margin-right:0}body.easy-forms_page_yikes-inc-easy-mailchimp-settings .interest-group-section label{margin-right:10px}i.mce-ico.mce-i-yks_mc_tinymce_button_key{background:url( '../../includes/images/tinyMCE/Freddie_wink.png');background-size:18px;background-position-y:1px;background-repeat:no-repeat}#yikes_mailchimp_tinyMCE_modal-title{padding-left:42px;background:transparent url(../../includes/images/MailChimp_Assets/Freddie_original.png);background-repeat:no-repeat;background-size:25px;background-position:left;background-position-x:10px}#yikes_mailchimp_tinyMCE_modal .mce-foot{border-top:none!important}#yikes_mailchimp_tinyMCE_modal{background:#fff url(../../includes/images/tinyMCE/yikes-mailchimp-combo-faded.png);background-position:bottom left;background-size:40%;background-position-x:10px;background-position-y:95%;background-repeat:no-repeat}#yikes_mailchimp_tinyMCE_modal .mce-foot{background:0 0}[id*="_yikes_easy_mc_widget"]>div.widget-top>div.widget-title>h4{background:#fafafa url(../../includes/images/MailChimp_Assets/Freddie_original.png) no-repeat scroll 2% 50%/25px auto;padding-left:40px}#review-yikes-easy-mailchimp-notice #yikes-mailchimp-logo{background:url(../../includes/images/Welcome_Page/yikes-mailchimp-welcome-logo.png) no-repeat;background-size:60px;float:left;font-size:14px;height:80px;text-align:center;width:80px}.need-support-icon{line-height:1.5}ul.support-option-list{display:inline-block;width:100%}.support-option{float:left}.support-option-second{margin-left:10px}#yikes-mailchimp-logo.support-page{float:left;width:80pt}#yikes-mailchimp-logo{height:132px;width:132px;font-size:14px;text-align:center;background:url(../../includes/images/Welcome_Page/yikes-mailchimp-welcome-logo.png) no-repeat}.yikes-easy-mc-feature-image.yikes-easy-mc-feature-v3-image{border:0;margin-left:100px!important;margin-right:100px;max-height:340px;width:auto}body.admin_page_yikes-mailchimp-edit-form div.show-some-love-container img,div.show-some-love-container img.customizer-upsell-banner{max-width:100%}body.admin_page_yikes-mailchimp-edit-form div.show-some-love-container p:first-child{font-style:italic}body.admin_page_yikes-mailchimp-edit-form div.show-some-love-container hr{margin:1em 0}body.admin_page_yikes-mailchimp-welcome .nav-tab-wrapper .nav-tab .dashicons{font-size:17px;line-height:1.5}#review-yikes-easy-mailchimp-notice .button-container{display:block;width:100%;margin:.75em 0 1.5em 0}#review-yikes-easy-mailchimp-notice .button-container .dashicons{font-size:14px;line-height:1.9;margin-left:-4px}#review-yikes-easy-mailchimp-notice .button-container .dashicons-star-filled{color:#e6b800}#review-yikes-easy-mailchimp-notice .button-container .dashicons-upload{color:#6e8841}#review-yikes-easy-mailchimp-notice .button-container .dashicons-no-alt{color:#dc3a3a;line-height:2}body.easy-mailchimp_page_yikes-inc-easy-mailchimp-settings .dashicons-no-alt{color:#dc3a3a}#review-yikes-easy-mailchimp-notice .button-container a{margin-right:10px}#review-yikes-easy-mailchimp-notice{border-left:4px solid #00a0d2;background:#fefefe;padding:1px 12px;padding-top:10px;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:15px 25px 20px 5px}input.readonly,input[readonly],textarea.readonly,textarea[readonly]{background:#d8d8d8}.dashicons.yikes-love{color:pink}.field-description-input{resize:vertical;max-height:100px}.yikes-easy-mc-postbox h3{background:#00a0d2;font-weight:800;color:#fff}.yikes-easy-mc-postbox h3.bg-transparent{color:#333;font-weight:400;background:0 0}.yikes-mc-warning-message{padding-left:15px;margin-top:0;padding-top:10px;color:#da6e6e}.error-message-container label[for=yikes-easy-mc-general-error-message],.error-message-container label[for=yikes-easy-mc-success-message],.error-message-container label[for=yikes-easy-mc-success-single-optin-message],.error-message-container label[for=yikes-easy-mc-update-email-failure],.error-message-container label[for=yikes-easy-mc-update-email-successful],.error-message-container label[for=yikes-easy-mc-user-email-body],.error-message-container label[for=yikes-easy-mc-user-email-subject],.error-message-container label[for=yikes-easy-mc-user-resubscribed-success-message],.error-message-container label[for=yikes-easy-mc-user-subscribed-message],.error-message-container label[for=yikes-easy-mc-user-subscribed-update-link]{padding:.5em 1em;background:rgba(241,241,241,.75);box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;margin:0}body.admin_page_yikes-mailchimp-edit-form #error-container{padding:2px 1em;background:rgba(241,241,241,.75);box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;margin:0;color:#f56060}.error-message-container label:last-child{padding-bottom:1em;margin-bottom:.5em}.error-message-container label,.form-settings-container label{display:block;margin:1em 0}.yikes-easy-forms-sidebar .yikes-mc-settings-expansion-section{padding:.5em .75em;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.yikes-mc-settings-expansion-section{display:none;background:rgba(241,241,241,.75)}.yikes-mc-settings-expansion-section .form-table td{padding:10px 10px;vertical-align:top}.yikes-mc-settings-expansion-section .form-table td p.description{line-height:1;margin-top:2px}.expansion-section-title{background:#fff}.expansion-section-title.settings-sidebar,.form-builder-section-title{text-decoration:none;display:block;border:1px solid rgba(177,177,177,.71);color:#333;padding:5px;margin:.5em 0 0 0}.expansion-section-title.settings-sidebar .dashicons,.form-builder-section-title .dashicons{content:"\f132";font-family:dashicons;font-size:15px;line-height:1.5}span.easy-mailchimp-add-on-valid-license-container{color:#44ba44;display:block;margin-top:1em}.easy-mailchimp-add-on-invalid-license-container{color:rgba(227,107,107,.86);display:block;margin-top:1em}.options-sidebar .yikes-easy-mc-postbox{overflow:visible}.options-sidebar .inside{padding:0 20px 12px}.yikes-easy-mc-about-text{margin-top:0}.add-on-settings-divider{margin:1em 0!important}#yks-mailchimp-double-optin-message,#yks-mailchimp-single-optin-message,.settings-page-input{width:50%}#yks-mailchimp-double-optin-message,#yks-mailchimp-single-optin-message{min-height:75px;max-height:200px;resize:vertical}#addon-settings-nav li a,#settings-nav li a{color:#333;text-decoration:none!important;transition:color .15s ease-out;-moz-transition:color .15s ease-out;-webkit-transition:color .15s ease-out;-o-transition:color .15s ease-out}#addon-settings-nav li a:hover,#settings-nav li a:hover{color:#00a0d2!important}#addon-settings-nav{margin-bottom:0;margin-top:5px}.option-menu-selected-arrow{width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:10px solid #a0a5aa;position:absolute;left:-.1em}.option-menu-selected-arrow+a{color:#00a0d2!important}label[for=yikes-mailchimp-debug-status]{display:inline-block;margin-bottom:1em;line-height:2.25}#yikes-mailchimp-debug-status{float:left;margin-top:.5em}label[for=yikes-mc-recaptcha-api-key],label[for=yikes-mc-recaptcha-setting]{display:block;margin-bottom:1em}input.recaptcha-setting-checkbox{display:inline-block;margin-top:.5em;vertical-align:bottom}.recaptcha-preview-link{display:block;margin-top:.5em}.recaptcha-preview-container{display:block;width:100%;display:none;margin:1em 0}.wrap #col-left,.wrap #col-right{width:49%}@media (max-width:800px){.wrap #col-left,.wrap #col-right{width:100%}}.support-page-logo{width:100%;opacity:.7;max-width:100%;display:block}.support-page-button{display:block;width:100%;min-height:40px;font-weight:700;text-align:center;line-height:3!important;margin-top:1em!important}.support-page-wordpress-font{font-size:1.3em;margin-right:13px}h2.premium-support-title{margin:1em 0 .5em 0}#premium-support-form{display:block;width:100%}#premium-support-form input[type=email],#premium-support-form input[type=submit],#premium-support-form input[type=text],#premium-support-form select{display:block;width:100%;min-width:200px;margin:.5em 0}#premium-support-form label{font-weight:800}#premium-support-form label input,#premium-support-form label select{font-weight:500}#premium-support-form p{font-weight:300;display:block;margin-bottom:1em}#wp-support-content-wrap{min-height:150px;width:100%}.support-form-hidden{display:none!important}#yikes-mailchimp-error-log .row-title{font-weight:400}.create-error-log-help:hover{cursor:pointer}.error-log-tr td{display:table;margin-bottom:1em;margin-top:.5em}p.error-log-missing-file em,p.to-start-logging-errors-notice em{margin:10px 0}.export-custom-forms-list{display:none;margin:1em 0 2em 0}.export-custom-forms-list p{margin-top:0}.list-rating-star{color:#e6b800}#import-list-to-site{margin-top:10px}#import-list-to-site .input-field{display:block;width:100%;margin-top:5px;margin-bottom:5px}#import-list-to-site .form-description{resize:vertical;max-height:65px}#import-list-to-site .description{margin-top:5px}input.clear-mailchimp-api-cache{float:right;margin-top:-33px!important}.yikes-list-refreshed-notice{border-left:4px solid #46b450;margin:5px 0}.yikes-list-refreshed-notice p{margin:1em 0 .5em 0;padding:6px 12px;background:rgba(241,241,241,.5);font-size:13px;line-height:1.5}.star-container{margin-top:5px;margin-bottom:1.5em}.star-container a{text-decoration:none}.star-container .dashicons-star-filled{font-size:1.75em}.sidebar-container{margin-top:5px;margin-bottom:1.5em}.sidebar-footer-text{margin:15px 0!important;text-align:center}.sidebar-twitter-icon{text-decoration:none;color:#55acee}.field-doesnt-exist-notice{position:absolute;margin-left:5px;width:18px}.field-type-text{display:inline-block;float:right;margin-right:.1em}.type-container{margin-top:0;margin:0}.form-field-container{margin-top:0;margin-bottom:0}.field-no-longer-exists-warning{position:absolute;margin-left:5px;width:18px}.form-field-container tr.yikes-checkbox-container input[type=checkbox]{float:left;margin:5px}.form-field-container tr.yikes-checkbox-container-first td{padding-top:12px!important}.form-field-container tr.yikes-checkbox-container td{padding:2px 12px}.form-field-container td input[type=checkbox]:first-child,.form-field-container td input[type=radio]:first-child{margin-left:0!important}.merge-tag-text{background:0 0;box-shadow:none;border:none}.pre-defined-tag-link{display:block;font-size:11px;margin-top:-2px}.toggle-container{font-size:small;float:right}#pre-defined-tag-container{display:none}#pre-defined-tag-container h3{margin-bottom:0}#pre-defined-tag-container .tooltop-tag .dashicons-editor-help{font-size:13px;line-height:1.5}.no-fields-assigned-notice{margin:4em 0 2.25em 0;padding-bottom:6em;width:100%;text-align:center;background:url( '../../includes/images/no-form-fields-assigned-arrow.jpg' ) no-repeat;background-position:bottom center;background-size:105px}.yikes-easy-mc-widget-preloader{position:absolute;left:48%;margin-top:-96px}.yikes-dashboard-widget-section{padding:0 12px 12px}.select-list-title{padding-left:0}.yikes-dashboard-widget-section .description{margin:.5em 0 0 0}. error-descripion{padding-top:.5em}.yikes-mc-freddie-logo{float:left;margin-right:10px}.mv_ig_list{width:100%;margin-bottom:8px!important;border:none!important;background:0 0!important}.mv_ig_list .list-container{position:absolute}.mv_ig_list a{width:48%;padding:5px 0!important;text-align:center;margin:0}.mv_ig_list a:first-child{margin-right:0}.mv_ig_list a:last-child{float:right}.mv_ig_list{margin-bottom:.5em}.mv_ig_list .nav-tab{border:1px solid #ccc}.mv_ig_list .nav-tab-active{color:#fff;font-weight:700;background:#00a0d2}.mv_ig_list .arrow-down{position:absolute;margin-top:21px;margin-left:50px;width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-top:12px solid #00a0d2}#container-container{display:inline-block;width:540px}#container-container .list-container{float:left;width:254px;position:relative}#container-container .list-container:last-child{margin-left:2em}#yikes_easy_mc_toolbar{margin-top:-.75em}#yikes_easy_mc_toolbar_links{display:inline-block;width:100%;margin:0;padding:10px 0}#yikes_easy_mc_toolbar_links li{float:left;margin:0 .5em}#yikes_easy_mc_toolbar_links li a{text-decoration:none;display:inline-block}#yikes_easy_mc_toolbar_links li a:focus{box-shadow:none}#yikes_easy_mc_toolbar_links li a.selected_hidden_setting{color:#333;margin-bottom:3px}#yikes_easy_mc_toolbar_links li .selected_setting_triangle{width:0;height:0;border-left:13px solid transparent;border-right:13px solid transparent;border-top:13px solid rgba(206,206,206,1);margin:0 auto}#yikes_easy_mc_toolbar_links li a.form-builder:before{content:"\f116";font-family:dashicons}#yikes_easy_mc_toolbar_links li a.form-customizer:before{content:"\f100";font-family:dashicons}#yikes_easy_mc_toolbar_links li a.error-messages:before{content:"\f117";font-family:dashicons}#yikes_easy_mc_toolbar_links li a.form-settings:before{content:"\f111";font-family:dashicons}.integreation-checkbox-interest-groups-header{display:inline}.integration-checkbox-interest-groups-hr{margin-top:10px;margin-bottom:10px}#checkbox-settings-form .dashicons-editor-help{font-size:15px;line-height:1.6}.checkbox-settings-list-dropdown{display:block;width:250px}.no-lists-setup-notice{padding:.5em 0 .5em 0}.optin-checkbox-label-input{display:block;width:250px}.integration-checkbox-interest-groups{margin-bottom:10px}.integration-checkbox-interest-groups p,.integration-checkbox-interest-groups section{padding-left:25px}.yikes-mailchimp-checkbox-integration-list{color:#006799;display:inline-block;font-weight:600;margin-bottom:5px;padding:0 16px 8px 2px;vertical-align:top}.yikes-mailchimp-checkbox-integration-item{font-size:14px;font-weight:600;margin-bottom:10px}.yikes-mailchimp-checkbox-integration-list input[type=checkbox]{margin-right:0}label.optin-checkbox-label{display:block;margin:4px 0}label.optin-checkbox-label input.optin-checkbox-label-input,label.optin-checkbox-label select{display:inline-block}label.optin-checkbox-label select{margin-left:17px;width:auto}.yikes-form-id-number{width:55px}span[title="Conversion Rate"]:hover,span[title=Impressions]:hover,span[title=Submissions]:hover{display:block;cursor:pointer}.form-id-container{padding:1px 8px;border-radius:5px;background:#49a9ec;font-weight:700;color:#fff}.manage-form-admin-notice{margin-top:1.75em!important}.remove-notification,.yikes-mc-settings-expansion-section a.remove-field,a.yikes-delete-mailchimp-form,a.yikes-delete-subscriber{color:#d96060!important}.yikes-delete-mailchimp-form{margin-top:6px}#postbox-container-1 .yikes-delete-mailchimp-form{float:right}.form-buttons-container{display:block;padding:11px 10px}.forms-buttons-container input[type=submit]{margin:0 0 .5em 0}.update-form-spinner{position:absolute;left:0;right:0;margin:0 auto;bottom:13px}.yikes-mc-shortcode-input{text-align:center;width:100%;color:#333}.hidden-class{display:none!important}.stat-container{width:10%;max-width:75px}.no-current-subscriber-notice em,.no-mailchimp-forms-found em{padding:25px 0 25px 25px}.column-columnname span.stats{display:block;width:100%;text-align:center}.column-columnname span.stats span{display:inline-block;width:20%}.column-columnname span.stats span:hover{cursor:pointer}#available-fields li,#available-interest-groups li{text-decoration:none;display:block;border:1px solid rgba(177,177,177,.71);color:#333;padding:5px;margin:.5em 0}#available-fields li.not-available,#available-interest-groups li.not-available{opacity:.6!important}#available-fields li.field-to-add-to-form,#available-interest-groups li.group-to-add-to-form{background:rgba(46,162,204,.25)}.add-field-to-editor .add-to-form-builder-arrow,.button-secondary .add-to-form-builder-arrow{width:15px;font-size:15px;line-height:1.8}.clear-form-fields{background:#e14d43;border-color:#d02c21;color:#fff;box-shadow:inset 0 1px 0 #ec8b85,0 1px 0 rgba(0,0,0,.15);text-decoration:none;display:inline-block;height:28px;padding:0 10px 1px;border-width:1px;-webkit-appearance:none;border-radius:3px;white-space:nowrap;font-size:13px;line-height:26px;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;float:right;margin:0 11px 10px 0}.clear-form-fields:active,.clear-form-fields:focus,.clear-form-fields:hover{background:#dd382d;border-color:#ba281e;color:#fff;box-shadow:inset 0 1px 0 #e8776f}.yikes-mc-view-list-breadcrumbs{padding:.8em;border:1px solid #d8d8d8;background:#ececec;margin:1.5em 0 .8em 0}.yikes-mc-member-rating-star{color:#daa520}#yikes-mc-subscriber-card-wrapper{background:#fefefe;min-height:200px;display:inline-block;box-shadow:0 1px 1px rgba(0,0,0,.04);webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);border:1px solid #e5e5e5;padding:15px 20px;width:500px;float:left}#yikes-mc-subscriber-card-wrapper .subscriber-optin-ip{display:inline-block;margin:1em 0 0 0;font-style:italic}.view-user-data-wrap #customer-tab-wrapper-list{float:left;background:#fefefe;margin-top:0;padding:12px;margin-left:-1px;border-right:1px solid #e5e5e5;border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5}.view-user-data-wrap #customer-tab-wrapper-list .dashicons{font-size:23px;height:23px;width:23px;margin:3px 0}.view-user-data-wrap #customer-tab-wrapper-list li.inactive{color:rgba(51,51,51,.31);transition:color ease-out .1s}.view-user-data-wrap #customer-tab-wrapper-list li.active,.view-user-data-wrap #customer-tab-wrapper-list li.inactive:hover{color:rgba(51,51,51,1)}#yikes-mc-subscriber-card-wrapper .yikes-mc-card-top .member-star-rating-container,#yikes-mc-subscriber-card-wrapper .yikes-mc-card-top h2,#yikes-mc-subscriber-card-wrapper .yikes-mc-card-top img{float:left}#yikes-mc-subscriber-card-wrapper #delete-mailchimp-subscriber{display:block;margin:0 auto}#yikes-mc-subscriber-card-wrapper .yikes-mc-card-top img{border-radius:3px}#yikes-mc-subscriber-card-wrapper .merge-variable-section li{display:inline-block;list-style:none;float:left;width:50%;min-height:65px;border-bottom:1px dotted #ddd}#yikes-mc-subscriber-card-wrapper .merge-variable-section li p{margin:0 0 1em 0}#yikes-mc-subscriber-card-wrapper .yikes-mc-card-top h2{max-width:370px;width:75%;padding:0}#yikes-mc-subscriber-card-wrapper .member-star-rating-container{display:block;margin:.5em 0;margin-left:10px}#yikes-mc-subscriber-card-wrapper h2{margin-left:10px;margin-top:0;padding-top:0}#yikes-mc-subscriber-card-wrapper .yikes-mc-card-top{display:inline-block;width:100%}#yikes-mc-subscriber-card-wrapper .yikes-mc-card-body{display:inline-block;width:100%}#yikes-mc-subscriber-card-wrapper .yikes-mc-card-body h4{margin-top:0;margin-left:5px}.yikes-mc-subscriber-hr{margin:1.5em 0}.member-subscription-date{display:block;width:70%;max-width:370px;margin:.5em 0;margin-left:10px;float:left}.member-location-data{display:block;width:70%;max-width:370px;margin:.25em 0;margin-left:10px;float:left}.addon-required-link{color:#333;opacity:.5}.view-list-sidebar-input{color:#333}.interest-group-ul,.merge-variable-ul,.segment-ul{padding-left:15px;font-size:14px}.interest-group-ul li .dashicons,.merge-variable-ul li .dashicons{line-height:1.8;font-size:9px}a.button-primary.edit-fields-button{margin:0 0 10px 15px}.interest-group-count,.merge-variable-count,.segment-group-count{text-decoration:underline;margin-bottom:.75em;padding-left:7px}.interest-group-title{padding-left:5px}.edit-segments-button{margin:0 0 10px 15px}.edit-segment-description{padding:0 0 10px 15px}.list-page-mailchimp-logo{width:100%;display:block;margin:0 auto}.list-page-sidebar h2.account-status{text-align:center}.mailchimp-avatar{display:block;margin:0 auto;box-shadow:3px 3px 10px 0 rgba(214,214,214,.75)}.yikes-easy-mailchimp-custom-content-icon{font-size:15px;line-height:1}.custom-field-section{display:block;margin:1em 0}#associated-list{width:100%;margin-top:5px}#redirect-user-to-selection{width:100%}#edit-yikes-mc-form label h3{margin-left:0;padding-left:0}#available-fields .field-required{color:#d96060!important}body.admin_page_yikes-mailchimp-edit-form #poststuff h2{padding:8px 12px;margin-top:0}.edit-form-form-description{width:100%;resize:vertical;min-height:65px;max-height:100px}.edit-form-title{padding-left:12px!important}#edit-form-description{padding:0 12px;margin:1em 0}.yikes-easy-mc-postbox{overflow:hidden}.no-interest-groups-found-message{opacity:.35}#interest-groups-container .description,#merge-variables-container .description{padding-top:.5em}.inside-section-1{margin-top:0;margin-bottom:1.5em}.inside-section-2{margin-top:0;margin-bottom:2em}.form-field-container-span{display:block;margin:.5em 0}#style-list ul li{display:block;width:100%;margin:1em 0}.form-style-adjustment,.wp-picker-container{display:block!important;width:100%;margin:.5em 0}.dynamic-email-tag{display:inline-block;margin-right:5px}.dynamic-tag-description td{padding-top:0}#create-new-notification-button{margin-top:1em}.file-container{display:none}.yikes-mailchimp-file-field input[name*="custom-field[incentive-attachment]"]{margin-bottom:.5em}.yikes-mailchimp-file-field input[name*="custom-field[incentive-attachment]"]+.button-secondary{margin-left:4px}input#upload-btn[data-attr-position="1"]{margin-left:0}.remove-file-button{background:url(../partials/helpers/fields/img/icon-delete.png);height:16px;position:absolute;text-indent:-99999px;width:16px}a.add-new-incentive-attachment{display:block;width:40px;margin-right:100%!important;margin-top:.5em!important}a.add-new-incentive-attachment .dashicons{font-size:15px;line-height:1.8}.form-builder-placeholder{background:rgba(206,206,206,.2);height:30px}.admin_page_yikes-mailchimp-edit-form #form-settings .section-title{font-size:1em;border-bottom:1px solid rgba(187,187,187,.29);display:block;width:100%;padding-bottom:6px;margin-bottom:.5em;margin-top:1.5em}.admin_page_yikes-mailchimp-edit-form #form-settings .section-title.first{margin-top:0}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior{display:inline-block;width:100%;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:rgba(241,241,241,.75);padding:1em}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior label{margin-top:0}label.login-restriction-center{display:block;width:100%}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-restriction-section{display:inline-block}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-restriction-section p.description.error{color:#f56060}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-restriction-section label{float:left;margin-right:.5em;margin-top:0;margin-bottom:0;display:inline-block}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .nested-child .yikes-easy-mc-form-restriction-expired-message,.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .nested-child .yikes-easy-mc-form-restriction-login-message,.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .nested-child .yikes-easy-mc-form-restriction-pending-message{display:block;width:100%;min-height:50px}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .nested-child{float:left;padding-left:2%;width:98%;border-left:1px dashed #bdbdbd;border-spacing:2px;margin:.5em 0 1em 0}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .nested-child .yikes-easy-mc-submit-button-text{margin:0}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-restriction-section{margin-bottom:0}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .date-restriction-section.last{margin-bottom:.75em}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .nested-child.hidden{display:none}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .description+label{margin-top:1em;float:left;width:100%}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior label.inline-form-label{margin-bottom:0;margin-top:0}.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior .description{display:block;width:100%;float:left}.admin_page_yikes-mailchimp-edit-form #form-settings .nested-child strong:first-child,.admin_page_yikes-mailchimp-edit-form #form-settings .section-interior strong:first-child{display:block;width:100%}.admin_page_yikes-mailchimp-edit-form #form-settings .inline-form-label{float:left;margin-right:10px}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-wrapper{overflow-y:auto;height:150px;width:170px;background:#fff;border:1px solid #ddd;box-shadow:0 5px 10px rgba(0,0,0,.2);outline:0;z-index:10001;margin:0}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-wrapper.ui-timepicker-with-duration{width:13em}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-wrapper.ui-timepicker-with-duration.ui-timepicker-step-30,body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-wrapper.ui-timepicker-with-duration.ui-timepicker-step-60{width:11em}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list{margin:0;padding:0;list-style:none}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-duration{margin-left:5px;color:#888}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list:hover .ui-timepicker-duration{color:#888}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list li{padding:3px 0 3px 5px;cursor:pointer;white-space:nowrap;color:#000;list-style:none;margin:0}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list:hover .ui-timepicker-selected{background:#fff;color:#000}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list .ui-timepicker-selected:hover,body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list li:hover,body.admin_page_yikes-mailchimp-edit-form li.ui-timepicker-selected{background:#1980ec;color:#fff}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list li:hover .ui-timepicker-duration,body.admin_page_yikes-mailchimp-edit-form li.ui-timepicker-selected .ui-timepicker-duration{color:#ccc}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list li.ui-timepicker-disabled,body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list li.ui-timepicker-disabled:hover,body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list li.ui-timepicker-selected.ui-timepicker-disabled{color:#888;cursor:default}body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list li.ui-timepicker-disabled:hover,body.admin_page_yikes-mailchimp-edit-form .ui-timepicker-list li.ui-timepicker-selected.ui-timepicker-disabled{background:#f2f2f2}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker{background-color:#fff;border:1px solid #66afe9;border-radius:4px;box-shadow:0 0 8px rgba(102,175,233,.6);display:none;margin-top:4px;padding:10px;width:240px}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker a,body.admin_page_yikes-mailchimp-edit-form .ui-datepicker a:hover{text-decoration:none}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker a:hover,body.admin_page_yikes-mailchimp-edit-form .ui-datepicker td:hover a{color:#2a6496;transition:color .1s ease-in-out}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-header{margin-bottom:4px;text-align:center}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-title{font-weight:700}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-next,body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-prev{cursor:default;font-family:'Glyphicons Halflings';-webkit-font-smoothing:antialiased;font-style:normal;font-weight:400;height:20px;line-height:1;margin-top:2px;width:30px}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-prev{float:left;text-align:left}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-next{float:right;text-align:right}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-prev:before{content:"\f141";font-family:dashicons}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-next:before{content:"\f139";font-family:dashicons}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker-next:hover,body.admin_page_yikes-mailchimp-edit-form .ui-datepicker-prev:hover{cursor:pointer!important}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker-close{display:none}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker-current{color:#555!important;border-color:#ccc!important;background:#f7f7f7!important;box-shadow:0 1px 0 #ccc!important;vertical-align:top!important;display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;margin-top:10px}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-icon{display:none}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-calendar{table-layout:fixed;width:100%}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-calendar td,body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-calendar th{text-align:center;padding:4px 0}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-calendar td{border-radius:4px;transition:background-color .1s ease-in-out,color .1s ease-in-out}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-calendar td:hover{background-color:#ebebeb;cursor:pointer}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-calendar td a{text-decoration:none}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-today{background-color:rgba(66,137,204,.65)}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-today a{color:#fff}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-current-day{background-color:#4289cc}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-current-day a{color:#fff}body.admin_page_yikes-mailchimp-edit-form .ui-datepicker .ui-datepicker-calendar .ui-datepicker-unselectable:hover{background-color:#fff;cursor:default}.custom-radio-holder{display:inline-block;width:100%;margin:.5em 0}.custom-radio-label{display:block;float:left;margin:0 5px}.custom-radio-label:first-child{margin-left:0!important}.custom-radio-label input[type=radio]{margin-right:0!important}.custom-select-field{display:block;width:100%;margin:.5em 0}#available-widgets [class*=yikes_easy] .widget-title:before{content:""!important;background:url(../../includes/images/MailChimp_Assets/Freddie_original.png) no-repeat #fafafa;background-size:contain}body.wp-customizer #available-widgets [id*="_yikes_easy_mc_widget"]>div.widget-top>div.widget-title>h4{background:0 0!important}#connection-container{float:right;color:#fff;padding:.25em .75em .25em .25em;margin-top:-4px}#connection-container.api-connected{background:#44ba44}#connection-container.api-not-connected{background:#b5b5b5}.yikes-mc-api-connected,.yikes-mc-api-not-connected{line-height:1}.show-some-love-container{transition:max-height .75s}#review-yikes-easy-mc{text-align:center}#review-yikes-easy-mc .dashicons-star-filled{color:#e6b800}.meta-box-sortables hr{margin:1.75em 0 0 0}#about-yikes-inc{display:none}#about-yikes-inc .about-sidebar-yikes-logo{float:left;width:95px;margin:5px 7px 0 0}#about-yikes-inc p{margin-top:0}.yikes-easy-mc-updated{display:block;border-left:4px solid #4eaef0;margin:0 20px 2px 0;margin-top:1em;margin-bottom:1em;padding:2px 10px;background:#fff;background-size:120px;background-position:right bottom;background-repeat:no-repeat;background-position-y:29px}@media screen and (max-width:1200px){.yikes-easy-mc-postbox #post-body.columns-2 #postbox-container-1{float:none}}@media screen and (max-width:850px){.option-menu-selected-arrow{display:none!important}}@media screen and (max-width:782px){#chimp-chatter .chimp-chatter-container{float:none;height:auto;width:100%}}.recaptcha-demo-gif{width:275px}.pro-version-only-notice{color:#d96060}.upgrading-ellipse-one{-moz-opacity:0;-khtml-opacity:0;opacity:0;-webkit-animation:dot 1.3s infinite;-webkit-animation-delay:0ms;animation:dot 1.3s infinite;animation-delay:0ms}.upgrading-ellipse-two{-moz-opacity:0;-khtml-opacity:0;opacity:0;-webkit-animation:dot 1.3s infinite;-webkit-animation-delay:.2s;animation:dot 1.3s infinite;animation-delay:.2s}.upgrading-ellipse-three{-moz-opacity:0;-khtml-opacity:0;opacity:0;-webkit-animation:dot 1.3s infinite;-webkit-animation-delay:.3s;animation:dot 1.3s infinite;animation-delay:.3s}.yikes-mc-edit-field-label-icon{display:inline}.yikes-mc-edit-field-label-input{display:none;width:auto;border-radius:5px}.yikes-mc-save-field-label-edits-icon{display:none}.yikes-mc-edit-field-label-message{display:none;color:#f56060;margin-left:26px}@keyframes dot{0%{opacity:0}50%{opacity:0}100%{opacity:1}}
|
admin/js/min/yikes-inc-easy-mailchimp-extender-admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function YIKES_Easy_MC_SwitchForm(
|
1 |
+
function YIKES_Easy_MC_SwitchForm(e){window.location.replace(object_data.admin_url+"admin.php?page=yikes-mailchimp-edit-form&id="+e)}function toggleOptinValue(e){"true"==e.value?jQuery(".yks-mailchimp-single-optin-message").slideUp("fast",function(){jQuery(".yks-mailchimp-double-optin-message").slideDown("fast")}):jQuery(".yks-mailchimp-double-optin-message").slideUp("fast",function(){jQuery(".yks-mailchimp-single-optin-message").slideDown("fast")})}function toggleDeleteSubscriberButton(e){e.prop("checked")?jQuery("#delete-mailchimp-subscriber").removeAttr("disabled"):jQuery("#delete-mailchimp-subscriber").attr("disabled","disabled")}function checkForInterestGroups(e,s,t){var i=e.parents("li").find(".interest-groups-container").children().length;if(0==i)e.parents("li").find(".interest-groups-container").append("<p>"+object_data.locating_interest_groups+'<span class="upgrading-ellipse-one">.</span><span class="upgrading-ellipse-two">.</span><span class="upgrading-ellipse-three">.</span><img class="search-interest-group-preloader" src="'+object_data.preloader_url+'" /></p>');else{var a=1;e.parents("li").find(".interest-groups-container").children().each(function(){jQuery(this).fadeOut("fast",function(){jQuery(this).remove(),a==i&&e.parents("li").find(".interest-groups-container").append("<p>"+object_data.locating_interest_groups+'<span class="upgrading-ellipse-one">.</span><span class="upgrading-ellipse-two">.</span><span class="upgrading-ellipse-three">.</span><img class="search-interest-group-preloader" src="'+object_data.preloader_url+'" /></p>'),console.log(a),a++})})}var r={action:"check_list_for_interest_groups",list_id:s,integration:t};jQuery.ajax({url:object_data.ajax_url,type:"POST",data:r,dataType:"html",success:function(s,t,i){setTimeout(function(){e.parents("li").find(".interest-groups-container").html(s)},500)},error:function(e,s,t){alert(s+e.status+e.responseText+"...")},complete:function(e,s){}}),console.log(s)}function remove_interest_groups_for_list_checkbox_integrations(e){jQuery(e).parents("label").next(".integration-checkbox-interest-groups").slideUp(function(){jQuery(this).remove()})}function display_interest_groups_for_list_checkbox_integrations(e){display_interest_groups_loading_spinner(e),fetch_interest_groups_by_list_id(jQuery(e).val(),jQuery(e).data("integration"),e)}function fetch_interest_groups_by_list_id(e,s,t){var i={action:"check_list_for_interest_groups",list_id:e,integration:s};jQuery.ajax({url:object_data.ajax_url,type:"POST",data:i,dataType:"html",success:function(e,s,i){jQuery(t).parents("label").children(".interest-groups-loading").remove(),jQuery(t).parents("label").after(e)},error:function(e,s,t){alert(s+e.status+e.responseText+"...")},complete:function(e,s){}})}function display_interest_groups_loading_spinner(e){jQuery(e).parents("label").append('<p class="interest-groups-loading">'+object_data.locating_interest_groups+'<span class="upgrading-ellipse-one">.</span> \r\t\t\t<span class="upgrading-ellipse-two">.</span><span class="upgrading-ellipse-three">.</span> \r\t\t\t<img class="search-interest-group-preloader" src="'+object_data.preloader_url+'" /> \r\t\t</p>')}function shouldWeDisplayCustomURL(e){"custom_url"==jQuery(e).val()?jQuery(".custom_redirect_url_label").fadeIn():jQuery(".custom_redirect_url_label").fadeOut()}function show_custom_messages_based_on_optin_settings(){show_custom_resub_messages_based_on_optin_settings(),show_custom_success_messages_based_on_optin_settings()}function yikes_mc_hide_custom_resub_messages(){jQuery(".yikes-easy-mc-custom-messages-email-section, .yikes-easy-mc-custom-messages-email-section-help").fadeOut(),jQuery('label[for="yikes-easy-mc-user-resubscribed-success-message"], label[for="yikes-easy-mc-user-subscribed-message"], \r\t\t\tlabel[for="yikes-easy-mc-user-subscribed-update-link"]').hide(),jQuery(".yikes-easy-mc-user-resubscribed-success-message-help, .yikes-easy-mc-user-subscribed-message-help, \r\t\t\t.yikes-easy-mc-user-subscribed-update-link-help").hide(),jQuery('label[for="yikes-easy-mc-update-email-successful"], label[for="yikes-easy-mc-update-email-failure"], \r\t\t\t .yikes-easy-mc-update-email-successful-help, .yikes-easy-mc-update-email-failure-help').hide()}function yikes_mc_hide_custom_optin_messages(){jQuery('label[for="yikes-easy-mc-success-single-optin-message"], label[for="yikes-easy-mc-success-message"]').hide(),jQuery(".yikes-easy-mc-success-single-optin-message-help, .yikes-easy-mc-success-message-help").hide()}function show_custom_resub_messages_based_on_optin_settings(){yikes_mc_hide_custom_resub_messages();var e=jQuery("#update-user").is(":checked"),s=jQuery("#update-email").is(":checked");!1===e&&jQuery('label[for="yikes-easy-mc-user-subscribed-message"], .yikes-easy-mc-user-subscribed-message-help').fadeIn(),!0===e&&!0===s&&jQuery('label[for="yikes-easy-mc-user-subscribed-update-link"], .yikes-easy-mc-custom-messages-email-section, \r\t\t\t\t.yikes-easy-mc-user-subscribed-update-link-help, .yikes-easy-mc-custom-messages-email-section-help, \r\t\t\t\tlabel[for="yikes-easy-mc-update-email-successful"], label[for="yikes-easy-mc-update-email-failure"], \r\t\t\t\t.yikes-easy-mc-update-email-successful-help, .yikes-easy-mc-update-email-failure-help').fadeIn(),!0===e&&!1===s&&jQuery('label[for="yikes-easy-mc-user-resubscribed-success-message"], .yikes-easy-mc-user-resubscribed-success-message-help').fadeIn()}function show_custom_success_messages_based_on_optin_settings(){yikes_mc_hide_custom_optin_messages(),!0===jQuery("#single").is(":checked")?jQuery('label[for="yikes-easy-mc-success-single-optin-message"], .yikes-easy-mc-success-single-optin-message-help ').fadeIn():jQuery('label[for="yikes-easy-mc-success-message"], .yikes-easy-mc-success-message-help').fadeIn()}!function(e){"use strict";e(document).ready(function(){show_custom_messages_based_on_optin_settings(),e('input[name="update-existing-user"]').change(show_custom_resub_messages_based_on_optin_settings),e('input[name="update-existing-email"]').change(show_custom_resub_messages_based_on_optin_settings),e('input[name="single-double-optin"]').change(show_custom_success_messages_based_on_optin_settings),e("body").on("click",".view-yikes-mc-form-shortcode",function(){var e=jQuery(this);jQuery(this).parents("tr").find(".form-id-container").text();return e.parents("tr").find(".stat-container").toggleClass("hidden-class"),e.parents("tr").find(".shortcode").toggleClass("hidden-class"),e.toggleText(),!1}),e("body").on("click",".disabled",function(){return!1}),e("body").hasClass("admin_page_yikes-mailchimp-edit-form")||e(".show-some-love-container").css("max-height",jQuery(".show-some-love-container").height()),e(".checkbox-settings-list-item").click(function(){jQuery(this).is(":checked")?display_interest_groups_for_list_checkbox_integrations(this):remove_interest_groups_for_list_checkbox_integrations(this)}),e("body").on("click",".yikes-mailchimp-toggle-ig",function(){var s=e(this);s.hasClass("dashicons-arrow-down-alt2")?(s.siblings(".integration-checkbox-interest-groups-interior").slideUp(),s.removeClass("dashicons-arrow-down-alt2").addClass("dashicons-arrow-right-alt2")):(s.siblings(".integration-checkbox-interest-groups-interior").slideDown(),s.removeClass("dashicons-arrow-right-alt2").addClass("dashicons-arrow-down-alt2"))}),e("body").on("click",".about-yikes-inc-toggle",function(){if(jQuery(this).toggleText(),jQuery(".show-some-love-container").find("h3").toggleText(),jQuery(this).hasClass("show-yikes-some-love-toggle")){jQuery(this).removeClass("show-yikes-some-love-toggle");var e=jQuery(".show-some-love-container").find("h3").first().height()+24,s=jQuery("#review-yikes-easy-mc").height()+24,t=jQuery(".sidebar-footer-text").first().height()+12,i=jQuery(".sidebar-footer-text").last().height()+13,a=parseInt(e+s+t+i);return jQuery(".show-some-love-container").css("max-height",a),jQuery("#about-yikes-inc").fadeOut(720,function(){jQuery(".sidebar-footer-text").first().fadeIn(450),jQuery("#review-yikes-easy-mc").fadeIn(450)}),!1}jQuery(this).toggleClass("show-yikes-some-love-toggle");var e=jQuery(".show-some-love-container").find("h3").first().height()+24,r=jQuery("#about-yikes-inc").height()+18,i=jQuery(".sidebar-footer-text").last().height()+18,a=parseInt(e+r+i);return jQuery(".sidebar-footer-text").first().hide(),jQuery(".show-some-love-container").addClass("about-yikes-inc").css("max-height",a),jQuery("#about-yikes-inc").show().css("opacity",0),jQuery("#review-yikes-easy-mc").fadeOut("fast",function(){jQuery("#about-yikes-inc").fadeTo(800,1)}),!1}),e.fn.toggleText=function(){var e=this.data("alt-text");e&&(this.data("alt-text",this.html()),this.html(e))}})}(jQuery);
|
admin/js/min/yikes-inc-easy-mailchimp-extender-edit-form.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function togglePageRedirection(a){var b=jQuery("#enable-ajax").is(":checked");1==a.value?(jQuery("#redirect-user-to-selection-label").fadeIn(),b===!0&&jQuery(".redirect-new-window-div").fadeIn()):jQuery("#redirect-user-to-selection-label, .redirect-new-window-div").fadeOut()}function storeGlobalClicked(a){var b=a.parents("td").find("input").attr("name");jQuery(".clicked-input").val(b)}function populateDefaultValue(a){var b=jQuery(".clicked-input").val();jQuery(".clicked-input").val(""),tb_remove(),jQuery('input[name="'+b+'"]').val(a)}function toggle_nested_section(a){var b=jQuery(a).val();switch(b){case"image":jQuery(".submit-button-type-text").fadeOut("fast",function(){jQuery(".submit-button-type-image").fadeIn("fast")});break;case"text":jQuery(".submit-button-type-image").fadeOut("fast",function(){jQuery(".submit-button-type-text").fadeIn("fast")});break;default:case"1":"yikes-easy-mc-form-schedule"==jQuery(a).attr("name")?jQuery(".date-restirction-section").fadeToggle():jQuery(".login-restirction-section").fadeToggle()}return!1}function initialize_form_schedule_time_pickers(){jQuery(".date-picker").datepicker({numberOfMonths:1,showButtonPanel:!0,closeText:window.yikes_mailchimp_edit_form.closeText,currentText:window.yikes_mailchimp_edit_form.currentText,monthNames:window.yikes_mailchimp_edit_form.monthNames,monthNamesShort:window.yikes_mailchimp_edit_form.monthNamesShort,dayNames:window.yikes_mailchimp_edit_form.dayNames,dayNamesShort:window.yikes_mailchimp_edit_form.dayNamesShort,dayNamesMin:window.yikes_mailchimp_edit_form.dayNamesMin,dateFormat:window.yikes_mailchimp_edit_form.dateFormat,firstDay:window.yikes_mailchimp_edit_form.firstDay,isRTL:window.yikes_mailchimp_edit_form.isRTL,onSelect:function(a,b){var c=b.lastVal,d=b.id;yikes_check_valid_date(a,c,d)}}),jQuery(".time-picker").timepicker({scrollDefault:"now",timeFormat:"h:i A"}),jQuery(".time-picker").on("changeTime",function(){var a=jQuery(this).attr("id"),b=jQuery("#yikes-easy-mc-form-restriction-start-date").val(),c=jQuery("#yikes-easy-mc-form-restriction-end-date").val();yikes_check_valid_date(b,c,a)})}function yikes_check_valid_date(a,b,c){var d=jQuery("#yikes-easy-mc-form-restriction-start-date").val(),e=jQuery("#yikes-easy-mc-form-restriction-end-date").val(),f=yikes_12_to_24_hour_time_conversion(jQuery("#yikes-easy-mc-form-restriction-start-time").val()),g=yikes_12_to_24_hour_time_conversion(jQuery("#yikes-easy-mc-form-restriction-end-time").val()),h=new Date(d+" "+f),i=new Date(e+" "+g);if(h>i){if("yikes-easy-mc-form-restriction-start-date"!=c&&"yikes-easy-mc-form-restriction-end-date"!=c||jQuery("#"+c).val(b),jQuery(".date-restirction-section").find("p.description.error").length)return;jQuery(".date-restirction-section").first().find("p.description").after('<p class="description error">'+window.yikes_mailchimp_edit_form.start_date_exceeds_end_date_error+"</p>")}else jQuery(".date-restirction-section").find("p.description.error").remove()}function yikes_12_to_24_hour_time_conversion(a){var b=Number(a.match(/^(\d+)/)[1]),c=Number(a.match(/:(\d+)/)[1]),d=a.match(/\s(.*)$/)[1];"PM"==d&&b<12&&(b+=12),"AM"==d&&12==b&&(b-=12);var e=b.toString(),f=c.toString();return b<10&&(e="0"+e),c<10&&(f="0"+f),e+":"+f}function toggleUpdateEmailContainer(a){jQuery(".send-update-email").stop().fadeToggle()}function yikes_mc_prevent_default_stop_prop(a){a.preventDefault(),a.stopPropagation()}function yikes_mc_toggle_field_label_edit(a){jQuery(a).siblings(".yikes-mc-edit-field-label-input").val(jQuery(a).parents(".expansion-section-title").siblings(".yikes-mc-settings-expansion-section").children(".yikes-mc-merge-field-label").val());var b=jQuery(a).siblings(".yikes-mc-expansion-section-field-label, .field-type-text"),c=jQuery(a).siblings(".yikes-mc-edit-field-label-input, .yikes-mc-save-field-label-edits-icon");jQuery(a).hasClass("dashicons-no")?(b=jQuery(a).siblings(".yikes-mc-edit-field-label-input, .yikes-mc-save-field-label-edits-icon"),c=jQuery(a).siblings(".yikes-mc-expansion-section-field-label, .field-type-text"),a.title=yikes_mailchimp_edit_form.edit_field_label_pencil_title):a.title=yikes_mailchimp_edit_form.edit_field_label_cancel_title,jQuery(a).toggleClass("dashicons-no dashicons-edit"),b.fadeToggle().promise().done(function(){c.fadeToggle()})}function yikes_mc_save_field_label_name(a,b,c){var d={action:"save_field_label_edits",list_id:b,field_data:c,nonce:yikes_mailchimp_edit_form.save_field_label_nonce};jQuery.post(yikes_mailchimp_edit_form.ajax_url,d,function(b){if("undefined"!==b&&"undefined"!==b.success){var d=b.success;if(d===!0){var e=c.field_name;yikes_mc_update_field_label(a,e),yikes_mc_toggle_field_label_edit(jQuery(a).siblings(".dashicons-no"))}else{var f="";"undefined"!==b.data&&"undefined"!==b.data.message&&(f=b.data.message,yikes_mc_display_field_label_error_message(a,f))}}})}function yikes_mc_update_field_label(a,b){jQuery(a).parents(".expansion-section-title").siblings(".yikes-mc-settings-expansion-section").children(".yikes-mc-merge-field-label").val(b),jQuery(a).siblings(".yikes-mc-expansion-section-field-label").text(b)}function yikes_mc_display_field_label_error_message(a,b){jQuery(a).siblings(".yikes-mc-edit-field-label-message").fadeOut(function(){jQuery(this).text(b).fadeIn()})}window.Yikes_MailChimp_Edit_Form=window.Yikes_MailChimp_Edit_Form||{},window.yikes_mailchimp_edit_form=window.yikes_mailchimp_edit_form||{},function(a,b,c,d,e){"use strict";d.l10n=a.yikes_mailchimp_edit_form||{},c(b).ready(function(){jQuery("#form-builder-container").children().length>0&&jQuery(".edit-form-description-form-builder").hide(),c("body").find("#form-builder-container").sortable({items:".draggable:not(.non-draggable-yikes)",axis:"y",placeholder:"form-builder-placeholder",update:function(){var a=1;jQuery("#form-builder-container").find(".draggable").each(function(){jQuery(this).find(".position-input").val(a),a++})}}),c("body").on("click",".remove-field",function(){var a=jQuery(this).attr("alt"),b=jQuery(this);return c(this).parents(".yikes-mc-settings-expansion-section").prev().find(".yikes-mc-expansion-toggle").toggleClass("dashicons-minus"),c(this).parents(".yikes-mc-settings-expansion-section").slideToggle(450,function(){b.parents(".draggable").find(".expansion-section-title").css("background","rgb(255, 134, 134)"),b.parents(".draggable").fadeOut("slow",function(){jQuery("#available-fields").find('li[alt="'+a+'"]').removeClass("not-available"),jQuery("#available-interest-groups").find('li[alt="'+a+'"]').removeClass("not-available"),jQuery(this).remove(),c("#form-builder-container").find(".draggable").length<1&&(c(".clear-form-fields").hide(),c(".clear-form-fields").next().hide(),c("#form-builder-container").html('<h4 class="no-fields-assigned-notice non-draggable-yikes"><em>'+d.l10n.no_fields_assigned+"</em></h4>"))})}),!1}),c("body").on("click",".hide-field",function(){return c(this).parents(".yikes-mc-settings-expansion-section").slideToggle(450).prev().find(".yikes-mc-expansion-toggle").toggleClass("dashicons-minus"),!1}),c("body").on("click",".add-field-to-editor",function(){return jQuery(".edit-form-description-form-builder").show(),c(".field-to-add-to-form").each(function(){var a=c("#form-builder-container").find(".draggable").length,b=c(this),e=b.attr("alt");c("#available-fields").children("li").removeClass("available-form-field");var f=c(this);f.attr("disabled","disabled").attr("onclick","return false;").removeClass("add-field-to-editor");var g={action:"add_field_to_form",field_name:b.attr("data-attr-field-name"),merge_tag:e,field_type:b.attr("data-attr-field-type"),list_id:b.attr("data-attr-form-id")};c.ajax({url:d.l10n.ajax_url,type:"POST",data:g,dataType:"html",success:function(d,f,g){b.removeClass("field-to-add-to-form").addClass("not-available"),c(".add-field-to-editor").hide(),c(".no-fields-assigned-notice").is(":visible")&&c("#form-builder-container").html(""),c("#form-builder-container").append(d),c(".clear-form-fields").show(),c(".clear-form-fields").next().show(),c(".field-"+e+"-position").val(parseInt(a+1))},error:function(a,b,c){alert(b+a.status+a.responseText+"...")},complete:function(a,b){c("#available-fields").children("li").addClass("available-form-field"),f.removeAttr("disabled").removeAttr("onclick"),c(".add-field-to-editor").hide()}})}),!1}),c("body").on("click",".add-interest-group-to-editor",function(){var a=c("#form-builder-container").find(".draggable").length,b=[];c(".group-to-add-to-form").each(function(){b.push({group_id:c(this).attr("alt"),field_type:c(this).attr("data-attr-field-type"),field_name:c(this).attr("data-attr-field-name")})}),c("#available-interest-groups").children("li").removeClass("available-interest-group");var e=c(this);e.attr("disabled","disabled").attr("onclick","return false;").removeClass("add-interest-group-to-editor");var f={action:"add_interest_group_to_form",interest_groups:b,list_id:c(".group-to-add-to-form").attr("data-attr-form-id")};return c.ajax({url:d.l10n.ajax_url,type:"POST",data:f,dataType:"html",success:function(b,d,e){c(".group-to-add-to-form").removeClass("group-to-add-to-form").addClass("not-available"),c(".add-interest-group-to-editor").hide(),a<1?(c("#form-builder-container").html("").append(b),c(".clear-form-fields").show(),c(".clear-form-fields").next().show()):c("#form-builder-container").append(b)},error:function(a,b,c){alert(b+a.status+a.responseText+"...")},complete:function(a,b){c("#available-interest-groups").children("li").addClass("available-interest-group"),e.removeAttr("disabled").removeAttr("onclick").addClass("add-interest-group-to-editor"),c(".add-interest-group-to-editor").hide()}}),!1}),c(".color-picker").each(function(){c(this).wpColorPicker()}),c("body").on("click",".expansion-section-title",function(){return c(this).next().stop().slideToggle(),c(this).find(".yikes-mc-expansion-toggle").toggleClass("dashicons-minus"),!1}),c("body").on("click",".available-form-field",function(){return!c(this).hasClass("not-available")&&void(c(this).hasClass("field-to-add-to-form")?(c(this).removeClass("field-to-add-to-form"),c(".add-field-to-editor").stop().fadeOut()):(c(this).toggleClass("field-to-add-to-form"),c(".add-field-to-editor").stop().fadeIn()))}),c("body").on("click",".available-interest-group",function(){return!c(this).hasClass("not-available")&&(c(this).hasClass("group-to-add-to-form")?c(this).removeClass("group-to-add-to-form"):c(this).toggleClass("group-to-add-to-form"),void(c(".group-to-add-to-form").length>0?c(".add-interest-group-to-editor").stop().fadeIn():c(".add-interest-group-to-editor").stop().fadeOut()))}),c("body").on("click",".hidden_setting",function(){c(".hidden_setting").removeClass("selected_hidden_setting"),c(".selected_setting_triangle").remove(),c(this).addClass("selected_hidden_setting").append('<div class="selected_setting_triangle"></div>');var a=c(this).attr("data-attr-container");c(".hidden-setting-label").hide(),c("#"+a).show()}),c("body").on("click",".close-form-expansion",function(){var a=c(this).parents(".yikes-mc-settings-expansion-section").slideToggle();return a.prev().find(".yikes-mc-expansion-toggle").toggleClass("dashicons-minus"),!1}),c("body").on("click",".mv_ig_list .nav-tab",function(){if(c(this).hasClass("nav-tab-active"))return!1;if(c(this).hasClass("nav-tab-disabled"))return!1;c(".mv_ig_list .nav-tab").removeClass("nav-tab-active"),c(".arrow-down").remove(),c(this).addClass("nav-tab-active").prepend('<div class="arrow-down"></div>'),c(".mv_ig_list .nav-tab").addClass("nav-tab-disabled");var a=c(this).attr("alt");return"merge-variables"==a?(c("#merge-variables-container").stop().animate({left:"0px"},function(){c(".mv_ig_list .nav-tab").removeClass("nav-tab-disabled")}),c("#interest-groups-container").stop().animate({left:"+=278px"},function(){c(".mv_ig_list .nav-tab").removeClass("nav-tab-disabled")})):(c("#merge-variables-container").stop().animate({left:"-=278px"},function(){c(".mv_ig_list .nav-tab").removeClass("nav-tab-disabled")}),c("#interest-groups-container").stop().animate({left:"-=278px"},function(){c(".mv_ig_list .nav-tab").removeClass("nav-tab-disabled")})),!1}),c("body").on("click",".clear-form-fields",function(){return confirm(d.l10n.bulk_delete_alert)&&c("#form-builder").find(".draggable").find(".expansion-section-title").each(function(){c(this).css("background","rgb(255, 134, 134)");var a=c(this).parents(".draggable").find(".remove-field").attr("alt");c(this).fadeOut("slow",function(){c("#available-fields").find('li[alt="'+a+'"]').removeClass("not-available"),c("#available-interest-groups").find('li[alt="'+a+'"]').removeClass("not-available"),c(this).remove(),c(".clear-form-fields").hide(),c(".clear-form-fields").next().hide(),c(".available-form-field").each(function(){c(this).removeClass("not-available")}),c("#form-builder-container").html('<h4 class="no-fields-assigned-notice non-draggable-yikes"><em>'+d.l10n.no_fields_assigned+"</em></h4>")})}),!1}),c(".yikes-mc-edit-field-label-icon").click(function(a){yikes_mc_prevent_default_stop_prop(a),jQuery(this).siblings(".yikes-mc-edit-field-label-message").fadeOut();var b=this;yikes_mc_toggle_field_label_edit(b)}),c(".yikes-mc-edit-field-label-input").click(function(a){yikes_mc_prevent_default_stop_prop(a)}),c(".yikes-mc-save-field-label-edits-icon").click(function(a){yikes_mc_prevent_default_stop_prop(a),jQuery(this).siblings(".yikes-mc-edit-field-label-message").fadeOut();var b=this,c=jQuery("#form-builder-div").data("list-id"),d=jQuery(this).siblings(".yikes-mc-edit-field-label-input").val(),e=jQuery(this).parents(".expansion-section-title").siblings(".yikes-mc-settings-expansion-section").children(".yikes-mc-merge-field-id").val(),f={field_name:d,field_id:e},g=jQuery(this).parents(".expansion-section-title").siblings(".yikes-mc-settings-expansion-section").children(".yikes-mc-merge-field-label").val();return g===d?void yikes_mc_toggle_field_label_edit(jQuery(this).siblings(".yikes-mc-edit-field-label-icon")):void yikes_mc_save_field_label_name(b,c,f)}),initialize_form_schedule_time_pickers(),c(".yikes-enable-disable-ajax").click(function(){var a=c("#enable-ajax").is(":checked"),b=c("#redirect-user").is(":checked");a===!0&&b===!0?c(".redirect-new-window-div").fadeIn():c(".redirect-new-window-div").fadeOut()})})}(window,document,jQuery,Yikes_MailChimp_Edit_Form);
|
1 |
+
function togglePageRedirection(e){var i=jQuery("#enable-ajax").is(":checked");1==e.value?(jQuery("#redirect-user-to-selection-label").fadeIn(),!0===i&&jQuery(".redirect-new-window-div").fadeIn()):jQuery("#redirect-user-to-selection-label, .redirect-new-window-div").fadeOut()}function storeGlobalClicked(e){var i=e.parents("td").find("input").attr("name");jQuery(".clicked-input").val(i)}function populateDefaultValue(e){var i=jQuery(".clicked-input").val();jQuery(".clicked-input").val(""),tb_remove(),jQuery('input[name="'+i+'"]').val(e)}function toggle_nested_section(e){switch(jQuery(e).val()){case"image":jQuery(".submit-button-type-text").fadeOut("fast",function(){jQuery(".submit-button-type-image").fadeIn("fast")});break;case"text":jQuery(".submit-button-type-image").fadeOut("fast",function(){jQuery(".submit-button-type-text").fadeIn("fast")});break;default:case"1":"yikes-easy-mc-form-schedule"==jQuery(e).attr("name")?jQuery(".date-restriction-section").fadeToggle():jQuery(".login-restriction-section").fadeToggle()}return!1}function initialize_form_schedule_time_pickers(){jQuery(".date-picker").datepicker({numberOfMonths:1,showButtonPanel:!0,closeText:window.yikes_mailchimp_edit_form.closeText,currentText:window.yikes_mailchimp_edit_form.currentText,monthNames:window.yikes_mailchimp_edit_form.monthNames,monthNamesShort:window.yikes_mailchimp_edit_form.monthNamesShort,dayNames:window.yikes_mailchimp_edit_form.dayNames,dayNamesShort:window.yikes_mailchimp_edit_form.dayNamesShort,dayNamesMin:window.yikes_mailchimp_edit_form.dayNamesMin,dateFormat:window.yikes_mailchimp_edit_form.dateFormat,firstDay:window.yikes_mailchimp_edit_form.firstDay,isRTL:window.yikes_mailchimp_edit_form.isRTL,onSelect:function(e,i){event.preventDefault(),yikes_check_valid_date(e,i.lastVal,i.id)}}),jQuery(".time-picker").timepicker({scrollDefault:"now",timeFormat:"h:i A"}),jQuery(".time-picker").on("changeTime",function(e){var i=jQuery(this).attr("id");yikes_check_valid_date(jQuery("#yikes-easy-mc-form-restriction-start-date").val(),jQuery("#yikes-easy-mc-form-restriction-end-date").val(),i)})}function yikes_check_valid_date(e,i,t){var a=jQuery("#yikes-easy-mc-form-restriction-start-date").val(),s=yikes_12_to_24_hour_time_conversion(jQuery("#yikes-easy-mc-form-restriction-start-time").val()),n=jQuery("#yikes-easy-mc-form-restriction-end-date").val(),r=yikes_12_to_24_hour_time_conversion(jQuery("#yikes-easy-mc-form-restriction-end-time").val());if(new Date(a+" "+s)>new Date(n+" "+r)){if("yikes-easy-mc-form-restriction-start-date"!=t&&"yikes-easy-mc-form-restriction-end-date"!=t||jQuery("#"+t).val(i),jQuery(".date-restriction-section").find("p.description.error").length)return;jQuery(".date-restriction-section").first().find("p.description").after('<p class="description error">'+window.yikes_mailchimp_edit_form.start_date_exceeds_end_date_error+"</p>")}else jQuery(".date-restriction-section").find("p.description.error").remove()}function yikes_12_to_24_hour_time_conversion(e){if(!e)return"";var i=Number(e.match(/^(\d+)/)[1]),t=Number(e.match(/:(\d+)/)[1]),a=e.match(/\s(.*)$/)[1];"PM"==a&&i<12&&(i+=12),"AM"==a&&12==i&&(i-=12);var s=i.toString(),n=t.toString();return i<10&&(s="0"+s),t<10&&(n="0"+n),s+":"+n}function toggleUpdateEmailContainer(e){jQuery(".send-update-email").stop().fadeToggle()}function yikes_mc_prevent_default_stop_prop(e){e.preventDefault(),e.stopPropagation()}function yikes_mc_toggle_field_label_edit(e){jQuery(e).siblings(".yikes-mc-edit-field-label-input").val(jQuery(e).parents(".expansion-section-title").siblings(".yikes-mc-settings-expansion-section").children(".yikes-mc-merge-field-label").val());var i=jQuery(e).siblings(".yikes-mc-expansion-section-field-label, .field-type-text"),t=jQuery(e).siblings(".yikes-mc-edit-field-label-input, .yikes-mc-save-field-label-edits-icon");jQuery(e).hasClass("dashicons-no")?(i=jQuery(e).siblings(".yikes-mc-edit-field-label-input, .yikes-mc-save-field-label-edits-icon"),t=jQuery(e).siblings(".yikes-mc-expansion-section-field-label, .field-type-text"),e.title=yikes_mailchimp_edit_form.edit_field_label_pencil_title):e.title=yikes_mailchimp_edit_form.edit_field_label_cancel_title,jQuery(e).toggleClass("dashicons-no dashicons-edit"),i.fadeToggle().promise().done(function(){t.fadeToggle()})}function yikes_mc_save_field_label_name(e,i,t){var a={action:"save_field_label_edits",list_id:i,field_data:t,nonce:yikes_mailchimp_edit_form.save_field_label_nonce};jQuery.post(yikes_mailchimp_edit_form.ajax_url,a,function(i){if("undefined"!==i&&"undefined"!==i.success)if(!0===i.success){var a=t.field_name;yikes_mc_update_field_label(e,a),yikes_mc_toggle_field_label_edit(jQuery(e).siblings(".dashicons-no"))}else{var s="";"undefined"!==i.data&&"undefined"!==i.data.message&&(s=i.data.message,yikes_mc_display_field_label_error_message(e,s))}})}function yikes_mc_update_field_label(e,i){jQuery(e).parents(".expansion-section-title").siblings(".yikes-mc-settings-expansion-section").children(".yikes-mc-merge-field-label").val(i),jQuery(e).siblings(".yikes-mc-expansion-section-field-label").text(i)}function yikes_mc_display_field_label_error_message(e,i){jQuery(e).siblings(".yikes-mc-edit-field-label-message").fadeOut(function(){jQuery(this).text(i).fadeIn()})}window.Yikes_MailChimp_Edit_Form=window.Yikes_MailChimp_Edit_Form||{},window.yikes_mailchimp_edit_form=window.yikes_mailchimp_edit_form||{},function(e,i,t,a,s){"use strict";a.l10n=e.yikes_mailchimp_edit_form||{},t(i).ready(function(){jQuery("#form-builder-container").children().length>0&&jQuery(".edit-form-description-form-builder").hide(),t("body").find("#form-builder-container").sortable({items:".draggable:not(.non-draggable-yikes)",axis:"y",placeholder:"form-builder-placeholder",update:function(){var e=1;jQuery("#form-builder-container").find(".draggable").each(function(){jQuery(this).find(".position-input").val(e),e++})}}),t("body").on("click",".remove-field",function(){var e=jQuery(this).attr("alt"),i=jQuery(this);return t(this).parents(".yikes-mc-settings-expansion-section").prev().find(".yikes-mc-expansion-toggle").toggleClass("dashicons-minus"),t(this).parents(".yikes-mc-settings-expansion-section").slideToggle(450,function(){i.parents(".draggable").find(".expansion-section-title").css("background","rgb(255, 134, 134)"),i.parents(".draggable").fadeOut("slow",function(){jQuery("#available-fields").find('li[alt="'+e+'"]').removeClass("not-available"),jQuery("#available-interest-groups").find('li[alt="'+e+'"]').removeClass("not-available"),jQuery(this).remove(),t("#form-builder-container").find(".draggable").length<1&&(t(".clear-form-fields").hide(),t(".clear-form-fields").next().hide(),t("#form-builder-container").html('<h4 class="no-fields-assigned-notice non-draggable-yikes"><em>'+a.l10n.no_fields_assigned+"</em></h4>"))})}),!1}),t("body").on("click",".hide-field",function(){return t(this).parents(".yikes-mc-settings-expansion-section").slideToggle(450).prev().find(".yikes-mc-expansion-toggle").toggleClass("dashicons-minus"),!1}),t("body").on("click",".add-field-to-editor",function(){return jQuery(".edit-form-description-form-builder").show(),t(".field-to-add-to-form").each(function(){var e=t("#form-builder-container").find(".draggable").length,i=t(this),s=i.attr("alt");t("#available-fields").children("li").removeClass("available-form-field");var n=t(this);n.attr("disabled","disabled").attr("onclick","return false;").removeClass("add-field-to-editor");var r={action:"add_field_to_form",field_name:i.attr("data-attr-field-name"),merge_tag:s,field_type:i.attr("data-attr-field-type"),list_id:i.attr("data-attr-form-id")};t.ajax({url:a.l10n.ajax_url,type:"POST",data:r,dataType:"html",success:function(a,n,r){i.removeClass("field-to-add-to-form").addClass("not-available"),t(".add-field-to-editor").hide(),t(".no-fields-assigned-notice").is(":visible")&&t("#form-builder-container").html(""),t("#form-builder-container").append(a),t(".clear-form-fields").show(),t(".clear-form-fields").next().show(),t(".field-"+s+"-position").val(parseInt(e+1))},error:function(e,i,t){alert(i+e.status+e.responseText+"...")},complete:function(e,i){t("#available-fields").children("li").addClass("available-form-field"),n.removeAttr("disabled").removeAttr("onclick"),t(".add-field-to-editor").hide()}})}),!1}),t("body").on("click",".add-interest-group-to-editor",function(){var e=t("#form-builder-container").find(".draggable").length,i=[];t(".group-to-add-to-form").each(function(){i.push({group_id:t(this).attr("alt"),field_type:t(this).attr("data-attr-field-type"),field_name:t(this).attr("data-attr-field-name")})}),t("#available-interest-groups").children("li").removeClass("available-interest-group");var s=t(this);s.attr("disabled","disabled").attr("onclick","return false;").removeClass("add-interest-group-to-editor");var n={action:"add_interest_group_to_form",interest_groups:i,list_id:t(".group-to-add-to-form").attr("data-attr-form-id")};return t.ajax({url:a.l10n.ajax_url,type:"POST",data:n,dataType:"html",success:function(i,a,s){t(".group-to-add-to-form").removeClass("group-to-add-to-form").addClass("not-available"),t(".add-interest-group-to-editor").hide(),e<1?(t("#form-builder-container").html("").append(i),t(".clear-form-fields").show(),t(".clear-form-fields").next().show()):t("#form-builder-container").append(i)},error:function(e,i,t){alert(i+e.status+e.responseText+"...")},complete:function(e,i){t("#available-interest-groups").children("li").addClass("available-interest-group"),s.removeAttr("disabled").removeAttr("onclick").addClass("add-interest-group-to-editor"),t(".add-interest-group-to-editor").hide()}}),!1}),t(".color-picker").each(function(){t(this).wpColorPicker()}),t("body").on("click",".expansion-section-title",function(){return t(this).next().stop().slideToggle(),t(this).find(".yikes-mc-expansion-toggle").toggleClass("dashicons-minus"),!1}),t("body").on("click",".available-form-field",function(){if(t(this).hasClass("not-available"))return!1;t(this).hasClass("field-to-add-to-form")?(t(this).removeClass("field-to-add-to-form"),t(".add-field-to-editor").stop().fadeOut()):(t(this).toggleClass("field-to-add-to-form"),t(".add-field-to-editor").stop().fadeIn())}),t("body").on("click",".available-interest-group",function(){if(t(this).hasClass("not-available"))return!1;t(this).hasClass("group-to-add-to-form")?t(this).removeClass("group-to-add-to-form"):t(this).toggleClass("group-to-add-to-form"),t(".group-to-add-to-form").length>0?t(".add-interest-group-to-editor").stop().fadeIn():t(".add-interest-group-to-editor").stop().fadeOut()}),t("body").on("click",".hidden_setting",function(){t(".hidden_setting").removeClass("selected_hidden_setting"),t(".selected_setting_triangle").remove(),t(this).addClass("selected_hidden_setting").append('<div class="selected_setting_triangle"></div>');var e=t(this).attr("data-attr-container");t(".hidden-setting-label").hide(),t("#"+e).show()}),t("body").on("click",".close-form-expansion",function(){return t(this).parents(".yikes-mc-settings-expansion-section").slideToggle().prev().find(".yikes-mc-expansion-toggle").toggleClass("dashicons-minus"),!1}),t("body").on("click",".mv_ig_list .nav-tab",function(){return!t(this).hasClass("nav-tab-active")&&(!t(this).hasClass("nav-tab-disabled")&&(t(".mv_ig_list .nav-tab").removeClass("nav-tab-active"),t(".arrow-down").remove(),t(this).addClass("nav-tab-active").prepend('<div class="arrow-down"></div>'),t(".mv_ig_list .nav-tab").addClass("nav-tab-disabled"),"merge-variables"==t(this).attr("alt")?(t("#merge-variables-container").stop().animate({left:"0px"},function(){t(".mv_ig_list .nav-tab").removeClass("nav-tab-disabled")}),t("#interest-groups-container").stop().animate({left:"+=278px"},function(){t(".mv_ig_list .nav-tab").removeClass("nav-tab-disabled")})):(t("#merge-variables-container").stop().animate({left:"-=278px"},function(){t(".mv_ig_list .nav-tab").removeClass("nav-tab-disabled")}),t("#interest-groups-container").stop().animate({left:"-=278px"},function(){t(".mv_ig_list .nav-tab").removeClass("nav-tab-disabled")})),!1))}),t("body").on("click",".clear-form-fields",function(){return confirm(a.l10n.bulk_delete_alert)&&t("#form-builder").find(".draggable").find(".expansion-section-title").each(function(){t(this).css("background","rgb(255, 134, 134)");var e=t(this).parents(".draggable").find(".remove-field").attr("alt");t(this).fadeOut("slow",function(){t("#available-fields").find('li[alt="'+e+'"]').removeClass("not-available"),t("#available-interest-groups").find('li[alt="'+e+'"]').removeClass("not-available"),t(this).remove(),t(".clear-form-fields").hide(),t(".clear-form-fields").next().hide(),t(".available-form-field").each(function(){t(this).removeClass("not-available")}),t("#form-builder-container").html('<h4 class="no-fields-assigned-notice non-draggable-yikes"><em>'+a.l10n.no_fields_assigned+"</em></h4>")})}),!1}),t(".yikes-mc-edit-field-label-icon").click(function(e){yikes_mc_prevent_default_stop_prop(e),jQuery(this).siblings(".yikes-mc-edit-field-label-message").fadeOut(),yikes_mc_toggle_field_label_edit(this)}),t(".yikes-mc-edit-field-label-input").click(function(e){yikes_mc_prevent_default_stop_prop(e)}),t(".yikes-mc-save-field-label-edits-icon").click(function(e){yikes_mc_prevent_default_stop_prop(e),jQuery(this).siblings(".yikes-mc-edit-field-label-message").fadeOut();var i=this,t=jQuery("#form-builder-div").data("list-id"),a=jQuery(this).siblings(".yikes-mc-edit-field-label-input").val(),s={field_name:a,field_id:jQuery(this).parents(".expansion-section-title").siblings(".yikes-mc-settings-expansion-section").children(".yikes-mc-merge-field-id").val()};jQuery(this).parents(".expansion-section-title").siblings(".yikes-mc-settings-expansion-section").children(".yikes-mc-merge-field-label").val()!==a?yikes_mc_save_field_label_name(i,t,s):yikes_mc_toggle_field_label_edit(jQuery(this).siblings(".yikes-mc-edit-field-label-icon"))}),initialize_form_schedule_time_pickers(),t(".yikes-enable-disable-ajax").click(function(){var e=t("#enable-ajax").is(":checked"),i=t("#redirect-user").is(":checked");!0===e&&!0===i?t(".redirect-new-window-div").fadeIn():t(".redirect-new-window-div").fadeOut()})})}(window,document,jQuery,Yikes_MailChimp_Edit_Form);
|
admin/js/yikes-inc-easy-mailchimp-extender-admin.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function( $ ) {
|
1 |
+
(function( $ ) {
|
admin/js/yikes-inc-easy-mailchimp-extender-edit-form.js
CHANGED
@@ -487,10 +487,10 @@ function toggle_nested_section( clicked_option ) {
|
|
487 |
case '1':
|
488 |
/* Schedule toggle */
|
489 |
if( jQuery( clicked_option ).attr( 'name' ) == 'yikes-easy-mc-form-schedule' ) {
|
490 |
-
jQuery( '.date-
|
491 |
} else {
|
492 |
/* login required toggle */
|
493 |
-
jQuery( '.login-
|
494 |
}
|
495 |
break;
|
496 |
}
|
@@ -517,6 +517,11 @@ function initialize_form_schedule_time_pickers() {
|
|
517 |
firstDay: window.yikes_mailchimp_edit_form.firstDay,
|
518 |
isRTL: window.yikes_mailchimp_edit_form.isRTL,
|
519 |
onSelect: function( newDate, instance ) {
|
|
|
|
|
|
|
|
|
|
|
520 |
var prevDate = instance.lastVal;
|
521 |
var changed_object_id = instance.id;
|
522 |
yikes_check_valid_date( newDate, prevDate, changed_object_id );
|
@@ -527,7 +532,7 @@ function initialize_form_schedule_time_pickers() {
|
|
527 |
scrollDefault: 'now',
|
528 |
timeFormat: 'h:i A'
|
529 |
});
|
530 |
-
jQuery( '.time-picker' ).on( 'changeTime', function() {
|
531 |
var changed_object_id = jQuery( this ).attr( 'id' );
|
532 |
var newDate = jQuery( '#yikes-easy-mc-form-restriction-start-date' ).val();
|
533 |
var prevDate = jQuery( '#yikes-easy-mc-form-restriction-end-date' ).val();
|
@@ -540,9 +545,11 @@ function initialize_form_schedule_time_pickers() {
|
|
540 |
* @since 6.0.3.8
|
541 |
*/
|
542 |
function yikes_check_valid_date( new_date, previous_date, changed_object_id ) {
|
|
|
543 |
var start_date = jQuery( '#yikes-easy-mc-form-restriction-start-date' ).val();
|
544 |
-
var end_date = jQuery( '#yikes-easy-mc-form-restriction-end-date' ).val();
|
545 |
var start_time = yikes_12_to_24_hour_time_conversion( jQuery( '#yikes-easy-mc-form-restriction-start-time' ).val() );
|
|
|
|
|
546 |
var end_time = yikes_12_to_24_hour_time_conversion( jQuery( '#yikes-easy-mc-form-restriction-end-time' ).val() );
|
547 |
|
548 |
var start_date_time = new Date( start_date + ' ' + start_time );
|
@@ -558,17 +565,22 @@ function yikes_check_valid_date( new_date, previous_date, changed_object_id ) {
|
|
558 |
jQuery( '#' + changed_object_id ).val( previous_date );
|
559 |
}
|
560 |
/* if error is present, abort */
|
561 |
-
if( jQuery( '.date-
|
562 |
return;
|
563 |
}
|
564 |
/* display an error message */
|
565 |
-
jQuery( '.date-
|
566 |
} else {
|
567 |
-
jQuery( '.date-
|
568 |
}
|
569 |
}
|
570 |
|
571 |
function yikes_12_to_24_hour_time_conversion( time ) {
|
|
|
|
|
|
|
|
|
|
|
572 |
var hours = Number(time.match(/^(\d+)/)[1]);
|
573 |
var minutes = Number(time.match(/:(\d+)/)[1]);
|
574 |
var AMPM = time.match(/\s(.*)$/)[1];
|
487 |
case '1':
|
488 |
/* Schedule toggle */
|
489 |
if( jQuery( clicked_option ).attr( 'name' ) == 'yikes-easy-mc-form-schedule' ) {
|
490 |
+
jQuery( '.date-restriction-section' ).fadeToggle();
|
491 |
} else {
|
492 |
/* login required toggle */
|
493 |
+
jQuery( '.login-restriction-section' ).fadeToggle();
|
494 |
}
|
495 |
break;
|
496 |
}
|
517 |
firstDay: window.yikes_mailchimp_edit_form.firstDay,
|
518 |
isRTL: window.yikes_mailchimp_edit_form.isRTL,
|
519 |
onSelect: function( newDate, instance ) {
|
520 |
+
|
521 |
+
// Prevent the browser from jumping to the top of a page when a date is selected.
|
522 |
+
event.preventDefault();
|
523 |
+
|
524 |
+
// Validate the date.
|
525 |
var prevDate = instance.lastVal;
|
526 |
var changed_object_id = instance.id;
|
527 |
yikes_check_valid_date( newDate, prevDate, changed_object_id );
|
532 |
scrollDefault: 'now',
|
533 |
timeFormat: 'h:i A'
|
534 |
});
|
535 |
+
jQuery( '.time-picker' ).on( 'changeTime', function( event ) {
|
536 |
var changed_object_id = jQuery( this ).attr( 'id' );
|
537 |
var newDate = jQuery( '#yikes-easy-mc-form-restriction-start-date' ).val();
|
538 |
var prevDate = jQuery( '#yikes-easy-mc-form-restriction-end-date' ).val();
|
545 |
* @since 6.0.3.8
|
546 |
*/
|
547 |
function yikes_check_valid_date( new_date, previous_date, changed_object_id ) {
|
548 |
+
|
549 |
var start_date = jQuery( '#yikes-easy-mc-form-restriction-start-date' ).val();
|
|
|
550 |
var start_time = yikes_12_to_24_hour_time_conversion( jQuery( '#yikes-easy-mc-form-restriction-start-time' ).val() );
|
551 |
+
|
552 |
+
var end_date = jQuery( '#yikes-easy-mc-form-restriction-end-date' ).val();
|
553 |
var end_time = yikes_12_to_24_hour_time_conversion( jQuery( '#yikes-easy-mc-form-restriction-end-time' ).val() );
|
554 |
|
555 |
var start_date_time = new Date( start_date + ' ' + start_time );
|
565 |
jQuery( '#' + changed_object_id ).val( previous_date );
|
566 |
}
|
567 |
/* if error is present, abort */
|
568 |
+
if( jQuery( '.date-restriction-section' ).find( 'p.description.error' ).length ) {
|
569 |
return;
|
570 |
}
|
571 |
/* display an error message */
|
572 |
+
jQuery( '.date-restriction-section' ).first().find( 'p.description' ).after( '<p class="description error">' + window.yikes_mailchimp_edit_form.start_date_exceeds_end_date_error + '</p>' );
|
573 |
} else {
|
574 |
+
jQuery( '.date-restriction-section' ).find( 'p.description.error' ).remove();
|
575 |
}
|
576 |
}
|
577 |
|
578 |
function yikes_12_to_24_hour_time_conversion( time ) {
|
579 |
+
|
580 |
+
if ( ! time ) {
|
581 |
+
return '';
|
582 |
+
}
|
583 |
+
|
584 |
var hours = Number(time.match(/^(\d+)/)[1]);
|
585 |
var minutes = Number(time.match(/:(\d+)/)[1]);
|
586 |
var AMPM = time.match(/\s(.*)$/)[1];
|
admin/partials/dashboard-widgets/class.list-activity-widget.php
CHANGED
@@ -8,11 +8,15 @@ class YIKES_Inc_Easy_MailChimp_Dashboard_Widgets {
|
|
8 |
|
9 |
// Construction
|
10 |
public function __construct() {
|
11 |
-
|
|
|
|
|
12 |
// hook in and display our list stats dashboard widget
|
13 |
-
add_action( 'wp_dashboard_setup', array( $this, '
|
|
|
|
|
14 |
}
|
15 |
-
|
16 |
}
|
17 |
|
18 |
/**
|
@@ -43,21 +47,17 @@ class YIKES_Inc_Easy_MailChimp_Dashboard_Widgets {
|
|
43 |
*
|
44 |
* This function is hooked into the 'wp_dashboard_setup' action below.
|
45 |
*/
|
46 |
-
function
|
|
|
47 |
// If the current user is not an admin, abort
|
48 |
if ( current_user_can( apply_filters( 'yikes-mailchimp-admin-widget-capability', apply_filters( 'yikes-mailchimp-user-role-access', 'manage_options' ) ) ) ) {
|
|
|
49 |
/* List Stats Dashboard Widget */
|
50 |
wp_add_dashboard_widget(
|
51 |
'yikes_easy_mc_list_stats_widget', // Widget slug.
|
52 |
__( 'MailChimp List Stats', 'yikes-inc-easy-mailchimp-extender' ), // Title.
|
53 |
array( $this, 'list_stats_dashboard_widget' ) // Display function.
|
54 |
);
|
55 |
-
/* Chimp Chatter Dashboard Widget */
|
56 |
-
wp_add_dashboard_widget(
|
57 |
-
'yikes_easy_mc_account_activity_widget', // Widget slug.
|
58 |
-
__( 'MailChimp Account Activity', 'yikes-inc-easy-mailchimp-extender' ), // Title.
|
59 |
-
array( $this, 'account_activity_dashboard_widget' ) // Display function.
|
60 |
-
);
|
61 |
}
|
62 |
}
|
63 |
|
@@ -100,25 +100,4 @@ class YIKES_Inc_Easy_MailChimp_Dashboard_Widgets {
|
|
100 |
</section>
|
101 |
<?php }
|
102 |
}
|
103 |
-
|
104 |
-
/**
|
105 |
-
* Create the function to output our account activity dashboard widget
|
106 |
-
*/
|
107 |
-
function account_activity_dashboard_widget() {
|
108 |
-
$chimp_chatter = yikes_get_mc_api_manager()->get_chimp_chatter();
|
109 |
-
$account_activity = $chimp_chatter->chimp_chatter();
|
110 |
-
|
111 |
-
if ( is_wp_error( $account_activity ) ) {
|
112 |
-
$error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging();
|
113 |
-
$error_logging->maybe_write_to_log(
|
114 |
-
$account_activity->get_error_code(),
|
115 |
-
__( "Get Account Activity", 'yikes-inc-easy-mailchimp-extender' ),
|
116 |
-
"Dashboard Activity Widget"
|
117 |
-
);
|
118 |
-
}
|
119 |
-
|
120 |
-
if ( ! empty( $account_activity ) ) {
|
121 |
-
include_once( YIKES_MC_PATH . 'admin/partials/dashboard-widgets/templates/account-activity-template.php' );
|
122 |
-
}
|
123 |
-
}
|
124 |
}
|
8 |
|
9 |
// Construction
|
10 |
public function __construct() {
|
11 |
+
|
12 |
+
if ( apply_filters( 'yikes-mailchimp-dashboard-widgets-enabled', true ) === true && yikes_get_mc_api_key() != '' && get_option( 'yikes-mc-api-validation', 'invalid_api_key' ) == 'valid_api_key' ) {
|
13 |
+
|
14 |
// hook in and display our list stats dashboard widget
|
15 |
+
add_action( 'wp_dashboard_setup', array( $this, 'yks_mc_add_dashboard_widget' ), 10 );
|
16 |
+
|
17 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_dashboard_widget_script' ) );
|
18 |
}
|
19 |
+
|
20 |
}
|
21 |
|
22 |
/**
|
47 |
*
|
48 |
* This function is hooked into the 'wp_dashboard_setup' action below.
|
49 |
*/
|
50 |
+
function yks_mc_add_dashboard_widget() {
|
51 |
+
|
52 |
// If the current user is not an admin, abort
|
53 |
if ( current_user_can( apply_filters( 'yikes-mailchimp-admin-widget-capability', apply_filters( 'yikes-mailchimp-user-role-access', 'manage_options' ) ) ) ) {
|
54 |
+
|
55 |
/* List Stats Dashboard Widget */
|
56 |
wp_add_dashboard_widget(
|
57 |
'yikes_easy_mc_list_stats_widget', // Widget slug.
|
58 |
__( 'MailChimp List Stats', 'yikes-inc-easy-mailchimp-extender' ), // Title.
|
59 |
array( $this, 'list_stats_dashboard_widget' ) // Display function.
|
60 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
}
|
62 |
}
|
63 |
|
100 |
</section>
|
101 |
<?php }
|
102 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
}
|
admin/partials/dashboard-widgets/templates/account-activity-template.php
DELETED
@@ -1,35 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Template for our account activity dashboard widget
|
3 |
-
?>
|
4 |
-
<table class="form-table">
|
5 |
-
<tr>
|
6 |
-
<th class="row-title"><?php esc_attr_e( 'Type', 'yikes-inc-easy-mailchimp-extender' ); ?></th>
|
7 |
-
<th class="row-title"><?php esc_attr_e( 'Message', 'yikes-inc-easy-mailchimp-extender' ); ?></th>
|
8 |
-
</tr>
|
9 |
-
<?php
|
10 |
-
$i = 1;
|
11 |
-
foreach( $account_activity as $activity ) {
|
12 |
-
if( $i <= 8 ) {
|
13 |
-
$message = $activity['message'];
|
14 |
-
$split_message = explode( ' - ' , $activity['message'] );
|
15 |
-
$split_list = explode( '"' , $split_message[0] );
|
16 |
-
if( isset( $split_list[1] ) ) {
|
17 |
-
if( isset( $activity['list_id'] ) ) {
|
18 |
-
$message = $split_list[0] . ' <a href="' . esc_url_raw( admin_url( 'admin.php?page=yikes-mailchimp-view-list&list-id=' . $activity['list_id'] ) ) . '"><strong>' . $split_list[1] . '</strong></a>';
|
19 |
-
} else {
|
20 |
-
$message = $split_list[0] . ' <strong>' . $split_list[1] . '</strong>';
|
21 |
-
}
|
22 |
-
} else {
|
23 |
-
$message = $split_list[0];
|
24 |
-
}
|
25 |
-
?>
|
26 |
-
<tr valign="top">
|
27 |
-
<td><label for="tablecell"><?php echo ucwords( str_replace( '-' , ' ' , str_replace( 'lists:' , '' , $activity['type'] ) ) ); ?></label></td>
|
28 |
-
<td><?php echo $message; ?></td>
|
29 |
-
</tr>
|
30 |
-
<?php
|
31 |
-
$i++;
|
32 |
-
}
|
33 |
-
}
|
34 |
-
?>
|
35 |
-
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/partials/edit-form.php
CHANGED
@@ -64,7 +64,7 @@
|
|
64 |
// current date & time + 1 day
|
65 |
'yikes-easy-mc-form-restriction-end' => strtotime( current_time( 'm/d/Y g:iA' ) ) + ( 3600 * 24 ),
|
66 |
'yikes-easy-mc-form-restriction-pending-message' => sprintf( __( 'Signup is not yet open, and will be available on %s. Please come back then to signup.', 'yikes-inc-easy-mailchimp-extender' ), current_time( str_replace( '-', '/', get_option( 'date_format' ) ) ) . ' ' . __( 'at', 'yikes-inc-easy-mailchimp-extender' ) . ' ' . current_time( 'g:iA' ) ),
|
67 |
-
'yikes-easy-mc-form-restriction-expired-message' => sprintf( __( '
|
68 |
'yikes-easy-mc-form-login-required' => '0',
|
69 |
'yikes-easy-mc-form-restriction-login-message' => __( 'You need to be logged in to sign up for this mailing list.', 'yikes-inc-easy-mailchimp-extender' ),
|
70 |
);
|
@@ -400,32 +400,32 @@
|
|
400 |
<p class="description" style="margin-bottom:0;"><?php _e( 'Set a time period that this form should be active on your site. (mm/dd/yyyy)', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
401 |
<p class="description" style="margin: 0 0 .5em 0;"><?php _e( 'Once the end date & time have passed, users will no longer be able to signup for your mailing list.', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
402 |
<!-- Start Date Limitation Nested -->
|
403 |
-
<section class="date-
|
404 |
<!-- Start Date -->
|
405 |
<label for="yikes-easy-mc-form-restriction-start-date"><strong><?php _e( 'Start Date' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
406 |
-
<input type="text" class="date-picker" name="yikes-easy-mc-form-restriction-start-date" id="yikes-easy-mc-form-restriction-start-date" value="<?php echo date( $this->yikes_jQuery_datepicker_date_format( get_option( 'date_format' ) ), $form_settings['yikes-easy-mc-form-restriction-start'] ); ?>" >
|
407 |
<?php _e( 'at', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
408 |
</label>
|
409 |
|
410 |
<!-- Start Time -->
|
411 |
<label for="yikes-easy-mc-form-restriction-start-time"><strong><?php _e( 'Start Time' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
412 |
-
<input type="text" class="time-picker" name="yikes-easy-mc-form-restriction-start-time" id="yikes-easy-mc-form-restriction-start-time" value="<?php echo date( 'g:iA', $form_settings['yikes-easy-mc-form-restriction-start'] ); ?>" >
|
413 |
</label>
|
414 |
<p class="description"><?php _e( 'Set the dates that this form should display on your site.', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
415 |
</section>
|
416 |
<!-- end Start Date Limitation Nested -->
|
417 |
|
418 |
<!-- End Date Limitation Nested -->
|
419 |
-
<section class="date-
|
420 |
<!-- End Date -->
|
421 |
<label for="yikes-easy-mc-form-restriction-end-date"><strong><?php _e( 'End Date' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
422 |
-
<input type="text" class="date-picker" name="yikes-easy-mc-form-restriction-end-date" id="yikes-easy-mc-form-restriction-end-date" value="<?php echo date( $this->yikes_jQuery_datepicker_date_format( get_option( 'date_format' ) ), $form_settings['yikes-easy-mc-form-restriction-end'] ); ?>" >
|
423 |
<?php _e( 'at', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
424 |
</label>
|
425 |
|
426 |
<!-- End Time -->
|
427 |
<label for="yikes-easy-mc-form-restriction-end-time"><strong><?php _e( 'End Time' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
428 |
-
<input type="text" class="time-picker" name="yikes-easy-mc-form-restriction-end-time" id="yikes-easy-mc-form-restriction-end-time" value="<?php echo date( 'g:iA', $form_settings['yikes-easy-mc-form-restriction-end'] ); ?>" >
|
429 |
</label>
|
430 |
<p class="description"><?php _e( 'Set the dates that this form should no longer display on your site.', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
431 |
|
@@ -468,7 +468,7 @@
|
|
468 |
<p class="description"><?php _e( 'Require users to be logged in before they can view and submit this opt-in form.', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
469 |
|
470 |
<!-- Require Login Message -->
|
471 |
-
<section class="login-
|
472 |
<label for="yikes-easy-mc-form-restriction-login-message"><strong><?php _e( 'Required Login Message' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
473 |
<?php
|
474 |
wp_editor(
|
@@ -549,6 +549,8 @@
|
|
549 |
'email-exists-error' => __( "The email you entered is already a subscriber to this list." , 'yikes-inc-easy-mailchimp-extender' ),
|
550 |
'update-link' => __( "You're already subscribed. To update your MailChimp profile, please [link]click to send yourself an update link[/link].", 'yikes-inc-easy-mailchimp-extender' ),
|
551 |
'email-subject' => __( 'MailChimp Profile Update', 'yikes-inc-easy-mailchimp-extender' ),
|
|
|
|
|
552 |
|
553 |
);
|
554 |
$global_error_messages = get_option( 'yikes-easy-mc-global-error-messages' , $error_message_array );
|
@@ -567,14 +569,27 @@
|
|
567 |
<label for="yikes-easy-mc-user-resubscribed-success-message"><strong><?php _e( 'Success: Re-subscriber' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
568 |
<input type="text" class="widefat" name="yikes-easy-mc-user-resubscribed-success-message" id="yikes-easy-mc-user-resubscribed-success-message" value="<?php echo isset( $error_messages['success-resubscribed'] ) ? stripslashes( esc_html( $error_messages['success-resubscribed'] ) ) : ''; ?>" placeholder="<?php echo $global_error_messages['success-resubscribed']; ?>">
|
569 |
</label>
|
|
|
570 |
<!-- Click the link to update user profile etc. etc. -->
|
571 |
<label for="yikes-easy-mc-user-subscribed-update-link"><strong><?php _e( 'Success: Re-subscriber with link to email profile update message' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
572 |
<input type="text" class="widefat" name="yikes-easy-mc-user-update-link" id="yikes-easy-mc-user-update-link" value="<?php echo isset( $error_messages['update-link'] ) ? stripslashes( esc_html( $error_messages['update-link'] ) ) : ''; ?>" placeholder="<?php echo $global_error_messages['update-link']; ?>">
|
573 |
</label>
|
|
|
574 |
<!-- Email Address is already subscribed -->
|
575 |
<label for="yikes-easy-mc-user-subscribed-message"><strong><?php _e( 'Error: Re-subscribers not permitted' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
576 |
<input type="text" class="widefat" name="yikes-easy-mc-user-subscribed-message" id="yikes-easy-mc-user-subscribed-message" value="<?php echo isset( $error_messages['already-subscribed'] ) ? stripslashes( esc_html( $error_messages['already-subscribed'] ) ) : ''; ?>" placeholder="<?php echo $global_error_messages['email-exists-error']; ?>">
|
577 |
</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
578 |
<!-- General Error Message -->
|
579 |
<label for="yikes-easy-mc-general-error-message"><strong><?php _e( 'Error: General' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
580 |
<input type="text" class="widefat" name="yikes-easy-mc-general-error-message" id="yikes-easy-mc-general-error-message" value="<?php echo isset( $error_messages['general-error'] ) ? stripslashes( esc_html( $error_messages['general-error'] ) ) : ''; ?>" placeholder="<?php echo $global_error_messages['general-error']; ?>" >
|
@@ -617,6 +632,8 @@
|
|
617 |
<li class="yikes-easy-mc-success-single-optin-message-help"><strong><?php _e( 'Success Message: Single opt-in' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong> <?php _e( 'The message displayed after a single opt-in form has been submitted.' , 'yikes-inc-easy-mailchimp-extender' ); ?></li>
|
618 |
<li class="yikes-easy-mc-user-resubscribed-success-message-help"><strong><?php _e( 'Success: Re-subscriber' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong> <?php _e( 'The message displayed after a subscriber submits a form for a list they are already subscribed to.' , 'yikes-inc-easy-mailchimp-extender' ); ?></li>
|
619 |
<li class="yikes-easy-mc-user-subscribed-update-link-help"><strong><?php _e( 'Success: Re-subscriber with link to email profile update message' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong> <?php _e( 'The message displayed after a subscriber submits a form for a list they are already subscribed to. Wrap the text you want to be the link in <code>[link][/link]</code> tags.' , 'yikes-inc-easy-mailchimp-extender' ); ?></li>
|
|
|
|
|
620 |
<li class="yikes-easy-mc-user-subscribed-message-help"><strong><?php _e( 'Error: Re-subscribers not permitted' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong> <?php _e( 'The message displayed after a subscriber tries to join a list they are already subscribed to. You can display the user\'s email in the message using an <code>[email]</code> tag.' , 'yikes-inc-easy-mailchimp-extender' ); ?></li>
|
621 |
<li class="yikes-easy-mc-general-error-message-help"><strong><?php _e( 'Error: General' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong> <?php _e( 'The message displayed if a form error has occurred.' , 'yikes-inc-easy-mailchimp-extender' ); ?></li>
|
622 |
</ul>
|
64 |
// current date & time + 1 day
|
65 |
'yikes-easy-mc-form-restriction-end' => strtotime( current_time( 'm/d/Y g:iA' ) ) + ( 3600 * 24 ),
|
66 |
'yikes-easy-mc-form-restriction-pending-message' => sprintf( __( 'Signup is not yet open, and will be available on %s. Please come back then to signup.', 'yikes-inc-easy-mailchimp-extender' ), current_time( str_replace( '-', '/', get_option( 'date_format' ) ) ) . ' ' . __( 'at', 'yikes-inc-easy-mailchimp-extender' ) . ' ' . current_time( 'g:iA' ) ),
|
67 |
+
'yikes-easy-mc-form-restriction-expired-message' => sprintf( __( 'The signup period for this form ended on %s.', 'yikes-inc-easy-mailchimp-extender' ), date( str_replace( '-', '/', get_option( 'date_format' ) ), strtotime( current_time( str_replace( '-', '/', get_option( 'date_format' ) ) ) ) + ( 3600 * 24 ) ) . ' ' . __( 'at', 'yikes-inc-easy-mailchimp-extender' ) . ' ' . date( 'g:iA', strtotime( current_time( 'g:iA' ) ) + ( 3600 * 24 ) ) ),
|
68 |
'yikes-easy-mc-form-login-required' => '0',
|
69 |
'yikes-easy-mc-form-restriction-login-message' => __( 'You need to be logged in to sign up for this mailing list.', 'yikes-inc-easy-mailchimp-extender' ),
|
70 |
);
|
400 |
<p class="description" style="margin-bottom:0;"><?php _e( 'Set a time period that this form should be active on your site. (mm/dd/yyyy)', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
401 |
<p class="description" style="margin: 0 0 .5em 0;"><?php _e( 'Once the end date & time have passed, users will no longer be able to signup for your mailing list.', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
402 |
<!-- Start Date Limitation Nested -->
|
403 |
+
<section class="date-restriction-section nested-child<?php if( $form_settings['yikes-easy-mc-form-schedule'] == '0' ) { echo ' hidden'; } ?>">
|
404 |
<!-- Start Date -->
|
405 |
<label for="yikes-easy-mc-form-restriction-start-date"><strong><?php _e( 'Start Date' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
406 |
+
<input type="text" class="date-picker" name="yikes-easy-mc-form-restriction-start-date" id="yikes-easy-mc-form-restriction-start-date" value="<?php echo ! empty($form_settings['yikes-easy-mc-form-restriction-start'] ) ? date( $this->yikes_jQuery_datepicker_date_format( get_option( 'date_format' ) ), $form_settings['yikes-easy-mc-form-restriction-start'] ) : ''; ?>" >
|
407 |
<?php _e( 'at', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
408 |
</label>
|
409 |
|
410 |
<!-- Start Time -->
|
411 |
<label for="yikes-easy-mc-form-restriction-start-time"><strong><?php _e( 'Start Time' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
412 |
+
<input type="text" class="time-picker" name="yikes-easy-mc-form-restriction-start-time" id="yikes-easy-mc-form-restriction-start-time" value="<?php echo ! empty( $form_settings['yikes-easy-mc-form-restriction-start'] ) ? date( 'g:iA', $form_settings['yikes-easy-mc-form-restriction-start'] ) : ''; ?>" >
|
413 |
</label>
|
414 |
<p class="description"><?php _e( 'Set the dates that this form should display on your site.', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
415 |
</section>
|
416 |
<!-- end Start Date Limitation Nested -->
|
417 |
|
418 |
<!-- End Date Limitation Nested -->
|
419 |
+
<section class="date-restriction-section nested-child<?php if( $form_settings['yikes-easy-mc-form-schedule'] == '0' ) { echo ' hidden'; } ?> last">
|
420 |
<!-- End Date -->
|
421 |
<label for="yikes-easy-mc-form-restriction-end-date"><strong><?php _e( 'End Date' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
422 |
+
<input type="text" class="date-picker" name="yikes-easy-mc-form-restriction-end-date" id="yikes-easy-mc-form-restriction-end-date" value="<?php echo ! empty( $form_settings['yikes-easy-mc-form-restriction-end'] ) ? date( $this->yikes_jQuery_datepicker_date_format( get_option( 'date_format' ) ), $form_settings['yikes-easy-mc-form-restriction-end'] ) : ''; ?>" >
|
423 |
<?php _e( 'at', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
424 |
</label>
|
425 |
|
426 |
<!-- End Time -->
|
427 |
<label for="yikes-easy-mc-form-restriction-end-time"><strong><?php _e( 'End Time' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
428 |
+
<input type="text" class="time-picker" name="yikes-easy-mc-form-restriction-end-time" id="yikes-easy-mc-form-restriction-end-time" value="<?php echo ! empty( $form_settings['yikes-easy-mc-form-restriction-end'] ) ? date( 'g:iA', $form_settings['yikes-easy-mc-form-restriction-end'] ) : ''; ?>" >
|
429 |
</label>
|
430 |
<p class="description"><?php _e( 'Set the dates that this form should no longer display on your site.', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
431 |
|
468 |
<p class="description"><?php _e( 'Require users to be logged in before they can view and submit this opt-in form.', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
469 |
|
470 |
<!-- Require Login Message -->
|
471 |
+
<section class="login-restriction-section nested-child<?php if( $form_settings['yikes-easy-mc-form-login-required'] == '0' ) { echo ' hidden'; } ?>">
|
472 |
<label for="yikes-easy-mc-form-restriction-login-message"><strong><?php _e( 'Required Login Message' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
473 |
<?php
|
474 |
wp_editor(
|
549 |
'email-exists-error' => __( "The email you entered is already a subscriber to this list." , 'yikes-inc-easy-mailchimp-extender' ),
|
550 |
'update-link' => __( "You're already subscribed. To update your MailChimp profile, please [link]click to send yourself an update link[/link].", 'yikes-inc-easy-mailchimp-extender' ),
|
551 |
'email-subject' => __( 'MailChimp Profile Update', 'yikes-inc-easy-mailchimp-extender' ),
|
552 |
+
'update-email-success' => sprintf( __( '%s Update email successfully sent. Please check your inbox for the message.', 'yikes-inc-easy-mailchimp-extender' ), '✔' ),
|
553 |
+
'update-email-failure' => sprintf( __( '%s Email failed to send. Please contact the site administrator.', 'yikes-inc-easy-mailchimp-extender' ), '✕' ),
|
554 |
|
555 |
);
|
556 |
$global_error_messages = get_option( 'yikes-easy-mc-global-error-messages' , $error_message_array );
|
569 |
<label for="yikes-easy-mc-user-resubscribed-success-message"><strong><?php _e( 'Success: Re-subscriber' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
570 |
<input type="text" class="widefat" name="yikes-easy-mc-user-resubscribed-success-message" id="yikes-easy-mc-user-resubscribed-success-message" value="<?php echo isset( $error_messages['success-resubscribed'] ) ? stripslashes( esc_html( $error_messages['success-resubscribed'] ) ) : ''; ?>" placeholder="<?php echo $global_error_messages['success-resubscribed']; ?>">
|
571 |
</label>
|
572 |
+
|
573 |
<!-- Click the link to update user profile etc. etc. -->
|
574 |
<label for="yikes-easy-mc-user-subscribed-update-link"><strong><?php _e( 'Success: Re-subscriber with link to email profile update message' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
575 |
<input type="text" class="widefat" name="yikes-easy-mc-user-update-link" id="yikes-easy-mc-user-update-link" value="<?php echo isset( $error_messages['update-link'] ) ? stripslashes( esc_html( $error_messages['update-link'] ) ) : ''; ?>" placeholder="<?php echo $global_error_messages['update-link']; ?>">
|
576 |
</label>
|
577 |
+
|
578 |
<!-- Email Address is already subscribed -->
|
579 |
<label for="yikes-easy-mc-user-subscribed-message"><strong><?php _e( 'Error: Re-subscribers not permitted' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
580 |
<input type="text" class="widefat" name="yikes-easy-mc-user-subscribed-message" id="yikes-easy-mc-user-subscribed-message" value="<?php echo isset( $error_messages['already-subscribed'] ) ? stripslashes( esc_html( $error_messages['already-subscribed'] ) ) : ''; ?>" placeholder="<?php echo $global_error_messages['email-exists-error']; ?>">
|
581 |
</label>
|
582 |
+
|
583 |
+
<!-- Update email successfully sent -->
|
584 |
+
<label for="yikes-easy-mc-update-email-successful"><strong><?php _e( 'Success: Update email successfully sent' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
585 |
+
<input type="text" class="widefat" name="yikes-easy-mc-update-email-successful" id="yikes-easy-mc-update-email-successful" value="<?php echo isset( $error_messages['update-email-success'] ) ? stripslashes( esc_attr( $error_messages['update-email-success'] ) ) : ''; ?>" placeholder="<?php echo $global_error_messages['update-email-success']; ?>" >
|
586 |
+
</label>
|
587 |
+
|
588 |
+
<!-- Update email failed to send -->
|
589 |
+
<label for="yikes-easy-mc-update-email-failure"><strong><?php _e( 'Error: Update email failed to send' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
590 |
+
<input type="text" class="widefat" name="yikes-easy-mc-update-email-failure" id="yikes-easy-mc-update-email-failure" value="<?php echo isset( $error_messages['update-email-failure'] ) ? stripslashes( esc_attr( $error_messages['update-email-failure'] ) ) : ''; ?>" placeholder="<?php echo $global_error_messages['update-email-failure']; ?>" >
|
591 |
+
</label>
|
592 |
+
|
593 |
<!-- General Error Message -->
|
594 |
<label for="yikes-easy-mc-general-error-message"><strong><?php _e( 'Error: General' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
595 |
<input type="text" class="widefat" name="yikes-easy-mc-general-error-message" id="yikes-easy-mc-general-error-message" value="<?php echo isset( $error_messages['general-error'] ) ? stripslashes( esc_html( $error_messages['general-error'] ) ) : ''; ?>" placeholder="<?php echo $global_error_messages['general-error']; ?>" >
|
632 |
<li class="yikes-easy-mc-success-single-optin-message-help"><strong><?php _e( 'Success Message: Single opt-in' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong> <?php _e( 'The message displayed after a single opt-in form has been submitted.' , 'yikes-inc-easy-mailchimp-extender' ); ?></li>
|
633 |
<li class="yikes-easy-mc-user-resubscribed-success-message-help"><strong><?php _e( 'Success: Re-subscriber' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong> <?php _e( 'The message displayed after a subscriber submits a form for a list they are already subscribed to.' , 'yikes-inc-easy-mailchimp-extender' ); ?></li>
|
634 |
<li class="yikes-easy-mc-user-subscribed-update-link-help"><strong><?php _e( 'Success: Re-subscriber with link to email profile update message' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong> <?php _e( 'The message displayed after a subscriber submits a form for a list they are already subscribed to. Wrap the text you want to be the link in <code>[link][/link]</code> tags.' , 'yikes-inc-easy-mailchimp-extender' ); ?></li>
|
635 |
+
<li class="yikes-easy-mc-update-email-successful-help"><strong><?php _e( 'Success: Update email successfully sent', 'yikes-inc-easy-mailchimp-extender' ); ?></strong> <?php _e( 'The message displayed after an update profile email is successfully sent.' , 'yikes-inc-easy-mailchimp-extender' ); ?></li>
|
636 |
+
<li class="yikes-easy-mc-update-email-failure-help"><strong><?php _e( 'Error: Update email failed to send' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong> <?php _e( 'The message displayed after an update profile email failed to send.' , 'yikes-inc-easy-mailchimp-extender' ); ?></li>
|
637 |
<li class="yikes-easy-mc-user-subscribed-message-help"><strong><?php _e( 'Error: Re-subscribers not permitted' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong> <?php _e( 'The message displayed after a subscriber tries to join a list they are already subscribed to. You can display the user\'s email in the message using an <code>[email]</code> tag.' , 'yikes-inc-easy-mailchimp-extender' ); ?></li>
|
638 |
<li class="yikes-easy-mc-general-error-message-help"><strong><?php _e( 'Error: General' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong> <?php _e( 'The message displayed if a form error has occurred.' , 'yikes-inc-easy-mailchimp-extender' ); ?></li>
|
639 |
</ul>
|
admin/partials/menu/account-details.php
DELETED
@@ -1,264 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// lets confirm the user has a valid API key stored
|
3 |
-
if ( ! $this->is_user_mc_api_valid_form( false ) ) {
|
4 |
-
wp_die( __( 'It looks like you need to re-validate your MailChimp API key before you can continue.', 'yikes-inc-easy-mailchimp-extender' ), 500 );
|
5 |
-
}
|
6 |
-
|
7 |
-
$manager = yikes_get_mc_api_manager();
|
8 |
-
|
9 |
-
// Use new account details where we can.
|
10 |
-
$new_account_details = $manager->get_account_handler()->get_account();
|
11 |
-
|
12 |
-
// Get the user profile data from the V2 API
|
13 |
-
$profile_info = $manager->get_profile_handler()->get_profile();
|
14 |
-
if ( is_wp_error( $profile_info ) ) {
|
15 |
-
$error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging();
|
16 |
-
$error_logging->maybe_write_to_log(
|
17 |
-
$profile_info->get_error_code(),
|
18 |
-
__( "Get Profile Info.", 'yikes-inc-easy-mailchimp-extender' ),
|
19 |
-
"Account Details Page"
|
20 |
-
);
|
21 |
-
|
22 |
-
return;
|
23 |
-
}
|
24 |
-
|
25 |
-
$account_details = $manager->get_account_details_handler()->account_details();
|
26 |
-
if ( is_wp_error( $account_details ) ) {
|
27 |
-
$error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging();
|
28 |
-
$error_logging->maybe_write_to_log(
|
29 |
-
$account_details->get_error_code(),
|
30 |
-
__( "Get Account Details", 'yikes-inc-easy-mailchimp-extender' ),
|
31 |
-
"Account Details Page"
|
32 |
-
);
|
33 |
-
|
34 |
-
return;
|
35 |
-
}
|
36 |
-
|
37 |
-
$account_activity = $manager->get_chimp_chatter()->chimp_chatter();
|
38 |
-
if ( is_wp_error( $account_activity ) ) {
|
39 |
-
$error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging();
|
40 |
-
$error_logging->maybe_write_to_log(
|
41 |
-
$account_activity->get_error_code(),
|
42 |
-
__( "Get Chimp Chatter", 'yikes-inc-easy-mailchimp-extender' ),
|
43 |
-
"Account Details Page"
|
44 |
-
);
|
45 |
-
|
46 |
-
return;
|
47 |
-
}
|
48 |
-
?>
|
49 |
-
<div class="wrap" id="account-details">
|
50 |
-
<!-- Freddie Logo -->
|
51 |
-
<img src="<?php echo YIKES_MC_URL . 'includes/images/MailChimp_Assets/Freddie_60px.png'; ?>" alt="<?php _e( 'Freddie - MailChimp Mascot' , 'yikes-inc-easy-mailchimp-extender' ); ?>" class="yikes-mc-freddie-logo" />
|
52 |
-
|
53 |
-
<h1><?php _e( 'Account Overview' , 'yikes-inc-easy-mailchimp-extender' ); echo ' | ' . $account_details['username']; ?></h1>
|
54 |
-
<!-- Account Overview Page Description -->
|
55 |
-
<p class="yikes-easy-mc-about-text about-text"><?php _e( "Below you'll find a brief overview of account activity as well as some account and profile info." , 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
56 |
-
|
57 |
-
<div id="poststuff">
|
58 |
-
<div id="post-body" class="metabox-holder columns-2">
|
59 |
-
<!-- main content -->
|
60 |
-
<div id="post-body-content">
|
61 |
-
<div class="meta-box-sortables ui-sortable">
|
62 |
-
<!-- <div class="postbox yikes-easy-mc-postbox" id="chimp-chatter">
|
63 |
-
<div class="inside"> -->
|
64 |
-
|
65 |
-
<h1><?php _e( 'Chimp Chatter' , 'yikes-inc-easy-mailchimp-extender' ); ?></h1>
|
66 |
-
|
67 |
-
<?php
|
68 |
-
$date_format = get_option( 'date_format' );
|
69 |
-
$time_format = get_option( 'time_format' );
|
70 |
-
$x = 1;
|
71 |
-
$end = count( $account_activity );
|
72 |
-
foreach( $account_activity as $activity ) {
|
73 |
-
$split_type = explode( ':',str_replace('-',' ',$activity['type']));
|
74 |
-
$section_class = '';
|
75 |
-
switch( $activity['type'] ) {
|
76 |
-
case 'lists:new-subscriber':
|
77 |
-
case 'lists:profile-updates':
|
78 |
-
case 'campaigns:facebook-likes':
|
79 |
-
case 'campaigns:facebook-comments':
|
80 |
-
case 'campaigns:forward-to-friend':
|
81 |
-
case 'lists:import':
|
82 |
-
$section_class = 'chimp-chatter-positive';
|
83 |
-
break;
|
84 |
-
|
85 |
-
case 'lists:unsubscribes':
|
86 |
-
$section_class = 'chimp-chatter-negative';
|
87 |
-
break;
|
88 |
-
|
89 |
-
case 'campaigns:inbox-inspections':
|
90 |
-
$section_class = 'chimp-chatter-neutral';
|
91 |
-
break;
|
92 |
-
}
|
93 |
-
if( $x < 5 ) {
|
94 |
-
?>
|
95 |
-
<!--- <section class="chimp-chatter-container <?php echo esc_attr( $section_class ); ?>">
|
96 |
-
<div class="chatter-type"><?php echo ucwords( $split_type[1] ); ?></div>
|
97 |
-
<p class="chatter-message description">
|
98 |
-
<?php echo $activity['message']; ?>
|
99 |
-
</p>
|
100 |
-
<p class="chatter-time">
|
101 |
-
<?php echo get_date_from_gmt( $activity['update_time'], 'F jS, Y h:i a' ); ?>
|
102 |
-
</p>
|
103 |
-
</section> -->
|
104 |
-
|
105 |
-
<section class="postbox yikes-easy-mc-postbox chimp-chatter-postbox <?php echo esc_attr( $section_class ); if( $x % 2 == 0 ) { echo ' even'; } ?>">
|
106 |
-
<div class="inside">
|
107 |
-
<div class="chatter-type"><?php echo ucwords( $split_type[1] ); ?></div>
|
108 |
-
<p class="chatter-message description">
|
109 |
-
<?php echo $activity['message']; ?>
|
110 |
-
</p>
|
111 |
-
<p class="chatter-time">
|
112 |
-
<?php echo get_date_from_gmt( $activity['update_time'], 'F jS, Y h:i a' ); ?>
|
113 |
-
</p>
|
114 |
-
</div>
|
115 |
-
</section>
|
116 |
-
<?php
|
117 |
-
} else {
|
118 |
-
if( $x == 7 ) {
|
119 |
-
?>
|
120 |
-
<div id="hidden-chatter" class="yikes-easy-mc-hidden">
|
121 |
-
<?php
|
122 |
-
}
|
123 |
-
?>
|
124 |
-
<!-- <section class="chimp-chatter-container <?php echo esc_attr( $section_class ); ?>">
|
125 |
-
<div class="chatter-type"><?php echo ucwords( $split_type[1] ); ?></div>
|
126 |
-
<p class="chatter-message description">
|
127 |
-
<?php echo $activity['message']; ?>
|
128 |
-
</p>
|
129 |
-
<p class="chatter-time">
|
130 |
-
<?php echo get_date_from_gmt( $activity['update_time'], 'F jS, Y h:i a' ); ?>
|
131 |
-
</p>
|
132 |
-
</section> -->
|
133 |
-
|
134 |
-
<section class="postbox yikes-easy-mc-postbox chimp-chatter-postbox <?php echo esc_attr( $section_class ); if( $x % 2 == 0 ) { echo ' even'; } ?>">
|
135 |
-
<div class="inside">
|
136 |
-
<div class="chatter-type"><?php echo ucwords( $split_type[1] ); ?></div>
|
137 |
-
<p class="chatter-message description">
|
138 |
-
<?php echo $activity['message']; ?>
|
139 |
-
</p>
|
140 |
-
<p class="chatter-time">
|
141 |
-
<?php echo get_date_from_gmt( $activity['update_time'], 'F jS, Y h:i a' ); ?>
|
142 |
-
</p>
|
143 |
-
</div>
|
144 |
-
</section>
|
145 |
-
<?php
|
146 |
-
if( $x == $end ) {
|
147 |
-
?>
|
148 |
-
</div>
|
149 |
-
<?php
|
150 |
-
}
|
151 |
-
}
|
152 |
-
$x++;
|
153 |
-
}
|
154 |
-
?>
|
155 |
-
|
156 |
-
<div class="chimpchatter-button-container">
|
157 |
-
<a href="#" onclick="jQuery(this).parents().find('#hidden-chatter').slideToggle();jQuery(this).fadeOut();return false;" class="button-primary"><?php _e( 'View All Activity' , 'yikes-inc-easy-mailchimp-extender' ); ?></a>
|
158 |
-
</div>
|
159 |
-
|
160 |
-
<!-- </div> -->
|
161 |
-
<!-- .inside -->
|
162 |
-
<!-- </div> -->
|
163 |
-
<!-- .postbox -->
|
164 |
-
</div>
|
165 |
-
<!-- .meta-box-sortables .ui-sortable -->
|
166 |
-
</div>
|
167 |
-
<!-- post-body-content -->
|
168 |
-
<!-- sidebar -->
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
<div id="postbox-container-1" class="postbox-container">
|
173 |
-
<div class="meta-box-sortables">
|
174 |
-
|
175 |
-
<div class="postbox yikes-easy-mc-postbox">
|
176 |
-
<div class="inside">
|
177 |
-
|
178 |
-
<a href="https://us3.admin.mailchimp.com/" title="<?php _e( 'MailChimp Site' , 'yikes-inc-easy-mailchimp-extender' ); ?>" target="_blank">
|
179 |
-
<img src="<?php echo YIKES_MC_URL . 'includes/images/Welcome_Page/mailchimp-logo.png'; ?>" title="<?php _e( 'MailChimp Site' , 'yikes-inc-easy-mailchimp-extender' ); ?>" class="chimp-chatter-mailchimp-logo">
|
180 |
-
</a>
|
181 |
-
|
182 |
-
</div>
|
183 |
-
<!-- .inside -->
|
184 |
-
</div>
|
185 |
-
|
186 |
-
<div class="postbox yikes-easy-mc-postbox chimp-chatter-sidebar">
|
187 |
-
<div class="inside">
|
188 |
-
|
189 |
-
<h2 class="account-status"><?php if( $account_details['has_activated'] == 1 ) { ?><div class="circle-account-active" title="<?php _e( "Account Active" , 'yikes-inc-easy-mailchimp-extender' ); ?>"></div><?php } else { ?><div class="circle-account-inactive" title="<?php _e( "Account Inactive" , 'yikes-inc-easy-mailchimp-extender' ); ?>"></div><?php } echo $new_account_details['username']; ?> <small>(<?php echo $new_account_details['role']; ?>)</small></h2>
|
190 |
-
|
191 |
-
<img class="mailchimp-avatar" src="<?php echo esc_url_raw( $profile_info['avatar'] ); ?>" title="<?php echo $profile_info['username'] . ' ' . __( "MailChimp avatar" , 'yikes-inc-easy-mailchimp-extender' ); ?>">
|
192 |
-
|
193 |
-
<table class="form-table" id="account-details-table">
|
194 |
-
<tr valign="top">
|
195 |
-
<td scope="row">
|
196 |
-
<label for="tablecell">
|
197 |
-
<strong><?php _e( 'Company' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
198 |
-
</label>
|
199 |
-
</td>
|
200 |
-
<td><?php echo $new_account_details['contact']['company']; ?><br /><?php echo $new_account_details['contact']['city'] . ', ' . $new_account_details['contact']['state']; ?></td>
|
201 |
-
</tr>
|
202 |
-
<tr valign="top">
|
203 |
-
<td scope="row">
|
204 |
-
<label for="tablecell">
|
205 |
-
<strong><?php _e( 'Industry' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
206 |
-
</label>
|
207 |
-
</td>
|
208 |
-
<td><?php echo $account_details['industry']; ?></td>
|
209 |
-
</tr>
|
210 |
-
<tr valign="top">
|
211 |
-
<td scope="row">
|
212 |
-
<label for="tablecell">
|
213 |
-
<strong><?php _e( 'Member Since' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
214 |
-
</label>
|
215 |
-
</td>
|
216 |
-
<td><?php echo date( get_option('date_format') , strtotime( $account_details['member_since'] ) ); ?></td>
|
217 |
-
</tr>
|
218 |
-
<tr valign="top">
|
219 |
-
<td scope="row">
|
220 |
-
<label for="tablecell">
|
221 |
-
<strong><?php _e( 'Plan Type' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
222 |
-
</label>
|
223 |
-
</td>
|
224 |
-
<td><?php echo ucwords( $account_details['plan_type'] ); ?></td>
|
225 |
-
</tr>
|
226 |
-
<?php if( $account_details['plan_type'] == 'payasyougo' || $account_details['plan_type'] == 'free' ) { ?>
|
227 |
-
<tr valign="top">
|
228 |
-
<td scope="row">
|
229 |
-
<label for="tablecell">
|
230 |
-
<strong><?php _e( 'Emails Left' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
231 |
-
</label>
|
232 |
-
</td>
|
233 |
-
<td><?php echo number_format( $account_details['emails_left'] ); ?></td>
|
234 |
-
</tr>
|
235 |
-
<?php } ?>
|
236 |
-
<tr valign="top">
|
237 |
-
<td scope="row">
|
238 |
-
<label for="tablecell">
|
239 |
-
<strong><?php _e( 'Affiliate Link' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
240 |
-
</label>
|
241 |
-
</td>
|
242 |
-
<td><a href="#" onclick="jQuery(this).hide().next().fadeIn('fast');return false;" class="button-secondary"><?php _e( 'View Link', 'yikes-inc-easy-mailchimp-extender' ); ?></a><input type="text" class="widefat mailchimp-affiliate-link" readonly value="<?php echo esc_url_raw( $account_details['affiliate_link'] ); ?>" onclick="jQuery(this).select();return false;"></td>
|
243 |
-
</tr>
|
244 |
-
</table>
|
245 |
-
|
246 |
-
</div>
|
247 |
-
<!-- .inside -->
|
248 |
-
</div>
|
249 |
-
<!-- .postbox -->
|
250 |
-
<?php
|
251 |
-
// Generate Show Some Love!
|
252 |
-
$this->generate_show_some_love_container();
|
253 |
-
?>
|
254 |
-
|
255 |
-
</div>
|
256 |
-
<!-- .meta-box-sortables -->
|
257 |
-
</div>
|
258 |
-
<!-- #postbox-container-1 .postbox-container -->
|
259 |
-
</div>
|
260 |
-
<!-- #post-body .metabox-holder .columns-2 -->
|
261 |
-
<br class="clear">
|
262 |
-
</div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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/partials/menu/manage-lists.php
CHANGED
@@ -1,19 +1,29 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
$list_data = array();
|
16 |
}
|
|
|
|
|
|
|
17 |
?>
|
18 |
<div class="wrap">
|
19 |
<!-- Freddie Logo -->
|
@@ -122,17 +132,73 @@ if ( $this->is_user_mc_api_valid_form( false ) == 'valid' ) {
|
|
122 |
|
123 |
<!-- sidebar -->
|
124 |
<div id="postbox-container-1" class="postbox-container">
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
|
137 |
</div> <!-- #post-body .metabox-holder .columns-2 -->
|
138 |
|
1 |
<?php
|
2 |
+
|
3 |
+
// Let's confirm the user has a valid API key stored
|
4 |
+
if ( ! $this->is_user_mc_api_valid_form( false ) ) {
|
5 |
+
wp_die( __( 'It looks like you need to re-validate your MailChimp API key before you can continue.', 'yikes-inc-easy-mailchimp-extender' ), 500 );
|
6 |
+
}
|
7 |
+
|
8 |
+
$manager = yikes_get_mc_api_manager();
|
9 |
+
|
10 |
+
// MailChimp Account/Profile info
|
11 |
+
$account_details = $manager->get_account_handler()->get_account();
|
12 |
+
|
13 |
+
// List data
|
14 |
+
$list_data = $manager->get_list_handler()->get_lists();
|
15 |
+
if ( is_wp_error( $list_data ) ) {
|
16 |
+
$error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging();
|
17 |
+
$error_logging->maybe_write_to_log(
|
18 |
+
$list_data->get_error_code(),
|
19 |
+
__( "Get Account Lists", 'yikes-inc-easy-mailchimp-extender' ),
|
20 |
+
"Manage Lists Page"
|
21 |
+
);
|
22 |
$list_data = array();
|
23 |
}
|
24 |
+
|
25 |
+
|
26 |
+
|
27 |
?>
|
28 |
<div class="wrap">
|
29 |
<!-- Freddie Logo -->
|
132 |
|
133 |
<!-- sidebar -->
|
134 |
<div id="postbox-container-1" class="postbox-container">
|
135 |
+
<div class="meta-box-sortables">
|
136 |
+
|
137 |
+
<div class="postbox yikes-easy-mc-postbox">
|
138 |
+
<div class="inside">
|
139 |
+
|
140 |
+
<a href="https://us3.admin.mailchimp.com/" title="<?php _e( 'MailChimp Site' , 'yikes-inc-easy-mailchimp-extender' ); ?>" target="_blank">
|
141 |
+
<img src="<?php echo YIKES_MC_URL . 'includes/images/Welcome_Page/mailchimp-logo.png'; ?>" title="<?php _e( 'MailChimp Site' , 'yikes-inc-easy-mailchimp-extender' ); ?>" class="list-page-mailchimp-logo">
|
142 |
+
</a>
|
143 |
+
|
144 |
+
</div>
|
145 |
+
<!-- .inside -->
|
146 |
+
</div>
|
147 |
+
|
148 |
+
<div class="postbox yikes-easy-mc-postbox list-page-sidebar">
|
149 |
+
<div class="inside">
|
150 |
+
|
151 |
+
<h2 class="account-status"><?php echo $account_details['username']; ?> <small>(<?php echo $account_details['role']; ?>)</small></h2>
|
152 |
+
|
153 |
+
<img class="mailchimp-avatar" src="<?php echo esc_url_raw( $account_details['avatar_url'] ); ?>" title="<?php echo $account_details['username'] . ' ' . __( "MailChimp avatar" , 'yikes-inc-easy-mailchimp-extender' ); ?>">
|
154 |
+
|
155 |
+
<table class="form-table" id="account-details-table">
|
156 |
+
<tr valign="top">
|
157 |
+
<td scope="row">
|
158 |
+
<label for="tablecell">
|
159 |
+
<strong><?php _e( 'Company' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
160 |
+
</label>
|
161 |
+
</td>
|
162 |
+
<td><?php echo $account_details['contact']['company']; ?><br /><?php echo $account_details['contact']['city'] . ', ' . $account_details['contact']['state']; ?></td>
|
163 |
+
</tr>
|
164 |
+
<tr valign="top">
|
165 |
+
<td scope="row">
|
166 |
+
<label for="tablecell">
|
167 |
+
<strong><?php _e( 'Industry' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
168 |
+
</label>
|
169 |
+
</td>
|
170 |
+
<td><?php echo $account_details['account_industry']; ?></td>
|
171 |
+
</tr>
|
172 |
+
<tr valign="top">
|
173 |
+
<td scope="row">
|
174 |
+
<label for="tablecell">
|
175 |
+
<strong><?php _e( 'Member Since' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
176 |
+
</label>
|
177 |
+
</td>
|
178 |
+
<td><?php echo date( get_option('date_format') , strtotime( $account_details['member_since'] ) ); ?></td>
|
179 |
+
</tr>
|
180 |
+
<tr valign="top">
|
181 |
+
<td scope="row">
|
182 |
+
<label for="tablecell">
|
183 |
+
<strong><?php _e( 'Plan Type' , 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
184 |
+
</label>
|
185 |
+
</td>
|
186 |
+
<td><?php echo ucwords( $account_details['pricing_plan_type'] ); ?></td>
|
187 |
+
</tr>
|
188 |
+
</table>
|
189 |
+
|
190 |
+
</div>
|
191 |
+
<!-- .inside -->
|
192 |
+
</div>
|
193 |
+
<!-- .postbox -->
|
194 |
+
<?php
|
195 |
+
// Generate Show Some Love!
|
196 |
+
$this->generate_show_some_love_container();
|
197 |
+
?>
|
198 |
+
|
199 |
+
</div>
|
200 |
+
<!-- .meta-box-sortables -->
|
201 |
+
</div> <!-- #postbox-container-1 .postbox-container -->
|
202 |
|
203 |
</div> <!-- #post-body .metabox-holder .columns-2 -->
|
204 |
|
admin/partials/menu/options-sections/integration-settings.php
CHANGED
@@ -8,79 +8,79 @@
|
|
8 |
*
|
9 |
* @package WordPress
|
10 |
* @subpackage Component
|
11 |
-
*/
|
12 |
|
13 |
-
// enqueue jquery qtip for our tooltip
|
14 |
-
wp_enqueue_script( 'jquery-qtip-tooltip', YIKES_MC_URL . 'admin/js/min/jquery.qtip.min.js'
|
15 |
-
wp_enqueue_style( 'jquery-qtip-style',
|
16 |
|
17 |
?>
|
18 |
<script>
|
19 |
jQuery( document ).ready( function() {
|
20 |
/* Initialize qtip tooltips */
|
21 |
jQuery( '.dashicons-editor-help' ).each(function() {
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
def: false
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
jQuery( this ).removeClass( 'qtip-default' );
|
33 |
-
|
34 |
});
|
35 |
</script>
|
36 |
<?php
|
37 |
|
38 |
// active plugins array
|
39 |
-
// defaults: comments / registration
|
40 |
$active_plugins = array(
|
41 |
-
'comment_form'
|
42 |
-
'registration_form' => __( 'WordPress Registration Form', 'yikes-inc-easy-mailchimp-extender' )
|
43 |
);
|
44 |
|
45 |
$class_descriptions = array(
|
46 |
-
'comment_form'
|
47 |
-
'registration_form'
|
48 |
-
'woocommerce_checkout_form'
|
49 |
-
'easy_digital_downloads_checkout_form' => '<img class="tooltip-integration-banner" src="' . YIKES_MC_URL . 'includes/images/Checkbox_Integration_Logos/edd-banner.png" title="' . __( 'Easy Digital Downloads'
|
50 |
-
'buddypress_form'
|
51 |
-
'bbpress_forms'
|
52 |
-
'contact_form_7'
|
53 |
);
|
54 |
|
55 |
-
// Easy Digital Downloads
|
56 |
-
if( class_exists( 'Easy_Digital_Downloads' ) ) {
|
57 |
$active_plugins['easy_digital_downloads_checkout_form'] = __( 'Easy Digital Downloads Checkout', 'yikes-inc-easy-mailchimp-extender' );
|
58 |
}
|
59 |
-
// WooCommerce
|
60 |
-
if( class_exists( 'WooCommerce' ) ) {
|
61 |
$active_plugins['woocommerce_checkout_form'] = __( 'WooCommerce Checkout', 'yikes-inc-easy-mailchimp-extender' );
|
62 |
}
|
63 |
-
// BuddyPress
|
64 |
-
if( class_exists( 'BuddyPress' ) ) {
|
65 |
$active_plugins['buddypress_form'] = __( 'BuddyPress Registration', 'yikes-inc-easy-mailchimp-extender' );
|
66 |
}
|
67 |
-
// bbPress
|
68 |
-
if( class_exists( 'bbPress' ) ) {
|
69 |
$active_plugins['bbpress_forms'] = __( 'bbPress', 'yikes-inc-easy-mailchimp-extender' );
|
70 |
}
|
71 |
-
// Contact Form 7
|
72 |
-
if( is_plugin_active( 'contact-form-7/wp-contact-form-7.php' ) ) {
|
73 |
$active_plugins['contact_form_7'] = __( 'Contact Form 7', 'yikes-inc-easy-mailchimp-extender' );
|
74 |
}
|
75 |
|
76 |
-
// store our checkbox options
|
77 |
-
$options = get_option( 'optin-checkbox-init'
|
78 |
?>
|
79 |
-
<h3><span><?php _e( 'Integration Settings'
|
80 |
|
81 |
|
82 |
<?php
|
83 |
-
// lets confirm the user has a valid API key stored
|
84 |
if ( $this->is_user_mc_api_valid_form( false ) == 'valid' ) {
|
85 |
$list_data = yikes_get_mc_api_manager()->get_list_handler()->get_lists();
|
86 |
if ( is_wp_error( $list_data ) ) {
|
@@ -95,7 +95,7 @@
|
|
95 |
?>
|
96 |
<div class="inside">
|
97 |
<?php
|
98 |
-
echo sprintf( __( 'Please %s to setup your integrations.', 'yikes-inc-easy-mailchimp-extender' ), '<a href="' . esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=general-settings' ) ) . '" title="' . __( 'General Settings'
|
99 |
?>
|
100 |
</div>
|
101 |
<?php
|
@@ -106,7 +106,7 @@
|
|
106 |
<div class="inside">
|
107 |
|
108 |
<p>
|
109 |
-
<?php _e( '
|
110 |
</p>
|
111 |
|
112 |
<!-- Settings Form -->
|
@@ -116,18 +116,21 @@
|
|
116 |
|
117 |
<ul>
|
118 |
<?php
|
119 |
-
if( !empty( $active_plugins ) ) {
|
120 |
|
121 |
foreach( $active_plugins as $class => $value ) {
|
122 |
-
|
123 |
-
$checked
|
124 |
-
$hidden
|
125 |
-
$checkbox_label
|
126 |
-
$precheck_checkbox
|
127 |
-
$selected_list
|
128 |
$list_interest_groups = isset( $options[$class]['interest-groups'] ) ? $options[$class]['interest-groups'] : false;
|
|
|
|
|
|
|
129 |
?>
|
130 |
-
<li>
|
131 |
<label>
|
132 |
<input type="checkbox" name="optin-checkbox-init[<?php echo $class; ?>][value]" value="on" <?php echo $checked; ?> onclick="jQuery(this).parents('li').next().stop().slideToggle();"><?php echo ucwords( $value ); ?><span class="dashicons dashicons-editor-help"></span><div class="tooltiptext qtip-bootstrap" style="display:none;"><?php echo $class_descriptions[$class]; ?></div>
|
133 |
</label>
|
@@ -138,65 +141,65 @@
|
|
138 |
<p style="margin-top:0;"><small class="contact-form-7-notice"><?php printf( __( 'Use %s in Contact Form 7 to display the checkbox.', 'yikes-inc-easy-mailchimp-extender' ), '<code>[yikes_mailchimp_checkbox]</code>' ); ?></small></p>
|
139 |
<?php } ?>
|
140 |
<p style="margin-top:0;padding-top:0;margin-bottom:0;padding-bottom:0;">
|
141 |
-
|
142 |
-
|
|
|
143 |
<?php
|
144 |
-
|
|
|
|
|
|
|
|
|
|
|
145 |
?>
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
|
|
155 |
<?php
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
<!-- checkbox text label -->
|
162 |
-
<label
|
|
|
163 |
<input type="text" class="optin-checkbox-init[<?php echo $class; ?>][label] optin-checkbox-label-input" name="optin-checkbox-init[<?php echo $class; ?>][label]" value="<?php echo $checkbox_label; ?>">
|
164 |
</label>
|
165 |
<!-- prechecked? -->
|
166 |
-
<label
|
|
|
167 |
<select id="optin-checkbox-init[<?php echo $class; ?>][precheck]" name="optin-checkbox-init[<?php echo $class; ?>][precheck]" class="optin-checkbox-init[<?php echo $class; ?>][precheck] checkbox-settings-list-dropdown">
|
168 |
-
<option value="true" <?php selected( $precheck_checkbox , 'true' ); ?>><?php _e( 'Yes'
|
169 |
-
<option value="false" <?php selected( $precheck_checkbox , 'false' ); ?>><?php _e( 'No'
|
170 |
</select>
|
171 |
</label>
|
172 |
-
|
173 |
-
<!-- Interest Group -- precheck/pre-select -->
|
174 |
-
<div class="interest-groups-container">
|
175 |
-
<?php
|
176 |
-
if ( $selected_list != '-' && get_transient( $selected_list . '_interest_group' ) ) {
|
177 |
-
$interest_groupings = get_transient( $selected_list . '_interest_group' );
|
178 |
-
$integration_type = $class;
|
179 |
-
require( YIKES_MC_PATH . 'admin/partials/menu/options-sections/templates/integration-interest-groups.php' );
|
180 |
-
} else if( $selected_list != '-' && $list_interest_groups ) {
|
181 |
-
$list_id = $options[$class]['associated-list'];
|
182 |
-
$integration_type = $class;
|
183 |
-
YIKES_Inc_Easy_MailChimp_Process_Ajax::check_list_for_interest_groups( $list_id, $integration_type, true );
|
184 |
-
}
|
185 |
-
?>
|
186 |
-
</div>
|
187 |
-
|
188 |
</p>
|
189 |
-
<br />
|
190 |
</li>
|
191 |
<?php
|
192 |
-
}
|
193 |
-
} else {
|
194 |
-
?>
|
195 |
-
<li>
|
196 |
-
<?php _e( 'Nothing is active.' , 'yikes-inc-easy-mailchimp-extender' ); ?>
|
197 |
-
</li>
|
198 |
-
<?php
|
199 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
?>
|
201 |
</ul>
|
202 |
|
8 |
*
|
9 |
* @package WordPress
|
10 |
* @subpackage Component
|
11 |
+
*/
|
12 |
|
13 |
+
// enqueue jquery qtip for our tooltip.
|
14 |
+
wp_enqueue_script( 'jquery-qtip-tooltip', YIKES_MC_URL . 'admin/js/min/jquery.qtip.min.js', array( 'jquery' ) );
|
15 |
+
wp_enqueue_style( 'jquery-qtip-style', YIKES_MC_URL . 'admin/css/jquery.qtip.min.css' );
|
16 |
|
17 |
?>
|
18 |
<script>
|
19 |
jQuery( document ).ready( function() {
|
20 |
/* Initialize qtip tooltips */
|
21 |
jQuery( '.dashicons-editor-help' ).each(function() {
|
22 |
+
jQuery(this).qtip({
|
23 |
+
content: {
|
24 |
+
text: jQuery(this).next('.tooltiptext'),
|
25 |
+
style: {
|
26 |
def: false
|
27 |
+
}
|
28 |
+
}
|
29 |
+
});
|
30 |
+
});
|
31 |
+
jQuery( '.qtip' ).each( function() {
|
32 |
jQuery( this ).removeClass( 'qtip-default' );
|
33 |
+
});
|
34 |
});
|
35 |
</script>
|
36 |
<?php
|
37 |
|
38 |
// active plugins array
|
39 |
+
// defaults: comments / registration.
|
40 |
$active_plugins = array(
|
41 |
+
'comment_form' => __( 'WordPress Comment Form', 'yikes-inc-easy-mailchimp-extender' ),
|
42 |
+
'registration_form' => __( 'WordPress Registration Form', 'yikes-inc-easy-mailchimp-extender' ),
|
43 |
);
|
44 |
|
45 |
$class_descriptions = array(
|
46 |
+
'comment_form' => '<img class="tooltip-integration-banner" src="' . YIKES_MC_URL . 'includes/images/Checkbox_Integration_Logos/wordpress-banner-logo.png" title="' . __( 'WordPress', 'yikes-inc-easy-mailchimp-extender' ) . '">' . __( 'Enabling the WordPress core comment form opt-in checkbox will display a checkbox to your current users when leaving a comment (if they are not currently subscribed).', 'yikes-inc-easy-mailchimp-extender' ),
|
47 |
+
'registration_form' => '<img class="tooltip-integration-banner" src="' . YIKES_MC_URL . 'includes/images/Checkbox_Integration_Logos/wordpress-banner-logo.png" title="' . __( 'WordPress', 'yikes-inc-easy-mailchimp-extender' ) . '">' . __( 'Enabling the WordPress core registration form opt-in checkbox will display a checkbox to new users when registering for your site.', 'yikes-inc-easy-mailchimp-extender' ),
|
48 |
+
'woocommerce_checkout_form' => '<img class="tooltip-integration-banner" src="' . YIKES_MC_URL . 'includes/images/Checkbox_Integration_Logos/woocommerce-banner.png" title="' . __( 'WooCommerce Store', 'yikes-inc-easy-mailchimp-extender' ) . '">' . __( 'Enabling the WooCommerce checkout opt-in form allows you to capture email addresses from users who make purchases in your store. This option will add an opt-in checkbox to the checkout page.', 'yikes-inc-easy-mailchimp-extender' ),
|
49 |
+
'easy_digital_downloads_checkout_form' => '<img class="tooltip-integration-banner" src="' . YIKES_MC_URL . 'includes/images/Checkbox_Integration_Logos/edd-banner.png" title="' . __( 'Easy Digital Downloads', 'yikes-inc-easy-mailchimp-extender' ) . '">' . __( 'Enabling the Easy Digital Downloads checkout opt-in allows users who make a purchase to opt-in to your mailing list during checkout.', 'yikes-inc-easy-mailchimp-extender' ),
|
50 |
+
'buddypress_form' => '<img class="tooltip-integration-banner" src="' . YIKES_MC_URL . 'includes/images/Checkbox_Integration_Logos/buddypress-banner.png" title="' . __( 'BuddyPress', 'yikes-inc-easy-mailchimp-extender' ) . '">' . __( 'Enabling the BuddyPress opt-in allows users who register for your site to be automatically added to the mailing list of your choice.', 'yikes-inc-easy-mailchimp-extender' ),
|
51 |
+
'bbpress_forms' => '<img class="tooltip-integration-banner" src="' . YIKES_MC_URL . 'includes/images/Checkbox_Integration_Logos/bbpress-banner.png" title="' . __( 'bbPress', 'yikes-inc-easy-mailchimp-extender' ) . '">' . __( 'Enabling the bbPress opt-in enables users who register to use the forums on your site to be automatically added to the mailing list of your choice.', 'yikes-inc-easy-mailchimp-extender' ),
|
52 |
+
'contact_form_7' => '<img class="tooltip-integration-banner" src="' . YIKES_MC_URL . 'includes/images/Checkbox_Integration_Logos/cf7-banner.png" title="' . __( 'Contact Form 7', 'yikes-inc-easy-mailchimp-extender' ) . '">' . __( 'Once the Contact Form 7 integration is active you can use our custom shortcode [yikes_mailchimp_checkbox] in your contact forms to subscribe users to a pre-selected list.', 'yikes-inc-easy-mailchimp-extender' ),
|
53 |
);
|
54 |
|
55 |
+
// Easy Digital Downloads.
|
56 |
+
if ( class_exists( 'Easy_Digital_Downloads' ) ) {
|
57 |
$active_plugins['easy_digital_downloads_checkout_form'] = __( 'Easy Digital Downloads Checkout', 'yikes-inc-easy-mailchimp-extender' );
|
58 |
}
|
59 |
+
// WooCommerce.
|
60 |
+
if ( class_exists( 'WooCommerce' ) ) {
|
61 |
$active_plugins['woocommerce_checkout_form'] = __( 'WooCommerce Checkout', 'yikes-inc-easy-mailchimp-extender' );
|
62 |
}
|
63 |
+
// BuddyPress.
|
64 |
+
if ( class_exists( 'BuddyPress' ) ) {
|
65 |
$active_plugins['buddypress_form'] = __( 'BuddyPress Registration', 'yikes-inc-easy-mailchimp-extender' );
|
66 |
}
|
67 |
+
// bbPress.
|
68 |
+
if ( class_exists( 'bbPress' ) ) {
|
69 |
$active_plugins['bbpress_forms'] = __( 'bbPress', 'yikes-inc-easy-mailchimp-extender' );
|
70 |
}
|
71 |
+
// Contact Form 7.
|
72 |
+
if ( is_plugin_active( 'contact-form-7/wp-contact-form-7.php' ) ) {
|
73 |
$active_plugins['contact_form_7'] = __( 'Contact Form 7', 'yikes-inc-easy-mailchimp-extender' );
|
74 |
}
|
75 |
|
76 |
+
// store our checkbox options.
|
77 |
+
$options = get_option( 'optin-checkbox-init', '' );
|
78 |
?>
|
79 |
+
<h3><span><?php _e( 'Integration Settings', 'yikes-inc-easy-mailchimp-extender' ); ?></span></h3>
|
80 |
|
81 |
|
82 |
<?php
|
83 |
+
// lets confirm the user has a valid API key stored.
|
84 |
if ( $this->is_user_mc_api_valid_form( false ) == 'valid' ) {
|
85 |
$list_data = yikes_get_mc_api_manager()->get_list_handler()->get_lists();
|
86 |
if ( is_wp_error( $list_data ) ) {
|
95 |
?>
|
96 |
<div class="inside">
|
97 |
<?php
|
98 |
+
echo sprintf( __( 'Please %s to setup your integrations.', 'yikes-inc-easy-mailchimp-extender' ), '<a href="' . esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=general-settings' ) ) . '" title="' . __( 'General Settings', 'yikes-inc-easy-mailchimp-extender' ) . '">' . __( 'enter a valid MailChimp API key', 'yikes-inc-easy-mailchimp-extender' ) . '</a>' );
|
99 |
?>
|
100 |
</div>
|
101 |
<?php
|
106 |
<div class="inside">
|
107 |
|
108 |
<p>
|
109 |
+
<?php _e( 'An opt-in checkbox will be added to the forms generated by the checked off items below. For example, checking off "WordPress Comment Form" will generate a checkbox below the WordPress comment form to add new commenters to a pre-determined MailChimp mailing list.', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
110 |
</p>
|
111 |
|
112 |
<!-- Settings Form -->
|
116 |
|
117 |
<ul>
|
118 |
<?php
|
119 |
+
if ( ! empty( $active_plugins ) ) {
|
120 |
|
121 |
foreach( $active_plugins as $class => $value ) {
|
122 |
+
|
123 |
+
$checked = isset( $options[$class]['value'] ) ? 'checked="checked"' : '';
|
124 |
+
$hidden = ! isset( $options[$class]['value'] ) ? 'yikes-easy-mc-hidden' : '';
|
125 |
+
$checkbox_label = isset( $options[$class]['label'] ) ? esc_attr( $options[$class]['label'] ) : '';
|
126 |
+
$precheck_checkbox = isset( $options[$class]['precheck'] ) ? $options[$class]['precheck'] : '';
|
127 |
+
$selected_list = isset( $options[$class]['associated-list'] ) ? $options[$class]['associated-list'] : '-';
|
128 |
$list_interest_groups = isset( $options[$class]['interest-groups'] ) ? $options[$class]['interest-groups'] : false;
|
129 |
+
|
130 |
+
// Force the selected list to be an array (@since 6.4).
|
131 |
+
$selected_list = is_array( $selected_list ) ? $selected_list : array( $selected_list );
|
132 |
?>
|
133 |
+
<li class="yikes-mailchimp-checkbox-integration-item">
|
134 |
<label>
|
135 |
<input type="checkbox" name="optin-checkbox-init[<?php echo $class; ?>][value]" value="on" <?php echo $checked; ?> onclick="jQuery(this).parents('li').next().stop().slideToggle();"><?php echo ucwords( $value ); ?><span class="dashicons dashicons-editor-help"></span><div class="tooltiptext qtip-bootstrap" style="display:none;"><?php echo $class_descriptions[$class]; ?></div>
|
136 |
</label>
|
141 |
<p style="margin-top:0;"><small class="contact-form-7-notice"><?php printf( __( 'Use %s in Contact Form 7 to display the checkbox.', 'yikes-inc-easy-mailchimp-extender' ), '<code>[yikes_mailchimp_checkbox]</code>' ); ?></small></p>
|
142 |
<?php } ?>
|
143 |
<p style="margin-top:0;padding-top:0;margin-bottom:0;padding-bottom:0;">
|
144 |
+
|
145 |
+
<!-- Associated Lists -->
|
146 |
+
<div class="checkbox-lists"><strong><?php _e( 'Choose Lists: ', 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
147 |
<?php
|
148 |
+
if ( count( $list_data ) > 0 ) {
|
149 |
+
?>
|
150 |
+
<?php foreach( $list_data as $list ) { ?>
|
151 |
+
|
152 |
+
<?php
|
153 |
+
$list_interest_groups = isset( $list_interest_groups[ $list['id'] ] ) ? $list_interest_groups[ $list['id'] ] : $list_interest_groups;
|
154 |
?>
|
155 |
+
|
156 |
+
<label class="yikes-mailchimp-checkbox-integration-list" for="list-<?php echo $class ?>-<?php echo $list['id']; ?>">
|
157 |
+
<input type="checkbox" class="checkbox-settings-list-item" data-integration="<?php echo $class; ?>"
|
158 |
+
name="optin-checkbox-init[<?php echo $class; ?>][associated-list][]"
|
159 |
+
value="<?php echo $list['id']; ?>" <?php echo in_array( $list['id'], $selected_list ) ? 'checked="checked"' : ''; ?>
|
160 |
+
id="list-<?php echo $class ?>-<?php echo $list['id']; ?>">
|
161 |
+
<?php echo $list['name']; ?>
|
162 |
+
</label>
|
163 |
+
|
164 |
+
<!-- If interest groups have been selected already, load them here -->
|
165 |
<?php
|
166 |
+
if ( in_array( $list['id'], $selected_list ) && $list_interest_groups ) {
|
167 |
+
YIKES_Inc_Easy_MailChimp_Process_Ajax::check_list_for_interest_groups( $list['id'], $class, true );
|
168 |
+
}
|
169 |
+
?>
|
170 |
+
|
171 |
+
<?php } ?>
|
172 |
+
<?php
|
173 |
+
} else {
|
174 |
+
echo '<p class="description no-lists-setup-notice"><strong>' . __( 'You have not setup any lists. Head over to MailChimp and setup your first list.', 'yikes-inc-easy-mailchimp-extender' ) . '</strong></p>';
|
175 |
+
}
|
176 |
+
?>
|
177 |
+
</div>
|
178 |
+
|
179 |
<!-- checkbox text label -->
|
180 |
+
<label class="optin-checkbox-label">
|
181 |
+
<strong><?php _e( 'Opt-in Checkbox Label:', 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
182 |
<input type="text" class="optin-checkbox-init[<?php echo $class; ?>][label] optin-checkbox-label-input" name="optin-checkbox-init[<?php echo $class; ?>][label]" value="<?php echo $checkbox_label; ?>">
|
183 |
</label>
|
184 |
<!-- prechecked? -->
|
185 |
+
<label class="optin-checkbox-label">
|
186 |
+
<strong><?php _e( 'Precheck Checkbox?', 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
187 |
<select id="optin-checkbox-init[<?php echo $class; ?>][precheck]" name="optin-checkbox-init[<?php echo $class; ?>][precheck]" class="optin-checkbox-init[<?php echo $class; ?>][precheck] checkbox-settings-list-dropdown">
|
188 |
+
<option value="true" <?php selected( $precheck_checkbox , 'true' ); ?>><?php _e( 'Yes', 'yikes-inc-easy-mailchimp-extender' ); ?></option>
|
189 |
+
<option value="false" <?php selected( $precheck_checkbox , 'false' ); ?>><?php _e( 'No', 'yikes-inc-easy-mailchimp-extender' ); ?></option>
|
190 |
</select>
|
191 |
</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
</p>
|
|
|
193 |
</li>
|
194 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
}
|
196 |
+
} else {
|
197 |
+
?>
|
198 |
+
<li>
|
199 |
+
<?php _e( 'Nothing is active.', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
200 |
+
</li>
|
201 |
+
<?php
|
202 |
+
}
|
203 |
?>
|
204 |
</ul>
|
205 |
|
admin/partials/menu/options-sections/recaptcha-settings.php
CHANGED
@@ -8,47 +8,46 @@
|
|
8 |
*
|
9 |
* @package WordPress
|
10 |
* @subpackage Component
|
11 |
-
*/
|
12 |
|
13 |
?>
|
14 |
|
15 |
-
<h3><span><?php _e( 'reCAPTCHA Settings'
|
16 |
|
17 |
<div class="inside">
|
18 |
-
|
19 |
<p>
|
20 |
-
<?php _e( 'reCAPTCHA is a free CAPTCHA service, from Google, that helps protect your site against spam, malicious registrations and other forms of attacks where computers try to disguise themselves as a human. reCAPTCHA will help prevent spammers and bots from submitting data through your MailChimp forms.'
|
21 |
</p>
|
22 |
-
|
23 |
<p>
|
24 |
-
<?php echo '<a href="https://www.google.com/recaptcha/admin" target="_blank" title="' . __( 'Get your reCAPTCHA API Key'
|
25 |
</p>
|
26 |
-
|
27 |
<!-- Settings Form -->
|
28 |
<form action='options.php' method='post'>
|
29 |
-
|
30 |
<?php settings_fields( 'yikes_inc_easy_mc_recaptcha_settings_page' ); ?>
|
31 |
-
|
32 |
-
<label for="yikes-mc-recaptcha-setting"
|
33 |
-
<input type="checkbox" name="yikes-mc-recaptcha-status" class="recaptcha-setting-checkbox" value="1" <?php checked( get_option( 'yikes-mc-recaptcha-status'
|
|
|
34 |
</label>
|
35 |
-
|
36 |
-
<label for="yikes-mc-recaptcha-api-key"><strong><?php _e( 'reCAPTCHA Site Key'
|
37 |
-
<input type="text" class="widefat recaptcha-setting-checkbox" name="yikes-mc-recaptcha-site-key" value="<?php echo esc_attr( get_option( 'yikes-mc-recaptcha-site-key'
|
38 |
</label>
|
39 |
-
|
40 |
-
<label for="yikes-mc-recaptcha-private-api-key"><strong><?php _e( 'reCAPTCHA Secret Key'
|
41 |
-
<input type="text" class="widefat recaptcha-setting-checkbox" name="yikes-mc-recaptcha-secret-key" id="" value="<?php echo esc_attr( get_option( 'yikes-mc-recaptcha-secret-key'
|
42 |
</label>
|
43 |
-
|
44 |
-
<a href="#" onclick="jQuery(this).next().slideToggle();return false;" class="recaptcha-preview-link"><?php _e( 'View reCAPTCHA Preview'
|
45 |
<span class="recaptcha-preview-container">
|
46 |
-
<img src="<?php echo YIKES_MC_URL . 'includes/images/recaptcha/recaptcha-demo.gif'; ?>" alt="<?php _e( 'reCAPTCHA Preview'
|
47 |
</span>
|
48 |
-
|
49 |
-
|
50 |
<?php submit_button(); ?>
|
51 |
-
|
52 |
</form>
|
53 |
-
|
54 |
-
</div> <!-- .inside -->
|
8 |
*
|
9 |
* @package WordPress
|
10 |
* @subpackage Component
|
11 |
+
*/
|
12 |
|
13 |
?>
|
14 |
|
15 |
+
<h3><span><?php _e( 'reCAPTCHA Settings', 'yikes-inc-easy-mailchimp-extender' ); ?></span></h3>
|
16 |
|
17 |
<div class="inside">
|
|
|
18 |
<p>
|
19 |
+
<?php _e( 'reCAPTCHA is a free CAPTCHA service, from Google, that helps protect your site against spam, malicious registrations and other forms of attacks where computers try to disguise themselves as a human. reCAPTCHA will help prevent spammers and bots from submitting data through your MailChimp forms.', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
20 |
</p>
|
21 |
+
|
22 |
<p>
|
23 |
+
<?php echo '<a href="https://www.google.com/recaptcha/admin" target="_blank" title="' . __( 'Get your reCAPTCHA API Key', 'yikes-inc-easy-mailchimp-extender' ) . '">' . __( 'Get Your reCAPTCHA API Key', 'yikes-inc-easy-mailchimp-extender' ) . '</a>'; ?>
|
24 |
</p>
|
25 |
+
|
26 |
<!-- Settings Form -->
|
27 |
<form action='options.php' method='post'>
|
28 |
+
|
29 |
<?php settings_fields( 'yikes_inc_easy_mc_recaptcha_settings_page' ); ?>
|
30 |
+
|
31 |
+
<label for="yikes-mc-recaptcha-setting">
|
32 |
+
<input type="checkbox" name="yikes-mc-recaptcha-status" class="recaptcha-setting-checkbox" value="1" <?php checked( get_option( 'yikes-mc-recaptcha-status', '' ) , '1' ); ?>>
|
33 |
+
<strong><?php _e( 'Enable reCAPTCHA Protection', 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
34 |
</label>
|
35 |
+
|
36 |
+
<label for="yikes-mc-recaptcha-api-key"><strong><?php _e( 'reCAPTCHA Site Key', 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
37 |
+
<input type="text" class="widefat recaptcha-setting-checkbox" name="yikes-mc-recaptcha-site-key" value="<?php echo esc_attr( get_option( 'yikes-mc-recaptcha-site-key', '' ) ); ?>">
|
38 |
</label>
|
39 |
+
|
40 |
+
<label for="yikes-mc-recaptcha-private-api-key"><strong><?php _e( 'reCAPTCHA Secret Key', 'yikes-inc-easy-mailchimp-extender' ); ?></strong>
|
41 |
+
<input type="text" class="widefat recaptcha-setting-checkbox" name="yikes-mc-recaptcha-secret-key" id="" value="<?php echo esc_attr( get_option( 'yikes-mc-recaptcha-secret-key', '' ) ); ?>">
|
42 |
</label>
|
43 |
+
|
44 |
+
<a href="#" onclick="jQuery(this).next().slideToggle();return false;" class="recaptcha-preview-link"><?php _e( 'View reCAPTCHA Preview', 'yikes-inc-easy-mailchimp-extender' ); ?></a>
|
45 |
<span class="recaptcha-preview-container">
|
46 |
+
<img src="<?php echo YIKES_MC_URL . 'includes/images/recaptcha/recaptcha-demo.gif'; ?>" alt="<?php _e( 'reCAPTCHA Preview', 'yikes-inc-easy-mailchimp-extender' ); ?>" class="recaptcha-demo-gif">
|
47 |
</span>
|
48 |
+
|
|
|
49 |
<?php submit_button(); ?>
|
50 |
+
|
51 |
</form>
|
52 |
+
|
53 |
+
</div> <!-- .inside -->
|
admin/partials/menu/options-sections/templates/integration-interest-groups.php
CHANGED
@@ -1,87 +1,108 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
$integration_options = get_option( 'optin-checkbox-init'
|
4 |
-
|
5 |
?>
|
6 |
-
<br />
|
7 |
-
<p class="description"><?php _e( 'It looks like we found some interest groups! Pre-select interest groups for this integration below.', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
8 |
-
<p class="description"><?php _e( '<strong>Note:</strong> the interest groups will not show up on the front end for your users to select from.', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
9 |
-
<?php
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
}
|
72 |
-
|
73 |
-
<option value="<?php echo $field_id; ?>" <?php echo $selected; ?>>
|
74 |
-
<?php echo $field['name']; ?>
|
75 |
-
</option>
|
76 |
-
<?php
|
77 |
-
}
|
78 |
-
?></select><?php
|
79 |
}
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
</
|
86 |
-
|
87 |
-
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* Template for rendering interest groups
|
4 |
+
*
|
5 |
+
* Page template that houses all of the interest groups for checkbox settings.
|
6 |
+
*
|
7 |
+
* @since 6.0.0
|
8 |
+
*
|
9 |
+
* @package WordPress
|
10 |
+
* @subpackage Component
|
11 |
+
*/
|
12 |
|
13 |
+
$integration_options = get_option( 'optin-checkbox-init', '' );
|
|
|
14 |
?>
|
|
|
|
|
|
|
|
|
15 |
|
16 |
+
<div class="integration-checkbox-interest-groups">
|
17 |
+
<span class="dashicons dashicons-arrow-down-alt2 yikes-mailchimp-toggle-ig"></span>
|
18 |
+
<h4 class="integreation-checkbox-interest-groups-header">Interest Groups</h4>
|
19 |
+
<br />
|
20 |
|
21 |
+
<div class="integration-checkbox-interest-groups-interior">
|
22 |
+
<p class="description"><?php _e( 'Select the interest groups users will be automatically added to. These will not be displayed on the form.', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
23 |
+
<?php
|
24 |
+
|
25 |
+
/*
|
26 |
+
* Loop over interest groups
|
27 |
+
*/
|
28 |
+
foreach ( $interest_groupings as $id => $interest_group ) {
|
29 |
+
|
30 |
+
$interest_group_type = isset( $interest_group['type'] ) ? $interest_group['type'] : '';
|
31 |
+
$interest_groups_fields = isset( $interest_group['items'] ) ? $interest_group['items'] : array();
|
32 |
+
$selected_interest_groups = isset( $integration_options[ $integration_type ]['interest-groups'] ) ? $integration_options[ $integration_type ]['interest-groups'] : array();
|
33 |
+
$selected_interest_groups = isset( $selected_interest_groups[$list_id] ) ? $selected_interest_groups[$list_id] : $selected_interest_groups;
|
34 |
+
?>
|
35 |
+
<section class="interest-group-section">
|
36 |
+
<strong class="interest-group-section-title"><?php echo ucwords( $interest_group['title'] ); ?></strong>
|
37 |
+
<?php
|
38 |
+
|
39 |
+
/*
|
40 |
+
* Loop over the interest group types, and return the appropriate type
|
41 |
+
*/
|
42 |
+
|
43 |
+
$checked = $selected = '';
|
44 |
+
switch ( $interest_group_type ) {
|
45 |
+
|
46 |
+
default:
|
47 |
+
case 'hidden':
|
48 |
+
case 'checkboxes':
|
49 |
+
foreach ( $interest_groups_fields as $field_id => $field ) {
|
50 |
+
if ( isset( $selected_interest_groups[ $id ] ) ) {
|
51 |
+
$checked = checked( true, in_array( $field_id, $selected_interest_groups[ $id ] ), false );
|
52 |
+
}
|
53 |
+
?>
|
54 |
+
<label>
|
55 |
+
<input type="checkbox"
|
56 |
+
name="optin-checkbox-init[<?php echo $integration_type; ?>][interest-groups][<?php echo $list_id; ?>][<?php echo $id; ?>][]"
|
57 |
+
value="<?php echo $field_id; ?>" <?php echo $checked; ?>>
|
58 |
+
<?php echo $field['name']; ?>
|
59 |
+
</label>
|
60 |
+
<?php
|
61 |
+
}
|
62 |
+
break;
|
63 |
+
|
64 |
+
case 'radio':
|
65 |
+
foreach ( $interest_groups_fields as $field_id => $field ) {
|
66 |
+
if ( isset( $selected_interest_groups[ $id ] ) ) {
|
67 |
+
$checked = checked( true, in_array( $field_id, $selected_interest_groups[ $id ] ), false );
|
68 |
+
}
|
69 |
+
?>
|
70 |
+
<label>
|
71 |
+
<input type="radio"
|
72 |
+
name="optin-checkbox-init[<?php echo $integration_type; ?>][interest-groups][<?php echo $list_id; ?>][<?php echo $id; ?>][]"
|
73 |
+
value="<?php echo $field_id; ?>" <?php echo $checked; ?>>
|
74 |
+
<?php echo $field['name']; ?>
|
75 |
+
</label>
|
76 |
+
<?php
|
77 |
+
}
|
78 |
+
|
79 |
+
break;
|
80 |
|
81 |
+
case 'dropdown':
|
82 |
+
if ( ! empty( $interest_groups_fields ) ) {
|
83 |
+
?>
|
84 |
+
<select name="optin-checkbox-init[<?php echo $integration_type; ?>][interest-groups][<?php echo $list_id; ?>][<?php echo $id; ?>][]">
|
85 |
+
<?php
|
86 |
+
foreach ( $interest_groups_fields as $field_id => $field ) {
|
87 |
+
if ( isset( $selected_interest_groups[ $id ] ) ) {
|
88 |
+
$selected = selected( true, in_array( $field_id, $selected_interest_groups[ $id ] ), false );
|
89 |
+
}
|
90 |
+
?>
|
91 |
+
<option value="<?php echo $field_id; ?>" <?php echo $selected; ?>>
|
92 |
+
<?php echo $field['name']; ?>
|
93 |
+
</option>
|
94 |
+
<?php
|
95 |
+
}
|
96 |
+
?>
|
97 |
+
</select>
|
98 |
+
<?php
|
99 |
}
|
100 |
+
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
}
|
102 |
+
?>
|
103 |
+
</section>
|
104 |
+
<?php
|
105 |
+
}
|
106 |
+
?>
|
107 |
+
</div>
|
108 |
+
</div>
|
|
admin/partials/welcome-page/welcome-sections/add-ons-section.php
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// enqueue add-ons css
|
3 |
-
wp_enqueue_style( 'yikes-inc-easy-mailchimp-extender-addons-styles', YIKES_MC_URL . 'admin/css/yikes-inc-easy-mailchimp-extender-addons.min.css', array(), '6.0.3.9', 'all' );
|
4 |
-
?>
|
5 |
-
<!-- we're just overriding the header size here -->
|
6 |
-
<style>
|
7 |
-
body .welcome-page-about-wrap .wrap img.yikes-mc-freddie-logo {
|
8 |
-
display: none;
|
9 |
-
}
|
10 |
-
body .welcome-page-about-wrap .wrap h1 {
|
11 |
-
margin: 1em 0;
|
12 |
-
font-size: 25px;
|
13 |
-
}
|
14 |
-
body .welcome-page-about-wrap .wrap .yikes-easy-mc-about-text {
|
15 |
-
margin: 0;
|
16 |
-
margin-top: 10px;
|
17 |
-
}
|
18 |
-
body .welcome-page-about-wrap .wrap #add-ons {
|
19 |
-
margin-top: 1em;
|
20 |
-
}
|
21 |
-
</style>
|
22 |
-
<?php
|
23 |
-
// include the add-ons here
|
24 |
-
include_once( YIKES_MC_PATH . 'admin/partials/menu/add-ons.php' );
|
25 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/partials/welcome-page/welcome-sections/getting-started-section.php
DELETED
@@ -1,63 +0,0 @@
|
|
1 |
-
<?php if( get_option( 'yikes-mc-api-validation' , 'invalid_api_key' ) == 'invalid_api_key' ) { ?>
|
2 |
-
<div class="about-description">
|
3 |
-
<?php printf( __( "Before you can create any forms, you first need to enter your MailChimp API key into our <a href='%s' title='Easy MailChimp Forms Settings'>settings page</a>" , 'yikes-inc-easy-mailchimp-extender' ), esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings§ion=general-settings' ) ) ); ?>
|
4 |
-
</div>
|
5 |
-
<?php } ?>
|
6 |
-
|
7 |
-
<div class="changelog">
|
8 |
-
|
9 |
-
<h3><?php _e( 'Creating Your First Form' , 'yikes-inc-easy-mailchimp-extender' ); ?></h3>
|
10 |
-
|
11 |
-
<div class="feature-section">
|
12 |
-
|
13 |
-
<img src="<?php echo YIKES_MC_URL . 'includes/images/Welcome_Page/create-first-optin-form.jpg'; ?>" alt="<?php _e( 'Create first optin form screenshot', 'yikes-inc-easy-mailchimp-extender' ); ?>" class="yikes-easy-mc-feature-image">
|
14 |
-
|
15 |
-
<h4><a href="<?php echo esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp' ) ); ?>" title="<?php _e( 'Manage Forms' , 'yikes-inc-easy-mailchimp-extender' ); ?>">Easy MailChimp → <?php _e( 'Forms', 'yikes-inc-easy-mailchimp-extender' ); ?></a></h4>
|
16 |
-
<p><?php _e( "To start collecting email addresses and building your mailing list, you need to create your first form. You can create as many forms as you like and assign each form to one of your lists.", 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
17 |
-
|
18 |
-
<p> </p>
|
19 |
-
|
20 |
-
<h4><?php _e( 'Additional Options' , 'yikes-inc-easy-mailchimp-extender' ); ?></h4>
|
21 |
-
<p><?php _e( "For each form, you can choose the fields you want added to it and customize the success and error messages returned by MailChimp.", 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
22 |
-
|
23 |
-
</div>
|
24 |
-
|
25 |
-
<div class="feature-section">
|
26 |
-
|
27 |
-
<img src="<?php echo YIKES_MC_URL . 'includes/images/Welcome_Page/optin-settings.png'; ?>" alt="<?php _e( 'Optin settings screenshot', 'yikes-inc-easy-mailchimp-extender' ); ?>" class="yikes-easy-mc-feature-image yikes-easy-mc-feature-image-left">
|
28 |
-
|
29 |
-
<h4><?php _e( 'Customize the Form' , 'yikes-inc-easy-mailchimp-extender' ); ?></h4>
|
30 |
-
<p><?php _e( "Once created, you can customize the form. This includes editing the success and error messages displayed to the user, choosing which fields or interest groups are displayed, adding CSS classes to fields, assigning default values amp; placeholders and tons more!", 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
31 |
-
|
32 |
-
<p> </p>
|
33 |
-
|
34 |
-
<p><?php _e( "Quickly and easily switch which list the form is associated with, toggle single or double optin, whether the welcome email should be sent, toggle AJAX form submissions and more. Get customizing!", 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
35 |
-
</div>
|
36 |
-
<div class="feature-section">
|
37 |
-
|
38 |
-
<img src="<?php echo YIKES_MC_URL . 'includes/images/Welcome_Page/add-field-to-page.png'; ?>" alt="<?php _e( 'Add field to form screenshot', 'yikes-inc-easy-mailchimp-extender' ); ?>" class="yikes-easy-mc-feature-image">
|
39 |
-
|
40 |
-
<h4><?php _e( 'Add Form to Page/Post' , 'yikes-inc-easy-mailchimp-extender' ); ?></h4>
|
41 |
-
<p><?php _e( "When you're ready to add your MailChimp opt-in form to a page or post, you can click on the small MailChimp button in the content editor toolbar.", 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
42 |
-
|
43 |
-
<p> </p>
|
44 |
-
|
45 |
-
<h4><?php _e( 'Add Form to Widget' , 'yikes-inc-easy-mailchimp-extender' ); ?></h4>
|
46 |
-
<p><?php _e( "We've created a MailChimp widget to easily add forms to any sidebar or widgetized area on your site. The widget allows you to select from any created forms.", 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
47 |
-
</div>
|
48 |
-
|
49 |
-
<div class="feature-section">
|
50 |
-
<h3><span class="dashicons dashicons-format-status need-support-icon"></span> <?php _e( "Need Support?" , 'yikes-inc-easy-mailchimp-extender' ); ?></h3>
|
51 |
-
|
52 |
-
<h4><?php _e( 'Knowledge Base' , 'yikes-inc-easy-mailchimp-extender' ); ?></h4>
|
53 |
-
<p><?php printf( __( 'For full plugin documentation, visit our <a href="%s" title="Knowledge Base" target="_blank">Knowledge Base</a> where we have step-by-step guides and troubleshooting help..' , 'yikes-inc-easy-mailchimp-extender' ), esc_url_raw( 'https://yikesplugins.com/support/knowledge-base/product/easy-forms-for-mailchimp/' ) ); ?>
|
54 |
-
|
55 |
-
<h4><?php _e( 'Free Support' , 'yikes-inc-easy-mailchimp-extender' ); ?></h4>
|
56 |
-
<p><?php _e( "If you need help using the free version of the plugin, please post your questions to our support forum on the WordPress Plugin Directory.", 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
57 |
-
<p><strong><a href="https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender" title="<?php esc_attr_e( 'WordPress Plugin Directory' , 'yikes-inc-easy-mailchimp-extender' ); ?>"><?php _e( 'Easy Forms for MailChimp Free Support Forum' , 'yikes-inc-easy-mailchimp-extender' ); ?></a></strong></p>
|
58 |
-
|
59 |
-
<h4><?php _e( 'Priority Support' , 'yikes-inc-easy-mailchimp-extender' ); ?></h4>
|
60 |
-
<p><?php _e( "If you want immediate support, please consider purchasing an add-on or Unlimited License. Not only will you get 1 full year of automatic updates and priority support, you will enjoy all of the features packed into our add-ons not available in the free version." , 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
61 |
-
</div>
|
62 |
-
|
63 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/partials/welcome-page/welcome-sections/knowledge-base-section.php
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Welcome Page - Knowledge Base Links
|
4 |
-
*/
|
5 |
-
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
6 |
-
?>
|
7 |
-
<div class="wrap about-wrap">
|
8 |
-
|
9 |
-
<div class="feature-section">
|
10 |
-
|
11 |
-
<div id="kb-container">
|
12 |
-
<?php include_once( YIKES_MC_PATH . 'admin/partials/helpers/knowledge-base-article-links.php' ); ?>
|
13 |
-
</div>
|
14 |
-
|
15 |
-
</div>
|
16 |
-
|
17 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/partials/welcome-page/welcome-sections/whats-new-section.php
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
<div class="wrap about-wrap whats-new-wrap">
|
2 |
-
|
3 |
-
<div class="feature-section">
|
4 |
-
|
5 |
-
<h2><?php _e( 'MailChimp API 3.0' , 'yikes-inc-easy-mailchimp-extender' ); ?></h2>
|
6 |
-
|
7 |
-
<img src="<?php echo YIKES_MC_URL . 'includes/images/Welcome_Page/api-v3-animated.png'; ?>" alt="<?php _e( 'MailChimp API 3.0', 'yikes-inc-easy-mailchimp-extender' ); ?>" class="yikes-easy-mc-feature-image yikes-easy-mc-feature-v3-image yikes-easy-mc-whats-new-section-image">
|
8 |
-
|
9 |
-
<p><?php _e( "In version 6.3 of Easy Forms for MailChimp we've upgraded to version 3 of the MailChimp API.", 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
10 |
-
|
11 |
-
<p><?php _e( "Upgrading to version 3 will allow us to build bigger and better features for the plugin well into the future!", 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
12 |
-
</div>
|
13 |
-
|
14 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/partials/welcome-page/welcome.php
DELETED
@@ -1,71 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Navigation tabs
|
5 |
-
*
|
6 |
-
* @access public
|
7 |
-
* @since 1.9
|
8 |
-
* @return void
|
9 |
-
*/
|
10 |
-
function yikes_easy_mc_welcome_tabs() {
|
11 |
-
$section = isset( $_GET['section'] ) ? $_GET['section'] : 'getting-started';
|
12 |
-
?>
|
13 |
-
<h2 class="nav-tab-wrapper welcome-page-tabs">
|
14 |
-
<a class="nav-tab <?php echo $section == 'getting-started' ? 'nav-tab-active' : ''; ?>" href="<?php echo esc_url_raw( admin_url( add_query_arg( array( 'page' => 'yikes-mailchimp-welcome' , 'section' => 'getting-started' ), 'admin.php' ) ) ); ?>">
|
15 |
-
<span class="dashicons dashicons-admin-home"></span> <?php _e( 'Getting Started', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
16 |
-
</a>
|
17 |
-
<a class="nav-tab <?php echo $section == 'whats-new' ? 'nav-tab-active' : ''; ?>" href="<?php echo esc_url_raw( admin_url( add_query_arg( array( 'page' => 'yikes-mailchimp-welcome' , 'section' => 'whats-new' ), 'admin.php' ) ) ); ?>">
|
18 |
-
<span class="dashicons dashicons-warning"></span> <?php _e( "What's New", 'yikes-inc-easy-mailchimp-extender' ); ?>
|
19 |
-
</a>
|
20 |
-
<a class="nav-tab <?php echo $section == 'add-ons' ? 'nav-tab-active' : ''; ?>" href="<?php echo esc_url_raw( admin_url( add_query_arg( array( 'page' => 'yikes-mailchimp-welcome' , 'section' => 'add-ons' ), 'admin.php' ) ) ); ?>">
|
21 |
-
<span class="dashicons dashicons-admin-plugins"></span> <?php _e( "Add-Ons", 'yikes-inc-easy-mailchimp-extender' ); ?>
|
22 |
-
</a>
|
23 |
-
<a class="nav-tab <?php echo $section == 'knowledge-base' ? 'nav-tab-active' : ''; ?>" href="<?php echo esc_url_raw( admin_url( add_query_arg( array( 'page' => 'yikes-mailchimp-welcome' , 'section' => 'knowledge-base' ), 'admin.php' ) ) ); ?>">
|
24 |
-
<span class="dashicons dashicons-welcome-learn-more"></span> <?php _e( 'Knowledge Base', 'yikes-inc-easy-mailchimp-extender' ); ?>
|
25 |
-
</a>
|
26 |
-
</h2>
|
27 |
-
<?php
|
28 |
-
}
|
29 |
-
|
30 |
-
function yikes_easy_mc_welcome_body() {
|
31 |
-
|
32 |
-
$allowed_sections = array(
|
33 |
-
'add-ons' => true,
|
34 |
-
'getting-started' => true,
|
35 |
-
'knowledge-base' => true,
|
36 |
-
'whats-new' => true
|
37 |
-
);
|
38 |
-
$section = isset( $_GET['section'], $allowed_sections[ $_GET['section'] ] ) ? $_GET['section'] : 'getting-started';
|
39 |
-
include_once( plugin_dir_path( dirname( __FILE__ ) ) . '/welcome-page/welcome-sections/' . $section . '-section.php' );
|
40 |
-
}
|
41 |
-
|
42 |
-
// Display custom PHP warning if <= 5.3
|
43 |
-
do_action( 'yikes_easy_mc_php_warning' );
|
44 |
-
?>
|
45 |
-
<div class="wrap about-wrap welcome-page-about-wrap">
|
46 |
-
|
47 |
-
<div id="yikes-mailchimp-logo"></div>
|
48 |
-
|
49 |
-
<h2 class="welcome-title">
|
50 |
-
Easy Forms for MailChimp | <?php echo __( 'MailChimp Done Right' , 'yikes-inc-easy-mailchimp-extender' ); ?>
|
51 |
-
</h2>
|
52 |
-
|
53 |
-
<p class="about-text">
|
54 |
-
<?php
|
55 |
-
// check if this is a fresh install
|
56 |
-
if( get_option( 'yikes_easy_mailchimp_activation_date', strtotime( 'now' ) ) == strtotime( 'now' ) ) {
|
57 |
-
echo sprintf( __( 'Welcome to the most powerful MailChimp integration for WordPress. Easy Forms for MailChimp v%s is ready to help take your mailing lists to the next level!' , 'yikes-inc-easy-mailchimp-extender' ) , $this->version );
|
58 |
-
} else {
|
59 |
-
// else thank you for updating :)
|
60 |
-
echo sprintf( __( 'Thank you for updating to the latest version! Easy Forms for MailChimp v%s is ready to help take your mailing lists to the next level!' , 'yikes-inc-easy-mailchimp-extender' ) , $this->version );
|
61 |
-
}
|
62 |
-
?>
|
63 |
-
</p>
|
64 |
-
|
65 |
-
<?php
|
66 |
-
// Display our tabs
|
67 |
-
yikes_easy_mc_welcome_tabs();
|
68 |
-
yikes_easy_mc_welcome_body();
|
69 |
-
?>
|
70 |
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
<?php
|
2 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
3 |
+
|
4 |
+
if ( is_plugin_active( 'gutenberg/gutenberg.php' ) ) {
|
5 |
+
$YIKES_Easy_Forms_Blocks = new YIKES_Easy_Forms_Blocks();
|
6 |
+
}
|
7 |
+
|
8 |
+
/****************************************/
|
9 |
+
/** Gutenberg **/
|
10 |
+
/****************************************/
|
11 |
+
|
12 |
+
class YIKES_Easy_Forms_Blocks {
|
13 |
+
|
14 |
+
public function __construct() {
|
15 |
+
|
16 |
+
// Admin
|
17 |
+
add_action( 'wp_ajax_yikes_get_forms', array( $this, 'get_forms' ) );
|
18 |
+
add_action( 'wp_ajax_yikes_get_form', array( $this, 'get_form' ) );
|
19 |
+
add_action( 'wp_ajax_yikes_get_recaptcha', array( $this, 'get_recaptcha' ) );
|
20 |
+
add_action( 'enqueue_block_editor_assets', array( $this, 'gutenberg_scripts' ) );
|
21 |
+
|
22 |
+
// Front end
|
23 |
+
add_action( 'init', array( $this, 'register_easy_forms_block' ) );
|
24 |
+
}
|
25 |
+
|
26 |
+
public function gutenberg_scripts() {
|
27 |
+
|
28 |
+
// Localize the calendar
|
29 |
+
global $wp_locale;
|
30 |
+
$datepicker_options = array(
|
31 |
+
'rtl' => $wp_locale->is_rtl(),
|
32 |
+
'month_names' => array_values( $wp_locale->month ),
|
33 |
+
'month_names_short' => array_values( $wp_locale->month_abbrev ),
|
34 |
+
'day_names' => array_values( $wp_locale->weekday ),
|
35 |
+
'day_names_short' => array_values( $wp_locale->weekday_abbrev ),
|
36 |
+
'day_names_min' => array_values( $wp_locale->weekday_initial ),
|
37 |
+
'first_day' => get_option( 'start_of_week' ),
|
38 |
+
'change_month' => false,
|
39 |
+
'change_year' => false,
|
40 |
+
'min_date' => null,
|
41 |
+
'max_date' => null,
|
42 |
+
'default_date' => null,
|
43 |
+
'number_of_months' => 1,
|
44 |
+
'show_other_months' => false,
|
45 |
+
'select_other_months' => null,
|
46 |
+
'show_anim' => '',
|
47 |
+
'show_button_panel' => false,
|
48 |
+
);
|
49 |
+
|
50 |
+
wp_register_script( 'yikes-datepicker-scripts', YIKES_MC_URL . 'public/js/yikes-datepicker-scripts.min.js', array( 'jquery-ui-datepicker' ), YIKES_MC_VERSION, false );
|
51 |
+
wp_localize_script( 'yikes-datepicker-scripts', 'datepicker_settings', $datepicker_options );
|
52 |
+
wp_enqueue_script( 'yikes-datepicker-scripts' );
|
53 |
+
wp_enqueue_style( 'jquery-datepicker-styles' , YIKES_MC_URL . 'public/css/jquery-ui.min.css' );
|
54 |
+
wp_enqueue_style( 'yikes-datepicker-styles' , YIKES_MC_URL . 'public/css/yikes-datepicker-styles.min.css' );
|
55 |
+
|
56 |
+
wp_register_script( 'yikes-easy-forms-blocks', YIKES_MC_URL . 'blocks/release/blocks.js', array( 'wp-i18n', 'wp-element', 'wp-blocks', 'wp-components', 'wp-api' ), filemtime( plugin_dir_path( __FILE__ ) . 'release/blocks.js' ) );
|
57 |
+
wp_localize_script( 'yikes-easy-forms-blocks', 'ez_forms_gb_data', array(
|
58 |
+
'ajax_url' => esc_url_raw( admin_url( 'admin-ajax.php' ) ),
|
59 |
+
'fetch_form_nonce' => wp_create_nonce( 'fetch_form_nonce' ),
|
60 |
+
'fetch_forms_nonce' => wp_create_nonce( 'fetch_forms_nonce' ),
|
61 |
+
'fetch_recaptcha_nonce' => wp_create_nonce( 'fetch_recaptcha_nonce' ),
|
62 |
+
) );
|
63 |
+
wp_enqueue_script( 'yikes-easy-forms-blocks' );
|
64 |
+
|
65 |
+
wp_enqueue_script( 'yikes-google-recaptcha', 'https://www.google.com/recaptcha/api.js', array( 'jquery' ) );
|
66 |
+
|
67 |
+
if ( ! defined( 'YIKES_MAILCHIMP_EXCLUDE_STYLES' ) ) {
|
68 |
+
wp_enqueue_style( 'yikes-inc-easy-mailchimp-public-styles', YIKES_MC_URL . 'public/css/yikes-inc-easy-mailchimp-extender-public.min.css' );
|
69 |
+
}
|
70 |
+
|
71 |
+
// wp_enqueue_style( 'yikes-easy-forms-block-admin-css', YIKES_MC_URL . 'blocks/release/blocks.css' );
|
72 |
+
}
|
73 |
+
|
74 |
+
public function get_forms() {
|
75 |
+
|
76 |
+
// Verify Nonce
|
77 |
+
if ( ! check_ajax_referer( 'fetch_forms_nonce', 'nonce', false ) ) {
|
78 |
+
wp_send_json_error( '1' );
|
79 |
+
}
|
80 |
+
|
81 |
+
// Get all of our forms
|
82 |
+
$form_interface = yikes_easy_mailchimp_extender_get_form_interface();
|
83 |
+
|
84 |
+
$all_forms = $form_interface->get_all_forms();
|
85 |
+
|
86 |
+
wp_send_json_success( array_values( $all_forms ) );
|
87 |
+
}
|
88 |
+
|
89 |
+
public function get_form() {
|
90 |
+
|
91 |
+
// Verify Nonce
|
92 |
+
if ( ! check_ajax_referer( 'fetch_form_nonce', 'nonce', false ) ) {
|
93 |
+
wp_send_json_error( '1' );
|
94 |
+
}
|
95 |
+
|
96 |
+
$form_id = isset( $_POST['form_id'] ) ? $_POST['form_id'] : '';
|
97 |
+
|
98 |
+
if ( empty( $form_id ) ) {
|
99 |
+
wp_send_json_error( '1' );
|
100 |
+
}
|
101 |
+
|
102 |
+
$form_interface = yikes_easy_mailchimp_extender_get_form_interface();
|
103 |
+
|
104 |
+
$form = $form_interface->get_form( $form_id );
|
105 |
+
|
106 |
+
wp_send_json_success( $form );
|
107 |
+
}
|
108 |
+
|
109 |
+
public function get_recaptcha() {
|
110 |
+
|
111 |
+
// Verify Nonce
|
112 |
+
if ( ! check_ajax_referer( 'fetch_recaptcha_nonce', 'nonce', false ) ) {
|
113 |
+
wp_send_json_error( '1' );
|
114 |
+
}
|
115 |
+
|
116 |
+
if ( get_option( 'yikes-mc-recaptcha-status' , '' ) == '1' ) {
|
117 |
+
|
118 |
+
$site_key = get_option( 'yikes-mc-recaptcha-site-key' , '' );
|
119 |
+
$secret_key = get_option( 'yikes-mc-recaptcha-secret-key' , '' );
|
120 |
+
|
121 |
+
// If either of the Private the Secret key is left blank, we should display an error back to the user
|
122 |
+
if ( empty( $site_key ) || empty( $secret_key ) ) {
|
123 |
+
wp_send_json_error();
|
124 |
+
}
|
125 |
+
|
126 |
+
$locale = get_locale();
|
127 |
+
$locale_a = explode( '_', $locale );
|
128 |
+
$locale = isset( $locale_a[0] ) ? $locale_a[0] : $locale;
|
129 |
+
|
130 |
+
wp_send_json_success( array( 'site_key' => $site_key, 'secret_key' => $secret_key, 'locale' => $locale ) );
|
131 |
+
}
|
132 |
+
|
133 |
+
wp_send_json_error();
|
134 |
+
}
|
135 |
+
|
136 |
+
public function register_easy_forms_block() {
|
137 |
+
|
138 |
+
// Hook server side rendering into render callback
|
139 |
+
register_block_type( 'yikes-inc-easy-forms/easy-forms-block', [
|
140 |
+
'render_callback' => array( $this, 'render_easy_forms_block' ),
|
141 |
+
] );
|
142 |
+
}
|
143 |
+
|
144 |
+
public function render_easy_forms_block( $attributes ) {
|
145 |
+
|
146 |
+
// Prevent this from being run when in the admin/saving the block.
|
147 |
+
// I'm not sure why this would run when we're saving a block but it is definitely being called.
|
148 |
+
if ( is_admin() || isset( $_POST['status'] ) && $_POST['status'] === 'publish' ) {
|
149 |
+
return null;
|
150 |
+
}
|
151 |
+
|
152 |
+
$shortcode_attributes = array(
|
153 |
+
'form' => $attributes['form_id'],
|
154 |
+
'submit' => isset( $attributes['submit_button_text'] ) && ! empty( $attributes['submit_button_text'] ) ? $attributes['submit_button_text'] : '',
|
155 |
+
'title' => isset( $attributes['show_title'] ) && $attributes['show_title'] === true ? '1' : '0',
|
156 |
+
'custom_title' => isset( $attributes['form_title'] ) ? $attributes['form_title'] : '',
|
157 |
+
'description' => isset( $attributes['show_description'] ) && $attributes['show_description'] === true ? '1' : '0',
|
158 |
+
'custom_description' => isset( $attributes['form_description'] ) ? $attributes['form_description'] : '',
|
159 |
+
'ajax' => isset( $attributes['is_ajax'] ) && $attributes['is_ajax'] === true ? '1' : '0',
|
160 |
+
'recaptcha' => isset( $attributes['recaptcha'] ) && $attributes['recaptcha'] === false ? '0' : '',
|
161 |
+
'recaptcha_lang' => isset( $attributes['recaptcha_lang'] ) ? $attributes['recaptcha_lang'] : '',
|
162 |
+
'recaptcha_type' => isset( $attributes['recaptcha_type'] ) ? $attributes['recaptcha_type'] : '',
|
163 |
+
'recaptcha_theme' => isset( $attributes['recaptcha_theme'] ) ? $attributes['recaptcha_theme'] : '',
|
164 |
+
'recaptcha_size' => isset( $attributes['recaptcha_size'] ) ? $attributes['recaptcha_size'] : '',
|
165 |
+
'recaptcha_data_callback' => isset( $attributes['recaptcha_verify_callback'] ) ? $attributes['recaptcha_verify_callback'] : '',
|
166 |
+
'recaptcha_expired_callback' => isset( $attributes['recaptcha_expired_callback'] ) ? $attributes['recaptcha_expired_callback'] : '',
|
167 |
+
'inline' => isset( $attributes['inline'] ) && $attributes['inline'] === true ? '1' : '0',
|
168 |
+
);
|
169 |
+
|
170 |
+
return process_mailchimp_shortcode( $shortcode_attributes );
|
171 |
+
}
|
172 |
+
}
|
blocks/development/form/css/blocks.scss
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.wp-block-yikes-inc-easy-forms-easy-forms-block {
|
2 |
+
|
3 |
+
textarea.yikes-mailchimp-submit-button-span-text {
|
4 |
+
background: none;
|
5 |
+
text-align: center;
|
6 |
+
}
|
7 |
+
|
8 |
+
select {
|
9 |
+
height: auto;
|
10 |
+
}
|
11 |
+
}
|
blocks/development/form/js/block-form.js
ADDED
@@ -0,0 +1,211 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import yikes_easy_forms_fetch_form from './get-form.js'
|
2 |
+
|
3 |
+
import MailChimpForms from './class.MailChimpForms.js';
|
4 |
+
|
5 |
+
import '../css/blocks.scss'
|
6 |
+
|
7 |
+
require( './enable-submit-button-editing.js' );
|
8 |
+
|
9 |
+
// Get just the __() localization function from wp.i18n
|
10 |
+
const { __ } = wp.i18n;
|
11 |
+
|
12 |
+
// Get registerBlockType and other methods from wp.blocks
|
13 |
+
const { registerBlockType } = wp.blocks;
|
14 |
+
|
15 |
+
const edit_easy_form = function( props ) {
|
16 |
+
|
17 |
+
const onChangeForm = ( event ) => {
|
18 |
+
props.setAttributes( { form_id: event.target.value } );
|
19 |
+
|
20 |
+
if ( event.target.value.length > 0 ) {
|
21 |
+
yikes_easy_forms_fetch_form( event.target.value ).then( function( form ) {
|
22 |
+
props.setAttributes( { form: form.data } );
|
23 |
+
props.setAttributes( { form_description: form.data.form_description } );
|
24 |
+
props.setAttributes( { form_title: form.data.form_name } );
|
25 |
+
props.setAttributes( { is_ajax: form.data.submission_settings.ajax === '1' } );
|
26 |
+
props.setAttributes( { submit_button_text: form.data.form_settings['yikes-easy-mc-submit-button-text'] } );
|
27 |
+
});
|
28 |
+
}
|
29 |
+
};
|
30 |
+
|
31 |
+
const onChangeDescription = ( value ) => {
|
32 |
+
props.setAttributes( { form_description: value } );
|
33 |
+
};
|
34 |
+
|
35 |
+
const toggleShowDescription = ( event ) => {
|
36 |
+
props.setAttributes( { show_description: !! event.target.checked } );
|
37 |
+
}
|
38 |
+
|
39 |
+
const toggleInline = ( event ) => {
|
40 |
+
props.setAttributes( { inline: !! event.target.checked } );
|
41 |
+
}
|
42 |
+
|
43 |
+
const toggleShowTitle = ( event ) => {
|
44 |
+
props.setAttributes( { show_title: !! event.target.checked } );
|
45 |
+
}
|
46 |
+
|
47 |
+
const toggleFormTitle = ( value ) => {
|
48 |
+
props.setAttributes( { form_title: value } );
|
49 |
+
}
|
50 |
+
|
51 |
+
const toggleIsAjax = ( event ) => {
|
52 |
+
props.setAttributes( { is_ajax: !! event.target.checked } );
|
53 |
+
}
|
54 |
+
|
55 |
+
const toggleRecaptcha = ( event ) => {
|
56 |
+
props.setAttributes( { recaptcha: !! event.target.checked } );
|
57 |
+
}
|
58 |
+
|
59 |
+
const toggleRecaptchaTheme = ( value ) => {
|
60 |
+
props.setAttributes( { recaptcha_theme: value } );
|
61 |
+
}
|
62 |
+
|
63 |
+
const toggleRecaptchaLang = ( value ) => {
|
64 |
+
props.setAttributes( { recaptcha_lang: value } );
|
65 |
+
}
|
66 |
+
|
67 |
+
const toggleRecaptchaType = ( value ) => {
|
68 |
+
props.setAttributes( { recaptcha_type: value } );
|
69 |
+
}
|
70 |
+
|
71 |
+
const toggleRecaptchaSize = ( value ) => {
|
72 |
+
props.setAttributes( { recaptcha_size: value } );
|
73 |
+
}
|
74 |
+
|
75 |
+
const toggleRecaptchaVerifyCallback = ( value ) => {
|
76 |
+
props.setAttributes( { recaptcha_verify_callback: value } );
|
77 |
+
}
|
78 |
+
|
79 |
+
const toggleRecaptchaExpiredCallback = ( value ) => {
|
80 |
+
props.setAttributes( { recaptcha_expired_callback: value } );
|
81 |
+
}
|
82 |
+
|
83 |
+
const toggleSubmitButtonText = ( value ) => {
|
84 |
+
props.setAttributes( { submit_button_text: value })
|
85 |
+
}
|
86 |
+
|
87 |
+
return (
|
88 |
+
<MailChimpForms
|
89 |
+
className={ props.className }
|
90 |
+
onChangeForm={ onChangeForm }
|
91 |
+
formID={ props.attributes.form_id }
|
92 |
+
formData={ props.attributes.form }
|
93 |
+
onChangeDescription={ onChangeDescription }
|
94 |
+
descriptionValue={ props.attributes.form_description }
|
95 |
+
showDescription={ props.attributes.show_description }
|
96 |
+
toggleShowDescription={ toggleShowDescription }
|
97 |
+
focus={ !! props.focus }
|
98 |
+
inline={ props.attributes.inline }
|
99 |
+
toggleInline={ toggleInline }
|
100 |
+
formTitle={ props.attributes.form_title }
|
101 |
+
toggleFormTitle={ toggleFormTitle }
|
102 |
+
showTitle={ props.attributes.show_title }
|
103 |
+
toggleShowTitle={ toggleShowTitle }
|
104 |
+
isAjax={ props.attributes.is_ajax }
|
105 |
+
toggleIsAjax={ toggleIsAjax }
|
106 |
+
recaptcha={ props.attributes.recaptcha }
|
107 |
+
toggleRecaptcha={ toggleRecaptcha }
|
108 |
+
recaptchaTheme={ props.attributes.recaptcha_theme }
|
109 |
+
toggleRecaptchaTheme={ toggleRecaptchaTheme }
|
110 |
+
recaptchaLang={ props.attributes.recaptcha_lang }
|
111 |
+
toggleRecaptchaLang={ toggleRecaptchaLang }
|
112 |
+
recaptchaType={ props.attributes.recaptcha_type }
|
113 |
+
toggleRecaptchaType={ toggleRecaptchaType }
|
114 |
+
recaptchaSize={ props.attributes.recaptcha_size }
|
115 |
+
toggleRecaptchaSize={ toggleRecaptchaSize }
|
116 |
+
recaptchaVerifyCallback={ props.attributes.recaptcha_verify_callback }
|
117 |
+
toggleRecaptchaVerifyCallback={ toggleRecaptchaVerifyCallback }
|
118 |
+
recaptchaExpiredCallback={ props.attributes.recaptcha_expired_callback }
|
119 |
+
toggleRecaptchaExpiredCallback={ toggleRecaptchaExpiredCallback }
|
120 |
+
submitButtonText={ props.attributes.submit_button_text }
|
121 |
+
toggleSubmitButtonText={ toggleSubmitButtonText }
|
122 |
+
/>
|
123 |
+
);
|
124 |
+
|
125 |
+
}
|
126 |
+
|
127 |
+
const save_easy_form = function( props ) {
|
128 |
+
return null;
|
129 |
+
}
|
130 |
+
|
131 |
+
const settings = {
|
132 |
+
title : __( 'Easy Forms for MailChimp' ),
|
133 |
+
category : 'common', // Options include "common", "formatting", "layout", "widgets" and "embed."
|
134 |
+
icon : 'email-alt',
|
135 |
+
keywords : ['mailchimp', 'easy forms for mailchimp', 'yikes'],
|
136 |
+
attributes: {
|
137 |
+
form_id: {
|
138 |
+
type: 'number'
|
139 |
+
},
|
140 |
+
form: {
|
141 |
+
type: 'object'
|
142 |
+
},
|
143 |
+
form_description: {
|
144 |
+
type: 'string',
|
145 |
+
default: ''
|
146 |
+
},
|
147 |
+
show_description: {
|
148 |
+
type: 'boolean',
|
149 |
+
default: false
|
150 |
+
},
|
151 |
+
inline: {
|
152 |
+
type: 'boolean',
|
153 |
+
default: false
|
154 |
+
},
|
155 |
+
show_title: {
|
156 |
+
type: 'boolean',
|
157 |
+
default: false
|
158 |
+
},
|
159 |
+
form_title: {
|
160 |
+
type: 'string',
|
161 |
+
default: ''
|
162 |
+
},
|
163 |
+
is_ajax: {
|
164 |
+
type: 'boolean',
|
165 |
+
default: true,
|
166 |
+
},
|
167 |
+
recaptcha: {
|
168 |
+
type: 'boolean',
|
169 |
+
default: true,
|
170 |
+
},
|
171 |
+
recaptcha_theme: {
|
172 |
+
type: 'string',
|
173 |
+
default: 'light'
|
174 |
+
},
|
175 |
+
recaptcha_lang: {
|
176 |
+
type: 'string',
|
177 |
+
default: ''
|
178 |
+
},
|
179 |
+
recaptcha_type: {
|
180 |
+
type: 'string',
|
181 |
+
default: 'image'
|
182 |
+
},
|
183 |
+
recaptcha_size: {
|
184 |
+
type: 'string',
|
185 |
+
default: 'normal'
|
186 |
+
},
|
187 |
+
recaptcha_verify_callback: {
|
188 |
+
type: 'string',
|
189 |
+
default: ''
|
190 |
+
},
|
191 |
+
recaptcha_expired_callback: {
|
192 |
+
type: 'string',
|
193 |
+
default: ''
|
194 |
+
},
|
195 |
+
submit_button_text: {
|
196 |
+
type: 'string',
|
197 |
+
default: ''
|
198 |
+
}
|
199 |
+
},
|
200 |
+
edit: edit_easy_form,
|
201 |
+
save: save_easy_form,
|
202 |
+
}
|
203 |
+
|
204 |
+
const EasyFormsBlock = registerBlockType(
|
205 |
+
|
206 |
+
// Name
|
207 |
+
'yikes-inc-easy-forms/easy-forms-block',
|
208 |
+
|
209 |
+
// Settings
|
210 |
+
settings
|
211 |
+
);
|
blocks/development/form/js/class.MailChimpForms.js
ADDED
@@ -0,0 +1,850 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
|
8 |
+
import countries from './countries.js';
|
9 |
+
|
10 |
+
import states from './states.js';
|
11 |
+
|
12 |
+
import locales from './locales.js';
|
13 |
+
|
14 |
+
// Get functions / blocks / components
|
15 |
+
const Recaptcha = require( 'react-recaptcha' );
|
16 |
+
const { __ } = wp.i18n;
|
17 |
+
const { registerBlockType, RichText, InspectorControls, PlainText } = wp.blocks;
|
18 |
+
const { Spinner, TextControl, PanelBody, PanelRow, FormToggle, SelectControl } = wp.components;
|
19 |
+
const { Component } = wp.element;
|
20 |
+
|
21 |
+
export default class MailChimpForms extends Component {
|
22 |
+
constructor( props ) {
|
23 |
+
super( ...arguments );
|
24 |
+
this.state = {
|
25 |
+
forms : [],
|
26 |
+
recaptcha_data: {
|
27 |
+
data: {},
|
28 |
+
success: false
|
29 |
+
}
|
30 |
+
}
|
31 |
+
|
32 |
+
this.address_fields = {
|
33 |
+
'addr1': 'Address 1',
|
34 |
+
'addr2': 'Address 2',
|
35 |
+
'city' : 'City',
|
36 |
+
'state': 'State',
|
37 |
+
'zip' : 'Zip',
|
38 |
+
'country': 'Country'
|
39 |
+
}
|
40 |
+
|
41 |
+
yikes_easy_forms_fetch_forms()
|
42 |
+
.then( forms => {
|
43 |
+
return this.setState( { forms: forms.data } );
|
44 |
+
});
|
45 |
+
|
46 |
+
get_recaptcha()
|
47 |
+
.then( recaptcha_data => {
|
48 |
+
return this.setState( { recaptcha_data: recaptcha_data });
|
49 |
+
});
|
50 |
+
}
|
51 |
+
|
52 |
+
handleFormFieldChanges( event ) {
|
53 |
+
// console.log( event );
|
54 |
+
|
55 |
+
// console.log( value );
|
56 |
+
// console.log( this );
|
57 |
+
// console.log( typeof this.setState );
|
58 |
+
|
59 |
+
// const target = event.target;
|
60 |
+
// const value = target.type === 'checkbox' ? target.checked : target.value;
|
61 |
+
// const name = target.name;
|
62 |
+
|
63 |
+
// return this.setState( { [name]: value } );
|
64 |
+
}
|
65 |
+
|
66 |
+
inspector_controls() {
|
67 |
+
|
68 |
+
const inline = (
|
69 |
+
<PanelRow>
|
70 |
+
<label
|
71 |
+
htmlFor="inline-form-toggle"
|
72 |
+
className="blocks-base-control__label"
|
73 |
+
>
|
74 |
+
{ __( 'Inline' ) }
|
75 |
+
</label>
|
76 |
+
<FormToggle
|
77 |
+
id="inline-form-toggle"
|
78 |
+
label={ __( 'Inline' ) }
|
79 |
+
checked={ !! this.props.inline }
|
80 |
+
onChange={ this.props.toggleInline }
|
81 |
+
/>
|
82 |
+
</PanelRow>
|
83 |
+
)
|
84 |
+
|
85 |
+
const show_form_title = (
|
86 |
+
<PanelRow>
|
87 |
+
<label
|
88 |
+
htmlFor="show-title-form-toggle"
|
89 |
+
className="blocks-base-control__label"
|
90 |
+
>
|
91 |
+
{ __( 'Show Form Title' ) }
|
92 |
+
</label>
|
93 |
+
<FormToggle
|
94 |
+
id="show-title-form-toggle"
|
95 |
+
label={ __( 'Show Form Title' ) }
|
96 |
+
checked={ !! this.props.showTitle }
|
97 |
+
onChange={ this.props.toggleShowTitle }
|
98 |
+
/>
|
99 |
+
</PanelRow>
|
100 |
+
)
|
101 |
+
|
102 |
+
const show_form_description = (
|
103 |
+
<PanelRow>
|
104 |
+
<label
|
105 |
+
htmlFor="show-description-form-toggle"
|
106 |
+
className="blocks-base-control__label"
|
107 |
+
>
|
108 |
+
{ __( 'Show Form Description' ) }
|
109 |
+
</label>
|
110 |
+
<FormToggle
|
111 |
+
id="show-description-form-toggle"
|
112 |
+
label={ __( 'Show Form Description' ) }
|
113 |
+
checked={ !! this.props.showDescription }
|
114 |
+
onChange={ this.props.toggleShowDescription }
|
115 |
+
/>
|
116 |
+
</PanelRow>
|
117 |
+
)
|
118 |
+
|
119 |
+
const is_ajax = (
|
120 |
+
<PanelRow>
|
121 |
+
<label
|
122 |
+
htmlFor="is-ajax-form-toggle"
|
123 |
+
className="blocks-base-control__label"
|
124 |
+
>
|
125 |
+
{ __( 'AJAX Submissions' ) }
|
126 |
+
</label>
|
127 |
+
<FormToggle
|
128 |
+
id="is-ajax-form-toggle"
|
129 |
+
label={ __( 'AJAX' ) }
|
130 |
+
checked={ !! this.props.isAjax }
|
131 |
+
onChange={ this.props.toggleIsAjax }
|
132 |
+
/>
|
133 |
+
</PanelRow>
|
134 |
+
)
|
135 |
+
|
136 |
+
const recaptcha = (
|
137 |
+
<PanelRow>
|
138 |
+
<label
|
139 |
+
htmlFor="recaptcha-form-toggle"
|
140 |
+
className="blocks-base-control__label"
|
141 |
+
>
|
142 |
+
{ __( 'reCAPTCHA' ) }
|
143 |
+
</label>
|
144 |
+
<FormToggle
|
145 |
+
id="recaptcha-form-toggle"
|
146 |
+
label={ __( 'reCAPTCHA' ) }
|
147 |
+
checked={ !! this.props.recaptcha }
|
148 |
+
onChange={ this.props.toggleRecaptcha }
|
149 |
+
/>
|
150 |
+
</PanelRow>
|
151 |
+
)
|
152 |
+
|
153 |
+
const recaptcha_type = !! this.props.recaptcha ?
|
154 |
+
(
|
155 |
+
<PanelRow>
|
156 |
+
<label
|
157 |
+
htmlFor="recaptcha-type-form-toggle"
|
158 |
+
className="blocks-base-control__label"
|
159 |
+
>
|
160 |
+
{ __( 'reCAPTCHA Type' ) }
|
161 |
+
</label>
|
162 |
+
<SelectControl
|
163 |
+
value={ this.props.recaptchaType }
|
164 |
+
options={ [ { value: 'image', label: 'Image' }, { value: 'audio', 'label': 'Audio' } ] }
|
165 |
+
onChange={ this.props.toggleRecaptchaType }
|
166 |
+
/>
|
167 |
+
</PanelRow>
|
168 |
+
)
|
169 |
+
: '';
|
170 |
+
|
171 |
+
const recaptcha_theme = !! this.props.recaptcha ?
|
172 |
+
(
|
173 |
+
<PanelRow>
|
174 |
+
<label
|
175 |
+
htmlFor="recaptcha-theme-form-toggle"
|
176 |
+
className="blocks-base-control__label"
|
177 |
+
>
|
178 |
+
{ __( 'reCAPTCHA Theme' ) }
|
179 |
+
</label>
|
180 |
+
<SelectControl
|
181 |
+
value={ this.props.recaptchaTheme }
|
182 |
+
options={ [ { value: 'light', label: 'Light' }, {value: 'dark', 'label': 'Dark' } ] }
|
183 |
+
onChange={ this.props.toggleRecaptchaTheme }
|
184 |
+
/>
|
185 |
+
</PanelRow>
|
186 |
+
)
|
187 |
+
: '';
|
188 |
+
|
189 |
+
const recaptcha_lang = !! this.props.recaptcha ?
|
190 |
+
(
|
191 |
+
<PanelRow>
|
192 |
+
<label
|
193 |
+
htmlFor="recaptcha-language-form-toggle"
|
194 |
+
className="blocks-base-control__label"
|
195 |
+
title={ this.state.recaptcha_data.data ? 'The default language for your locale is ' + locales[ this.state.recaptcha_data.data.locale ] : '' }
|
196 |
+
>
|
197 |
+
{ __( 'reCAPTCHA Language' ) }
|
198 |
+
</label>
|
199 |
+
<SelectControl
|
200 |
+
id="recaptcha-language-form-toggle"
|
201 |
+
value={ this.props.recaptchaLang.length > 0 ? this.props.recaptchaLang : ( this.state.recaptcha_data.data ? this.state.recaptcha_data.data.locale : '' ) }
|
202 |
+
onChange={ this.props.toggleRecaptchaLang }
|
203 |
+
title={ this.state.recaptcha_data.data ? 'The default language for your locale is ' + locales[ this.state.recaptcha_data.data.locale ] : '' }
|
204 |
+
options={ Object.keys( locales ).map( ( key ) => { return { value: key, label: locales[key] } }) }
|
205 |
+
/>
|
206 |
+
</PanelRow>
|
207 |
+
)
|
208 |
+
: '';
|
209 |
+
|
210 |
+
const recaptcha_size = !! this.props.recaptcha ?
|
211 |
+
(
|
212 |
+
<PanelRow>
|
213 |
+
<label
|
214 |
+
htmlFor="recaptcha-size-form-toggle"
|
215 |
+
className="blocks-base-control__label"
|
216 |
+
>
|
217 |
+
{ __( 'reCAPTCHA Size' ) }
|
218 |
+
</label>
|
219 |
+
<SelectControl
|
220 |
+
id="recaptcha-size-form-toggle"
|
221 |
+
value={ this.props.recaptchaSize }
|
222 |
+
onChange={ this.props.toggleRecaptchaSize }
|
223 |
+
options={ [ { value: 'normal', label: 'Normal' }, { value: 'compact', label: 'Compact' } ] }
|
224 |
+
/>
|
225 |
+
</PanelRow>
|
226 |
+
)
|
227 |
+
: '';
|
228 |
+
|
229 |
+
const recaptcha_verify_callback = !! this.props.recaptcha ?
|
230 |
+
(
|
231 |
+
<TextControl
|
232 |
+
id="recaptcha-verify-callback-form-toggle"
|
233 |
+
label={ __( 'reCAPTCHA Verify Callback' ) }
|
234 |
+
value={ this.props.recaptchaVerifyCallback }
|
235 |
+
onChange={ this.props.toggleRecaptchaVerifyCallback }
|
236 |
+
/>
|
237 |
+
)
|
238 |
+
: '';
|
239 |
+
|
240 |
+
const recaptcha_expired_callback = !! this.props.recaptcha ?
|
241 |
+
(
|
242 |
+
<TextControl
|
243 |
+
id="recaptcha-expired-callback-form-toggle"
|
244 |
+
label={ __( 'reCAPTCHA Expired Callback' ) }
|
245 |
+
value={ this.props.recaptchaExpiredCallback }
|
246 |
+
onChange={ this.props.toggleRecaptchaExpiredCallback }
|
247 |
+
/>
|
248 |
+
)
|
249 |
+
: '';
|
250 |
+
|
251 |
+
const inspector_controls =
|
252 |
+
<InspectorControls key="easy-forms-inspector">
|
253 |
+
|
254 |
+
<PanelBody title={ __( 'Settings' ) } >
|
255 |
+
{inline}
|
256 |
+
{show_form_title}
|
257 |
+
{show_form_description}
|
258 |
+
{is_ajax}
|
259 |
+
{recaptcha}
|
260 |
+
{recaptcha_type}
|
261 |
+
{recaptcha_theme}
|
262 |
+
{recaptcha_lang}
|
263 |
+
{recaptcha_size}
|
264 |
+
{recaptcha_verify_callback}
|
265 |
+
{recaptcha_expired_callback}
|
266 |
+
</PanelBody>
|
267 |
+
|
268 |
+
</InspectorControls>
|
269 |
+
|
270 |
+
return inspector_controls;
|
271 |
+
}
|
272 |
+
|
273 |
+
forms_dropdown() {
|
274 |
+
return this.state.forms.length > 0 ?
|
275 |
+
<select
|
276 |
+
value={ this.props.formID }
|
277 |
+
onChange={ this.props.onChangeForm }
|
278 |
+
className="yikes-mailchimp-forms-dropdown"
|
279 |
+
key="yikes-mailchimp-forms-dropdown"
|
280 |
+
>
|
281 |
+
<option key="select" value="">Select MailChimp Form...</option>
|
282 |
+
{ this.state.forms.map( ( form ) => {
|
283 |
+
return <option key={ 'yikes-select-form-' + form.id } value={ form.id }>{ form.form_name }</option>
|
284 |
+
})}
|
285 |
+
</select>
|
286 |
+
: '';
|
287 |
+
}
|
288 |
+
|
289 |
+
form_title() {
|
290 |
+
return this.props.showTitle === true ?
|
291 |
+
( this.props.focus ?
|
292 |
+
<h3
|
293 |
+
className={ "yikes-mailchimp-form-title yikes-mailchimp-form-title-" + this.props.formID }
|
294 |
+
key="yikes-mailchimp-form-title-wrapper"
|
295 |
+
>
|
296 |
+
<PlainText
|
297 |
+
placeholder={ this.props.formTitle }
|
298 |
+
key="yikes-mailchimp-form-title-editable"
|
299 |
+
value={ this.props.formTitle }
|
300 |
+
onChange={ this.props.toggleFormTitle }
|
301 |
+
/>
|
302 |
+
</h3>
|
303 |
+
:
|
304 |
+
<h3 className={ "yikes-mailchimp-form-title yikes-mailchimp-form-title-" + this.props.formID } key="yikes-mailchimp-form-title">
|
305 |
+
{ this.props.formTitle }
|
306 |
+
</h3>
|
307 |
+
) : '';
|
308 |
+
}
|
309 |
+
|
310 |
+
form_description() {
|
311 |
+
return this.props.showDescription === true ?
|
312 |
+
<section className={ "yikes-mailchimp-form-description yikes-mailchimp-form-description-" + this.props.formID } key="yikes-mailchimp-form-description">
|
313 |
+
<PlainText
|
314 |
+
className="mailchimpDescription"
|
315 |
+
placeholder={ __( 'Enter your form\'s description here.' ) /*( this.props.formData && this.props.formData.form_description && this.props.formData.form_description.length > 0 || this.props.descriptionValue && this.props.descriptionValue.length > 0 ) ? '' : __( 'Enter your form\'s description here.' )*/ }
|
316 |
+
value={ this.props.descriptionValue.length > 0 ? this.props.descriptionValue : ( this.props.formData && this.props.formData.form_description ? this.props.formData.form_description : '' ) }
|
317 |
+
onChange={ this.props.onChangeDescription }
|
318 |
+
key="mailchimpDescription"
|
319 |
+
/>
|
320 |
+
</section>
|
321 |
+
: '';
|
322 |
+
}
|
323 |
+
|
324 |
+
get_address_field( addr_field, field ) {
|
325 |
+
switch( addr_field ) {
|
326 |
+
|
327 |
+
case 'addr1':
|
328 |
+
case 'addr2':
|
329 |
+
case 'city':
|
330 |
+
case 'zip':
|
331 |
+
return (
|
332 |
+
<TextControl
|
333 |
+
id={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge + '-' + addr_field }
|
334 |
+
onChange={ this.handleFormFieldChanges }
|
335 |
+
type="text"
|
336 |
+
name={ field.merge + '[' + addr_field + ']' }
|
337 |
+
className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }
|
338 |
+
key= { 'yikes-mailchimp-field-' + field.merge + '-' + addr_field }
|
339 |
+
required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }
|
340 |
+
placeholder={ field.placeholder === '1' ? this.address_fields[ addr_field ] : '' }
|
341 |
+
/>
|
342 |
+
)
|
343 |
+
break;
|
344 |
+
|
345 |
+
case 'state':
|
346 |
+
return (
|
347 |
+
<select
|
348 |
+
id={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge + '-' + addr_field }
|
349 |
+
name={ field.merge + '[' + addr_field + ']' }
|
350 |
+
className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }
|
351 |
+
onChange={ this.handleFormFieldChanges }
|
352 |
+
key= { 'yikes-mailchimp-field-' + field.merge + '-' + addr_field }
|
353 |
+
value=''
|
354 |
+
required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }
|
355 |
+
>
|
356 |
+
{ Object.keys( states ).map( ( key ) => {
|
357 |
+
var choice = states[ key ];
|
358 |
+
return <option key={ 'state-' + key } value={ key }>{ choice }</option>
|
359 |
+
})}
|
360 |
+
|
361 |
+
</select>
|
362 |
+
)
|
363 |
+
break;
|
364 |
+
|
365 |
+
case 'country':
|
366 |
+
return (
|
367 |
+
<select
|
368 |
+
id={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge + '-' + addr_field }
|
369 |
+
name={ field.merge + '[' + addr_field + ']' }
|
370 |
+
className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }
|
371 |
+
onChange={ this.handleFormFieldChanges }
|
372 |
+
key= { 'yikes-mailchimp-field-' + field.merge + '-' + addr_field }
|
373 |
+
value=''
|
374 |
+
required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }
|
375 |
+
>
|
376 |
+
{ Object.keys( countries ).map( ( key ) => {
|
377 |
+
var choice = countries[ key ];
|
378 |
+
return <option key={ 'country-' + key } value={ key }>{ choice }</option>
|
379 |
+
})}
|
380 |
+
|
381 |
+
</select>
|
382 |
+
)
|
383 |
+
break;
|
384 |
+
}
|
385 |
+
}
|
386 |
+
|
387 |
+
get_dropdown_field( field ) {
|
388 |
+
return (
|
389 |
+
<select
|
390 |
+
id={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge }
|
391 |
+
name={ field.merge }
|
392 |
+
className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }
|
393 |
+
onChange={ this.handleFormFieldChanges }
|
394 |
+
key= { 'yikes-mailchimp-field-' + field.merge }
|
395 |
+
value={ JSON.parse( field.choices )[ field.default_choice ] }
|
396 |
+
required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }
|
397 |
+
>
|
398 |
+
{ Object.keys( JSON.parse( field.choices ) ).map( ( key ) => {
|
399 |
+
var choice = JSON.parse( field.choices )[ key ];
|
400 |
+
return <option key={ slugify( choice ) } value={ choice }>{ choice }</option>
|
401 |
+
})}
|
402 |
+
</select>
|
403 |
+
)
|
404 |
+
}
|
405 |
+
|
406 |
+
get_radio_field( field ) {
|
407 |
+
var ii = 0;
|
408 |
+
|
409 |
+
return (
|
410 |
+
JSON.parse( field.choices ).map( ( key ) => {
|
411 |
+
ii++;
|
412 |
+
return (
|
413 |
+
<label
|
414 |
+
htmlFor={ field.merge + '-' + ii }
|
415 |
+
className="yikes-easy-mc-checkbox-label"
|
416 |
+
key={ field.merge + '-label-radio-key-' + ii }
|
417 |
+
>
|
418 |
+
<input
|
419 |
+
type="radio"
|
420 |
+
name={ field.merge }
|
421 |
+
id={ field.merge + '-' + ii }
|
422 |
+
key={ field.merge + '-' + ii + '-input-key' }
|
423 |
+
value={ key }
|
424 |
+
onChange={ this.handleFormFieldChanges }
|
425 |
+
checked={ parseInt( field.default_choice ) === ( ii - 1 ) }
|
426 |
+
/>
|
427 |
+
<span key={ field.merge + '-span-radio-key-' + ii } className={ field.merge + '-label' }>{ key }</span>
|
428 |
+
</label>
|
429 |
+
)
|
430 |
+
})
|
431 |
+
)
|
432 |
+
}
|
433 |
+
|
434 |
+
get_url_field( field ) {
|
435 |
+
return (
|
436 |
+
<TextControl
|
437 |
+
id={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge }
|
438 |
+
placeholder={ field.placeholder }
|
439 |
+
onChange={ this.handleFormFieldChanges }
|
440 |
+
type='url'
|
441 |
+
value={ field.default }
|
442 |
+
name={ field.merge }
|
443 |
+
className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }
|
444 |
+
key= { 'yikes-mailchimp-field-' + field.merge }
|
445 |
+
required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }
|
446 |
+
title={ field.type === 'url' ? __( 'Please enter a valid URL to the website.' ) : __( 'Please enter a valid URL to the image.' ) }
|
447 |
+
/>
|
448 |
+
)
|
449 |
+
}
|
450 |
+
|
451 |
+
get_default_field( field ) {
|
452 |
+
|
453 |
+
var type = field.type === 'zip' || field.type === 'phone' ? 'text' : field.type;
|
454 |
+
|
455 |
+
return (
|
456 |
+
<TextControl
|
457 |
+
id={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge }
|
458 |
+
placeholder={ field.placeholder }
|
459 |
+
onChange={ this.handleFormFieldChanges }
|
460 |
+
type={ type }
|
461 |
+
value={ field.default }
|
462 |
+
name={ field.merge }
|
463 |
+
className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }
|
464 |
+
key= { 'yikes-mailchimp-field-' + field.merge }
|
465 |
+
required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }
|
466 |
+
/>
|
467 |
+
)
|
468 |
+
}
|
469 |
+
|
470 |
+
get_date_field( field ) {
|
471 |
+
return (
|
472 |
+
<TextControl
|
473 |
+
id={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge }
|
474 |
+
placeholder={ field.placeholder }
|
475 |
+
onChange={ this.handleFormFieldChanges }
|
476 |
+
type='text'
|
477 |
+
value={ field.default }
|
478 |
+
name={ field.merge }
|
479 |
+
className={ 'yikes-easy-mc-' + field.type + ' hasDatepicker ' + field['additional-classes'] }
|
480 |
+
key= { 'yikes-mailchimp-field-' + field.merge }
|
481 |
+
required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }
|
482 |
+
data-attr-type={ field.type }
|
483 |
+
data-date-format={ field.date_format }
|
484 |
+
/>
|
485 |
+
)
|
486 |
+
}
|
487 |
+
|
488 |
+
get_radio_interest_group( field ) {
|
489 |
+
var ii = -1;
|
490 |
+
var cn = "yikes-easy-mc-checkbox-label " + field['additional-classes'];
|
491 |
+
|
492 |
+
return (
|
493 |
+
Object.keys( JSON.parse( field.groups ) ).map( ( key ) => {
|
494 |
+
var choice = JSON.parse( field.groups )[ key ];
|
495 |
+
ii++;
|
496 |
+
return (
|
497 |
+
<label
|
498 |
+
htmlFor={ field.group_id + '-' + ii }
|
499 |
+
className={ { [cn]: true, 'field-no-label': field['hide-label'] === '1' } }
|
500 |
+
key={ field.group_id + '-' + ii + '-label-key' }
|
501 |
+
>
|
502 |
+
<input
|
503 |
+
type="radio"
|
504 |
+
name={"group-" + field.group_id + '[]' }
|
505 |
+
id={ field.group_id + '-' + ii }
|
506 |
+
key={ field.group_id + '-' + ii + '-input-key' }
|
507 |
+
value={ key }
|
508 |
+
onChange={ this.handleFormFieldChanges }
|
509 |
+
checked={ key === field.default_choice }
|
510 |
+
className={ { 'yikes-interest-group-required': field.require === '1' } }
|
511 |
+
/>
|
512 |
+
{ choice }
|
513 |
+
</label>
|
514 |
+
)
|
515 |
+
})
|
516 |
+
)
|
517 |
+
}
|
518 |
+
|
519 |
+
get_hidden_interest_group( field ) {
|
520 |
+
var ii = -1;
|
521 |
+
|
522 |
+
return (
|
523 |
+
Object.keys( JSON.parse( field.groups ) ).map( ( key ) => {
|
524 |
+
var choice = JSON.parse( field.groups )[ key ];
|
525 |
+
ii++;
|
526 |
+
return (
|
527 |
+
<label
|
528 |
+
htmlFor={ field.group_id + '-' + ii }
|
529 |
+
className={ "yikes-easy-mc-checkbox-label " + field['additional-classes'] }
|
530 |
+
key={ field.group_id + '-' + ii + '-label-key' }
|
531 |
+
>
|
532 |
+
<input
|
533 |
+
type="checkbox"
|
534 |
+
name={"group-" + field.group_id + '[]' }
|
535 |
+
id={ field.group_id + '-' + ii }
|
536 |
+
key={ field.group_id + '-' + ii + '-input-key' }
|
537 |
+
value={ key }
|
538 |
+
onChange={ this.handleFormFieldChanges }
|
539 |
+
checked={ field.default_choice.indexOf( key ) !== -1 }
|
540 |
+
/>
|
541 |
+
{ choice }
|
542 |
+
</label>
|
543 |
+
)
|
544 |
+
})
|
545 |
+
)
|
546 |
+
}
|
547 |
+
|
548 |
+
get_checkboxes_interest_group( field ) {
|
549 |
+
var ii = -1;
|
550 |
+
var cn = "yikes-easy-mc-checkbox-label " + field['additional-classes'];
|
551 |
+
|
552 |
+
return (
|
553 |
+
Object.keys( JSON.parse( field.groups ) ).map( ( key ) => {
|
554 |
+
var choice = JSON.parse( field.groups )[ key ];
|
555 |
+
ii++;
|
556 |
+
return (
|
557 |
+
<label
|
558 |
+
htmlFor={ field.group_id + '-' + ii }
|
559 |
+
className={ { [cn]: true, 'field-no-label': field['hide-label'] === '1' } }
|
560 |
+
key={ field.group_id + '-' + ii + '-label-key' }
|
561 |
+
>
|
562 |
+
<input
|
563 |
+
className={ { 'yikes-interest-group-required': field.require === '1' } }
|
564 |
+
type="checkbox"
|
565 |
+
name={"group-" + field.group_id + '[]' }
|
566 |
+
id={ field.group_id + '-' + ii }
|
567 |
+
key={ field.group_id + '-' + ii + '-input-key' }
|
568 |
+
value={ key }
|
569 |
+
onChange={ this.handleFormFieldChanges }
|
570 |
+
checked={ field.default_choice.indexOf( key ) !== -1 }
|
571 |
+
required={ field.require === '1' ? 'required' : false }
|
572 |
+
/>
|
573 |
+
{ choice }
|
574 |
+
</label>
|
575 |
+
)
|
576 |
+
})
|
577 |
+
)
|
578 |
+
}
|
579 |
+
|
580 |
+
get_dropdown_interest_group( field ) {
|
581 |
+
var ii = -1;
|
582 |
+
|
583 |
+
return (
|
584 |
+
<select
|
585 |
+
id={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.group_id }
|
586 |
+
name={ "group-" + field.group_id }
|
587 |
+
className={ "yikes-easy-mc-dropdown " + field['additional-classes'] }
|
588 |
+
value={ field.default_choice }
|
589 |
+
onChange={ this.handleFormFieldChanges }
|
590 |
+
required={ field.require === '1' ? 'required' : false }
|
591 |
+
>
|
592 |
+
|
593 |
+
{ Object.keys( JSON.parse( field.groups ) ).map( ( key ) => {
|
594 |
+
var choice = JSON.parse( field.groups )[ key ];
|
595 |
+
ii++;
|
596 |
+
return (
|
597 |
+
<option key={ field.group_id + '-' + ii + '-input-key' } value={ key }>{ choice }</option>
|
598 |
+
)
|
599 |
+
})}
|
600 |
+
</select>
|
601 |
+
)
|
602 |
+
}
|
603 |
+
|
604 |
+
form_fields() {
|
605 |
+
|
606 |
+
return this.props.formData && this.props.formData.fields ?
|
607 |
+
Object.keys( this.props.formData.fields ).map( ( key ) => {
|
608 |
+
|
609 |
+
var field = this.props.formData.fields[ key ];
|
610 |
+
|
611 |
+
// Form Fields (aka merge variables)
|
612 |
+
if ( typeof field.merge !== 'undefined' ) {
|
613 |
+
|
614 |
+
var desc = field.description.length > 0 ?
|
615 |
+
<p className="form-field-description" id={ "form-field-description-" + field.merge } key={ "form-field-description-" + field.merge }>{ field.description }</p>
|
616 |
+
: '';
|
617 |
+
|
618 |
+
var label = field['hide-label'] !== '1' ? <span className={ field.merge + '-label' } key={ field.merge + '-label-span-key' }>{ field.label }</span> : '';
|
619 |
+
|
620 |
+
var classes = {'yikes-mailchimp-field-required' : field.merge === 'EMAIL' || field.require === '1' }
|
621 |
+
classes[ field.merge + '-label'] = true;
|
622 |
+
|
623 |
+
if ( field.type === 'address' ) {
|
624 |
+
|
625 |
+
return ([
|
626 |
+
field.description_above === '1' && field.description.length > 0 && desc,
|
627 |
+
Object.keys( this.address_fields ).map( ( addr_field ) => {
|
628 |
+
label = field['hide-label'] !== '1' ? <span className={ field.merge + '-label' } key={ field.merge + '-label-span-key-' + addr_field }>{ this.address_fields[ addr_field ] }</span> : '';
|
629 |
+
|
630 |
+
return (
|
631 |
+
<label
|
632 |
+
htmlFor={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge + '-' + addr_field }
|
633 |
+
className={ classes }
|
634 |
+
key={ field.merge + '-label-key-' + addr_field }
|
635 |
+
style={ field.hide === '1' ? { 'display': 'none' } : {} }
|
636 |
+
>
|
637 |
+
{ label }
|
638 |
+
{ this.get_address_field( addr_field, field ) }
|
639 |
+
</label>
|
640 |
+
)
|
641 |
+
}),
|
642 |
+
field.description_above !== '1' && field.description.length > 0 && desc
|
643 |
+
])
|
644 |
+
} else {
|
645 |
+
return (
|
646 |
+
<label
|
647 |
+
htmlFor={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge }
|
648 |
+
className={ classes }
|
649 |
+
key={ field.merge + '-label-key' }
|
650 |
+
style={ field.hide === '1' ? { 'display': 'none' } : {} }
|
651 |
+
>
|
652 |
+
{ label }
|
653 |
+
|
654 |
+
{ field.description_above === '1' && field.description.length > 0 && desc }
|
655 |
+
|
656 |
+
{
|
657 |
+
( field.type === 'dropdown' ? this.get_dropdown_field( field ) :
|
658 |
+
( field.type === 'radio' ? this.get_radio_field( field ) :
|
659 |
+
( field.type === 'url' || field.type === 'imageurl' ? this.get_url_field( field ) :
|
660 |
+
( field.type === 'date' || field.type === 'birthday' ? this.get_date_field( field ) :
|
661 |
+
this.get_default_field( field ) ) ) ) )
|
662 |
+
}
|
663 |
+
|
664 |
+
{ field.description_above !== '1' && field.description.length > 0 && desc }
|
665 |
+
|
666 |
+
</label>
|
667 |
+
)
|
668 |
+
}
|
669 |
+
} else {
|
670 |
+
|
671 |
+
var desc = field.description.length > 0 ?
|
672 |
+
<p className="form-field-description" id={ "form-field-description-" + field.group_id } key={ "form-field-description-" + field.group_id }>{ field.description }</p>
|
673 |
+
: '';
|
674 |
+
|
675 |
+
var label = field['hide-label'] !== '1' ?
|
676 |
+
<span key={ field.group_id + "-label-span-key" } className={ field.group_id + "-label checkbox-parent-label" }>{ field.label }</span>
|
677 |
+
: '';
|
678 |
+
|
679 |
+
var classes = { 'yikes-mailchimp-field-required' : field.require === '1' }
|
680 |
+
classes[ field.group_id + '-label'] = true;
|
681 |
+
|
682 |
+
return (
|
683 |
+
<label
|
684 |
+
htmlFor={ field.group_id }
|
685 |
+
className= { classes }
|
686 |
+
key={ field.group_id + "-label-span-key" }
|
687 |
+
style={ field.type === 'hidden' || field.hide === '1' ? { 'display': 'none' } : {} }
|
688 |
+
>
|
689 |
+
|
690 |
+
{ label }
|
691 |
+
|
692 |
+
{ field.description_above === '1' && field.description.length > 0 && desc }
|
693 |
+
|
694 |
+
{
|
695 |
+
( field.type === 'radio' ? this.get_radio_interest_group( field ) :
|
696 |
+
( field.type === 'hidden' ? this.get_hidden_interest_group( field ) :
|
697 |
+
( field.type === 'checkboxes' ? this.get_checkboxes_interest_group( field ) :
|
698 |
+
( field.type === 'dropdown' ? this.get_dropdown_interest_group( field ) : '' ) ) ) )
|
699 |
+
}
|
700 |
+
|
701 |
+
{ field.description_above !== '1' && field.description.length > 0 && desc }
|
702 |
+
|
703 |
+
</label>
|
704 |
+
)
|
705 |
+
}
|
706 |
+
})
|
707 |
+
: '';
|
708 |
+
}
|
709 |
+
|
710 |
+
form_recaptcha() {
|
711 |
+
|
712 |
+
return this.state.recaptcha_data.success === true && this.state.recaptcha_data.data.site_key && this.props.recaptcha === true ?
|
713 |
+
<Recaptcha
|
714 |
+
sitekey={ this.state.recaptcha_data.data.site_key }
|
715 |
+
key={ 'easy-forms-recaptcha-1' }
|
716 |
+
elementID={ 'google-recaptcha-id-' + Math.random().toString(36).slice(-8) } // Need to use a unique ID for multiple reCAPTCHAs to work on the same page.
|
717 |
+
theme={ this.props.recaptchaTheme }
|
718 |
+
hl={ this.props.recaptchaLang.length > 0 ? this.props.recaptchaLang : this.state.recaptcha_data.data.locale }
|
719 |
+
type={ this.props.recaptchaType }
|
720 |
+
size={ this.props.recaptchaSize }
|
721 |
+
verifyCallback=''
|
722 |
+
expiredCallback=''
|
723 |
+
/>
|
724 |
+
: '';
|
725 |
+
}
|
726 |
+
|
727 |
+
submit_button() {
|
728 |
+
return this.props.formData && this.props.formData.fields ?
|
729 |
+
( this.props.focus && this.props.formData.form_settings['yikes-easy-mc-submit-button-type'] === 'text' ?
|
730 |
+
<button
|
731 |
+
type="submit"
|
732 |
+
key="mailchimpSubmitButton"
|
733 |
+
className={ "yikes-easy-mc-submit-button yikes-easy-mc-submit-button-" + this.props.formID + " btn btn-primary" + " " + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'] }
|
734 |
+
>
|
735 |
+
<PlainText
|
736 |
+
className="yikes-mailchimp-submit-button-span-text"
|
737 |
+
key="yikes-mailchimp-submit-button-span-text"
|
738 |
+
value={ this.props.submitButtonText ? this.props.submitButtonText : '' }
|
739 |
+
onChange={ this.props.toggleSubmitButtonText }
|
740 |
+
/>
|
741 |
+
</button>
|
742 |
+
:
|
743 |
+
( this.props.formData.form_settings['yikes-easy-mc-submit-button-type'] === 'text' ?
|
744 |
+
<button
|
745 |
+
type="submit"
|
746 |
+
key="mailchimpSubmitButton"
|
747 |
+
className={ "yikes-easy-mc-submit-button yikes-easy-mc-submit-button-" + this.props.formID + " btn btn-primary" + " " + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'] }
|
748 |
+
>
|
749 |
+
<span className="yikes-mailchimp-submit-button-span-text" key="yikes-mailchimp-submit-button-span-text">{ this.props.submitButtonText }</span>
|
750 |
+
</button>
|
751 |
+
:
|
752 |
+
<input
|
753 |
+
type="image"
|
754 |
+
alt={ this.props.submitButtonText }
|
755 |
+
src={ this.props.formData.form_settings['yikes-easy-mc-submit-button-image'] }
|
756 |
+
className={ "yikes-easy-mc-submit-button yikes-easy-mc-submit-button-image yikes-easy-mc-submit-button-" + this.props.formID + " btn btn-primary" + " " + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'] }
|
757 |
+
/>
|
758 |
+
)
|
759 |
+
)
|
760 |
+
: '';
|
761 |
+
}
|
762 |
+
|
763 |
+
get_form_section() {
|
764 |
+
return (
|
765 |
+
<section
|
766 |
+
id={ "yikes-mailchimp-container-" + this.props.formID }
|
767 |
+
className={ "yikes-mailchimp-container yikes-mailchimp-container-" + this.props.formID }
|
768 |
+
key="yikes-mailchimp-container-section"
|
769 |
+
>
|
770 |
+
{[
|
771 |
+
|
772 |
+
// Form title
|
773 |
+
[this.form_title()],
|
774 |
+
|
775 |
+
// Form Description
|
776 |
+
[this.form_description()],
|
777 |
+
|
778 |
+
// Get the form
|
779 |
+
[this.get_form()]
|
780 |
+
]}
|
781 |
+
</section>
|
782 |
+
);
|
783 |
+
}
|
784 |
+
|
785 |
+
get_form() {
|
786 |
+
return (
|
787 |
+
// Form Wrapper
|
788 |
+
<form
|
789 |
+
id={ slugify( this.props.formTitle ) + '-' + this.props.formID }
|
790 |
+
className={ "yikes-easy-mc-form yikes-easy-mc-form-" + this.props.formID + " " + this.props.formData.form_settings['yikes-easy-mc-form-class-names'] }
|
791 |
+
key="yikes-mailchimp-container-form"
|
792 |
+
>
|
793 |
+
{[
|
794 |
+
|
795 |
+
// Form fields
|
796 |
+
[this.form_fields()],
|
797 |
+
|
798 |
+
// Recaptcha
|
799 |
+
[this.form_recaptcha()],
|
800 |
+
|
801 |
+
// Submit button
|
802 |
+
[this.submit_button()]
|
803 |
+
]}
|
804 |
+
</form>
|
805 |
+
);
|
806 |
+
}
|
807 |
+
|
808 |
+
render() {
|
809 |
+
|
810 |
+
if ( this.state.forms.length > 0 && this.props.formData && Object.keys( this.props.formData ).length > 0 ) {
|
811 |
+
|
812 |
+
return (
|
813 |
+
|
814 |
+
<div className={ this.props.className }>
|
815 |
+
|
816 |
+
{// Show inspector controls when focused
|
817 |
+
this.props.focus && this.inspector_controls()}
|
818 |
+
|
819 |
+
{// Show the forms dropdown
|
820 |
+
this.forms_dropdown()}
|
821 |
+
|
822 |
+
<hr key="easy-forms-dropdown-divider"/>
|
823 |
+
|
824 |
+
{// Show the form
|
825 |
+
this.get_form_section()}
|
826 |
+
</div>
|
827 |
+
|
828 |
+
);
|
829 |
+
|
830 |
+
} else if ( this.state.forms.length > 0 ) {
|
831 |
+
|
832 |
+
// If we don't have form data, show the forms dropdown
|
833 |
+
return (
|
834 |
+
<div className={ this.props.className }>
|
835 |
+
{this.forms_dropdown()}
|
836 |
+
</div>
|
837 |
+
);
|
838 |
+
|
839 |
+
} else {
|
840 |
+
|
841 |
+
// Show loading... & spinner
|
842 |
+
return (
|
843 |
+
<p key="loading-easy-forms" className={ this.props.className }>
|
844 |
+
<span key="yikes-easy-forms-loading-text">Loading...</span>
|
845 |
+
<Spinner key="yikes-easy-forms-loading-spinner" />
|
846 |
+
</p>
|
847 |
+
);
|
848 |
+
}
|
849 |
+
}
|
850 |
+
}
|
blocks/development/form/js/countries.js
ADDED
@@ -0,0 +1,248 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const countries = {
|
2 |
+
'US': 'United States',
|
3 |
+
'GB': 'United Kingdom',
|
4 |
+
'AF': 'Afghanistan',
|
5 |
+
'AX': 'Aland Islands',
|
6 |
+
'AL': 'Albania',
|
7 |
+
'DZ': 'Algeria',
|
8 |
+
'AS': 'American Samoa',
|
9 |
+
'AD': 'Andorra',
|
10 |
+
'AO': 'Angola',
|
11 |
+
'AI': 'Anguilla',
|
12 |
+
'AQ': 'Antarctica',
|
13 |
+
'AG': 'Antigua and Barbuda',
|
14 |
+
'AR': 'Argentina',
|
15 |
+
'AM': 'Armenia',
|
16 |
+
'AW': 'Aruba',
|
17 |
+
'AU': 'Australia',
|
18 |
+
'AT': 'Austria',
|
19 |
+
'AZ': 'Azerbaijan',
|
20 |
+
'BS': 'Bahamas',
|
21 |
+
'BH': 'Bahrain',
|
22 |
+
'BD': 'Bangladesh',
|
23 |
+
'BB': 'Barbados',
|
24 |
+
'BY': 'Belarus',
|
25 |
+
'BE': 'Belgium',
|
26 |
+
'BZ': 'Belize',
|
27 |
+
'BJ': 'Benin',
|
28 |
+
'BM': 'Bermuda',
|
29 |
+
'BT': 'Bhutan',
|
30 |
+
'BO': 'Bolivia',
|
31 |
+
'BA': 'Bosnia and Herzegovina',
|
32 |
+
'BW': 'Botswana',
|
33 |
+
'BV': 'Bouvet Island',
|
34 |
+
'BR': 'Brazil',
|
35 |
+
'IO': 'British Indian Ocean Territory',
|
36 |
+
'BN': 'Brunei Darussalam',
|
37 |
+
'BG': 'Bulgaria',
|
38 |
+
'BF': 'Burkina Faso',
|
39 |
+
'BI': 'Burundi',
|
40 |
+
'KH': 'Cambodia',
|
41 |
+
'CM': 'Cameroon',
|
42 |
+
'CA': 'Canada',
|
43 |
+
'CV': 'Cape Verde',
|
44 |
+
'KY': 'Cayman Islands',
|
45 |
+
'CF': 'Central African Republic',
|
46 |
+
'TD': 'Chad',
|
47 |
+
'CL': 'Chile',
|
48 |
+
'CN': 'China',
|
49 |
+
'CX': 'Christmas Island',
|
50 |
+
'CC': 'Cocos (Keeling) Islands',
|
51 |
+
'CO': 'Colombia',
|
52 |
+
'KM': 'Comoros',
|
53 |
+
'CG': 'Congo',
|
54 |
+
'CD': 'Congo, The Democratic Republic of The',
|
55 |
+
'CK': 'Cook Islands',
|
56 |
+
'CR': 'Costa Rica',
|
57 |
+
'CI': 'Cote D’ivoire',
|
58 |
+
'HR': 'Croatia',
|
59 |
+
'CU': 'Cuba',
|
60 |
+
'CY': 'Cyprus',
|
61 |
+
'CZ': 'Czech Republic',
|
62 |
+
'DK': 'Denmark',
|
63 |
+
'DJ': 'Djibouti',
|
64 |
+
'DM': 'Dominica',
|
65 |
+
'DO': 'Dominican Republic',
|
66 |
+
'EC': 'Ecuador',
|
67 |
+
'EG': 'Egypt',
|
68 |
+
'SV': 'El Salvador',
|
69 |
+
'GQ': 'Equatorial Guinea',
|
70 |
+
'ER': 'Eritrea',
|
71 |
+
'EE': 'Estonia',
|
72 |
+
'ET': 'Ethiopia',
|
73 |
+
'FK': 'Falkland Islands (Malvinas)',
|
74 |
+
'FO': 'Faroe Islands',
|
75 |
+
'FJ': 'Fiji',
|
76 |
+
'FI': 'Finland',
|
77 |
+
'FR': 'France',
|
78 |
+
'GF': 'French Guiana',
|
79 |
+
'PF': 'French Polynesia',
|
80 |
+
'TF': 'French Southern Territories',
|
81 |
+
'GA': 'Gabon',
|
82 |
+
'GM': 'Gambia',
|
83 |
+
'GE': 'Georgia',
|
84 |
+
'DE': 'Germany',
|
85 |
+
'GH': 'Ghana',
|
86 |
+
'GI': 'Gibraltar',
|
87 |
+
'GR': 'Greece',
|
88 |
+
'GL': 'Greenland',
|
89 |
+
'GD': 'Grenada',
|
90 |
+
'GP': 'Guadeloupe',
|
91 |
+
'GU': 'Guam',
|
92 |
+
'GT': 'Guatemala',
|
93 |
+
'GG': 'Guernsey',
|
94 |
+
'GN': 'Guinea',
|
95 |
+
'GW': 'Guinea-bissau',
|
96 |
+
'GY': 'Guyana',
|
97 |
+
'HT': 'Haiti',
|
98 |
+
'HM': 'Heard Island and Mcdonald Islands',
|
99 |
+
'VA': 'Holy See (Vatican City State)',
|
100 |
+
'HN': 'Honduras',
|
101 |
+
'HK': 'Hong Kong',
|
102 |
+
'HU': 'Hungary',
|
103 |
+
'IS': 'Iceland',
|
104 |
+
'IN': 'India',
|
105 |
+
'ID': 'Indonesia',
|
106 |
+
'IR': 'Iran, Islamic Republic of',
|
107 |
+
'IQ': 'Iraq',
|
108 |
+
'IE': 'Ireland',
|
109 |
+
'IM': 'Isle of Man',
|
110 |
+
'IL': 'Israel',
|
111 |
+
'IT': 'Italy',
|
112 |
+
'JM': 'Jamaica',
|
113 |
+
'JP': 'Japan',
|
114 |
+
'JE': 'Jersey',
|
115 |
+
'JO': 'Jordan',
|
116 |
+
'KZ': 'Kazakhstan',
|
117 |
+
'KE': 'Kenya',
|
118 |
+
'KI': 'Kiribati',
|
119 |
+
'KP': 'Korea, Democratic People’s Republic of',
|
120 |
+
'KR': 'Korea, Republic of',
|
121 |
+
'KW': 'Kuwait',
|
122 |
+
'KG': 'Kyrgyzstan',
|
123 |
+
'LA': 'Lao People’s Democratic Republic',
|
124 |
+
'LV': 'Latvia',
|
125 |
+
'LB': 'Lebanon',
|
126 |
+
'LS': 'Lesotho',
|
127 |
+
'LR': 'Liberia',
|
128 |
+
'LY': 'Libyan Arab Jamahiriya',
|
129 |
+
'LI': 'Liechtenstein',
|
130 |
+
'LT': 'Lithuania',
|
131 |
+
'LU': 'Luxembourg',
|
132 |
+
'MO': 'Macao',
|
133 |
+
'MK': 'Macedonia, The Former Yugoslav Republic of',
|
134 |
+
'MG': 'Madagascar',
|
135 |
+
'MW': 'Malawi',
|
136 |
+
'MY': 'Malaysia',
|
137 |
+
'MV': 'Maldives',
|
138 |
+
'ML': 'Mali',
|
139 |
+
'MT': 'Malta',
|
140 |
+
'MH': 'Marshall Islands',
|
141 |
+
'MQ': 'Martinique',
|
142 |
+
'MR': 'Mauritania',
|
143 |
+
'MU': 'Mauritius',
|
144 |
+
'YT': 'Mayotte',
|
145 |
+
'MX': 'Mexico',
|
146 |
+
'FM': 'Micronesia, Federated States of',
|
147 |
+
'MD': 'Moldova, Republic of',
|
148 |
+
'MC': 'Monaco',
|
149 |
+
'MN': 'Mongolia',
|
150 |
+
'ME': 'Montenegro',
|
151 |
+
'MS': 'Montserrat',
|
152 |
+
'MA': 'Morocco',
|
153 |
+
'MZ': 'Mozambique',
|
154 |
+
'MM': 'Myanmar',
|
155 |
+
'NA': 'Namibia',
|
156 |
+
'NR': 'Nauru',
|
157 |
+
'NP': 'Nepal',
|
158 |
+
'NL': 'Netherlands',
|
159 |
+
'AN': 'Netherlands Antilles',
|
160 |
+
'NC': 'New Caledonia',
|
161 |
+
'NZ': 'New Zealand',
|
162 |
+
'NI': 'Nicaragua',
|
163 |
+
'NE': 'Niger',
|
164 |
+
'NG': 'Nigeria',
|
165 |
+
'NU': 'Niue',
|
166 |
+
'NF': 'Norfolk Island',
|
167 |
+
'MP': 'Northern Mariana Islands',
|
168 |
+
'NO': 'Norway',
|
169 |
+
'OM': 'Oman',
|
170 |
+
'PK': 'Pakistan',
|
171 |
+
'PW': 'Palau',
|
172 |
+
'PS': 'Palestinian Territory, Occupied',
|
173 |
+
'PA': 'Panama',
|
174 |
+
'PG': 'Papua New Guinea',
|
175 |
+
'PY': 'Paraguay',
|
176 |
+
'PE': 'Peru',
|
177 |
+
'PH': 'Philippines',
|
178 |
+
'PN': 'Pitcairn',
|
179 |
+
'PL': 'Poland',
|
180 |
+
'PT': 'Portugal',
|
181 |
+
'PR': 'Puerto Rico',
|
182 |
+
'QA': 'Qatar',
|
183 |
+
'RE': 'Reunion',
|
184 |
+
'RO': 'Romania',
|
185 |
+
'RU': 'Russian Federation',
|
186 |
+
'RW': 'Rwanda',
|
187 |
+
'SH': 'Saint Helena',
|
188 |
+
'KN': 'Saint Kitts and Nevis',
|
189 |
+
'LC': 'Saint Lucia',
|
190 |
+
'PM': 'Saint Pierre and Miquelon',
|
191 |
+
'VC': 'Saint Vincent and The Grenadines',
|
192 |
+
'WS': 'Samoa',
|
193 |
+
'SM': 'San Marino',
|
194 |
+
'ST': 'Sao Tome and Principe',
|
195 |
+
'SA': 'Saudi Arabia',
|
196 |
+
'SN': 'Senegal',
|
197 |
+
'RS': 'Serbia',
|
198 |
+
'SC': 'Seychelles',
|
199 |
+
'SL': 'Sierra Leone',
|
200 |
+
'SG': 'Singapore',
|
201 |
+
'SK': 'Slovakia',
|
202 |
+
'SI': 'Slovenia',
|
203 |
+
'SB': 'Solomon Islands',
|
204 |
+
'SO': 'Somalia',
|
205 |
+
'ZA': 'South Africa',
|
206 |
+
'GS': 'South Georgia and The South Sandwich Islands',
|
207 |
+
'ES': 'Spain',
|
208 |
+
'LK': 'Sri Lanka',
|
209 |
+
'SD': 'Sudan',
|
210 |
+
'SR': 'Suriname',
|
211 |
+
'SJ': 'Svalbard and Jan Mayen',
|
212 |
+
'SZ': 'Swaziland',
|
213 |
+
'SE': 'Sweden',
|
214 |
+
'CH': 'Switzerland',
|
215 |
+
'SY': 'Syrian Arab Republic',
|
216 |
+
'TW': 'Taiwan, Province of China',
|
217 |
+
'TJ': 'Tajikistan',
|
218 |
+
'TZ': 'Tanzania, United Republic of',
|
219 |
+
'TH': 'Thailand',
|
220 |
+
'TL': 'Timor-leste',
|
221 |
+
'TG': 'Togo',
|
222 |
+
'TK': 'Tokelau',
|
223 |
+
'TO': 'Tonga',
|
224 |
+
'TT': 'Trinidad and Tobago',
|
225 |
+
'TN': 'Tunisia',
|
226 |
+
'TR': 'Turkey',
|
227 |
+
'TM': 'Turkmenistan',
|
228 |
+
'TC': 'Turks and Caicos Islands',
|
229 |
+
'TV': 'Tuvalu',
|
230 |
+
'UG': 'Uganda',
|
231 |
+
'UA': 'Ukraine',
|
232 |
+
'AE': 'United Arab Emirates',
|
233 |
+
'UM': 'United States Minor Outlying Islands',
|
234 |
+
'UY': 'Uruguay',
|
235 |
+
'UZ': 'Uzbekistan',
|
236 |
+
'VU': 'Vanuatu',
|
237 |
+
'VE': 'Venezuela',
|
238 |
+
'VN': 'Viet Nam',
|
239 |
+
'VG': 'Virgin Islands, British',
|
240 |
+
'VI': 'Virgin Islands, U.S.',
|
241 |
+
'WF': 'Wallis and Futuna',
|
242 |
+
'EH': 'Western Sahara',
|
243 |
+
'YE': 'Yemen',
|
244 |
+
'ZM': 'Zambia',
|
245 |
+
'ZW': 'Zimbabwe',
|
246 |
+
}
|
247 |
+
|
248 |
+
export default countries;
|
blocks/development/form/js/enable-submit-button-editing.js
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
( function( $ ) {
|
2 |
+
|
3 |
+
$( document ).ready( function() {
|
4 |
+
|
5 |
+
$( 'body' ).on( 'click', '.yikes-easy-mc-submit-button', function( event ) {
|
6 |
+
event.preventDefault();
|
7 |
+
event.stopPropagation();
|
8 |
+
$( '.yikes-mailchimp-submit-button-span-text' ).focus();
|
9 |
+
});
|
10 |
+
|
11 |
+
$( 'body' ).on( 'click', '.yikes-mailchimp-submit-button-span-text', function( event ) {
|
12 |
+
event.preventDefault();
|
13 |
+
event.stopPropagation();
|
14 |
+
});
|
15 |
+
});
|
16 |
+
|
17 |
+
})( jQuery );
|
blocks/development/form/js/get-form.js
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
export default function yikes_easy_forms_fetch_form( form_id ) {
|
2 |
+
let data = {
|
3 |
+
action: 'yikes_get_form',
|
4 |
+
form_id: form_id,
|
5 |
+
nonce: ez_forms_gb_data.fetch_form_nonce
|
6 |
+
}
|
7 |
+
|
8 |
+
let form = $.post( ez_forms_gb_data.ajax_url, data );
|
9 |
+
|
10 |
+
return form;
|
11 |
+
}
|
blocks/development/form/js/get-forms.js
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
export default function yikes_easy_forms_fetch_forms() {
|
2 |
+
|
3 |
+
let data = {
|
4 |
+
action: 'yikes_get_forms',
|
5 |
+
nonce: ez_forms_gb_data.fetch_forms_nonce,
|
6 |
+
}
|
7 |
+
|
8 |
+
let forms = $.post( ez_forms_gb_data.ajax_url, data );
|
9 |
+
|
10 |
+
return forms;
|
11 |
+
}
|
blocks/development/form/js/get-recaptcha.js
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
export default function get_recaptcha() {
|
2 |
+
|
3 |
+
let data = {
|
4 |
+
action: 'yikes_get_recaptcha',
|
5 |
+
nonce: ez_forms_gb_data.fetch_recaptcha_nonce
|
6 |
+
}
|
7 |
+
|
8 |
+
let recaptcha_data = $.post( ez_forms_gb_data.ajax_url, data );
|
9 |
+
|
10 |
+
return recaptcha_data;
|
11 |
+
}
|
blocks/development/form/js/locales.js
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const locales = {
|
2 |
+
"ar" : "Arabic",
|
3 |
+
"af" : "Afrikaans",
|
4 |
+
"am" : "Amharic",
|
5 |
+
"hy" : "Armenian",
|
6 |
+
"az" : "Azerbaijani",
|
7 |
+
"eu" : "Basque",
|
8 |
+
"bn" : "Bengali",
|
9 |
+
"bg" : "Bulgarian",
|
10 |
+
"ca" : "Catalan",
|
11 |
+
"zh-HK" : "Chinese (Hong Kong)",
|
12 |
+
"zh-CN" : "Chinese (Simplified)",
|
13 |
+
"zh-TW" : "Chinese (Traditional)",
|
14 |
+
"hr" : "Croatian",
|
15 |
+
"cs" : "Czech",
|
16 |
+
"da" : "Danish",
|
17 |
+
"nl" : "Dutch",
|
18 |
+
"en-GB" : "English (UK)",
|
19 |
+
"en" : "English (US)",
|
20 |
+
"et" : "Estonian",
|
21 |
+
"fil" : "Filipino",
|
22 |
+
"fi" : "Finnish",
|
23 |
+
"fr" : "French",
|
24 |
+
"fr-CA" : "French (Canadian)",
|
25 |
+
"gl" : "Galician",
|
26 |
+
"ka" : "Georgian",
|
27 |
+
"de" : "German",
|
28 |
+
"de-AT" : "German (Austria)",
|
29 |
+
"de-CH" : "German (Switzerland)",
|
30 |
+
"el" : "Greek",
|
31 |
+
"gu" : "Gujarati",
|
32 |
+
"iw" : "Hebrew",
|
33 |
+
"hi" : "Hindi",
|
34 |
+
"hu" : "Hungarain",
|
35 |
+
"is" : "Icelandic",
|
36 |
+
"id" : "Indonesian",
|
37 |
+
"it" : "Italian",
|
38 |
+
"ja" : "Japanese",
|
39 |
+
"kn" : "Kannada",
|
40 |
+
"ko" : "Korean",
|
41 |
+
"lo" : "Laothian",
|
42 |
+
"lv" : "Latvian",
|
43 |
+
"lt" : "Lithuanian",
|
44 |
+
"ms" : "Malay",
|
45 |
+
"ml" : "Malayalam",
|
46 |
+
"mr" : "Marathi",
|
47 |
+
"mn" : "Mongolian",
|
48 |
+
"no" : "Norwegian",
|
49 |
+
"fa" : "Persian",
|
50 |
+
"pl" : "Polish",
|
51 |
+
"pt" : "Portuguese",
|
52 |
+
"pt-BR" : "Portuguese (Brazil)",
|
53 |
+
"pt-PT" : "Portuguese (Portugal)",
|
54 |
+
"ro" : "Romanian",
|
55 |
+
"ru" : "Russian",
|
56 |
+
"sr" : "Serbian",
|
57 |
+
"si" : "Sinhalese",
|
58 |
+
"sk" : "Slovak",
|
59 |
+
"sl" : "Slovenian",
|
60 |
+
"es" : "Spanish",
|
61 |
+
"es-419" : "Spanish (Latin America)",
|
62 |
+
"sw" : "Swahili",
|
63 |
+
"sv" : "Swedish",
|
64 |
+
"ta" : "Tamil",
|
65 |
+
"te" : "Telugu",
|
66 |
+
"th" : "Thai",
|
67 |
+
"tr" : "Turkish",
|
68 |
+
"uk" : "Ukrainian",
|
69 |
+
"ur" : "Urdu",
|
70 |
+
"vi" : "Vietnamese",
|
71 |
+
"zu" : "Zulu"
|
72 |
+
}
|
73 |
+
|
74 |
+
export default locales;
|
blocks/development/form/js/slugify.js
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* This should have the same effect as WP/PHP's `sanitize_title()` function
|
3 |
+
*
|
4 |
+
* Source: https://gist.github.com/mathewbyrne/1280286
|
5 |
+
*/
|
6 |
+
export default function slugify( text ) {
|
7 |
+
|
8 |
+
// Use hash map for special characters
|
9 |
+
let specialChars = {"à":'a',"ä":'a',"á":'a',"â":'a',"æ":'a',"å":'a',"ë":'e',"è":'e',"é":'e', "ê":'e',"î":'i',"ï":'i',"ì":'i',"í":'i',"ò":'o',"ó":'o',"ö":'o',"ô":'o',"ø":'o',"ù":'o',"ú":'u',"ü":'u',"û":'u',"ñ":'n',"ç":'c',"ß":'s',"ÿ":'y',"œ":'o',"ŕ":'r',"ś":'s',"ń":'n',"ṕ":'p',"ẃ":'w',"ǵ":'g',"ǹ":'n',"ḿ":'m',"ǘ":'u',"ẍ":'x',"ź":'z',"ḧ":'h',"·":'-',"/":'-',"_":'-',",":'-',":":'-',";":'-'};
|
10 |
+
|
11 |
+
return text.toString().toLowerCase()
|
12 |
+
.replace(/\s+/g, '-') // Replace spaces with -
|
13 |
+
.replace(/./g,(target, index, str) => specialChars[target] || target) // Replace special characters using the hash map
|
14 |
+
.replace(/&/g, '-and-') // Replace & with 'and'
|
15 |
+
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
|
16 |
+
.replace(/\-\-+/g, '-') // Replace multiple - with single -
|
17 |
+
.replace(/^-+/, '') // Trim - from start of text
|
18 |
+
.replace(/-+$/, ''); // Trim - from end of text
|
19 |
+
};
|
blocks/development/form/js/states.js
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const states = {
|
2 |
+
'': '—',
|
3 |
+
'AL': 'Alabama',
|
4 |
+
'AK': 'Alaska',
|
5 |
+
'AZ': 'Arizona',
|
6 |
+
'AR': 'Arkansas',
|
7 |
+
'CA': 'California',
|
8 |
+
'CO': 'Colorado',
|
9 |
+
'CT': 'Connecticut',
|
10 |
+
'DE': 'Delaware',
|
11 |
+
'DC': 'District Of Columbia',
|
12 |
+
'FL': 'Florida',
|
13 |
+
'GA': 'Georgia',
|
14 |
+
'HI': 'Hawaii',
|
15 |
+
'ID': 'Idaho',
|
16 |
+
'IL': 'Illinois',
|
17 |
+
'IN': 'Indiana',
|
18 |
+
'IA': 'Iowa',
|
19 |
+
'KS': 'Kansas',
|
20 |
+
'KY': 'Kentucky',
|
21 |
+
'LA': 'Louisiana',
|
22 |
+
'ME': 'Maine',
|
23 |
+
'MD': 'Maryland',
|
24 |
+
'MA': 'Massachusetts',
|
25 |
+
'MI': 'Michigan',
|
26 |
+
'MN': 'Minnesota',
|
27 |
+
'MS': 'Mississippi',
|
28 |
+
'MO': 'Missouri',
|
29 |
+
'MT': 'Montana',
|
30 |
+
'NE': 'Nebraska',
|
31 |
+
'NV': 'Nevada',
|
32 |
+
'NH': 'New Hampshire',
|
33 |
+
'NJ': 'New Jersey',
|
34 |
+
'NM': 'New Mexico',
|
35 |
+
'NY': 'New York',
|
36 |
+
'NC': 'North Carolina',
|
37 |
+
'ND': 'North Dakota',
|
38 |
+
'OH': 'Ohio',
|
39 |
+
'OK': 'Oklahoma',
|
40 |
+
'OR': 'Oregon',
|
41 |
+
'PA': 'Pennsylvania',
|
42 |
+
'RI': 'Rhode Island',
|
43 |
+
'SC': 'South Carolina',
|
44 |
+
'SD': 'South Dakota',
|
45 |
+
'TN': 'Tennessee',
|
46 |
+
'TX': 'Texas',
|
47 |
+
'UT': 'Utah',
|
48 |
+
'VT': 'Vermont',
|
49 |
+
'VA': 'Virginia',
|
50 |
+
'WA': 'Washington',
|
51 |
+
'WV': 'West Virginia',
|
52 |
+
'WI': 'Wisconsin',
|
53 |
+
'WY': 'Wyoming',
|
54 |
+
'AB': 'Alberta',
|
55 |
+
'BC': 'British Columbia',
|
56 |
+
'MB': 'Manitoba',
|
57 |
+
'NB': 'New Brunswick',
|
58 |
+
'NL': 'Newfoundland and Labrador',
|
59 |
+
'NS': 'Nova Scotia',
|
60 |
+
'ON': 'Ontario',
|
61 |
+
'PE': 'Prince Edward Island',
|
62 |
+
'QC': 'Quebec',
|
63 |
+
'SK': 'Saskatchewan',
|
64 |
+
'NT': 'Northwest Territories',
|
65 |
+
'NU': 'Nunavut',
|
66 |
+
'YT': 'Yukon',
|
67 |
+
}
|
68 |
+
|
69 |
+
export default states;
|
blocks/index.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
import './development/form/js/block-form.js';
|
blocks/release/blocks.js
ADDED
@@ -0,0 +1,4551 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/******/ (function(modules) { // webpackBootstrap
|
2 |
+
/******/ // The module cache
|
3 |
+
/******/ var installedModules = {};
|
4 |
+
/******/
|
5 |
+
/******/ // The require function
|
6 |
+
/******/ function __webpack_require__(moduleId) {
|
7 |
+
/******/
|
8 |
+
/******/ // Check if module is in cache
|
9 |
+
/******/ if(installedModules[moduleId]) {
|
10 |
+
/******/ return installedModules[moduleId].exports;
|
11 |
+
/******/ }
|
12 |
+
/******/ // Create a new module (and put it into the cache)
|
13 |
+
/******/ var module = installedModules[moduleId] = {
|
14 |
+
/******/ i: moduleId,
|
15 |
+
/******/ l: false,
|
16 |
+
/******/ exports: {}
|
17 |
+
/******/ };
|
18 |
+
/******/
|
19 |
+
/******/ // Execute the module function
|
20 |
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
21 |
+
/******/
|
22 |
+
/******/ // Flag the module as loaded
|
23 |
+
/******/ module.l = true;
|
24 |
+
/******/
|
25 |
+
/******/ // Return the exports of the module
|
26 |
+
/******/ return module.exports;
|
27 |
+
/******/ }
|
28 |
+
/******/
|
29 |
+
/******/
|
30 |
+
/******/ // expose the modules object (__webpack_modules__)
|
31 |
+
/******/ __webpack_require__.m = modules;
|
32 |
+
/******/
|
33 |
+
/******/ // expose the module cache
|
34 |
+
/******/ __webpack_require__.c = installedModules;
|
35 |
+
/******/
|
36 |
+
/******/ // define getter function for harmony exports
|
37 |
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
38 |
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
39 |
+
/******/ Object.defineProperty(exports, name, {
|
40 |
+
/******/ configurable: false,
|
41 |
+
/******/ enumerable: true,
|
42 |
+
/******/ get: getter
|
43 |
+
/******/ });
|
44 |
+
/******/ }
|
45 |
+
/******/ };
|
46 |
+
/******/
|
47 |
+
/******/ // define __esModule on exports
|
48 |
+
/******/ __webpack_require__.r = function(exports) {
|
49 |
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
50 |
+
/******/ };
|
51 |
+
/******/
|
52 |
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
53 |
+
/******/ __webpack_require__.n = function(module) {
|
54 |
+
/******/ var getter = module && module.__esModule ?
|
55 |
+
/******/ function getDefault() { return module['default']; } :
|
56 |
+
/******/ function getModuleExports() { return module; };
|
57 |
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
58 |
+
/******/ return getter;
|
59 |
+
/******/ };
|
60 |
+
/******/
|
61 |
+
/******/ // Object.prototype.hasOwnProperty.call
|
62 |
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
63 |
+
/******/
|
64 |
+
/******/ // __webpack_public_path__
|
65 |
+
/******/ __webpack_require__.p = "";
|
66 |
+
/******/
|
67 |
+
/******/
|
68 |
+
/******/ // Load entry module and return exports
|
69 |
+
/******/ return __webpack_require__(__webpack_require__.s = "./blocks/index.js");
|
70 |
+
/******/ })
|
71 |
+
/************************************************************************/
|
72 |
+
/******/ ({
|
73 |
+
|
74 |
+
/***/ "./blocks/development/form/css/blocks.scss":
|
75 |
+
/*!*************************************************!*\
|
76 |
+
!*** ./blocks/development/form/css/blocks.scss ***!
|
77 |
+
\*************************************************/
|
78 |
+
/*! no static exports found */
|
79 |
+
/***/ (function(module, exports, __webpack_require__) {
|
80 |
+
|
81 |
+
|
82 |
+
var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/lib/loader.js!./blocks.scss */ "./node_modules/css-loader/index.js!./node_modules/sass-loader/lib/loader.js!./blocks/development/form/css/blocks.scss");
|
83 |
+
|
84 |
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
85 |
+
|
86 |
+
var transform;
|
87 |
+
var insertInto;
|
88 |
+
|
89 |
+
|
90 |
+
|
91 |
+
var options = {"hmr":true}
|
92 |
+
|
93 |
+
options.transform = transform
|
94 |
+
options.insertInto = undefined;
|
95 |
+
|
96 |
+
var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options);
|
97 |
+
|
98 |
+
if(content.locals) module.exports = content.locals;
|
99 |
+
|
100 |
+
if(false) {}
|
101 |
+
|
102 |
+
/***/ }),
|
103 |
+
|
104 |
+
/***/ "./blocks/development/form/js/block-form.js":
|
105 |
+
/*!**************************************************!*\
|
106 |
+
!*** ./blocks/development/form/js/block-form.js ***!
|
107 |
+
\**************************************************/
|
108 |
+
/*! no static exports found */
|
109 |
+
/***/ (function(module, exports, __webpack_require__) {
|
110 |
+
|
111 |
+
"use strict";
|
112 |
+
|
113 |
+
|
114 |
+
var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
115 |
+
|
116 |
+
var _classnames2 = _interopRequireDefault(_classnames);
|
117 |
+
|
118 |
+
var _getForm = __webpack_require__(/*! ./get-form.js */ "./blocks/development/form/js/get-form.js");
|
119 |
+
|
120 |
+
var _getForm2 = _interopRequireDefault(_getForm);
|
121 |
+
|
122 |
+
var _classMailChimpForms = __webpack_require__(/*! ./class.MailChimpForms.js */ "./blocks/development/form/js/class.MailChimpForms.js");
|
123 |
+
|
124 |
+
var _classMailChimpForms2 = _interopRequireDefault(_classMailChimpForms);
|
125 |
+
|
126 |
+
__webpack_require__(/*! ../css/blocks.scss */ "./blocks/development/form/css/blocks.scss");
|
127 |
+
|
128 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
129 |
+
|
130 |
+
__webpack_require__(/*! ./enable-submit-button-editing.js */ "./blocks/development/form/js/enable-submit-button-editing.js");
|
131 |
+
|
132 |
+
// Get just the __() localization function from wp.i18n
|
133 |
+
var __ = wp.i18n.__;
|
134 |
+
|
135 |
+
// Get registerBlockType and other methods from wp.blocks
|
136 |
+
|
137 |
+
var registerBlockType = wp.blocks.registerBlockType;
|
138 |
+
|
139 |
+
|
140 |
+
var edit_easy_form = function edit_easy_form(props) {
|
141 |
+
|
142 |
+
var onChangeForm = function onChangeForm(event) {
|
143 |
+
props.setAttributes({ form_id: event.target.value });
|
144 |
+
|
145 |
+
if (event.target.value.length > 0) {
|
146 |
+
(0, _getForm2.default)(event.target.value).then(function (form) {
|
147 |
+
props.setAttributes({ form: form.data });
|
148 |
+
props.setAttributes({ form_description: form.data.form_description });
|
149 |
+
props.setAttributes({ form_title: form.data.form_name });
|
150 |
+
props.setAttributes({ is_ajax: form.data.submission_settings.ajax === '1' });
|
151 |
+
props.setAttributes({ submit_button_text: form.data.form_settings['yikes-easy-mc-submit-button-text'] });
|
152 |
+
});
|
153 |
+
}
|
154 |
+
};
|
155 |
+
|
156 |
+
var onChangeDescription = function onChangeDescription(value) {
|
157 |
+
props.setAttributes({ form_description: value });
|
158 |
+
};
|
159 |
+
|
160 |
+
var toggleShowDescription = function toggleShowDescription(event) {
|
161 |
+
props.setAttributes({ show_description: !!event.target.checked });
|
162 |
+
};
|
163 |
+
|
164 |
+
var toggleInline = function toggleInline(event) {
|
165 |
+
props.setAttributes({ inline: !!event.target.checked });
|
166 |
+
};
|
167 |
+
|
168 |
+
var toggleShowTitle = function toggleShowTitle(event) {
|
169 |
+
props.setAttributes({ show_title: !!event.target.checked });
|
170 |
+
};
|
171 |
+
|
172 |
+
var toggleFormTitle = function toggleFormTitle(value) {
|
173 |
+
props.setAttributes({ form_title: value });
|
174 |
+
};
|
175 |
+
|
176 |
+
var toggleIsAjax = function toggleIsAjax(event) {
|
177 |
+
props.setAttributes({ is_ajax: !!event.target.checked });
|
178 |
+
};
|
179 |
+
|
180 |
+
var toggleRecaptcha = function toggleRecaptcha(event) {
|
181 |
+
props.setAttributes({ recaptcha: !!event.target.checked });
|
182 |
+
};
|
183 |
+
|
184 |
+
var toggleRecaptchaTheme = function toggleRecaptchaTheme(value) {
|
185 |
+
props.setAttributes({ recaptcha_theme: value });
|
186 |
+
};
|
187 |
+
|
188 |
+
var toggleRecaptchaLang = function toggleRecaptchaLang(value) {
|
189 |
+
props.setAttributes({ recaptcha_lang: value });
|
190 |
+
};
|
191 |
+
|
192 |
+
var toggleRecaptchaType = function toggleRecaptchaType(value) {
|
193 |
+
props.setAttributes({ recaptcha_type: value });
|
194 |
+
};
|
195 |
+
|
196 |
+
var toggleRecaptchaSize = function toggleRecaptchaSize(value) {
|
197 |
+
props.setAttributes({ recaptcha_size: value });
|
198 |
+
};
|
199 |
+
|
200 |
+
var toggleRecaptchaVerifyCallback = function toggleRecaptchaVerifyCallback(value) {
|
201 |
+
props.setAttributes({ recaptcha_verify_callback: value });
|
202 |
+
};
|
203 |
+
|
204 |
+
var toggleRecaptchaExpiredCallback = function toggleRecaptchaExpiredCallback(value) {
|
205 |
+
props.setAttributes({ recaptcha_expired_callback: value });
|
206 |
+
};
|
207 |
+
|
208 |
+
var toggleSubmitButtonText = function toggleSubmitButtonText(value) {
|
209 |
+
props.setAttributes({ submit_button_text: value });
|
210 |
+
};
|
211 |
+
|
212 |
+
return wp.element.createElement(_classMailChimpForms2.default, {
|
213 |
+
className: (0, _classnames2.default)(props.className),
|
214 |
+
onChangeForm: onChangeForm,
|
215 |
+
formID: props.attributes.form_id,
|
216 |
+
formData: props.attributes.form,
|
217 |
+
onChangeDescription: onChangeDescription,
|
218 |
+
descriptionValue: props.attributes.form_description,
|
219 |
+
showDescription: props.attributes.show_description,
|
220 |
+
toggleShowDescription: toggleShowDescription,
|
221 |
+
focus: !!props.focus,
|
222 |
+
inline: props.attributes.inline,
|
223 |
+
toggleInline: toggleInline,
|
224 |
+
formTitle: props.attributes.form_title,
|
225 |
+
toggleFormTitle: toggleFormTitle,
|
226 |
+
showTitle: props.attributes.show_title,
|
227 |
+
toggleShowTitle: toggleShowTitle,
|
228 |
+
isAjax: props.attributes.is_ajax,
|
229 |
+
toggleIsAjax: toggleIsAjax,
|
230 |
+
recaptcha: props.attributes.recaptcha,
|
231 |
+
toggleRecaptcha: toggleRecaptcha,
|
232 |
+
recaptchaTheme: props.attributes.recaptcha_theme,
|
233 |
+
toggleRecaptchaTheme: toggleRecaptchaTheme,
|
234 |
+
recaptchaLang: props.attributes.recaptcha_lang,
|
235 |
+
toggleRecaptchaLang: toggleRecaptchaLang,
|
236 |
+
recaptchaType: props.attributes.recaptcha_type,
|
237 |
+
toggleRecaptchaType: toggleRecaptchaType,
|
238 |
+
recaptchaSize: props.attributes.recaptcha_size,
|
239 |
+
toggleRecaptchaSize: toggleRecaptchaSize,
|
240 |
+
recaptchaVerifyCallback: props.attributes.recaptcha_verify_callback,
|
241 |
+
toggleRecaptchaVerifyCallback: toggleRecaptchaVerifyCallback,
|
242 |
+
recaptchaExpiredCallback: props.attributes.recaptcha_expired_callback,
|
243 |
+
toggleRecaptchaExpiredCallback: toggleRecaptchaExpiredCallback,
|
244 |
+
submitButtonText: props.attributes.submit_button_text,
|
245 |
+
toggleSubmitButtonText: toggleSubmitButtonText
|
246 |
+
});
|
247 |
+
};
|
248 |
+
|
249 |
+
var save_easy_form = function save_easy_form(props) {
|
250 |
+
return null;
|
251 |
+
};
|
252 |
+
|
253 |
+
var settings = {
|
254 |
+
title: __('Easy Forms for MailChimp'),
|
255 |
+
category: 'common', // Options include "common", "formatting", "layout", "widgets" and "embed."
|
256 |
+
icon: 'email-alt',
|
257 |
+
keywords: ['mailchimp', 'easy forms for mailchimp', 'yikes'],
|
258 |
+
attributes: {
|
259 |
+
form_id: {
|
260 |
+
type: 'number'
|
261 |
+
},
|
262 |
+
form: {
|
263 |
+
type: 'object'
|
264 |
+
},
|
265 |
+
form_description: {
|
266 |
+
type: 'string',
|
267 |
+
default: ''
|
268 |
+
},
|
269 |
+
show_description: {
|
270 |
+
type: 'boolean',
|
271 |
+
default: false
|
272 |
+
},
|
273 |
+
inline: {
|
274 |
+
type: 'boolean',
|
275 |
+
default: false
|
276 |
+
},
|
277 |
+
show_title: {
|
278 |
+
type: 'boolean',
|
279 |
+
default: false
|
280 |
+
},
|
281 |
+
form_title: {
|
282 |
+
type: 'string',
|
283 |
+
default: ''
|
284 |
+
},
|
285 |
+
is_ajax: {
|
286 |
+
type: 'boolean',
|
287 |
+
default: true
|
288 |
+
},
|
289 |
+
recaptcha: {
|
290 |
+
type: 'boolean',
|
291 |
+
default: true
|
292 |
+
},
|
293 |
+
recaptcha_theme: {
|
294 |
+
type: 'string',
|
295 |
+
default: 'light'
|
296 |
+
},
|
297 |
+
recaptcha_lang: {
|
298 |
+
type: 'string',
|
299 |
+
default: ''
|
300 |
+
},
|
301 |
+
recaptcha_type: {
|
302 |
+
type: 'string',
|
303 |
+
default: 'image'
|
304 |
+
},
|
305 |
+
recaptcha_size: {
|
306 |
+
type: 'string',
|
307 |
+
default: 'normal'
|
308 |
+
},
|
309 |
+
recaptcha_verify_callback: {
|
310 |
+
type: 'string',
|
311 |
+
default: ''
|
312 |
+
},
|
313 |
+
recaptcha_expired_callback: {
|
314 |
+
type: 'string',
|
315 |
+
default: ''
|
316 |
+
},
|
317 |
+
submit_button_text: {
|
318 |
+
type: 'string',
|
319 |
+
default: ''
|
320 |
+
}
|
321 |
+
},
|
322 |
+
edit: edit_easy_form,
|
323 |
+
save: save_easy_form
|
324 |
+
};
|
325 |
+
|
326 |
+
var EasyFormsBlock = registerBlockType(
|
327 |
+
|
328 |
+
// Name
|
329 |
+
'yikes-inc-easy-forms/easy-forms-block',
|
330 |
+
|
331 |
+
// Settings
|
332 |
+
settings);
|
333 |
+
|
334 |
+
/***/ }),
|
335 |
+
|
336 |
+
/***/ "./blocks/development/form/js/class.MailChimpForms.js":
|
337 |
+
/*!************************************************************!*\
|
338 |
+
!*** ./blocks/development/form/js/class.MailChimpForms.js ***!
|
339 |
+
\************************************************************/
|
340 |
+
/*! no static exports found */
|
341 |
+
/***/ (function(module, exports, __webpack_require__) {
|
342 |
+
|
343 |
+
"use strict";
|
344 |
+
|
345 |
+
|
346 |
+
Object.defineProperty(exports, "__esModule", {
|
347 |
+
value: true
|
348 |
+
});
|
349 |
+
|
350 |
+
var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
351 |
+
|
352 |
+
var _classnames2 = _interopRequireDefault(_classnames);
|
353 |
+
|
354 |
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
355 |
+
|
356 |
+
var _getForms = __webpack_require__(/*! ./get-forms.js */ "./blocks/development/form/js/get-forms.js");
|
357 |
+
|
358 |
+
var _getForms2 = _interopRequireDefault(_getForms);
|
359 |
+
|
360 |
+
var _getRecaptcha = __webpack_require__(/*! ./get-recaptcha.js */ "./blocks/development/form/js/get-recaptcha.js");
|
361 |
+
|
362 |
+
var _getRecaptcha2 = _interopRequireDefault(_getRecaptcha);
|
363 |
+
|
364 |
+
var _slugify = __webpack_require__(/*! ./slugify.js */ "./blocks/development/form/js/slugify.js");
|
365 |
+
|
366 |
+
var _slugify2 = _interopRequireDefault(_slugify);
|
367 |
+
|
368 |
+
var _countries = __webpack_require__(/*! ./countries.js */ "./blocks/development/form/js/countries.js");
|
369 |
+
|
370 |
+
var _countries2 = _interopRequireDefault(_countries);
|
371 |
+
|
372 |
+
var _states = __webpack_require__(/*! ./states.js */ "./blocks/development/form/js/states.js");
|
373 |
+
|
374 |
+
var _states2 = _interopRequireDefault(_states);
|
375 |
+
|
376 |
+
var _locales = __webpack_require__(/*! ./locales.js */ "./blocks/development/form/js/locales.js");
|
377 |
+
|
378 |
+
var _locales2 = _interopRequireDefault(_locales);
|
379 |
+
|
380 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
381 |
+
|
382 |
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
383 |
+
|
384 |
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
385 |
+
|
386 |
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
387 |
+
|
388 |
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Import dependencies
|
389 |
+
|
390 |
+
|
391 |
+
// Get functions / blocks / components
|
392 |
+
var Recaptcha = __webpack_require__(/*! react-recaptcha */ "./node_modules/react-recaptcha/dist/react-recaptcha.js");
|
393 |
+
var __ = wp.i18n.__;
|
394 |
+
var _wp$blocks = wp.blocks,
|
395 |
+
registerBlockType = _wp$blocks.registerBlockType,
|
396 |
+
RichText = _wp$blocks.RichText,
|
397 |
+
InspectorControls = _wp$blocks.InspectorControls,
|
398 |
+
PlainText = _wp$blocks.PlainText;
|
399 |
+
var _wp$components = wp.components,
|
400 |
+
Spinner = _wp$components.Spinner,
|
401 |
+
TextControl = _wp$components.TextControl,
|
402 |
+
PanelBody = _wp$components.PanelBody,
|
403 |
+
PanelRow = _wp$components.PanelRow,
|
404 |
+
FormToggle = _wp$components.FormToggle,
|
405 |
+
SelectControl = _wp$components.SelectControl;
|
406 |
+
var Component = wp.element.Component;
|
407 |
+
|
408 |
+
var MailChimpForms = function (_Component) {
|
409 |
+
_inherits(MailChimpForms, _Component);
|
410 |
+
|
411 |
+
function MailChimpForms(props) {
|
412 |
+
_classCallCheck(this, MailChimpForms);
|
413 |
+
|
414 |
+
var _this = _possibleConstructorReturn(this, (MailChimpForms.__proto__ || Object.getPrototypeOf(MailChimpForms)).apply(this, arguments));
|
415 |
+
|
416 |
+
_this.state = {
|
417 |
+
forms: [],
|
418 |
+
recaptcha_data: {
|
419 |
+
data: {},
|
420 |
+
success: false
|
421 |
+
}
|
422 |
+
};
|
423 |
+
|
424 |
+
_this.address_fields = {
|
425 |
+
'addr1': 'Address 1',
|
426 |
+
'addr2': 'Address 2',
|
427 |
+
'city': 'City',
|
428 |
+
'state': 'State',
|
429 |
+
'zip': 'Zip',
|
430 |
+
'country': 'Country'
|
431 |
+
};
|
432 |
+
|
433 |
+
(0, _getForms2.default)().then(function (forms) {
|
434 |
+
return _this.setState({ forms: forms.data });
|
435 |
+
});
|
436 |
+
|
437 |
+
(0, _getRecaptcha2.default)().then(function (recaptcha_data) {
|
438 |
+
return _this.setState({ recaptcha_data: recaptcha_data });
|
439 |
+
});
|
440 |
+
return _this;
|
441 |
+
}
|
442 |
+
|
443 |
+
_createClass(MailChimpForms, [{
|
444 |
+
key: 'handleFormFieldChanges',
|
445 |
+
value: function handleFormFieldChanges(event) {
|
446 |
+
// console.log( event );
|
447 |
+
|
448 |
+
// console.log( value );
|
449 |
+
// console.log( this );
|
450 |
+
// console.log( typeof this.setState );
|
451 |
+
|
452 |
+
// const target = event.target;
|
453 |
+
// const value = target.type === 'checkbox' ? target.checked : target.value;
|
454 |
+
// const name = target.name;
|
455 |
+
|
456 |
+
// return this.setState( { [name]: value } );
|
457 |
+
}
|
458 |
+
}, {
|
459 |
+
key: 'inspector_controls',
|
460 |
+
value: function inspector_controls() {
|
461 |
+
|
462 |
+
var inline = wp.element.createElement(
|
463 |
+
PanelRow,
|
464 |
+
null,
|
465 |
+
wp.element.createElement(
|
466 |
+
'label',
|
467 |
+
{
|
468 |
+
htmlFor: 'inline-form-toggle',
|
469 |
+
className: 'blocks-base-control__label'
|
470 |
+
},
|
471 |
+
__('Inline')
|
472 |
+
),
|
473 |
+
wp.element.createElement(FormToggle, {
|
474 |
+
id: 'inline-form-toggle',
|
475 |
+
label: __('Inline'),
|
476 |
+
checked: !!this.props.inline,
|
477 |
+
onChange: this.props.toggleInline
|
478 |
+
})
|
479 |
+
);
|
480 |
+
|
481 |
+
var show_form_title = wp.element.createElement(
|
482 |
+
PanelRow,
|
483 |
+
null,
|
484 |
+
wp.element.createElement(
|
485 |
+
'label',
|
486 |
+
{
|
487 |
+
htmlFor: 'show-title-form-toggle',
|
488 |
+
className: 'blocks-base-control__label'
|
489 |
+
},
|
490 |
+
__('Show Form Title')
|
491 |
+
),
|
492 |
+
wp.element.createElement(FormToggle, {
|
493 |
+
id: 'show-title-form-toggle',
|
494 |
+
label: __('Show Form Title'),
|
495 |
+
checked: !!this.props.showTitle,
|
496 |
+
onChange: this.props.toggleShowTitle
|
497 |
+
})
|
498 |
+
);
|
499 |
+
|
500 |
+
var show_form_description = wp.element.createElement(
|
501 |
+
PanelRow,
|
502 |
+
null,
|
503 |
+
wp.element.createElement(
|
504 |
+
'label',
|
505 |
+
{
|
506 |
+
htmlFor: 'show-description-form-toggle',
|
507 |
+
className: 'blocks-base-control__label'
|
508 |
+
},
|
509 |
+
__('Show Form Description')
|
510 |
+
),
|
511 |
+
wp.element.createElement(FormToggle, {
|
512 |
+
id: 'show-description-form-toggle',
|
513 |
+
label: __('Show Form Description'),
|
514 |
+
checked: !!this.props.showDescription,
|
515 |
+
onChange: this.props.toggleShowDescription
|
516 |
+
})
|
517 |
+
);
|
518 |
+
|
519 |
+
var is_ajax = wp.element.createElement(
|
520 |
+
PanelRow,
|
521 |
+
null,
|
522 |
+
wp.element.createElement(
|
523 |
+
'label',
|
524 |
+
{
|
525 |
+
htmlFor: 'is-ajax-form-toggle',
|
526 |
+
className: 'blocks-base-control__label'
|
527 |
+
},
|
528 |
+
__('AJAX Submissions')
|
529 |
+
),
|
530 |
+
wp.element.createElement(FormToggle, {
|
531 |
+
id: 'is-ajax-form-toggle',
|
532 |
+
label: __('AJAX'),
|
533 |
+
checked: !!this.props.isAjax,
|
534 |
+
onChange: this.props.toggleIsAjax
|
535 |
+
})
|
536 |
+
);
|
537 |
+
|
538 |
+
var recaptcha = wp.element.createElement(
|
539 |
+
PanelRow,
|
540 |
+
null,
|
541 |
+
wp.element.createElement(
|
542 |
+
'label',
|
543 |
+
{
|
544 |
+
htmlFor: 'recaptcha-form-toggle',
|
545 |
+
className: 'blocks-base-control__label'
|
546 |
+
},
|
547 |
+
__('reCAPTCHA')
|
548 |
+
),
|
549 |
+
wp.element.createElement(FormToggle, {
|
550 |
+
id: 'recaptcha-form-toggle',
|
551 |
+
label: __('reCAPTCHA'),
|
552 |
+
checked: !!this.props.recaptcha,
|
553 |
+
onChange: this.props.toggleRecaptcha
|
554 |
+
})
|
555 |
+
);
|
556 |
+
|
557 |
+
var recaptcha_type = !!this.props.recaptcha ? wp.element.createElement(
|
558 |
+
PanelRow,
|
559 |
+
null,
|
560 |
+
wp.element.createElement(
|
561 |
+
'label',
|
562 |
+
{
|
563 |
+
htmlFor: 'recaptcha-type-form-toggle',
|
564 |
+
className: 'blocks-base-control__label'
|
565 |
+
},
|
566 |
+
__('reCAPTCHA Type')
|
567 |
+
),
|
568 |
+
wp.element.createElement(SelectControl, {
|
569 |
+
value: this.props.recaptchaType,
|
570 |
+
options: [{ value: 'image', label: 'Image' }, { value: 'audio', 'label': 'Audio' }],
|
571 |
+
onChange: this.props.toggleRecaptchaType
|
572 |
+
})
|
573 |
+
) : '';
|
574 |
+
|
575 |
+
var recaptcha_theme = !!this.props.recaptcha ? wp.element.createElement(
|
576 |
+
PanelRow,
|
577 |
+
null,
|
578 |
+
wp.element.createElement(
|
579 |
+
'label',
|
580 |
+
{
|
581 |
+
htmlFor: 'recaptcha-theme-form-toggle',
|
582 |
+
className: 'blocks-base-control__label'
|
583 |
+
},
|
584 |
+
__('reCAPTCHA Theme')
|
585 |
+
),
|
586 |
+
wp.element.createElement(SelectControl, {
|
587 |
+
value: this.props.recaptchaTheme,
|
588 |
+
options: [{ value: 'light', label: 'Light' }, { value: 'dark', 'label': 'Dark' }],
|
589 |
+
onChange: this.props.toggleRecaptchaTheme
|
590 |
+
})
|
591 |
+
) : '';
|
592 |
+
|
593 |
+
var recaptcha_lang = !!this.props.recaptcha ? wp.element.createElement(
|
594 |
+
PanelRow,
|
595 |
+
null,
|
596 |
+
wp.element.createElement(
|
597 |
+
'label',
|
598 |
+
{
|
599 |
+
htmlFor: 'recaptcha-language-form-toggle',
|
600 |
+
className: 'blocks-base-control__label',
|
601 |
+
title: this.state.recaptcha_data.data ? 'The default language for your locale is ' + _locales2.default[this.state.recaptcha_data.data.locale] : ''
|
602 |
+
},
|
603 |
+
__('reCAPTCHA Language')
|
604 |
+
),
|
605 |
+
wp.element.createElement(SelectControl, {
|
606 |
+
id: 'recaptcha-language-form-toggle',
|
607 |
+
value: this.props.recaptchaLang.length > 0 ? this.props.recaptchaLang : this.state.recaptcha_data.data ? this.state.recaptcha_data.data.locale : '',
|
608 |
+
onChange: this.props.toggleRecaptchaLang,
|
609 |
+
title: this.state.recaptcha_data.data ? 'The default language for your locale is ' + _locales2.default[this.state.recaptcha_data.data.locale] : '',
|
610 |
+
options: Object.keys(_locales2.default).map(function (key) {
|
611 |
+
return { value: key, label: _locales2.default[key] };
|
612 |
+
})
|
613 |
+
})
|
614 |
+
) : '';
|
615 |
+
|
616 |
+
var recaptcha_size = !!this.props.recaptcha ? wp.element.createElement(
|
617 |
+
PanelRow,
|
618 |
+
null,
|
619 |
+
wp.element.createElement(
|
620 |
+
'label',
|
621 |
+
{
|
622 |
+
htmlFor: 'recaptcha-size-form-toggle',
|
623 |
+
className: 'blocks-base-control__label'
|
624 |
+
},
|
625 |
+
__('reCAPTCHA Size')
|
626 |
+
),
|
627 |
+
wp.element.createElement(SelectControl, {
|
628 |
+
id: 'recaptcha-size-form-toggle',
|
629 |
+
value: this.props.recaptchaSize,
|
630 |
+
onChange: this.props.toggleRecaptchaSize,
|
631 |
+
options: [{ value: 'normal', label: 'Normal' }, { value: 'compact', label: 'Compact' }]
|
632 |
+
})
|
633 |
+
) : '';
|
634 |
+
|
635 |
+
var recaptcha_verify_callback = !!this.props.recaptcha ? wp.element.createElement(TextControl, {
|
636 |
+
id: 'recaptcha-verify-callback-form-toggle',
|
637 |
+
label: __('reCAPTCHA Verify Callback'),
|
638 |
+
value: this.props.recaptchaVerifyCallback,
|
639 |
+
onChange: this.props.toggleRecaptchaVerifyCallback
|
640 |
+
}) : '';
|
641 |
+
|
642 |
+
var recaptcha_expired_callback = !!this.props.recaptcha ? wp.element.createElement(TextControl, {
|
643 |
+
id: 'recaptcha-expired-callback-form-toggle',
|
644 |
+
label: __('reCAPTCHA Expired Callback'),
|
645 |
+
value: this.props.recaptchaExpiredCallback,
|
646 |
+
onChange: this.props.toggleRecaptchaExpiredCallback
|
647 |
+
}) : '';
|
648 |
+
|
649 |
+
var inspector_controls = wp.element.createElement(
|
650 |
+
InspectorControls,
|
651 |
+
{ key: 'easy-forms-inspector' },
|
652 |
+
wp.element.createElement(
|
653 |
+
PanelBody,
|
654 |
+
{ title: __('Settings') },
|
655 |
+
inline,
|
656 |
+
show_form_title,
|
657 |
+
show_form_description,
|
658 |
+
is_ajax,
|
659 |
+
recaptcha,
|
660 |
+
recaptcha_type,
|
661 |
+
recaptcha_theme,
|
662 |
+
recaptcha_lang,
|
663 |
+
recaptcha_size,
|
664 |
+
recaptcha_verify_callback,
|
665 |
+
recaptcha_expired_callback
|
666 |
+
)
|
667 |
+
);
|
668 |
+
|
669 |
+
return inspector_controls;
|
670 |
+
}
|
671 |
+
}, {
|
672 |
+
key: 'forms_dropdown',
|
673 |
+
value: function forms_dropdown() {
|
674 |
+
return this.state.forms.length > 0 ? wp.element.createElement(
|
675 |
+
'select',
|
676 |
+
{
|
677 |
+
value: this.props.formID,
|
678 |
+
onChange: this.props.onChangeForm,
|
679 |
+
className: 'yikes-mailchimp-forms-dropdown',
|
680 |
+
key: 'yikes-mailchimp-forms-dropdown'
|
681 |
+
},
|
682 |
+
wp.element.createElement(
|
683 |
+
'option',
|
684 |
+
{ key: 'select', value: '' },
|
685 |
+
'Select MailChimp Form...'
|
686 |
+
),
|
687 |
+
this.state.forms.map(function (form) {
|
688 |
+
return wp.element.createElement(
|
689 |
+
'option',
|
690 |
+
{ key: 'yikes-select-form-' + form.id, value: form.id },
|
691 |
+
form.form_name
|
692 |
+
);
|
693 |
+
})
|
694 |
+
) : '';
|
695 |
+
}
|
696 |
+
}, {
|
697 |
+
key: 'form_title',
|
698 |
+
value: function form_title() {
|
699 |
+
return this.props.showTitle === true ? this.props.focus ? wp.element.createElement(
|
700 |
+
'h3',
|
701 |
+
{
|
702 |
+
className: (0, _classnames2.default)("yikes-mailchimp-form-title yikes-mailchimp-form-title-" + this.props.formID),
|
703 |
+
key: 'yikes-mailchimp-form-title-wrapper'
|
704 |
+
},
|
705 |
+
wp.element.createElement(PlainText, {
|
706 |
+
placeholder: this.props.formTitle,
|
707 |
+
key: 'yikes-mailchimp-form-title-editable',
|
708 |
+
value: this.props.formTitle,
|
709 |
+
onChange: this.props.toggleFormTitle
|
710 |
+
})
|
711 |
+
) : wp.element.createElement(
|
712 |
+
'h3',
|
713 |
+
{ className: (0, _classnames2.default)("yikes-mailchimp-form-title yikes-mailchimp-form-title-" + this.props.formID), key: 'yikes-mailchimp-form-title' },
|
714 |
+
this.props.formTitle
|
715 |
+
) : '';
|
716 |
+
}
|
717 |
+
}, {
|
718 |
+
key: 'form_description',
|
719 |
+
value: function form_description() {
|
720 |
+
return this.props.showDescription === true ? wp.element.createElement(
|
721 |
+
'section',
|
722 |
+
{ className: (0, _classnames2.default)("yikes-mailchimp-form-description yikes-mailchimp-form-description-" + this.props.formID), key: 'yikes-mailchimp-form-description' },
|
723 |
+
wp.element.createElement(PlainText, {
|
724 |
+
className: 'mailchimpDescription',
|
725 |
+
placeholder: __('Enter your form\'s description here.') /*( this.props.formData && this.props.formData.form_description && this.props.formData.form_description.length > 0 || this.props.descriptionValue && this.props.descriptionValue.length > 0 ) ? '' : __( 'Enter your form\'s description here.' )*/,
|
726 |
+
value: this.props.descriptionValue.length > 0 ? this.props.descriptionValue : this.props.formData && this.props.formData.form_description ? this.props.formData.form_description : '',
|
727 |
+
onChange: this.props.onChangeDescription,
|
728 |
+
key: 'mailchimpDescription'
|
729 |
+
})
|
730 |
+
) : '';
|
731 |
+
}
|
732 |
+
}, {
|
733 |
+
key: 'get_address_field',
|
734 |
+
value: function get_address_field(addr_field, field) {
|
735 |
+
switch (addr_field) {
|
736 |
+
|
737 |
+
case 'addr1':
|
738 |
+
case 'addr2':
|
739 |
+
case 'city':
|
740 |
+
case 'zip':
|
741 |
+
return wp.element.createElement(TextControl, {
|
742 |
+
id: "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge + '-' + addr_field,
|
743 |
+
onChange: this.handleFormFieldChanges,
|
744 |
+
type: 'text',
|
745 |
+
name: field.merge + '[' + addr_field + ']',
|
746 |
+
className: (0, _classnames2.default)('yikes-easy-mc-' + field.type + ' ' + field['additional-classes']),
|
747 |
+
key: 'yikes-mailchimp-field-' + field.merge + '-' + addr_field,
|
748 |
+
required: field.merge === 'EMAIL' || field.require === '1' ? 'required' : false,
|
749 |
+
placeholder: field.placeholder === '1' ? this.address_fields[addr_field] : ''
|
750 |
+
});
|
751 |
+
break;
|
752 |
+
|
753 |
+
case 'state':
|
754 |
+
return wp.element.createElement(
|
755 |
+
'select',
|
756 |
+
{
|
757 |
+
id: "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge + '-' + addr_field,
|
758 |
+
name: field.merge + '[' + addr_field + ']',
|
759 |
+
className: (0, _classnames2.default)('yikes-easy-mc-' + field.type + ' ' + field['additional-classes']),
|
760 |
+
onChange: this.handleFormFieldChanges,
|
761 |
+
key: 'yikes-mailchimp-field-' + field.merge + '-' + addr_field,
|
762 |
+
value: '',
|
763 |
+
required: field.merge === 'EMAIL' || field.require === '1' ? 'required' : false
|
764 |
+
},
|
765 |
+
Object.keys(_states2.default).map(function (key) {
|
766 |
+
var choice = _states2.default[key];
|
767 |
+
return wp.element.createElement(
|
768 |
+
'option',
|
769 |
+
{ key: 'state-' + key, value: key },
|
770 |
+
choice
|
771 |
+
);
|
772 |
+
})
|
773 |
+
);
|
774 |
+
break;
|
775 |
+
|
776 |
+
case 'country':
|
777 |
+
return wp.element.createElement(
|
778 |
+
'select',
|
779 |
+
{
|
780 |
+
id: "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge + '-' + addr_field,
|
781 |
+
name: field.merge + '[' + addr_field + ']',
|
782 |
+
className: (0, _classnames2.default)('yikes-easy-mc-' + field.type + ' ' + field['additional-classes']),
|
783 |
+
onChange: this.handleFormFieldChanges,
|
784 |
+
key: 'yikes-mailchimp-field-' + field.merge + '-' + addr_field,
|
785 |
+
value: '',
|
786 |
+
required: field.merge === 'EMAIL' || field.require === '1' ? 'required' : false
|
787 |
+
},
|
788 |
+
Object.keys(_countries2.default).map(function (key) {
|
789 |
+
var choice = _countries2.default[key];
|
790 |
+
return wp.element.createElement(
|
791 |
+
'option',
|
792 |
+
{ key: 'country-' + key, value: key },
|
793 |
+
choice
|
794 |
+
);
|
795 |
+
})
|
796 |
+
);
|
797 |
+
break;
|
798 |
+
}
|
799 |
+
}
|
800 |
+
}, {
|
801 |
+
key: 'get_dropdown_field',
|
802 |
+
value: function get_dropdown_field(field) {
|
803 |
+
return wp.element.createElement(
|
804 |
+
'select',
|
805 |
+
{
|
806 |
+
id: "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge,
|
807 |
+
name: field.merge,
|
808 |
+
className: (0, _classnames2.default)('yikes-easy-mc-' + field.type + ' ' + field['additional-classes']),
|
809 |
+
onChange: this.handleFormFieldChanges,
|
810 |
+
key: 'yikes-mailchimp-field-' + field.merge,
|
811 |
+
value: JSON.parse(field.choices)[field.default_choice],
|
812 |
+
required: field.merge === 'EMAIL' || field.require === '1' ? 'required' : false
|
813 |
+
},
|
814 |
+
Object.keys(JSON.parse(field.choices)).map(function (key) {
|
815 |
+
var choice = JSON.parse(field.choices)[key];
|
816 |
+
return wp.element.createElement(
|
817 |
+
'option',
|
818 |
+
{ key: (0, _slugify2.default)(choice), value: choice },
|
819 |
+
choice
|
820 |
+
);
|
821 |
+
})
|
822 |
+
);
|
823 |
+
}
|
824 |
+
}, {
|
825 |
+
key: 'get_radio_field',
|
826 |
+
value: function get_radio_field(field) {
|
827 |
+
var _this2 = this;
|
828 |
+
|
829 |
+
var ii = 0;
|
830 |
+
|
831 |
+
return JSON.parse(field.choices).map(function (key) {
|
832 |
+
ii++;
|
833 |
+
return wp.element.createElement(
|
834 |
+
'label',
|
835 |
+
{
|
836 |
+
htmlFor: field.merge + '-' + ii,
|
837 |
+
className: 'yikes-easy-mc-checkbox-label',
|
838 |
+
key: field.merge + '-label-radio-key-' + ii
|
839 |
+
},
|
840 |
+
wp.element.createElement('input', {
|
841 |
+
type: 'radio',
|
842 |
+
name: field.merge,
|
843 |
+
id: field.merge + '-' + ii,
|
844 |
+
key: field.merge + '-' + ii + '-input-key',
|
845 |
+
value: key,
|
846 |
+
onChange: _this2.handleFormFieldChanges,
|
847 |
+
checked: parseInt(field.default_choice) === ii - 1
|
848 |
+
}),
|
849 |
+
wp.element.createElement(
|
850 |
+
'span',
|
851 |
+
{ key: field.merge + '-span-radio-key-' + ii, className: (0, _classnames2.default)(field.merge + '-label') },
|
852 |
+
key
|
853 |
+
)
|
854 |
+
);
|
855 |
+
});
|
856 |
+
}
|
857 |
+
}, {
|
858 |
+
key: 'get_url_field',
|
859 |
+
value: function get_url_field(field) {
|
860 |
+
return wp.element.createElement(TextControl, {
|
861 |
+
id: "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge,
|
862 |
+
placeholder: field.placeholder,
|
863 |
+
onChange: this.handleFormFieldChanges,
|
864 |
+
type: 'url',
|
865 |
+
value: field.default,
|
866 |
+
name: field.merge,
|
867 |
+
className: (0, _classnames2.default)('yikes-easy-mc-' + field.type + ' ' + field['additional-classes']),
|
868 |
+
key: 'yikes-mailchimp-field-' + field.merge,
|
869 |
+
required: field.merge === 'EMAIL' || field.require === '1' ? 'required' : false,
|
870 |
+
title: field.type === 'url' ? __('Please enter a valid URL to the website.') : __('Please enter a valid URL to the image.')
|
871 |
+
});
|
872 |
+
}
|
873 |
+
}, {
|
874 |
+
key: 'get_default_field',
|
875 |
+
value: function get_default_field(field) {
|
876 |
+
|
877 |
+
var type = field.type === 'zip' || field.type === 'phone' ? 'text' : field.type;
|
878 |
+
|
879 |
+
return wp.element.createElement(TextControl, {
|
880 |
+
id: "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge,
|
881 |
+
placeholder: field.placeholder,
|
882 |
+
onChange: this.handleFormFieldChanges,
|
883 |
+
type: type,
|
884 |
+
value: field.default,
|
885 |
+
name: field.merge,
|
886 |
+
className: (0, _classnames2.default)('yikes-easy-mc-' + field.type + ' ' + field['additional-classes']),
|
887 |
+
key: 'yikes-mailchimp-field-' + field.merge,
|
888 |
+
required: field.merge === 'EMAIL' || field.require === '1' ? 'required' : false
|
889 |
+
});
|
890 |
+
}
|
891 |
+
}, {
|
892 |
+
key: 'get_date_field',
|
893 |
+
value: function get_date_field(field) {
|
894 |
+
return wp.element.createElement(TextControl, {
|
895 |
+
id: "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge,
|
896 |
+
placeholder: field.placeholder,
|
897 |
+
onChange: this.handleFormFieldChanges,
|
898 |
+
type: 'text',
|
899 |
+
value: field.default,
|
900 |
+
name: field.merge,
|
901 |
+
className: (0, _classnames2.default)('yikes-easy-mc-' + field.type + ' hasDatepicker ' + field['additional-classes']),
|
902 |
+
key: 'yikes-mailchimp-field-' + field.merge,
|
903 |
+
required: field.merge === 'EMAIL' || field.require === '1' ? 'required' : false,
|
904 |
+
'data-attr-type': field.type,
|
905 |
+
'data-date-format': field.date_format
|
906 |
+
});
|
907 |
+
}
|
908 |
+
}, {
|
909 |
+
key: 'get_radio_interest_group',
|
910 |
+
value: function get_radio_interest_group(field) {
|
911 |
+
var _this3 = this;
|
912 |
+
|
913 |
+
var ii = -1;
|
914 |
+
var cn = "yikes-easy-mc-checkbox-label " + field['additional-classes'];
|
915 |
+
|
916 |
+
return Object.keys(JSON.parse(field.groups)).map(function (key) {
|
917 |
+
var _classNames2;
|
918 |
+
|
919 |
+
var choice = JSON.parse(field.groups)[key];
|
920 |
+
ii++;
|
921 |
+
return wp.element.createElement(
|
922 |
+
'label',
|
923 |
+
{
|
924 |
+
htmlFor: field.group_id + '-' + ii,
|
925 |
+
className: (0, _classnames2.default)((_classNames2 = {}, _defineProperty(_classNames2, cn, true), _defineProperty(_classNames2, 'field-no-label', field['hide-label'] === '1'), _classNames2)),
|
926 |
+
key: field.group_id + '-' + ii + '-label-key'
|
927 |
+
},
|
928 |
+
wp.element.createElement('input', {
|
929 |
+
type: 'radio',
|
930 |
+
name: "group-" + field.group_id + '[]',
|
931 |
+
id: field.group_id + '-' + ii,
|
932 |
+
key: field.group_id + '-' + ii + '-input-key',
|
933 |
+
value: key,
|
934 |
+
onChange: _this3.handleFormFieldChanges,
|
935 |
+
checked: key === field.default_choice,
|
936 |
+
className: (0, _classnames2.default)({ 'yikes-interest-group-required': field.require === '1' })
|
937 |
+
}),
|
938 |
+
choice
|
939 |
+
);
|
940 |
+
});
|
941 |
+
}
|
942 |
+
}, {
|
943 |
+
key: 'get_hidden_interest_group',
|
944 |
+
value: function get_hidden_interest_group(field) {
|
945 |
+
var _this4 = this;
|
946 |
+
|
947 |
+
var ii = -1;
|
948 |
+
|
949 |
+
return Object.keys(JSON.parse(field.groups)).map(function (key) {
|
950 |
+
var choice = JSON.parse(field.groups)[key];
|
951 |
+
ii++;
|
952 |
+
return wp.element.createElement(
|
953 |
+
'label',
|
954 |
+
{
|
955 |
+
htmlFor: field.group_id + '-' + ii,
|
956 |
+
className: (0, _classnames2.default)("yikes-easy-mc-checkbox-label " + field['additional-classes']),
|
957 |
+
key: field.group_id + '-' + ii + '-label-key'
|
958 |
+
},
|
959 |
+
wp.element.createElement('input', {
|
960 |
+
type: 'checkbox',
|
961 |
+
name: "group-" + field.group_id + '[]',
|
962 |
+
id: field.group_id + '-' + ii,
|
963 |
+
key: field.group_id + '-' + ii + '-input-key',
|
964 |
+
value: key,
|
965 |
+
onChange: _this4.handleFormFieldChanges,
|
966 |
+
checked: field.default_choice.indexOf(key) !== -1
|
967 |
+
}),
|
968 |
+
choice
|
969 |
+
);
|
970 |
+
});
|
971 |
+
}
|
972 |
+
}, {
|
973 |
+
key: 'get_checkboxes_interest_group',
|
974 |
+
value: function get_checkboxes_interest_group(field) {
|
975 |
+
var _this5 = this;
|
976 |
+
|
977 |
+
var ii = -1;
|
978 |
+
var cn = "yikes-easy-mc-checkbox-label " + field['additional-classes'];
|
979 |
+
|
980 |
+
return Object.keys(JSON.parse(field.groups)).map(function (key) {
|
981 |
+
var _classNames3;
|
982 |
+
|
983 |
+
var choice = JSON.parse(field.groups)[key];
|
984 |
+
ii++;
|
985 |
+
return wp.element.createElement(
|
986 |
+
'label',
|
987 |
+
{
|
988 |
+
htmlFor: field.group_id + '-' + ii,
|
989 |
+
className: (0, _classnames2.default)((_classNames3 = {}, _defineProperty(_classNames3, cn, true), _defineProperty(_classNames3, 'field-no-label', field['hide-label'] === '1'), _classNames3)),
|
990 |
+
key: field.group_id + '-' + ii + '-label-key'
|
991 |
+
},
|
992 |
+
wp.element.createElement('input', {
|
993 |
+
className: (0, _classnames2.default)({ 'yikes-interest-group-required': field.require === '1' }),
|
994 |
+
type: 'checkbox',
|
995 |
+
name: "group-" + field.group_id + '[]',
|
996 |
+
id: field.group_id + '-' + ii,
|
997 |
+
key: field.group_id + '-' + ii + '-input-key',
|
998 |
+
value: key,
|
999 |
+
onChange: _this5.handleFormFieldChanges,
|
1000 |
+
checked: field.default_choice.indexOf(key) !== -1,
|
1001 |
+
required: field.require === '1' ? 'required' : false
|
1002 |
+
}),
|
1003 |
+
choice
|
1004 |
+
);
|
1005 |
+
});
|
1006 |
+
}
|
1007 |
+
}, {
|
1008 |
+
key: 'get_dropdown_interest_group',
|
1009 |
+
value: function get_dropdown_interest_group(field) {
|
1010 |
+
var ii = -1;
|
1011 |
+
|
1012 |
+
return wp.element.createElement(
|
1013 |
+
'select',
|
1014 |
+
{
|
1015 |
+
id: "yikes-easy-mc-form-" + this.props.formID + "-" + field.group_id,
|
1016 |
+
name: "group-" + field.group_id,
|
1017 |
+
className: (0, _classnames2.default)("yikes-easy-mc-dropdown " + field['additional-classes']),
|
1018 |
+
value: field.default_choice,
|
1019 |
+
onChange: this.handleFormFieldChanges,
|
1020 |
+
required: field.require === '1' ? 'required' : false
|
1021 |
+
},
|
1022 |
+
Object.keys(JSON.parse(field.groups)).map(function (key) {
|
1023 |
+
var choice = JSON.parse(field.groups)[key];
|
1024 |
+
ii++;
|
1025 |
+
return wp.element.createElement(
|
1026 |
+
'option',
|
1027 |
+
{ key: field.group_id + '-' + ii + '-input-key', value: key },
|
1028 |
+
choice
|
1029 |
+
);
|
1030 |
+
})
|
1031 |
+
);
|
1032 |
+
}
|
1033 |
+
}, {
|
1034 |
+
key: 'form_fields',
|
1035 |
+
value: function form_fields() {
|
1036 |
+
var _this6 = this;
|
1037 |
+
|
1038 |
+
return this.props.formData && this.props.formData.fields ? Object.keys(this.props.formData.fields).map(function (key) {
|
1039 |
+
|
1040 |
+
var field = _this6.props.formData.fields[key];
|
1041 |
+
|
1042 |
+
// Form Fields (aka merge variables)
|
1043 |
+
if (typeof field.merge !== 'undefined') {
|
1044 |
+
|
1045 |
+
var desc = field.description.length > 0 ? wp.element.createElement(
|
1046 |
+
'p',
|
1047 |
+
{ className: 'form-field-description', id: "form-field-description-" + field.merge, key: "form-field-description-" + field.merge },
|
1048 |
+
field.description
|
1049 |
+
) : '';
|
1050 |
+
|
1051 |
+
var label = field['hide-label'] !== '1' ? wp.element.createElement(
|
1052 |
+
'span',
|
1053 |
+
{ className: (0, _classnames2.default)(field.merge + '-label'), key: field.merge + '-label-span-key' },
|
1054 |
+
field.label
|
1055 |
+
) : '';
|
1056 |
+
|
1057 |
+
var classes = { 'yikes-mailchimp-field-required': field.merge === 'EMAIL' || field.require === '1' };
|
1058 |
+
classes[field.merge + '-label'] = true;
|
1059 |
+
|
1060 |
+
if (field.type === 'address') {
|
1061 |
+
|
1062 |
+
return [field.description_above === '1' && field.description.length > 0 && desc, Object.keys(_this6.address_fields).map(function (addr_field) {
|
1063 |
+
label = field['hide-label'] !== '1' ? wp.element.createElement(
|
1064 |
+
'span',
|
1065 |
+
{ className: (0, _classnames2.default)(field.merge + '-label'), key: field.merge + '-label-span-key-' + addr_field },
|
1066 |
+
_this6.address_fields[addr_field]
|
1067 |
+
) : '';
|
1068 |
+
|
1069 |
+
return wp.element.createElement(
|
1070 |
+
'label',
|
1071 |
+
{
|
1072 |
+
htmlFor: "yikes-easy-mc-form-" + _this6.props.formID + "-" + field.merge + '-' + addr_field,
|
1073 |
+
className: (0, _classnames2.default)(classes),
|
1074 |
+
key: field.merge + '-label-key-' + addr_field,
|
1075 |
+
style: field.hide === '1' ? { 'display': 'none' } : {}
|
1076 |
+
},
|
1077 |
+
label,
|
1078 |
+
_this6.get_address_field(addr_field, field)
|
1079 |
+
);
|
1080 |
+
}), field.description_above !== '1' && field.description.length > 0 && desc];
|
1081 |
+
} else {
|
1082 |
+
return wp.element.createElement(
|
1083 |
+
'label',
|
1084 |
+
{
|
1085 |
+
htmlFor: "yikes-easy-mc-form-" + _this6.props.formID + "-" + field.merge,
|
1086 |
+
className: (0, _classnames2.default)(classes),
|
1087 |
+
key: field.merge + '-label-key',
|
1088 |
+
style: field.hide === '1' ? { 'display': 'none' } : {}
|
1089 |
+
},
|
1090 |
+
label,
|
1091 |
+
field.description_above === '1' && field.description.length > 0 && desc,
|
1092 |
+
field.type === 'dropdown' ? _this6.get_dropdown_field(field) : field.type === 'radio' ? _this6.get_radio_field(field) : field.type === 'url' || field.type === 'imageurl' ? _this6.get_url_field(field) : field.type === 'date' || field.type === 'birthday' ? _this6.get_date_field(field) : _this6.get_default_field(field),
|
1093 |
+
field.description_above !== '1' && field.description.length > 0 && desc
|
1094 |
+
);
|
1095 |
+
}
|
1096 |
+
} else {
|
1097 |
+
|
1098 |
+
var desc = field.description.length > 0 ? wp.element.createElement(
|
1099 |
+
'p',
|
1100 |
+
{ className: 'form-field-description', id: "form-field-description-" + field.group_id, key: "form-field-description-" + field.group_id },
|
1101 |
+
field.description
|
1102 |
+
) : '';
|
1103 |
+
|
1104 |
+
var label = field['hide-label'] !== '1' ? wp.element.createElement(
|
1105 |
+
'span',
|
1106 |
+
{ key: field.group_id + "-label-span-key", className: (0, _classnames2.default)(field.group_id + "-label checkbox-parent-label") },
|
1107 |
+
field.label
|
1108 |
+
) : '';
|
1109 |
+
|
1110 |
+
var classes = { 'yikes-mailchimp-field-required': field.require === '1' };
|
1111 |
+
classes[field.group_id + '-label'] = true;
|
1112 |
+
|
1113 |
+
return wp.element.createElement(
|
1114 |
+
'label',
|
1115 |
+
{
|
1116 |
+
htmlFor: field.group_id,
|
1117 |
+
className: (0, _classnames2.default)(classes),
|
1118 |
+
key: field.group_id + "-label-span-key",
|
1119 |
+
style: field.type === 'hidden' || field.hide === '1' ? { 'display': 'none' } : {}
|
1120 |
+
},
|
1121 |
+
label,
|
1122 |
+
field.description_above === '1' && field.description.length > 0 && desc,
|
1123 |
+
field.type === 'radio' ? _this6.get_radio_interest_group(field) : field.type === 'hidden' ? _this6.get_hidden_interest_group(field) : field.type === 'checkboxes' ? _this6.get_checkboxes_interest_group(field) : field.type === 'dropdown' ? _this6.get_dropdown_interest_group(field) : '',
|
1124 |
+
field.description_above !== '1' && field.description.length > 0 && desc
|
1125 |
+
);
|
1126 |
+
}
|
1127 |
+
}) : '';
|
1128 |
+
}
|
1129 |
+
}, {
|
1130 |
+
key: 'form_recaptcha',
|
1131 |
+
value: function form_recaptcha() {
|
1132 |
+
|
1133 |
+
return this.state.recaptcha_data.success === true && this.state.recaptcha_data.data.site_key && this.props.recaptcha === true ? wp.element.createElement(Recaptcha, {
|
1134 |
+
sitekey: this.state.recaptcha_data.data.site_key,
|
1135 |
+
key: 'easy-forms-recaptcha-1',
|
1136 |
+
elementID: 'google-recaptcha-id-' + Math.random().toString(36).slice(-8) // Need to use a unique ID for multiple reCAPTCHAs to work on the same page.
|
1137 |
+
, theme: this.props.recaptchaTheme,
|
1138 |
+
hl: this.props.recaptchaLang.length > 0 ? this.props.recaptchaLang : this.state.recaptcha_data.data.locale,
|
1139 |
+
type: this.props.recaptchaType,
|
1140 |
+
size: this.props.recaptchaSize,
|
1141 |
+
verifyCallback: '',
|
1142 |
+
expiredCallback: ''
|
1143 |
+
}) : '';
|
1144 |
+
}
|
1145 |
+
}, {
|
1146 |
+
key: 'submit_button',
|
1147 |
+
value: function submit_button() {
|
1148 |
+
return this.props.formData && this.props.formData.fields ? this.props.focus && this.props.formData.form_settings['yikes-easy-mc-submit-button-type'] === 'text' ? wp.element.createElement(
|
1149 |
+
'button',
|
1150 |
+
{
|
1151 |
+
type: 'submit',
|
1152 |
+
key: 'mailchimpSubmitButton',
|
1153 |
+
className: (0, _classnames2.default)("yikes-easy-mc-submit-button yikes-easy-mc-submit-button-" + this.props.formID + " btn btn-primary" + " " + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'])
|
1154 |
+
},
|
1155 |
+
wp.element.createElement(PlainText, {
|
1156 |
+
className: 'yikes-mailchimp-submit-button-span-text',
|
1157 |
+
key: 'yikes-mailchimp-submit-button-span-text',
|
1158 |
+
value: this.props.submitButtonText ? this.props.submitButtonText : '',
|
1159 |
+
onChange: this.props.toggleSubmitButtonText
|
1160 |
+
})
|
1161 |
+
) : this.props.formData.form_settings['yikes-easy-mc-submit-button-type'] === 'text' ? wp.element.createElement(
|
1162 |
+
'button',
|
1163 |
+
{
|
1164 |
+
type: 'submit',
|
1165 |
+
key: 'mailchimpSubmitButton',
|
1166 |
+
className: (0, _classnames2.default)("yikes-easy-mc-submit-button yikes-easy-mc-submit-button-" + this.props.formID + " btn btn-primary" + " " + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'])
|
1167 |
+
},
|
1168 |
+
wp.element.createElement(
|
1169 |
+
'span',
|
1170 |
+
{ className: 'yikes-mailchimp-submit-button-span-text', key: 'yikes-mailchimp-submit-button-span-text' },
|
1171 |
+
this.props.submitButtonText
|
1172 |
+
)
|
1173 |
+
) : wp.element.createElement('input', {
|
1174 |
+
type: 'image',
|
1175 |
+
alt: this.props.submitButtonText,
|
1176 |
+
src: this.props.formData.form_settings['yikes-easy-mc-submit-button-image'],
|
1177 |
+
className: (0, _classnames2.default)("yikes-easy-mc-submit-button yikes-easy-mc-submit-button-image yikes-easy-mc-submit-button-" + this.props.formID + " btn btn-primary" + " " + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'])
|
1178 |
+
}) : '';
|
1179 |
+
}
|
1180 |
+
}, {
|
1181 |
+
key: 'get_form_section',
|
1182 |
+
value: function get_form_section() {
|
1183 |
+
return wp.element.createElement(
|
1184 |
+
'section',
|
1185 |
+
{
|
1186 |
+
id: "yikes-mailchimp-container-" + this.props.formID,
|
1187 |
+
className: (0, _classnames2.default)("yikes-mailchimp-container yikes-mailchimp-container-" + this.props.formID),
|
1188 |
+
key: 'yikes-mailchimp-container-section'
|
1189 |
+
},
|
1190 |
+
[
|
1191 |
+
|
1192 |
+
// Form title
|
1193 |
+
[this.form_title()],
|
1194 |
+
|
1195 |
+
// Form Description
|
1196 |
+
[this.form_description()],
|
1197 |
+
|
1198 |
+
// Get the form
|
1199 |
+
[this.get_form()]]
|
1200 |
+
);
|
1201 |
+
}
|
1202 |
+
}, {
|
1203 |
+
key: 'get_form',
|
1204 |
+
value: function get_form() {
|
1205 |
+
return (
|
1206 |
+
// Form Wrapper
|
1207 |
+
wp.element.createElement(
|
1208 |
+
'form',
|
1209 |
+
{
|
1210 |
+
id: (0, _slugify2.default)(this.props.formTitle) + '-' + this.props.formID,
|
1211 |
+
className: (0, _classnames2.default)("yikes-easy-mc-form yikes-easy-mc-form-" + this.props.formID + " " + this.props.formData.form_settings['yikes-easy-mc-form-class-names']),
|
1212 |
+
key: 'yikes-mailchimp-container-form'
|
1213 |
+
},
|
1214 |
+
[
|
1215 |
+
|
1216 |
+
// Form fields
|
1217 |
+
[this.form_fields()],
|
1218 |
+
|
1219 |
+
// Recaptcha
|
1220 |
+
[this.form_recaptcha()],
|
1221 |
+
|
1222 |
+
// Submit button
|
1223 |
+
[this.submit_button()]]
|
1224 |
+
)
|
1225 |
+
);
|
1226 |
+
}
|
1227 |
+
}, {
|
1228 |
+
key: 'render',
|
1229 |
+
value: function render() {
|
1230 |
+
|
1231 |
+
if (this.state.forms.length > 0 && this.props.formData && Object.keys(this.props.formData).length > 0) {
|
1232 |
+
|
1233 |
+
return wp.element.createElement(
|
1234 |
+
'div',
|
1235 |
+
{ className: (0, _classnames2.default)(this.props.className) },
|
1236 |
+
// Show inspector controls when focused
|
1237 |
+
this.props.focus && this.inspector_controls(),
|
1238 |
+
// Show the forms dropdown
|
1239 |
+
this.forms_dropdown(),
|
1240 |
+
wp.element.createElement('hr', { key: 'easy-forms-dropdown-divider' }),
|
1241 |
+
// Show the form
|
1242 |
+
this.get_form_section()
|
1243 |
+
);
|
1244 |
+
} else if (this.state.forms.length > 0) {
|
1245 |
+
|
1246 |
+
// If we don't have form data, show the forms dropdown
|
1247 |
+
return wp.element.createElement(
|
1248 |
+
'div',
|
1249 |
+
{ className: (0, _classnames2.default)(this.props.className) },
|
1250 |
+
this.forms_dropdown()
|
1251 |
+
);
|
1252 |
+
} else {
|
1253 |
+
|
1254 |
+
// Show loading... & spinner
|
1255 |
+
return wp.element.createElement(
|
1256 |
+
'p',
|
1257 |
+
{ key: 'loading-easy-forms', className: (0, _classnames2.default)(this.props.className) },
|
1258 |
+
wp.element.createElement(
|
1259 |
+
'span',
|
1260 |
+
{ key: 'yikes-easy-forms-loading-text' },
|
1261 |
+
'Loading...'
|
1262 |
+
),
|
1263 |
+
wp.element.createElement(Spinner, { key: 'yikes-easy-forms-loading-spinner' })
|
1264 |
+
);
|
1265 |
+
}
|
1266 |
+
}
|
1267 |
+
}]);
|
1268 |
+
|
1269 |
+
return MailChimpForms;
|
1270 |
+
}(Component);
|
1271 |
+
|
1272 |
+
exports.default = MailChimpForms;
|
1273 |
+
|
1274 |
+
/***/ }),
|
1275 |
+
|
1276 |
+
/***/ "./blocks/development/form/js/countries.js":
|
1277 |
+
/*!*************************************************!*\
|
1278 |
+
!*** ./blocks/development/form/js/countries.js ***!
|
1279 |
+
\*************************************************/
|
1280 |
+
/*! no static exports found */
|
1281 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1282 |
+
|
1283 |
+
"use strict";
|
1284 |
+
|
1285 |
+
|
1286 |
+
Object.defineProperty(exports, "__esModule", {
|
1287 |
+
value: true
|
1288 |
+
});
|
1289 |
+
var countries = {
|
1290 |
+
'US': 'United States',
|
1291 |
+
'GB': 'United Kingdom',
|
1292 |
+
'AF': 'Afghanistan',
|
1293 |
+
'AX': 'Aland Islands',
|
1294 |
+
'AL': 'Albania',
|
1295 |
+
'DZ': 'Algeria',
|
1296 |
+
'AS': 'American Samoa',
|
1297 |
+
'AD': 'Andorra',
|
1298 |
+
'AO': 'Angola',
|
1299 |
+
'AI': 'Anguilla',
|
1300 |
+
'AQ': 'Antarctica',
|
1301 |
+
'AG': 'Antigua and Barbuda',
|
1302 |
+
'AR': 'Argentina',
|
1303 |
+
'AM': 'Armenia',
|
1304 |
+
'AW': 'Aruba',
|
1305 |
+
'AU': 'Australia',
|
1306 |
+
'AT': 'Austria',
|
1307 |
+
'AZ': 'Azerbaijan',
|
1308 |
+
'BS': 'Bahamas',
|
1309 |
+
'BH': 'Bahrain',
|
1310 |
+
'BD': 'Bangladesh',
|
1311 |
+
'BB': 'Barbados',
|
1312 |
+
'BY': 'Belarus',
|
1313 |
+
'BE': 'Belgium',
|
1314 |
+
'BZ': 'Belize',
|
1315 |
+
'BJ': 'Benin',
|
1316 |
+
'BM': 'Bermuda',
|
1317 |
+
'BT': 'Bhutan',
|
1318 |
+
'BO': 'Bolivia',
|
1319 |
+
'BA': 'Bosnia and Herzegovina',
|
1320 |
+
'BW': 'Botswana',
|
1321 |
+
'BV': 'Bouvet Island',
|
1322 |
+
'BR': 'Brazil',
|
1323 |
+
'IO': 'British Indian Ocean Territory',
|
1324 |
+
'BN': 'Brunei Darussalam',
|
1325 |
+
'BG': 'Bulgaria',
|
1326 |
+
'BF': 'Burkina Faso',
|
1327 |
+
'BI': 'Burundi',
|
1328 |
+
'KH': 'Cambodia',
|
1329 |
+
'CM': 'Cameroon',
|
1330 |
+
'CA': 'Canada',
|
1331 |
+
'CV': 'Cape Verde',
|
1332 |
+
'KY': 'Cayman Islands',
|
1333 |
+
'CF': 'Central African Republic',
|
1334 |
+
'TD': 'Chad',
|
1335 |
+
'CL': 'Chile',
|
1336 |
+
'CN': 'China',
|
1337 |
+
'CX': 'Christmas Island',
|
1338 |
+
'CC': 'Cocos (Keeling) Islands',
|
1339 |
+
'CO': 'Colombia',
|
1340 |
+
'KM': 'Comoros',
|
1341 |
+
'CG': 'Congo',
|
1342 |
+
'CD': 'Congo, The Democratic Republic of The',
|
1343 |
+
'CK': 'Cook Islands',
|
1344 |
+
'CR': 'Costa Rica',
|
1345 |
+
'CI': 'Cote D’ivoire',
|
1346 |
+
'HR': 'Croatia',
|
1347 |
+
'CU': 'Cuba',
|
1348 |
+
'CY': 'Cyprus',
|
1349 |
+
'CZ': 'Czech Republic',
|
1350 |
+
'DK': 'Denmark',
|
1351 |
+
'DJ': 'Djibouti',
|
1352 |
+
'DM': 'Dominica',
|
1353 |
+
'DO': 'Dominican Republic',
|
1354 |
+
'EC': 'Ecuador',
|
1355 |
+
'EG': 'Egypt',
|
1356 |
+
'SV': 'El Salvador',
|
1357 |
+
'GQ': 'Equatorial Guinea',
|
1358 |
+
'ER': 'Eritrea',
|
1359 |
+
'EE': 'Estonia',
|
1360 |
+
'ET': 'Ethiopia',
|
1361 |
+
'FK': 'Falkland Islands (Malvinas)',
|
1362 |
+
'FO': 'Faroe Islands',
|
1363 |
+
'FJ': 'Fiji',
|
1364 |
+
'FI': 'Finland',
|
1365 |
+
'FR': 'France',
|
1366 |
+
'GF': 'French Guiana',
|
1367 |
+
'PF': 'French Polynesia',
|
1368 |
+
'TF': 'French Southern Territories',
|
1369 |
+
'GA': 'Gabon',
|
1370 |
+
'GM': 'Gambia',
|
1371 |
+
'GE': 'Georgia',
|
1372 |
+
'DE': 'Germany',
|
1373 |
+
'GH': 'Ghana',
|
1374 |
+
'GI': 'Gibraltar',
|
1375 |
+
'GR': 'Greece',
|
1376 |
+
'GL': 'Greenland',
|
1377 |
+
'GD': 'Grenada',
|
1378 |
+
'GP': 'Guadeloupe',
|
1379 |
+
'GU': 'Guam',
|
1380 |
+
'GT': 'Guatemala',
|
1381 |
+
'GG': 'Guernsey',
|
1382 |
+
'GN': 'Guinea',
|
1383 |
+
'GW': 'Guinea-bissau',
|
1384 |
+
'GY': 'Guyana',
|
1385 |
+
'HT': 'Haiti',
|
1386 |
+
'HM': 'Heard Island and Mcdonald Islands',
|
1387 |
+
'VA': 'Holy See (Vatican City State)',
|
1388 |
+
'HN': 'Honduras',
|
1389 |
+
'HK': 'Hong Kong',
|
1390 |
+
'HU': 'Hungary',
|
1391 |
+
'IS': 'Iceland',
|
1392 |
+
'IN': 'India',
|
1393 |
+
'ID': 'Indonesia',
|
1394 |
+
'IR': 'Iran, Islamic Republic of',
|
1395 |
+
'IQ': 'Iraq',
|
1396 |
+
'IE': 'Ireland',
|
1397 |
+
'IM': 'Isle of Man',
|
1398 |
+
'IL': 'Israel',
|
1399 |
+
'IT': 'Italy',
|
1400 |
+
'JM': 'Jamaica',
|
1401 |
+
'JP': 'Japan',
|
1402 |
+
'JE': 'Jersey',
|
1403 |
+
'JO': 'Jordan',
|
1404 |
+
'KZ': 'Kazakhstan',
|
1405 |
+
'KE': 'Kenya',
|
1406 |
+
'KI': 'Kiribati',
|
1407 |
+
'KP': 'Korea, Democratic People’s Republic of',
|
1408 |
+
'KR': 'Korea, Republic of',
|
1409 |
+
'KW': 'Kuwait',
|
1410 |
+
'KG': 'Kyrgyzstan',
|
1411 |
+
'LA': 'Lao People’s Democratic Republic',
|
1412 |
+
'LV': 'Latvia',
|
1413 |
+
'LB': 'Lebanon',
|
1414 |
+
'LS': 'Lesotho',
|
1415 |
+
'LR': 'Liberia',
|
1416 |
+
'LY': 'Libyan Arab Jamahiriya',
|
1417 |
+
'LI': 'Liechtenstein',
|
1418 |
+
'LT': 'Lithuania',
|
1419 |
+
'LU': 'Luxembourg',
|
1420 |
+
'MO': 'Macao',
|
1421 |
+
'MK': 'Macedonia, The Former Yugoslav Republic of',
|
1422 |
+
'MG': 'Madagascar',
|
1423 |
+
'MW': 'Malawi',
|
1424 |
+
'MY': 'Malaysia',
|
1425 |
+
'MV': 'Maldives',
|
1426 |
+
'ML': 'Mali',
|
1427 |
+
'MT': 'Malta',
|
1428 |
+
'MH': 'Marshall Islands',
|
1429 |
+
'MQ': 'Martinique',
|
1430 |
+
'MR': 'Mauritania',
|
1431 |
+
'MU': 'Mauritius',
|
1432 |
+
'YT': 'Mayotte',
|
1433 |
+
'MX': 'Mexico',
|
1434 |
+
'FM': 'Micronesia, Federated States of',
|
1435 |
+
'MD': 'Moldova, Republic of',
|
1436 |
+
'MC': 'Monaco',
|
1437 |
+
'MN': 'Mongolia',
|
1438 |
+
'ME': 'Montenegro',
|
1439 |
+
'MS': 'Montserrat',
|
1440 |
+
'MA': 'Morocco',
|
1441 |
+
'MZ': 'Mozambique',
|
1442 |
+
'MM': 'Myanmar',
|
1443 |
+
'NA': 'Namibia',
|
1444 |
+
'NR': 'Nauru',
|
1445 |
+
'NP': 'Nepal',
|
1446 |
+
'NL': 'Netherlands',
|
1447 |
+
'AN': 'Netherlands Antilles',
|
1448 |
+
'NC': 'New Caledonia',
|
1449 |
+
'NZ': 'New Zealand',
|
1450 |
+
'NI': 'Nicaragua',
|
1451 |
+
'NE': 'Niger',
|
1452 |
+
'NG': 'Nigeria',
|
1453 |
+
'NU': 'Niue',
|
1454 |
+
'NF': 'Norfolk Island',
|
1455 |
+
'MP': 'Northern Mariana Islands',
|
1456 |
+
'NO': 'Norway',
|
1457 |
+
'OM': 'Oman',
|
1458 |
+
'PK': 'Pakistan',
|
1459 |
+
'PW': 'Palau',
|
1460 |
+
'PS': 'Palestinian Territory, Occupied',
|
1461 |
+
'PA': 'Panama',
|
1462 |
+
'PG': 'Papua New Guinea',
|
1463 |
+
'PY': 'Paraguay',
|
1464 |
+
'PE': 'Peru',
|
1465 |
+
'PH': 'Philippines',
|
1466 |
+
'PN': 'Pitcairn',
|
1467 |
+
'PL': 'Poland',
|
1468 |
+
'PT': 'Portugal',
|
1469 |
+
'PR': 'Puerto Rico',
|
1470 |
+
'QA': 'Qatar',
|
1471 |
+
'RE': 'Reunion',
|
1472 |
+
'RO': 'Romania',
|
1473 |
+
'RU': 'Russian Federation',
|
1474 |
+
'RW': 'Rwanda',
|
1475 |
+
'SH': 'Saint Helena',
|
1476 |
+
'KN': 'Saint Kitts and Nevis',
|
1477 |
+
'LC': 'Saint Lucia',
|
1478 |
+
'PM': 'Saint Pierre and Miquelon',
|
1479 |
+
'VC': 'Saint Vincent and The Grenadines',
|
1480 |
+
'WS': 'Samoa',
|
1481 |
+
'SM': 'San Marino',
|
1482 |
+
'ST': 'Sao Tome and Principe',
|
1483 |
+
'SA': 'Saudi Arabia',
|
1484 |
+
'SN': 'Senegal',
|
1485 |
+
'RS': 'Serbia',
|
1486 |
+
'SC': 'Seychelles',
|
1487 |
+
'SL': 'Sierra Leone',
|
1488 |
+
'SG': 'Singapore',
|
1489 |
+
'SK': 'Slovakia',
|
1490 |
+
'SI': 'Slovenia',
|
1491 |
+
'SB': 'Solomon Islands',
|
1492 |
+
'SO': 'Somalia',
|
1493 |
+
'ZA': 'South Africa',
|
1494 |
+
'GS': 'South Georgia and The South Sandwich Islands',
|
1495 |
+
'ES': 'Spain',
|
1496 |
+
'LK': 'Sri Lanka',
|
1497 |
+
'SD': 'Sudan',
|
1498 |
+
'SR': 'Suriname',
|
1499 |
+
'SJ': 'Svalbard and Jan Mayen',
|
1500 |
+
'SZ': 'Swaziland',
|
1501 |
+
'SE': 'Sweden',
|
1502 |
+
'CH': 'Switzerland',
|
1503 |
+
'SY': 'Syrian Arab Republic',
|
1504 |
+
'TW': 'Taiwan, Province of China',
|
1505 |
+
'TJ': 'Tajikistan',
|
1506 |
+
'TZ': 'Tanzania, United Republic of',
|
1507 |
+
'TH': 'Thailand',
|
1508 |
+
'TL': 'Timor-leste',
|
1509 |
+
'TG': 'Togo',
|
1510 |
+
'TK': 'Tokelau',
|
1511 |
+
'TO': 'Tonga',
|
1512 |
+
'TT': 'Trinidad and Tobago',
|
1513 |
+
'TN': 'Tunisia',
|
1514 |
+
'TR': 'Turkey',
|
1515 |
+
'TM': 'Turkmenistan',
|
1516 |
+
'TC': 'Turks and Caicos Islands',
|
1517 |
+
'TV': 'Tuvalu',
|
1518 |
+
'UG': 'Uganda',
|
1519 |
+
'UA': 'Ukraine',
|
1520 |
+
'AE': 'United Arab Emirates',
|
1521 |
+
'UM': 'United States Minor Outlying Islands',
|
1522 |
+
'UY': 'Uruguay',
|
1523 |
+
'UZ': 'Uzbekistan',
|
1524 |
+
'VU': 'Vanuatu',
|
1525 |
+
'VE': 'Venezuela',
|
1526 |
+
'VN': 'Viet Nam',
|
1527 |
+
'VG': 'Virgin Islands, British',
|
1528 |
+
'VI': 'Virgin Islands, U.S.',
|
1529 |
+
'WF': 'Wallis and Futuna',
|
1530 |
+
'EH': 'Western Sahara',
|
1531 |
+
'YE': 'Yemen',
|
1532 |
+
'ZM': 'Zambia',
|
1533 |
+
'ZW': 'Zimbabwe'
|
1534 |
+
};
|
1535 |
+
|
1536 |
+
exports.default = countries;
|
1537 |
+
|
1538 |
+
/***/ }),
|
1539 |
+
|
1540 |
+
/***/ "./blocks/development/form/js/enable-submit-button-editing.js":
|
1541 |
+
/*!********************************************************************!*\
|
1542 |
+
!*** ./blocks/development/form/js/enable-submit-button-editing.js ***!
|
1543 |
+
\********************************************************************/
|
1544 |
+
/*! no static exports found */
|
1545 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1546 |
+
|
1547 |
+
"use strict";
|
1548 |
+
|
1549 |
+
|
1550 |
+
(function ($) {
|
1551 |
+
|
1552 |
+
$(document).ready(function () {
|
1553 |
+
|
1554 |
+
$('body').on('click', '.yikes-easy-mc-submit-button', function (event) {
|
1555 |
+
event.preventDefault();
|
1556 |
+
event.stopPropagation();
|
1557 |
+
$('.yikes-mailchimp-submit-button-span-text').focus();
|
1558 |
+
});
|
1559 |
+
|
1560 |
+
$('body').on('click', '.yikes-mailchimp-submit-button-span-text', function (event) {
|
1561 |
+
event.preventDefault();
|
1562 |
+
event.stopPropagation();
|
1563 |
+
});
|
1564 |
+
});
|
1565 |
+
})(jQuery);
|
1566 |
+
|
1567 |
+
/***/ }),
|
1568 |
+
|
1569 |
+
/***/ "./blocks/development/form/js/get-form.js":
|
1570 |
+
/*!************************************************!*\
|
1571 |
+
!*** ./blocks/development/form/js/get-form.js ***!
|
1572 |
+
\************************************************/
|
1573 |
+
/*! no static exports found */
|
1574 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1575 |
+
|
1576 |
+
"use strict";
|
1577 |
+
|
1578 |
+
|
1579 |
+
Object.defineProperty(exports, "__esModule", {
|
1580 |
+
value: true
|
1581 |
+
});
|
1582 |
+
exports.default = yikes_easy_forms_fetch_form;
|
1583 |
+
function yikes_easy_forms_fetch_form(form_id) {
|
1584 |
+
var data = {
|
1585 |
+
action: 'yikes_get_form',
|
1586 |
+
form_id: form_id,
|
1587 |
+
nonce: ez_forms_gb_data.fetch_form_nonce
|
1588 |
+
};
|
1589 |
+
|
1590 |
+
var form = $.post(ez_forms_gb_data.ajax_url, data);
|
1591 |
+
|
1592 |
+
return form;
|
1593 |
+
}
|
1594 |
+
|
1595 |
+
/***/ }),
|
1596 |
+
|
1597 |
+
/***/ "./blocks/development/form/js/get-forms.js":
|
1598 |
+
/*!*************************************************!*\
|
1599 |
+
!*** ./blocks/development/form/js/get-forms.js ***!
|
1600 |
+
\*************************************************/
|
1601 |
+
/*! no static exports found */
|
1602 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1603 |
+
|
1604 |
+
"use strict";
|
1605 |
+
|
1606 |
+
|
1607 |
+
Object.defineProperty(exports, "__esModule", {
|
1608 |
+
value: true
|
1609 |
+
});
|
1610 |
+
exports.default = yikes_easy_forms_fetch_forms;
|
1611 |
+
function yikes_easy_forms_fetch_forms() {
|
1612 |
+
|
1613 |
+
var data = {
|
1614 |
+
action: 'yikes_get_forms',
|
1615 |
+
nonce: ez_forms_gb_data.fetch_forms_nonce
|
1616 |
+
};
|
1617 |
+
|
1618 |
+
var forms = $.post(ez_forms_gb_data.ajax_url, data);
|
1619 |
+
|
1620 |
+
return forms;
|
1621 |
+
}
|
1622 |
+
|
1623 |
+
/***/ }),
|
1624 |
+
|
1625 |
+
/***/ "./blocks/development/form/js/get-recaptcha.js":
|
1626 |
+
/*!*****************************************************!*\
|
1627 |
+
!*** ./blocks/development/form/js/get-recaptcha.js ***!
|
1628 |
+
\*****************************************************/
|
1629 |
+
/*! no static exports found */
|
1630 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1631 |
+
|
1632 |
+
"use strict";
|
1633 |
+
|
1634 |
+
|
1635 |
+
Object.defineProperty(exports, "__esModule", {
|
1636 |
+
value: true
|
1637 |
+
});
|
1638 |
+
exports.default = get_recaptcha;
|
1639 |
+
function get_recaptcha() {
|
1640 |
+
|
1641 |
+
var data = {
|
1642 |
+
action: 'yikes_get_recaptcha',
|
1643 |
+
nonce: ez_forms_gb_data.fetch_recaptcha_nonce
|
1644 |
+
};
|
1645 |
+
|
1646 |
+
var recaptcha_data = $.post(ez_forms_gb_data.ajax_url, data);
|
1647 |
+
|
1648 |
+
return recaptcha_data;
|
1649 |
+
}
|
1650 |
+
|
1651 |
+
/***/ }),
|
1652 |
+
|
1653 |
+
/***/ "./blocks/development/form/js/locales.js":
|
1654 |
+
/*!***********************************************!*\
|
1655 |
+
!*** ./blocks/development/form/js/locales.js ***!
|
1656 |
+
\***********************************************/
|
1657 |
+
/*! no static exports found */
|
1658 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1659 |
+
|
1660 |
+
"use strict";
|
1661 |
+
|
1662 |
+
|
1663 |
+
Object.defineProperty(exports, "__esModule", {
|
1664 |
+
value: true
|
1665 |
+
});
|
1666 |
+
var locales = {
|
1667 |
+
"ar": "Arabic",
|
1668 |
+
"af": "Afrikaans",
|
1669 |
+
"am": "Amharic",
|
1670 |
+
"hy": "Armenian",
|
1671 |
+
"az": "Azerbaijani",
|
1672 |
+
"eu": "Basque",
|
1673 |
+
"bn": "Bengali",
|
1674 |
+
"bg": "Bulgarian",
|
1675 |
+
"ca": "Catalan",
|
1676 |
+
"zh-HK": "Chinese (Hong Kong)",
|
1677 |
+
"zh-CN": "Chinese (Simplified)",
|
1678 |
+
"zh-TW": "Chinese (Traditional)",
|
1679 |
+
"hr": "Croatian",
|
1680 |
+
"cs": "Czech",
|
1681 |
+
"da": "Danish",
|
1682 |
+
"nl": "Dutch",
|
1683 |
+
"en-GB": "English (UK)",
|
1684 |
+
"en": "English (US)",
|
1685 |
+
"et": "Estonian",
|
1686 |
+
"fil": "Filipino",
|
1687 |
+
"fi": "Finnish",
|
1688 |
+
"fr": "French",
|
1689 |
+
"fr-CA": "French (Canadian)",
|
1690 |
+
"gl": "Galician",
|
1691 |
+
"ka": "Georgian",
|
1692 |
+
"de": "German",
|
1693 |
+
"de-AT": "German (Austria)",
|
1694 |
+
"de-CH": "German (Switzerland)",
|
1695 |
+
"el": "Greek",
|
1696 |
+
"gu": "Gujarati",
|
1697 |
+
"iw": "Hebrew",
|
1698 |
+
"hi": "Hindi",
|
1699 |
+
"hu": "Hungarain",
|
1700 |
+
"is": "Icelandic",
|
1701 |
+
"id": "Indonesian",
|
1702 |
+
"it": "Italian",
|
1703 |
+
"ja": "Japanese",
|
1704 |
+
"kn": "Kannada",
|
1705 |
+
"ko": "Korean",
|
1706 |
+
"lo": "Laothian",
|
1707 |
+
"lv": "Latvian",
|
1708 |
+
"lt": "Lithuanian",
|
1709 |
+
"ms": "Malay",
|
1710 |
+
"ml": "Malayalam",
|
1711 |
+
"mr": "Marathi",
|
1712 |
+
"mn": "Mongolian",
|
1713 |
+
"no": "Norwegian",
|
1714 |
+
"fa": "Persian",
|
1715 |
+
"pl": "Polish",
|
1716 |
+
"pt": "Portuguese",
|
1717 |
+
"pt-BR": "Portuguese (Brazil)",
|
1718 |
+
"pt-PT": "Portuguese (Portugal)",
|
1719 |
+
"ro": "Romanian",
|
1720 |
+
"ru": "Russian",
|
1721 |
+
"sr": "Serbian",
|
1722 |
+
"si": "Sinhalese",
|
1723 |
+
"sk": "Slovak",
|
1724 |
+
"sl": "Slovenian",
|
1725 |
+
"es": "Spanish",
|
1726 |
+
"es-419": "Spanish (Latin America)",
|
1727 |
+
"sw": "Swahili",
|
1728 |
+
"sv": "Swedish",
|
1729 |
+
"ta": "Tamil",
|
1730 |
+
"te": "Telugu",
|
1731 |
+
"th": "Thai",
|
1732 |
+
"tr": "Turkish",
|
1733 |
+
"uk": "Ukrainian",
|
1734 |
+
"ur": "Urdu",
|
1735 |
+
"vi": "Vietnamese",
|
1736 |
+
"zu": "Zulu"
|
1737 |
+
};
|
1738 |
+
|
1739 |
+
exports.default = locales;
|
1740 |
+
|
1741 |
+
/***/ }),
|
1742 |
+
|
1743 |
+
/***/ "./blocks/development/form/js/slugify.js":
|
1744 |
+
/*!***********************************************!*\
|
1745 |
+
!*** ./blocks/development/form/js/slugify.js ***!
|
1746 |
+
\***********************************************/
|
1747 |
+
/*! no static exports found */
|
1748 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1749 |
+
|
1750 |
+
"use strict";
|
1751 |
+
|
1752 |
+
|
1753 |
+
Object.defineProperty(exports, "__esModule", {
|
1754 |
+
value: true
|
1755 |
+
});
|
1756 |
+
exports.default = slugify;
|
1757 |
+
/*
|
1758 |
+
* This should have the same effect as WP/PHP's `sanitize_title()` function
|
1759 |
+
*
|
1760 |
+
* Source: https://gist.github.com/mathewbyrne/1280286
|
1761 |
+
*/
|
1762 |
+
function slugify(text) {
|
1763 |
+
|
1764 |
+
// Use hash map for special characters
|
1765 |
+
var specialChars = { "à": 'a', "ä": 'a', "á": 'a', "â": 'a', "æ": 'a', "å": 'a', "ë": 'e', "è": 'e', "é": 'e', "ê": 'e', "î": 'i', "ï": 'i', "ì": 'i', "í": 'i', "ò": 'o', "ó": 'o', "ö": 'o', "ô": 'o', "ø": 'o', "ù": 'o', "ú": 'u', "ü": 'u', "û": 'u', "ñ": 'n', "ç": 'c', "ß": 's', "ÿ": 'y', "œ": 'o', "ŕ": 'r', "ś": 's', "ń": 'n', "ṕ": 'p', "ẃ": 'w', "ǵ": 'g', "ǹ": 'n', "ḿ": 'm', "ǘ": 'u', "ẍ": 'x', "ź": 'z', "ḧ": 'h', "·": '-', "/": '-', "_": '-', ",": '-', ":": '-', ";": '-' };
|
1766 |
+
|
1767 |
+
return text.toString().toLowerCase().replace(/\s+/g, '-') // Replace spaces with -
|
1768 |
+
.replace(/./g, function (target, index, str) {
|
1769 |
+
return specialChars[target] || target;
|
1770 |
+
}) // Replace special characters using the hash map
|
1771 |
+
.replace(/&/g, '-and-') // Replace & with 'and'
|
1772 |
+
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
|
1773 |
+
.replace(/\-\-+/g, '-') // Replace multiple - with single -
|
1774 |
+
.replace(/^-+/, '') // Trim - from start of text
|
1775 |
+
.replace(/-+$/, ''); // Trim - from end of text
|
1776 |
+
};
|
1777 |
+
|
1778 |
+
/***/ }),
|
1779 |
+
|
1780 |
+
/***/ "./blocks/development/form/js/states.js":
|
1781 |
+
/*!**********************************************!*\
|
1782 |
+
!*** ./blocks/development/form/js/states.js ***!
|
1783 |
+
\**********************************************/
|
1784 |
+
/*! no static exports found */
|
1785 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1786 |
+
|
1787 |
+
"use strict";
|
1788 |
+
|
1789 |
+
|
1790 |
+
Object.defineProperty(exports, "__esModule", {
|
1791 |
+
value: true
|
1792 |
+
});
|
1793 |
+
var states = {
|
1794 |
+
'': '—',
|
1795 |
+
'AL': 'Alabama',
|
1796 |
+
'AK': 'Alaska',
|
1797 |
+
'AZ': 'Arizona',
|
1798 |
+
'AR': 'Arkansas',
|
1799 |
+
'CA': 'California',
|
1800 |
+
'CO': 'Colorado',
|
1801 |
+
'CT': 'Connecticut',
|
1802 |
+
'DE': 'Delaware',
|
1803 |
+
'DC': 'District Of Columbia',
|
1804 |
+
'FL': 'Florida',
|
1805 |
+
'GA': 'Georgia',
|
1806 |
+
'HI': 'Hawaii',
|
1807 |
+
'ID': 'Idaho',
|
1808 |
+
'IL': 'Illinois',
|
1809 |
+
'IN': 'Indiana',
|
1810 |
+
'IA': 'Iowa',
|
1811 |
+
'KS': 'Kansas',
|
1812 |
+
'KY': 'Kentucky',
|
1813 |
+
'LA': 'Louisiana',
|
1814 |
+
'ME': 'Maine',
|
1815 |
+
'MD': 'Maryland',
|
1816 |
+
'MA': 'Massachusetts',
|
1817 |
+
'MI': 'Michigan',
|
1818 |
+
'MN': 'Minnesota',
|
1819 |
+
'MS': 'Mississippi',
|
1820 |
+
'MO': 'Missouri',
|
1821 |
+
'MT': 'Montana',
|
1822 |
+
'NE': 'Nebraska',
|
1823 |
+
'NV': 'Nevada',
|
1824 |
+
'NH': 'New Hampshire',
|
1825 |
+
'NJ': 'New Jersey',
|
1826 |
+
'NM': 'New Mexico',
|
1827 |
+
'NY': 'New York',
|
1828 |
+
'NC': 'North Carolina',
|
1829 |
+
'ND': 'North Dakota',
|
1830 |
+
'OH': 'Ohio',
|
1831 |
+
'OK': 'Oklahoma',
|
1832 |
+
'OR': 'Oregon',
|
1833 |
+
'PA': 'Pennsylvania',
|
1834 |
+
'RI': 'Rhode Island',
|
1835 |
+
'SC': 'South Carolina',
|
1836 |
+
'SD': 'South Dakota',
|
1837 |
+
'TN': 'Tennessee',
|
1838 |
+
'TX': 'Texas',
|
1839 |
+
'UT': 'Utah',
|
1840 |
+
'VT': 'Vermont',
|
1841 |
+
'VA': 'Virginia',
|
1842 |
+
'WA': 'Washington',
|
1843 |
+
'WV': 'West Virginia',
|
1844 |
+
'WI': 'Wisconsin',
|
1845 |
+
'WY': 'Wyoming',
|
1846 |
+
'AB': 'Alberta',
|
1847 |
+
'BC': 'British Columbia',
|
1848 |
+
'MB': 'Manitoba',
|
1849 |
+
'NB': 'New Brunswick',
|
1850 |
+
'NL': 'Newfoundland and Labrador',
|
1851 |
+
'NS': 'Nova Scotia',
|
1852 |
+
'ON': 'Ontario',
|
1853 |
+
'PE': 'Prince Edward Island',
|
1854 |
+
'QC': 'Quebec',
|
1855 |
+
'SK': 'Saskatchewan',
|
1856 |
+
'NT': 'Northwest Territories',
|
1857 |
+
'NU': 'Nunavut',
|
1858 |
+
'YT': 'Yukon'
|
1859 |
+
};
|
1860 |
+
|
1861 |
+
exports.default = states;
|
1862 |
+
|
1863 |
+
/***/ }),
|
1864 |
+
|
1865 |
+
/***/ "./blocks/index.js":
|
1866 |
+
/*!*************************!*\
|
1867 |
+
!*** ./blocks/index.js ***!
|
1868 |
+
\*************************/
|
1869 |
+
/*! no static exports found */
|
1870 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1871 |
+
|
1872 |
+
"use strict";
|
1873 |
+
|
1874 |
+
|
1875 |
+
__webpack_require__(/*! ./development/form/js/block-form.js */ "./blocks/development/form/js/block-form.js");
|
1876 |
+
|
1877 |
+
/***/ }),
|
1878 |
+
|
1879 |
+
/***/ "./node_modules/classnames/index.js":
|
1880 |
+
/*!******************************************!*\
|
1881 |
+
!*** ./node_modules/classnames/index.js ***!
|
1882 |
+
\******************************************/
|
1883 |
+
/*! no static exports found */
|
1884 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1885 |
+
|
1886 |
+
"use strict";
|
1887 |
+
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
|
1888 |
+
|
1889 |
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
1890 |
+
|
1891 |
+
/*!
|
1892 |
+
Copyright (c) 2016 Jed Watson.
|
1893 |
+
Licensed under the MIT License (MIT), see
|
1894 |
+
http://jedwatson.github.io/classnames
|
1895 |
+
*/
|
1896 |
+
/* global define */
|
1897 |
+
|
1898 |
+
(function () {
|
1899 |
+
'use strict';
|
1900 |
+
|
1901 |
+
var hasOwn = {}.hasOwnProperty;
|
1902 |
+
|
1903 |
+
function classNames() {
|
1904 |
+
var classes = [];
|
1905 |
+
|
1906 |
+
for (var i = 0; i < arguments.length; i++) {
|
1907 |
+
var arg = arguments[i];
|
1908 |
+
if (!arg) continue;
|
1909 |
+
|
1910 |
+
var argType = typeof arg === 'undefined' ? 'undefined' : _typeof(arg);
|
1911 |
+
|
1912 |
+
if (argType === 'string' || argType === 'number') {
|
1913 |
+
classes.push(arg);
|
1914 |
+
} else if (Array.isArray(arg)) {
|
1915 |
+
classes.push(classNames.apply(null, arg));
|
1916 |
+
} else if (argType === 'object') {
|
1917 |
+
for (var key in arg) {
|
1918 |
+
if (hasOwn.call(arg, key) && arg[key]) {
|
1919 |
+
classes.push(key);
|
1920 |
+
}
|
1921 |
+
}
|
1922 |
+
}
|
1923 |
+
}
|
1924 |
+
|
1925 |
+
return classes.join(' ');
|
1926 |
+
}
|
1927 |
+
|
1928 |
+
if (typeof module !== 'undefined' && module.exports) {
|
1929 |
+
module.exports = classNames;
|
1930 |
+
} else if ("function" === 'function' && _typeof(__webpack_require__(/*! !webpack amd options */ "./node_modules/webpack/buildin/amd-options.js")) === 'object' && __webpack_require__(/*! !webpack amd options */ "./node_modules/webpack/buildin/amd-options.js")) {
|
1931 |
+
// register as 'classnames', consistent with npm package name
|
1932 |
+
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
|
1933 |
+
return classNames;
|
1934 |
+
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
|
1935 |
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
1936 |
+
} else {
|
1937 |
+
window.classNames = classNames;
|
1938 |
+
}
|
1939 |
+
})();
|
1940 |
+
|
1941 |
+
/***/ }),
|
1942 |
+
|
1943 |
+
/***/ "./node_modules/css-loader/index.js!./node_modules/sass-loader/lib/loader.js!./blocks/development/form/css/blocks.scss":
|
1944 |
+
/*!********************************************************************************************************************!*\
|
1945 |
+
!*** ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./blocks/development/form/css/blocks.scss ***!
|
1946 |
+
\********************************************************************************************************************/
|
1947 |
+
/*! no static exports found */
|
1948 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1949 |
+
|
1950 |
+
exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "./node_modules/css-loader/lib/css-base.js")(false);
|
1951 |
+
// imports
|
1952 |
+
|
1953 |
+
|
1954 |
+
// module
|
1955 |
+
exports.push([module.i, ".wp-block-yikes-inc-easy-forms-easy-forms-block textarea.yikes-mailchimp-submit-button-span-text {\n background: none;\n text-align: center; }\n\n.wp-block-yikes-inc-easy-forms-easy-forms-block select {\n height: auto; }\n", ""]);
|
1956 |
+
|
1957 |
+
// exports
|
1958 |
+
|
1959 |
+
|
1960 |
+
/***/ }),
|
1961 |
+
|
1962 |
+
/***/ "./node_modules/css-loader/lib/css-base.js":
|
1963 |
+
/*!*************************************************!*\
|
1964 |
+
!*** ./node_modules/css-loader/lib/css-base.js ***!
|
1965 |
+
\*************************************************/
|
1966 |
+
/*! no static exports found */
|
1967 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1968 |
+
|
1969 |
+
"use strict";
|
1970 |
+
|
1971 |
+
|
1972 |
+
/*
|
1973 |
+
MIT License http://www.opensource.org/licenses/mit-license.php
|
1974 |
+
Author Tobias Koppers @sokra
|
1975 |
+
*/
|
1976 |
+
// css base code, injected by the css-loader
|
1977 |
+
module.exports = function (useSourceMap) {
|
1978 |
+
var list = [];
|
1979 |
+
|
1980 |
+
// return the list of modules as css string
|
1981 |
+
list.toString = function toString() {
|
1982 |
+
return this.map(function (item) {
|
1983 |
+
var content = cssWithMappingToString(item, useSourceMap);
|
1984 |
+
if (item[2]) {
|
1985 |
+
return "@media " + item[2] + "{" + content + "}";
|
1986 |
+
} else {
|
1987 |
+
return content;
|
1988 |
+
}
|
1989 |
+
}).join("");
|
1990 |
+
};
|
1991 |
+
|
1992 |
+
// import a list of modules into the list
|
1993 |
+
list.i = function (modules, mediaQuery) {
|
1994 |
+
if (typeof modules === "string") modules = [[null, modules, ""]];
|
1995 |
+
var alreadyImportedModules = {};
|
1996 |
+
for (var i = 0; i < this.length; i++) {
|
1997 |
+
var id = this[i][0];
|
1998 |
+
if (typeof id === "number") alreadyImportedModules[id] = true;
|
1999 |
+
}
|
2000 |
+
for (i = 0; i < modules.length; i++) {
|
2001 |
+
var item = modules[i];
|
2002 |
+
// skip already imported module
|
2003 |
+
// this implementation is not 100% perfect for weird media query combinations
|
2004 |
+
// when a module is imported multiple times with different media queries.
|
2005 |
+
// I hope this will never occur (Hey this way we have smaller bundles)
|
2006 |
+
if (typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
|
2007 |
+
if (mediaQuery && !item[2]) {
|
2008 |
+
item[2] = mediaQuery;
|
2009 |
+
} else if (mediaQuery) {
|
2010 |
+
item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
|
2011 |
+
}
|
2012 |
+
list.push(item);
|
2013 |
+
}
|
2014 |
+
}
|
2015 |
+
};
|
2016 |
+
return list;
|
2017 |
+
};
|
2018 |
+
|
2019 |
+
function cssWithMappingToString(item, useSourceMap) {
|
2020 |
+
var content = item[1] || '';
|
2021 |
+
var cssMapping = item[3];
|
2022 |
+
if (!cssMapping) {
|
2023 |
+
return content;
|
2024 |
+
}
|
2025 |
+
|
2026 |
+
if (useSourceMap && typeof btoa === 'function') {
|
2027 |
+
var sourceMapping = toComment(cssMapping);
|
2028 |
+
var sourceURLs = cssMapping.sources.map(function (source) {
|
2029 |
+
return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';
|
2030 |
+
});
|
2031 |
+
|
2032 |
+
return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
|
2033 |
+
}
|
2034 |
+
|
2035 |
+
return [content].join('\n');
|
2036 |
+
}
|
2037 |
+
|
2038 |
+
// Adapted from convert-source-map (MIT)
|
2039 |
+
function toComment(sourceMap) {
|
2040 |
+
// eslint-disable-next-line no-undef
|
2041 |
+
var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
|
2042 |
+
var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
|
2043 |
+
|
2044 |
+
return '/*# ' + data + ' */';
|
2045 |
+
}
|
2046 |
+
|
2047 |
+
/***/ }),
|
2048 |
+
|
2049 |
+
/***/ "./node_modules/fbjs/lib/emptyFunction.js":
|
2050 |
+
/*!************************************************!*\
|
2051 |
+
!*** ./node_modules/fbjs/lib/emptyFunction.js ***!
|
2052 |
+
\************************************************/
|
2053 |
+
/*! no static exports found */
|
2054 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2055 |
+
|
2056 |
+
"use strict";
|
2057 |
+
|
2058 |
+
|
2059 |
+
/**
|
2060 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
2061 |
+
*
|
2062 |
+
* This source code is licensed under the MIT license found in the
|
2063 |
+
* LICENSE file in the root directory of this source tree.
|
2064 |
+
*
|
2065 |
+
*
|
2066 |
+
*/
|
2067 |
+
|
2068 |
+
function makeEmptyFunction(arg) {
|
2069 |
+
return function () {
|
2070 |
+
return arg;
|
2071 |
+
};
|
2072 |
+
}
|
2073 |
+
|
2074 |
+
/**
|
2075 |
+
* This function accepts and discards inputs; it has no side effects. This is
|
2076 |
+
* primarily useful idiomatically for overridable function endpoints which
|
2077 |
+
* always need to be callable, since JS lacks a null-call idiom ala Cocoa.
|
2078 |
+
*/
|
2079 |
+
var emptyFunction = function emptyFunction() {};
|
2080 |
+
|
2081 |
+
emptyFunction.thatReturns = makeEmptyFunction;
|
2082 |
+
emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
|
2083 |
+
emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
|
2084 |
+
emptyFunction.thatReturnsNull = makeEmptyFunction(null);
|
2085 |
+
emptyFunction.thatReturnsThis = function () {
|
2086 |
+
return this;
|
2087 |
+
};
|
2088 |
+
emptyFunction.thatReturnsArgument = function (arg) {
|
2089 |
+
return arg;
|
2090 |
+
};
|
2091 |
+
|
2092 |
+
module.exports = emptyFunction;
|
2093 |
+
|
2094 |
+
/***/ }),
|
2095 |
+
|
2096 |
+
/***/ "./node_modules/fbjs/lib/emptyObject.js":
|
2097 |
+
/*!**********************************************!*\
|
2098 |
+
!*** ./node_modules/fbjs/lib/emptyObject.js ***!
|
2099 |
+
\**********************************************/
|
2100 |
+
/*! no static exports found */
|
2101 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2102 |
+
|
2103 |
+
"use strict";
|
2104 |
+
/**
|
2105 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
2106 |
+
*
|
2107 |
+
* This source code is licensed under the MIT license found in the
|
2108 |
+
* LICENSE file in the root directory of this source tree.
|
2109 |
+
*
|
2110 |
+
*/
|
2111 |
+
|
2112 |
+
|
2113 |
+
|
2114 |
+
var emptyObject = {};
|
2115 |
+
|
2116 |
+
if (true) {
|
2117 |
+
Object.freeze(emptyObject);
|
2118 |
+
}
|
2119 |
+
|
2120 |
+
module.exports = emptyObject;
|
2121 |
+
|
2122 |
+
/***/ }),
|
2123 |
+
|
2124 |
+
/***/ "./node_modules/fbjs/lib/invariant.js":
|
2125 |
+
/*!********************************************!*\
|
2126 |
+
!*** ./node_modules/fbjs/lib/invariant.js ***!
|
2127 |
+
\********************************************/
|
2128 |
+
/*! no static exports found */
|
2129 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2130 |
+
|
2131 |
+
"use strict";
|
2132 |
+
/**
|
2133 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
2134 |
+
*
|
2135 |
+
* This source code is licensed under the MIT license found in the
|
2136 |
+
* LICENSE file in the root directory of this source tree.
|
2137 |
+
*
|
2138 |
+
*/
|
2139 |
+
|
2140 |
+
|
2141 |
+
|
2142 |
+
/**
|
2143 |
+
* Use invariant() to assert state which your program assumes to be true.
|
2144 |
+
*
|
2145 |
+
* Provide sprintf-style format (only %s is supported) and arguments
|
2146 |
+
* to provide information about what broke and what you were
|
2147 |
+
* expecting.
|
2148 |
+
*
|
2149 |
+
* The invariant message will be stripped in production, but the invariant
|
2150 |
+
* will remain to ensure logic does not differ in production.
|
2151 |
+
*/
|
2152 |
+
|
2153 |
+
var validateFormat = function validateFormat(format) {};
|
2154 |
+
|
2155 |
+
if (true) {
|
2156 |
+
validateFormat = function validateFormat(format) {
|
2157 |
+
if (format === undefined) {
|
2158 |
+
throw new Error('invariant requires an error message argument');
|
2159 |
+
}
|
2160 |
+
};
|
2161 |
+
}
|
2162 |
+
|
2163 |
+
function invariant(condition, format, a, b, c, d, e, f) {
|
2164 |
+
validateFormat(format);
|
2165 |
+
|
2166 |
+
if (!condition) {
|
2167 |
+
var error;
|
2168 |
+
if (format === undefined) {
|
2169 |
+
error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
|
2170 |
+
} else {
|
2171 |
+
var args = [a, b, c, d, e, f];
|
2172 |
+
var argIndex = 0;
|
2173 |
+
error = new Error(format.replace(/%s/g, function () {
|
2174 |
+
return args[argIndex++];
|
2175 |
+
}));
|
2176 |
+
error.name = 'Invariant Violation';
|
2177 |
+
}
|
2178 |
+
|
2179 |
+
error.framesToPop = 1; // we don't care about invariant's own frame
|
2180 |
+
throw error;
|
2181 |
+
}
|
2182 |
+
}
|
2183 |
+
|
2184 |
+
module.exports = invariant;
|
2185 |
+
|
2186 |
+
/***/ }),
|
2187 |
+
|
2188 |
+
/***/ "./node_modules/fbjs/lib/warning.js":
|
2189 |
+
/*!******************************************!*\
|
2190 |
+
!*** ./node_modules/fbjs/lib/warning.js ***!
|
2191 |
+
\******************************************/
|
2192 |
+
/*! no static exports found */
|
2193 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2194 |
+
|
2195 |
+
"use strict";
|
2196 |
+
/**
|
2197 |
+
* Copyright (c) 2014-present, Facebook, Inc.
|
2198 |
+
*
|
2199 |
+
* This source code is licensed under the MIT license found in the
|
2200 |
+
* LICENSE file in the root directory of this source tree.
|
2201 |
+
*
|
2202 |
+
*/
|
2203 |
+
|
2204 |
+
|
2205 |
+
|
2206 |
+
var emptyFunction = __webpack_require__(/*! ./emptyFunction */ "./node_modules/fbjs/lib/emptyFunction.js");
|
2207 |
+
|
2208 |
+
/**
|
2209 |
+
* Similar to invariant but only logs a warning if the condition is not met.
|
2210 |
+
* This can be used to log issues in development environments in critical
|
2211 |
+
* paths. Removing the logging code for production environments will keep the
|
2212 |
+
* same logic and follow the same code paths.
|
2213 |
+
*/
|
2214 |
+
|
2215 |
+
var warning = emptyFunction;
|
2216 |
+
|
2217 |
+
if (true) {
|
2218 |
+
var printWarning = function printWarning(format) {
|
2219 |
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
2220 |
+
args[_key - 1] = arguments[_key];
|
2221 |
+
}
|
2222 |
+
|
2223 |
+
var argIndex = 0;
|
2224 |
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
2225 |
+
return args[argIndex++];
|
2226 |
+
});
|
2227 |
+
if (typeof console !== 'undefined') {
|
2228 |
+
console.error(message);
|
2229 |
+
}
|
2230 |
+
try {
|
2231 |
+
// --- Welcome to debugging React ---
|
2232 |
+
// This error was thrown as a convenience so that you can use this stack
|
2233 |
+
// to find the callsite that caused this warning to fire.
|
2234 |
+
throw new Error(message);
|
2235 |
+
} catch (x) {}
|
2236 |
+
};
|
2237 |
+
|
2238 |
+
warning = function warning(condition, format) {
|
2239 |
+
if (format === undefined) {
|
2240 |
+
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
|
2241 |
+
}
|
2242 |
+
|
2243 |
+
if (format.indexOf('Failed Composite propType: ') === 0) {
|
2244 |
+
return; // Ignore CompositeComponent proptype check.
|
2245 |
+
}
|
2246 |
+
|
2247 |
+
if (!condition) {
|
2248 |
+
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
2249 |
+
args[_key2 - 2] = arguments[_key2];
|
2250 |
+
}
|
2251 |
+
|
2252 |
+
printWarning.apply(undefined, [format].concat(args));
|
2253 |
+
}
|
2254 |
+
};
|
2255 |
+
}
|
2256 |
+
|
2257 |
+
module.exports = warning;
|
2258 |
+
|
2259 |
+
/***/ }),
|
2260 |
+
|
2261 |
+
/***/ "./node_modules/object-assign/index.js":
|
2262 |
+
/*!*********************************************!*\
|
2263 |
+
!*** ./node_modules/object-assign/index.js ***!
|
2264 |
+
\*********************************************/
|
2265 |
+
/*! no static exports found */
|
2266 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2267 |
+
|
2268 |
+
"use strict";
|
2269 |
+
/*
|
2270 |
+
object-assign
|
2271 |
+
(c) Sindre Sorhus
|
2272 |
+
@license MIT
|
2273 |
+
*/
|
2274 |
+
|
2275 |
+
|
2276 |
+
/* eslint-disable no-unused-vars */
|
2277 |
+
|
2278 |
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
2279 |
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
2280 |
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
2281 |
+
|
2282 |
+
function toObject(val) {
|
2283 |
+
if (val === null || val === undefined) {
|
2284 |
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
2285 |
+
}
|
2286 |
+
|
2287 |
+
return Object(val);
|
2288 |
+
}
|
2289 |
+
|
2290 |
+
function shouldUseNative() {
|
2291 |
+
try {
|
2292 |
+
if (!Object.assign) {
|
2293 |
+
return false;
|
2294 |
+
}
|
2295 |
+
|
2296 |
+
// Detect buggy property enumeration order in older V8 versions.
|
2297 |
+
|
2298 |
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
2299 |
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
2300 |
+
test1[5] = 'de';
|
2301 |
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
2302 |
+
return false;
|
2303 |
+
}
|
2304 |
+
|
2305 |
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
2306 |
+
var test2 = {};
|
2307 |
+
for (var i = 0; i < 10; i++) {
|
2308 |
+
test2['_' + String.fromCharCode(i)] = i;
|
2309 |
+
}
|
2310 |
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
2311 |
+
return test2[n];
|
2312 |
+
});
|
2313 |
+
if (order2.join('') !== '0123456789') {
|
2314 |
+
return false;
|
2315 |
+
}
|
2316 |
+
|
2317 |
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
2318 |
+
var test3 = {};
|
2319 |
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
2320 |
+
test3[letter] = letter;
|
2321 |
+
});
|
2322 |
+
if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
|
2323 |
+
return false;
|
2324 |
+
}
|
2325 |
+
|
2326 |
+
return true;
|
2327 |
+
} catch (err) {
|
2328 |
+
// We don't expect any of the above to throw, but better to be safe.
|
2329 |
+
return false;
|
2330 |
+
}
|
2331 |
+
}
|
2332 |
+
|
2333 |
+
module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
2334 |
+
var from;
|
2335 |
+
var to = toObject(target);
|
2336 |
+
var symbols;
|
2337 |
+
|
2338 |
+
for (var s = 1; s < arguments.length; s++) {
|
2339 |
+
from = Object(arguments[s]);
|
2340 |
+
|
2341 |
+
for (var key in from) {
|
2342 |
+
if (hasOwnProperty.call(from, key)) {
|
2343 |
+
to[key] = from[key];
|
2344 |
+
}
|
2345 |
+
}
|
2346 |
+
|
2347 |
+
if (getOwnPropertySymbols) {
|
2348 |
+
symbols = getOwnPropertySymbols(from);
|
2349 |
+
for (var i = 0; i < symbols.length; i++) {
|
2350 |
+
if (propIsEnumerable.call(from, symbols[i])) {
|
2351 |
+
to[symbols[i]] = from[symbols[i]];
|
2352 |
+
}
|
2353 |
+
}
|
2354 |
+
}
|
2355 |
+
}
|
2356 |
+
|
2357 |
+
return to;
|
2358 |
+
};
|
2359 |
+
|
2360 |
+
/***/ }),
|
2361 |
+
|
2362 |
+
/***/ "./node_modules/prop-types/checkPropTypes.js":
|
2363 |
+
/*!***************************************************!*\
|
2364 |
+
!*** ./node_modules/prop-types/checkPropTypes.js ***!
|
2365 |
+
\***************************************************/
|
2366 |
+
/*! no static exports found */
|
2367 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2368 |
+
|
2369 |
+
"use strict";
|
2370 |
+
/**
|
2371 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
2372 |
+
*
|
2373 |
+
* This source code is licensed under the MIT license found in the
|
2374 |
+
* LICENSE file in the root directory of this source tree.
|
2375 |
+
*/
|
2376 |
+
|
2377 |
+
|
2378 |
+
|
2379 |
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
2380 |
+
|
2381 |
+
if (true) {
|
2382 |
+
var invariant = __webpack_require__(/*! fbjs/lib/invariant */ "./node_modules/fbjs/lib/invariant.js");
|
2383 |
+
var warning = __webpack_require__(/*! fbjs/lib/warning */ "./node_modules/fbjs/lib/warning.js");
|
2384 |
+
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
2385 |
+
var loggedTypeFailures = {};
|
2386 |
+
}
|
2387 |
+
|
2388 |
+
/**
|
2389 |
+
* Assert that the values match with the type specs.
|
2390 |
+
* Error messages are memorized and will only be shown once.
|
2391 |
+
*
|
2392 |
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
2393 |
+
* @param {object} values Runtime values that need to be type-checked
|
2394 |
+
* @param {string} location e.g. "prop", "context", "child context"
|
2395 |
+
* @param {string} componentName Name of the component for error messages.
|
2396 |
+
* @param {?Function} getStack Returns the component stack.
|
2397 |
+
* @private
|
2398 |
+
*/
|
2399 |
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
2400 |
+
if (true) {
|
2401 |
+
for (var typeSpecName in typeSpecs) {
|
2402 |
+
if (typeSpecs.hasOwnProperty(typeSpecName)) {
|
2403 |
+
var error;
|
2404 |
+
// Prop type validation may throw. In case they do, we don't want to
|
2405 |
+
// fail the render phase where it didn't fail before. So we log it.
|
2406 |
+
// After these have been cleaned up, we'll let them throw.
|
2407 |
+
try {
|
2408 |
+
// This is intentionally an invariant that gets caught. It's the same
|
2409 |
+
// behavior as without this statement except with a better message.
|
2410 |
+
invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, _typeof(typeSpecs[typeSpecName]));
|
2411 |
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
2412 |
+
} catch (ex) {
|
2413 |
+
error = ex;
|
2414 |
+
}
|
2415 |
+
warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error === 'undefined' ? 'undefined' : _typeof(error));
|
2416 |
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
2417 |
+
// Only monitor this failure once because there tends to be a lot of the
|
2418 |
+
// same error.
|
2419 |
+
loggedTypeFailures[error.message] = true;
|
2420 |
+
|
2421 |
+
var stack = getStack ? getStack() : '';
|
2422 |
+
|
2423 |
+
warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
|
2424 |
+
}
|
2425 |
+
}
|
2426 |
+
}
|
2427 |
+
}
|
2428 |
+
}
|
2429 |
+
|
2430 |
+
module.exports = checkPropTypes;
|
2431 |
+
|
2432 |
+
/***/ }),
|
2433 |
+
|
2434 |
+
/***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js":
|
2435 |
+
/*!*************************************************************!*\
|
2436 |
+
!*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
|
2437 |
+
\*************************************************************/
|
2438 |
+
/*! no static exports found */
|
2439 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2440 |
+
|
2441 |
+
"use strict";
|
2442 |
+
/**
|
2443 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
2444 |
+
*
|
2445 |
+
* This source code is licensed under the MIT license found in the
|
2446 |
+
* LICENSE file in the root directory of this source tree.
|
2447 |
+
*/
|
2448 |
+
|
2449 |
+
|
2450 |
+
|
2451 |
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
2452 |
+
|
2453 |
+
module.exports = ReactPropTypesSecret;
|
2454 |
+
|
2455 |
+
/***/ }),
|
2456 |
+
|
2457 |
+
/***/ "./node_modules/react-recaptcha/dist/react-recaptcha.js":
|
2458 |
+
/*!**************************************************************!*\
|
2459 |
+
!*** ./node_modules/react-recaptcha/dist/react-recaptcha.js ***!
|
2460 |
+
\**************************************************************/
|
2461 |
+
/*! no static exports found */
|
2462 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2463 |
+
|
2464 |
+
"use strict";
|
2465 |
+
/* WEBPACK VAR INJECTION */(function(module) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
|
2466 |
+
|
2467 |
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
2468 |
+
|
2469 |
+
!function (e, t) {
|
2470 |
+
"object" == ( false ? undefined : _typeof(exports)) && "object" == ( false ? undefined : _typeof(module)) ? module.exports = t(__webpack_require__(/*! react */ "./node_modules/react/index.js")) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! react */ "./node_modules/react/index.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (t),
|
2471 |
+
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
2472 |
+
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
2473 |
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
|
2474 |
+
}(undefined, function (e) {
|
2475 |
+
return function (e) {
|
2476 |
+
function t(r) {
|
2477 |
+
if (a[r]) return a[r].exports;var n = a[r] = { exports: {}, id: r, loaded: !1 };return e[r].call(n.exports, n, n.exports, t), n.loaded = !0, n.exports;
|
2478 |
+
}var a = {};return t.m = e, t.c = a, t.p = "", t(0);
|
2479 |
+
}([function (e, t, a) {
|
2480 |
+
"use strict";
|
2481 |
+
function r(e) {
|
2482 |
+
return e && e.__esModule ? e : { default: e };
|
2483 |
+
}function n(e, t) {
|
2484 |
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
2485 |
+
}function o(e, t) {
|
2486 |
+
if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != (typeof t === "undefined" ? "undefined" : _typeof(t)) && "function" != typeof t ? e : t;
|
2487 |
+
}function i(e, t) {
|
2488 |
+
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + (typeof t === "undefined" ? "undefined" : _typeof(t)));e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
2489 |
+
}Object.defineProperty(t, "__esModule", { value: !0 });var s = function () {
|
2490 |
+
function e(e, t) {
|
2491 |
+
for (var a = 0; a < t.length; a++) {
|
2492 |
+
var r = t[a];r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
2493 |
+
}
|
2494 |
+
}return function (t, a, r) {
|
2495 |
+
return a && e(t.prototype, a), r && e(t, r), t;
|
2496 |
+
};
|
2497 |
+
}(),
|
2498 |
+
l = a(6),
|
2499 |
+
c = r(l),
|
2500 |
+
p = a(4),
|
2501 |
+
u = r(p),
|
2502 |
+
d = { className: u.default.string, onloadCallbackName: u.default.string, elementID: u.default.string, onloadCallback: u.default.func, verifyCallback: u.default.func, expiredCallback: u.default.func, render: u.default.string, sitekey: u.default.string, theme: u.default.string, type: u.default.string, verifyCallbackName: u.default.string, expiredCallbackName: u.default.string, size: u.default.string, tabindex: u.default.string, hl: u.default.string, badge: u.default.string },
|
2503 |
+
f = { elementID: "g-recaptcha", onloadCallback: void 0, onloadCallbackName: "onloadCallback", verifyCallback: void 0, verifyCallbackName: "verifyCallback", expiredCallback: void 0, expiredCallbackName: "expiredCallback", render: "onload", theme: "light", type: "image", size: "normal", tabindex: "0", hl: "en", badge: "bottomright" },
|
2504 |
+
h = function h() {
|
2505 |
+
return "undefined" != typeof window && "undefined" != typeof window.grecaptcha;
|
2506 |
+
},
|
2507 |
+
y = void 0,
|
2508 |
+
b = function (e) {
|
2509 |
+
function t(e) {
|
2510 |
+
n(this, t);var a = o(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));return a._renderGrecaptcha = a._renderGrecaptcha.bind(a), a.reset = a.reset.bind(a), a.state = { ready: h(), widget: null }, a.state.ready || (y = setInterval(a._updateReadyState.bind(a), 1e3)), a;
|
2511 |
+
}return i(t, e), s(t, [{ key: "componentDidMount", value: function value() {
|
2512 |
+
this.state.ready && this._renderGrecaptcha();
|
2513 |
+
} }, { key: "componentDidUpdate", value: function value(e, t) {
|
2514 |
+
var a = this.props,
|
2515 |
+
r = a.render,
|
2516 |
+
n = a.onloadCallback;"explicit" === r && n && this.state.ready && !t.ready && this._renderGrecaptcha();
|
2517 |
+
} }, { key: "componentWillUnmount", value: function value() {
|
2518 |
+
clearInterval(y);
|
2519 |
+
} }, { key: "reset", value: function value() {
|
2520 |
+
var e = this.state,
|
2521 |
+
t = e.ready,
|
2522 |
+
a = e.widget;t && null !== a && grecaptcha.reset(a);
|
2523 |
+
} }, { key: "execute", value: function value() {
|
2524 |
+
var e = this.state,
|
2525 |
+
t = e.ready,
|
2526 |
+
a = e.widget;t && null !== a && grecaptcha.execute(a);
|
2527 |
+
} }, { key: "_updateReadyState", value: function value() {
|
2528 |
+
h() && (this.setState({ ready: !0 }), clearInterval(y));
|
2529 |
+
} }, { key: "_renderGrecaptcha", value: function value() {
|
2530 |
+
this.state.widget = grecaptcha.render(this.props.elementID, { sitekey: this.props.sitekey, callback: this.props.verifyCallback ? this.props.verifyCallback : void 0, theme: this.props.theme, type: this.props.type, size: this.props.size, tabindex: this.props.tabindex, hl: this.props.hl, badge: this.props.badge, "expired-callback": this.props.expiredCallback ? this.props.expiredCallback : void 0 }), this.props.onloadCallback && this.props.onloadCallback();
|
2531 |
+
} }, { key: "render", value: function value() {
|
2532 |
+
return "explicit" === this.props.render && this.props.onloadCallback ? c.default.createElement("div", { id: this.props.elementID, "data-onloadcallbackname": this.props.onloadCallbackName, "data-verifycallbackname": this.props.verifyCallbackName }) : c.default.createElement("div", { id: this.props.elementID, className: "g-recaptcha", "data-sitekey": this.props.sitekey, "data-theme": this.props.theme, "data-type": this.props.type, "data-size": this.props.size, "data-badge": this.props.badge, "data-tabindex": this.props.tabindex });
|
2533 |
+
} }]), t;
|
2534 |
+
}(l.Component);t.default = b, b.propTypes = d, b.defaultProps = f, e.exports = t.default;
|
2535 |
+
}, function (e, t) {
|
2536 |
+
"use strict";
|
2537 |
+
function a(e) {
|
2538 |
+
return function () {
|
2539 |
+
return e;
|
2540 |
+
};
|
2541 |
+
}var r = function r() {};r.thatReturns = a, r.thatReturnsFalse = a(!1), r.thatReturnsTrue = a(!0), r.thatReturnsNull = a(null), r.thatReturnsThis = function () {
|
2542 |
+
return this;
|
2543 |
+
}, r.thatReturnsArgument = function (e) {
|
2544 |
+
return e;
|
2545 |
+
}, e.exports = r;
|
2546 |
+
}, function (e, t, a) {
|
2547 |
+
"use strict";
|
2548 |
+
function r(e, t, a, r, o, i, s, l) {
|
2549 |
+
if (n(t), !e) {
|
2550 |
+
var c;if (void 0 === t) c = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else {
|
2551 |
+
var p = [a, r, o, i, s, l],
|
2552 |
+
u = 0;c = new Error(t.replace(/%s/g, function () {
|
2553 |
+
return p[u++];
|
2554 |
+
})), c.name = "Invariant Violation";
|
2555 |
+
}throw c.framesToPop = 1, c;
|
2556 |
+
}
|
2557 |
+
}var n = function n(e) {};e.exports = r;
|
2558 |
+
}, function (e, t, a) {
|
2559 |
+
"use strict";
|
2560 |
+
var r = a(1),
|
2561 |
+
n = a(2),
|
2562 |
+
o = a(5);e.exports = function () {
|
2563 |
+
function e(e, t, a, r, i, s) {
|
2564 |
+
s !== o && n(!1, "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
|
2565 |
+
}function t() {
|
2566 |
+
return e;
|
2567 |
+
}e.isRequired = e;var a = { array: e, bool: e, func: e, number: e, object: e, string: e, symbol: e, any: e, arrayOf: t, element: e, instanceOf: t, node: e, objectOf: t, oneOf: t, oneOfType: t, shape: t };return a.checkPropTypes = r, a.PropTypes = a, a;
|
2568 |
+
};
|
2569 |
+
}, function (e, t, a) {
|
2570 |
+
e.exports = a(3)();
|
2571 |
+
}, function (e, t) {
|
2572 |
+
"use strict";
|
2573 |
+
var a = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports = a;
|
2574 |
+
}, function (t, a) {
|
2575 |
+
t.exports = e;
|
2576 |
+
}]);
|
2577 |
+
});
|
2578 |
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
|
2579 |
+
|
2580 |
+
/***/ }),
|
2581 |
+
|
2582 |
+
/***/ "./node_modules/react/cjs/react.development.js":
|
2583 |
+
/*!*****************************************************!*\
|
2584 |
+
!*** ./node_modules/react/cjs/react.development.js ***!
|
2585 |
+
\*****************************************************/
|
2586 |
+
/*! no static exports found */
|
2587 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2588 |
+
|
2589 |
+
"use strict";
|
2590 |
+
/** @license React v16.3.1
|
2591 |
+
* react.development.js
|
2592 |
+
*
|
2593 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
2594 |
+
*
|
2595 |
+
* This source code is licensed under the MIT license found in the
|
2596 |
+
* LICENSE file in the root directory of this source tree.
|
2597 |
+
*/
|
2598 |
+
|
2599 |
+
|
2600 |
+
|
2601 |
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
2602 |
+
|
2603 |
+
if (true) {
|
2604 |
+
(function () {
|
2605 |
+
'use strict';
|
2606 |
+
|
2607 |
+
var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
|
2608 |
+
var emptyObject = __webpack_require__(/*! fbjs/lib/emptyObject */ "./node_modules/fbjs/lib/emptyObject.js");
|
2609 |
+
var invariant = __webpack_require__(/*! fbjs/lib/invariant */ "./node_modules/fbjs/lib/invariant.js");
|
2610 |
+
var warning = __webpack_require__(/*! fbjs/lib/warning */ "./node_modules/fbjs/lib/warning.js");
|
2611 |
+
var emptyFunction = __webpack_require__(/*! fbjs/lib/emptyFunction */ "./node_modules/fbjs/lib/emptyFunction.js");
|
2612 |
+
var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");
|
2613 |
+
|
2614 |
+
// TODO: this is special because it gets imported during build.
|
2615 |
+
|
2616 |
+
var ReactVersion = '16.3.1';
|
2617 |
+
|
2618 |
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
2619 |
+
// nor polyfill, then a plain number is used for performance.
|
2620 |
+
var hasSymbol = typeof Symbol === 'function' && Symbol['for'];
|
2621 |
+
|
2622 |
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol['for']('react.element') : 0xeac7;
|
2623 |
+
var REACT_CALL_TYPE = hasSymbol ? Symbol['for']('react.call') : 0xeac8;
|
2624 |
+
var REACT_RETURN_TYPE = hasSymbol ? Symbol['for']('react.return') : 0xeac9;
|
2625 |
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol['for']('react.portal') : 0xeaca;
|
2626 |
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol['for']('react.fragment') : 0xeacb;
|
2627 |
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol['for']('react.strict_mode') : 0xeacc;
|
2628 |
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol['for']('react.provider') : 0xeacd;
|
2629 |
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol['for']('react.context') : 0xeace;
|
2630 |
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol['for']('react.async_mode') : 0xeacf;
|
2631 |
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol['for']('react.forward_ref') : 0xead0;
|
2632 |
+
|
2633 |
+
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
2634 |
+
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
2635 |
+
|
2636 |
+
function getIteratorFn(maybeIterable) {
|
2637 |
+
if (maybeIterable === null || typeof maybeIterable === 'undefined') {
|
2638 |
+
return null;
|
2639 |
+
}
|
2640 |
+
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
2641 |
+
if (typeof maybeIterator === 'function') {
|
2642 |
+
return maybeIterator;
|
2643 |
+
}
|
2644 |
+
return null;
|
2645 |
+
}
|
2646 |
+
|
2647 |
+
/**
|
2648 |
+
* WARNING: DO NOT manually require this module.
|
2649 |
+
* This is a replacement for `invariant(...)` used by the error code system
|
2650 |
+
* and will _only_ be required by the corresponding babel pass.
|
2651 |
+
* It always throws.
|
2652 |
+
*/
|
2653 |
+
|
2654 |
+
/**
|
2655 |
+
* Forked from fbjs/warning:
|
2656 |
+
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
2657 |
+
*
|
2658 |
+
* Only change is we use console.warn instead of console.error,
|
2659 |
+
* and do nothing when 'console' is not supported.
|
2660 |
+
* This really simplifies the code.
|
2661 |
+
* ---
|
2662 |
+
* Similar to invariant but only logs a warning if the condition is not met.
|
2663 |
+
* This can be used to log issues in development environments in critical
|
2664 |
+
* paths. Removing the logging code for production environments will keep the
|
2665 |
+
* same logic and follow the same code paths.
|
2666 |
+
*/
|
2667 |
+
|
2668 |
+
var lowPriorityWarning = function lowPriorityWarning() {};
|
2669 |
+
|
2670 |
+
{
|
2671 |
+
var printWarning = function printWarning(format) {
|
2672 |
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
2673 |
+
args[_key - 1] = arguments[_key];
|
2674 |
+
}
|
2675 |
+
|
2676 |
+
var argIndex = 0;
|
2677 |
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
2678 |
+
return args[argIndex++];
|
2679 |
+
});
|
2680 |
+
if (typeof console !== 'undefined') {
|
2681 |
+
console.warn(message);
|
2682 |
+
}
|
2683 |
+
try {
|
2684 |
+
// --- Welcome to debugging React ---
|
2685 |
+
// This error was thrown as a convenience so that you can use this stack
|
2686 |
+
// to find the callsite that caused this warning to fire.
|
2687 |
+
throw new Error(message);
|
2688 |
+
} catch (x) {}
|
2689 |
+
};
|
2690 |
+
|
2691 |
+
lowPriorityWarning = function lowPriorityWarning(condition, format) {
|
2692 |
+
if (format === undefined) {
|
2693 |
+
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
|
2694 |
+
}
|
2695 |
+
if (!condition) {
|
2696 |
+
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
2697 |
+
args[_key2 - 2] = arguments[_key2];
|
2698 |
+
}
|
2699 |
+
|
2700 |
+
printWarning.apply(undefined, [format].concat(args));
|
2701 |
+
}
|
2702 |
+
};
|
2703 |
+
}
|
2704 |
+
|
2705 |
+
var lowPriorityWarning$1 = lowPriorityWarning;
|
2706 |
+
|
2707 |
+
var didWarnStateUpdateForUnmountedComponent = {};
|
2708 |
+
|
2709 |
+
function warnNoop(publicInstance, callerName) {
|
2710 |
+
{
|
2711 |
+
var _constructor = publicInstance.constructor;
|
2712 |
+
var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
|
2713 |
+
var warningKey = componentName + '.' + callerName;
|
2714 |
+
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
2715 |
+
return;
|
2716 |
+
}
|
2717 |
+
warning(false, "Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
|
2718 |
+
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
|
2719 |
+
}
|
2720 |
+
}
|
2721 |
+
|
2722 |
+
/**
|
2723 |
+
* This is the abstract API for an update queue.
|
2724 |
+
*/
|
2725 |
+
var ReactNoopUpdateQueue = {
|
2726 |
+
/**
|
2727 |
+
* Checks whether or not this composite component is mounted.
|
2728 |
+
* @param {ReactClass} publicInstance The instance we want to test.
|
2729 |
+
* @return {boolean} True if mounted, false otherwise.
|
2730 |
+
* @protected
|
2731 |
+
* @final
|
2732 |
+
*/
|
2733 |
+
isMounted: function isMounted(publicInstance) {
|
2734 |
+
return false;
|
2735 |
+
},
|
2736 |
+
|
2737 |
+
/**
|
2738 |
+
* Forces an update. This should only be invoked when it is known with
|
2739 |
+
* certainty that we are **not** in a DOM transaction.
|
2740 |
+
*
|
2741 |
+
* You may want to call this when you know that some deeper aspect of the
|
2742 |
+
* component's state has changed but `setState` was not called.
|
2743 |
+
*
|
2744 |
+
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
2745 |
+
* `componentWillUpdate` and `componentDidUpdate`.
|
2746 |
+
*
|
2747 |
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
2748 |
+
* @param {?function} callback Called after component is updated.
|
2749 |
+
* @param {?string} callerName name of the calling function in the public API.
|
2750 |
+
* @internal
|
2751 |
+
*/
|
2752 |
+
enqueueForceUpdate: function enqueueForceUpdate(publicInstance, callback, callerName) {
|
2753 |
+
warnNoop(publicInstance, 'forceUpdate');
|
2754 |
+
},
|
2755 |
+
|
2756 |
+
/**
|
2757 |
+
* Replaces all of the state. Always use this or `setState` to mutate state.
|
2758 |
+
* You should treat `this.state` as immutable.
|
2759 |
+
*
|
2760 |
+
* There is no guarantee that `this.state` will be immediately updated, so
|
2761 |
+
* accessing `this.state` after calling this method may return the old value.
|
2762 |
+
*
|
2763 |
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
2764 |
+
* @param {object} completeState Next state.
|
2765 |
+
* @param {?function} callback Called after component is updated.
|
2766 |
+
* @param {?string} callerName name of the calling function in the public API.
|
2767 |
+
* @internal
|
2768 |
+
*/
|
2769 |
+
enqueueReplaceState: function enqueueReplaceState(publicInstance, completeState, callback, callerName) {
|
2770 |
+
warnNoop(publicInstance, 'replaceState');
|
2771 |
+
},
|
2772 |
+
|
2773 |
+
/**
|
2774 |
+
* Sets a subset of the state. This only exists because _pendingState is
|
2775 |
+
* internal. This provides a merging strategy that is not available to deep
|
2776 |
+
* properties which is confusing. TODO: Expose pendingState or don't use it
|
2777 |
+
* during the merge.
|
2778 |
+
*
|
2779 |
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
2780 |
+
* @param {object} partialState Next partial state to be merged with state.
|
2781 |
+
* @param {?function} callback Called after component is updated.
|
2782 |
+
* @param {?string} Name of the calling function in the public API.
|
2783 |
+
* @internal
|
2784 |
+
*/
|
2785 |
+
enqueueSetState: function enqueueSetState(publicInstance, partialState, callback, callerName) {
|
2786 |
+
warnNoop(publicInstance, 'setState');
|
2787 |
+
}
|
2788 |
+
};
|
2789 |
+
|
2790 |
+
/**
|
2791 |
+
* Base class helpers for the updating state of a component.
|
2792 |
+
*/
|
2793 |
+
function Component(props, context, updater) {
|
2794 |
+
this.props = props;
|
2795 |
+
this.context = context;
|
2796 |
+
this.refs = emptyObject;
|
2797 |
+
// We initialize the default updater but the real one gets injected by the
|
2798 |
+
// renderer.
|
2799 |
+
this.updater = updater || ReactNoopUpdateQueue;
|
2800 |
+
}
|
2801 |
+
|
2802 |
+
Component.prototype.isReactComponent = {};
|
2803 |
+
|
2804 |
+
/**
|
2805 |
+
* Sets a subset of the state. Always use this to mutate
|
2806 |
+
* state. You should treat `this.state` as immutable.
|
2807 |
+
*
|
2808 |
+
* There is no guarantee that `this.state` will be immediately updated, so
|
2809 |
+
* accessing `this.state` after calling this method may return the old value.
|
2810 |
+
*
|
2811 |
+
* There is no guarantee that calls to `setState` will run synchronously,
|
2812 |
+
* as they may eventually be batched together. You can provide an optional
|
2813 |
+
* callback that will be executed when the call to setState is actually
|
2814 |
+
* completed.
|
2815 |
+
*
|
2816 |
+
* When a function is provided to setState, it will be called at some point in
|
2817 |
+
* the future (not synchronously). It will be called with the up to date
|
2818 |
+
* component arguments (state, props, context). These values can be different
|
2819 |
+
* from this.* because your function may be called after receiveProps but before
|
2820 |
+
* shouldComponentUpdate, and this new state, props, and context will not yet be
|
2821 |
+
* assigned to this.
|
2822 |
+
*
|
2823 |
+
* @param {object|function} partialState Next partial state or function to
|
2824 |
+
* produce next partial state to be merged with current state.
|
2825 |
+
* @param {?function} callback Called after state is updated.
|
2826 |
+
* @final
|
2827 |
+
* @protected
|
2828 |
+
*/
|
2829 |
+
Component.prototype.setState = function (partialState, callback) {
|
2830 |
+
!((typeof partialState === 'undefined' ? 'undefined' : _typeof(partialState)) === 'object' || typeof partialState === 'function' || partialState == null) ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0;
|
2831 |
+
this.updater.enqueueSetState(this, partialState, callback, 'setState');
|
2832 |
+
};
|
2833 |
+
|
2834 |
+
/**
|
2835 |
+
* Forces an update. This should only be invoked when it is known with
|
2836 |
+
* certainty that we are **not** in a DOM transaction.
|
2837 |
+
*
|
2838 |
+
* You may want to call this when you know that some deeper aspect of the
|
2839 |
+
* component's state has changed but `setState` was not called.
|
2840 |
+
*
|
2841 |
+
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
2842 |
+
* `componentWillUpdate` and `componentDidUpdate`.
|
2843 |
+
*
|
2844 |
+
* @param {?function} callback Called after update is complete.
|
2845 |
+
* @final
|
2846 |
+
* @protected
|
2847 |
+
*/
|
2848 |
+
Component.prototype.forceUpdate = function (callback) {
|
2849 |
+
this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
|
2850 |
+
};
|
2851 |
+
|
2852 |
+
/**
|
2853 |
+
* Deprecated APIs. These APIs used to exist on classic React classes but since
|
2854 |
+
* we would like to deprecate them, we're not going to move them over to this
|
2855 |
+
* modern base class. Instead, we define a getter that warns if it's accessed.
|
2856 |
+
*/
|
2857 |
+
{
|
2858 |
+
var deprecatedAPIs = {
|
2859 |
+
isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
|
2860 |
+
replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
|
2861 |
+
};
|
2862 |
+
var defineDeprecationWarning = function defineDeprecationWarning(methodName, info) {
|
2863 |
+
Object.defineProperty(Component.prototype, methodName, {
|
2864 |
+
get: function get() {
|
2865 |
+
lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
|
2866 |
+
return undefined;
|
2867 |
+
}
|
2868 |
+
});
|
2869 |
+
};
|
2870 |
+
for (var fnName in deprecatedAPIs) {
|
2871 |
+
if (deprecatedAPIs.hasOwnProperty(fnName)) {
|
2872 |
+
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
2873 |
+
}
|
2874 |
+
}
|
2875 |
+
}
|
2876 |
+
|
2877 |
+
function ComponentDummy() {}
|
2878 |
+
ComponentDummy.prototype = Component.prototype;
|
2879 |
+
|
2880 |
+
/**
|
2881 |
+
* Convenience component with default shallow equality check for sCU.
|
2882 |
+
*/
|
2883 |
+
function PureComponent(props, context, updater) {
|
2884 |
+
this.props = props;
|
2885 |
+
this.context = context;
|
2886 |
+
this.refs = emptyObject;
|
2887 |
+
this.updater = updater || ReactNoopUpdateQueue;
|
2888 |
+
}
|
2889 |
+
|
2890 |
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
2891 |
+
pureComponentPrototype.constructor = PureComponent;
|
2892 |
+
// Avoid an extra prototype jump for these methods.
|
2893 |
+
_assign(pureComponentPrototype, Component.prototype);
|
2894 |
+
pureComponentPrototype.isPureReactComponent = true;
|
2895 |
+
|
2896 |
+
// an immutable object with a single mutable value
|
2897 |
+
function createRef() {
|
2898 |
+
var refObject = {
|
2899 |
+
current: null
|
2900 |
+
};
|
2901 |
+
{
|
2902 |
+
Object.seal(refObject);
|
2903 |
+
}
|
2904 |
+
return refObject;
|
2905 |
+
}
|
2906 |
+
|
2907 |
+
/**
|
2908 |
+
* Keeps track of the current owner.
|
2909 |
+
*
|
2910 |
+
* The current owner is the component who should own any components that are
|
2911 |
+
* currently being constructed.
|
2912 |
+
*/
|
2913 |
+
var ReactCurrentOwner = {
|
2914 |
+
/**
|
2915 |
+
* @internal
|
2916 |
+
* @type {ReactComponent}
|
2917 |
+
*/
|
2918 |
+
current: null
|
2919 |
+
};
|
2920 |
+
|
2921 |
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
2922 |
+
|
2923 |
+
var RESERVED_PROPS = {
|
2924 |
+
key: true,
|
2925 |
+
ref: true,
|
2926 |
+
__self: true,
|
2927 |
+
__source: true
|
2928 |
+
};
|
2929 |
+
|
2930 |
+
var specialPropKeyWarningShown = void 0;
|
2931 |
+
var specialPropRefWarningShown = void 0;
|
2932 |
+
|
2933 |
+
function hasValidRef(config) {
|
2934 |
+
{
|
2935 |
+
if (hasOwnProperty.call(config, 'ref')) {
|
2936 |
+
var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
|
2937 |
+
if (getter && getter.isReactWarning) {
|
2938 |
+
return false;
|
2939 |
+
}
|
2940 |
+
}
|
2941 |
+
}
|
2942 |
+
return config.ref !== undefined;
|
2943 |
+
}
|
2944 |
+
|
2945 |
+
function hasValidKey(config) {
|
2946 |
+
{
|
2947 |
+
if (hasOwnProperty.call(config, 'key')) {
|
2948 |
+
var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
|
2949 |
+
if (getter && getter.isReactWarning) {
|
2950 |
+
return false;
|
2951 |
+
}
|
2952 |
+
}
|
2953 |
+
}
|
2954 |
+
return config.key !== undefined;
|
2955 |
+
}
|
2956 |
+
|
2957 |
+
function defineKeyPropWarningGetter(props, displayName) {
|
2958 |
+
var warnAboutAccessingKey = function warnAboutAccessingKey() {
|
2959 |
+
if (!specialPropKeyWarningShown) {
|
2960 |
+
specialPropKeyWarningShown = true;
|
2961 |
+
warning(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
|
2962 |
+
}
|
2963 |
+
};
|
2964 |
+
warnAboutAccessingKey.isReactWarning = true;
|
2965 |
+
Object.defineProperty(props, 'key', {
|
2966 |
+
get: warnAboutAccessingKey,
|
2967 |
+
configurable: true
|
2968 |
+
});
|
2969 |
+
}
|
2970 |
+
|
2971 |
+
function defineRefPropWarningGetter(props, displayName) {
|
2972 |
+
var warnAboutAccessingRef = function warnAboutAccessingRef() {
|
2973 |
+
if (!specialPropRefWarningShown) {
|
2974 |
+
specialPropRefWarningShown = true;
|
2975 |
+
warning(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
|
2976 |
+
}
|
2977 |
+
};
|
2978 |
+
warnAboutAccessingRef.isReactWarning = true;
|
2979 |
+
Object.defineProperty(props, 'ref', {
|
2980 |
+
get: warnAboutAccessingRef,
|
2981 |
+
configurable: true
|
2982 |
+
});
|
2983 |
+
}
|
2984 |
+
|
2985 |
+
/**
|
2986 |
+
* Factory method to create a new React element. This no longer adheres to
|
2987 |
+
* the class pattern, so do not use new to call it. Also, no instanceof check
|
2988 |
+
* will work. Instead test $$typeof field against Symbol.for('react.element') to check
|
2989 |
+
* if something is a React Element.
|
2990 |
+
*
|
2991 |
+
* @param {*} type
|
2992 |
+
* @param {*} key
|
2993 |
+
* @param {string|object} ref
|
2994 |
+
* @param {*} self A *temporary* helper to detect places where `this` is
|
2995 |
+
* different from the `owner` when React.createElement is called, so that we
|
2996 |
+
* can warn. We want to get rid of owner and replace string `ref`s with arrow
|
2997 |
+
* functions, and as long as `this` and owner are the same, there will be no
|
2998 |
+
* change in behavior.
|
2999 |
+
* @param {*} source An annotation object (added by a transpiler or otherwise)
|
3000 |
+
* indicating filename, line number, and/or other information.
|
3001 |
+
* @param {*} owner
|
3002 |
+
* @param {*} props
|
3003 |
+
* @internal
|
3004 |
+
*/
|
3005 |
+
var ReactElement = function ReactElement(type, key, ref, self, source, owner, props) {
|
3006 |
+
var element = {
|
3007 |
+
// This tag allows us to uniquely identify this as a React Element
|
3008 |
+
$$typeof: REACT_ELEMENT_TYPE,
|
3009 |
+
|
3010 |
+
// Built-in properties that belong on the element
|
3011 |
+
type: type,
|
3012 |
+
key: key,
|
3013 |
+
ref: ref,
|
3014 |
+
props: props,
|
3015 |
+
|
3016 |
+
// Record the component responsible for creating this element.
|
3017 |
+
_owner: owner
|
3018 |
+
};
|
3019 |
+
|
3020 |
+
{
|
3021 |
+
// The validation flag is currently mutative. We put it on
|
3022 |
+
// an external backing store so that we can freeze the whole object.
|
3023 |
+
// This can be replaced with a WeakMap once they are implemented in
|
3024 |
+
// commonly used development environments.
|
3025 |
+
element._store = {};
|
3026 |
+
|
3027 |
+
// To make comparing ReactElements easier for testing purposes, we make
|
3028 |
+
// the validation flag non-enumerable (where possible, which should
|
3029 |
+
// include every environment we run tests in), so the test framework
|
3030 |
+
// ignores it.
|
3031 |
+
Object.defineProperty(element._store, 'validated', {
|
3032 |
+
configurable: false,
|
3033 |
+
enumerable: false,
|
3034 |
+
writable: true,
|
3035 |
+
value: false
|
3036 |
+
});
|
3037 |
+
// self and source are DEV only properties.
|
3038 |
+
Object.defineProperty(element, '_self', {
|
3039 |
+
configurable: false,
|
3040 |
+
enumerable: false,
|
3041 |
+
writable: false,
|
3042 |
+
value: self
|
3043 |
+
});
|
3044 |
+
// Two elements created in two different places should be considered
|
3045 |
+
// equal for testing purposes and therefore we hide it from enumeration.
|
3046 |
+
Object.defineProperty(element, '_source', {
|
3047 |
+
configurable: false,
|
3048 |
+
enumerable: false,
|
3049 |
+
writable: false,
|
3050 |
+
value: source
|
3051 |
+
});
|
3052 |
+
if (Object.freeze) {
|
3053 |
+
Object.freeze(element.props);
|
3054 |
+
Object.freeze(element);
|
3055 |
+
}
|
3056 |
+
}
|
3057 |
+
|
3058 |
+
return element;
|
3059 |
+
};
|
3060 |
+
|
3061 |
+
/**
|
3062 |
+
* Create and return a new ReactElement of the given type.
|
3063 |
+
* See https://reactjs.org/docs/react-api.html#createelement
|
3064 |
+
*/
|
3065 |
+
function createElement(type, config, children) {
|
3066 |
+
var propName = void 0;
|
3067 |
+
|
3068 |
+
// Reserved names are extracted
|
3069 |
+
var props = {};
|
3070 |
+
|
3071 |
+
var key = null;
|
3072 |
+
var ref = null;
|
3073 |
+
var self = null;
|
3074 |
+
var source = null;
|
3075 |
+
|
3076 |
+
if (config != null) {
|
3077 |
+
if (hasValidRef(config)) {
|
3078 |
+
ref = config.ref;
|
3079 |
+
}
|
3080 |
+
if (hasValidKey(config)) {
|
3081 |
+
key = '' + config.key;
|
3082 |
+
}
|
3083 |
+
|
3084 |
+
self = config.__self === undefined ? null : config.__self;
|
3085 |
+
source = config.__source === undefined ? null : config.__source;
|
3086 |
+
// Remaining properties are added to a new props object
|
3087 |
+
for (propName in config) {
|
3088 |
+
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
3089 |
+
props[propName] = config[propName];
|
3090 |
+
}
|
3091 |
+
}
|
3092 |
+
}
|
3093 |
+
|
3094 |
+
// Children can be more than one argument, and those are transferred onto
|
3095 |
+
// the newly allocated props object.
|
3096 |
+
var childrenLength = arguments.length - 2;
|
3097 |
+
if (childrenLength === 1) {
|
3098 |
+
props.children = children;
|
3099 |
+
} else if (childrenLength > 1) {
|
3100 |
+
var childArray = Array(childrenLength);
|
3101 |
+
for (var i = 0; i < childrenLength; i++) {
|
3102 |
+
childArray[i] = arguments[i + 2];
|
3103 |
+
}
|
3104 |
+
{
|
3105 |
+
if (Object.freeze) {
|
3106 |
+
Object.freeze(childArray);
|
3107 |
+
}
|
3108 |
+
}
|
3109 |
+
props.children = childArray;
|
3110 |
+
}
|
3111 |
+
|
3112 |
+
// Resolve default props
|
3113 |
+
if (type && type.defaultProps) {
|
3114 |
+
var defaultProps = type.defaultProps;
|
3115 |
+
for (propName in defaultProps) {
|
3116 |
+
if (props[propName] === undefined) {
|
3117 |
+
props[propName] = defaultProps[propName];
|
3118 |
+
}
|
3119 |
+
}
|
3120 |
+
}
|
3121 |
+
{
|
3122 |
+
if (key || ref) {
|
3123 |
+
if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {
|
3124 |
+
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
|
3125 |
+
if (key) {
|
3126 |
+
defineKeyPropWarningGetter(props, displayName);
|
3127 |
+
}
|
3128 |
+
if (ref) {
|
3129 |
+
defineRefPropWarningGetter(props, displayName);
|
3130 |
+
}
|
3131 |
+
}
|
3132 |
+
}
|
3133 |
+
}
|
3134 |
+
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
3135 |
+
}
|
3136 |
+
|
3137 |
+
/**
|
3138 |
+
* Return a function that produces ReactElements of a given type.
|
3139 |
+
* See https://reactjs.org/docs/react-api.html#createfactory
|
3140 |
+
*/
|
3141 |
+
|
3142 |
+
function cloneAndReplaceKey(oldElement, newKey) {
|
3143 |
+
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
|
3144 |
+
|
3145 |
+
return newElement;
|
3146 |
+
}
|
3147 |
+
|
3148 |
+
/**
|
3149 |
+
* Clone and return a new ReactElement using element as the starting point.
|
3150 |
+
* See https://reactjs.org/docs/react-api.html#cloneelement
|
3151 |
+
*/
|
3152 |
+
function cloneElement(element, config, children) {
|
3153 |
+
var propName = void 0;
|
3154 |
+
|
3155 |
+
// Original props are copied
|
3156 |
+
var props = _assign({}, element.props);
|
3157 |
+
|
3158 |
+
// Reserved names are extracted
|
3159 |
+
var key = element.key;
|
3160 |
+
var ref = element.ref;
|
3161 |
+
// Self is preserved since the owner is preserved.
|
3162 |
+
var self = element._self;
|
3163 |
+
// Source is preserved since cloneElement is unlikely to be targeted by a
|
3164 |
+
// transpiler, and the original source is probably a better indicator of the
|
3165 |
+
// true owner.
|
3166 |
+
var source = element._source;
|
3167 |
+
|
3168 |
+
// Owner will be preserved, unless ref is overridden
|
3169 |
+
var owner = element._owner;
|
3170 |
+
|
3171 |
+
if (config != null) {
|
3172 |
+
if (hasValidRef(config)) {
|
3173 |
+
// Silently steal the ref from the parent.
|
3174 |
+
ref = config.ref;
|
3175 |
+
owner = ReactCurrentOwner.current;
|
3176 |
+
}
|
3177 |
+
if (hasValidKey(config)) {
|
3178 |
+
key = '' + config.key;
|
3179 |
+
}
|
3180 |
+
|
3181 |
+
// Remaining properties override existing props
|
3182 |
+
var defaultProps = void 0;
|
3183 |
+
if (element.type && element.type.defaultProps) {
|
3184 |
+
defaultProps = element.type.defaultProps;
|
3185 |
+
}
|
3186 |
+
for (propName in config) {
|
3187 |
+
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
3188 |
+
if (config[propName] === undefined && defaultProps !== undefined) {
|
3189 |
+
// Resolve default props
|
3190 |
+
props[propName] = defaultProps[propName];
|
3191 |
+
} else {
|
3192 |
+
props[propName] = config[propName];
|
3193 |
+
}
|
3194 |
+
}
|
3195 |
+
}
|
3196 |
+
}
|
3197 |
+
|
3198 |
+
// Children can be more than one argument, and those are transferred onto
|
3199 |
+
// the newly allocated props object.
|
3200 |
+
var childrenLength = arguments.length - 2;
|
3201 |
+
if (childrenLength === 1) {
|
3202 |
+
props.children = children;
|
3203 |
+
} else if (childrenLength > 1) {
|
3204 |
+
var childArray = Array(childrenLength);
|
3205 |
+
for (var i = 0; i < childrenLength; i++) {
|
3206 |
+
childArray[i] = arguments[i + 2];
|
3207 |
+
}
|
3208 |
+
props.children = childArray;
|
3209 |
+
}
|
3210 |
+
|
3211 |
+
return ReactElement(element.type, key, ref, self, source, owner, props);
|
3212 |
+
}
|
3213 |
+
|
3214 |
+
/**
|
3215 |
+
* Verifies the object is a ReactElement.
|
3216 |
+
* See https://reactjs.org/docs/react-api.html#isvalidelement
|
3217 |
+
* @param {?object} object
|
3218 |
+
* @return {boolean} True if `object` is a valid component.
|
3219 |
+
* @final
|
3220 |
+
*/
|
3221 |
+
function isValidElement(object) {
|
3222 |
+
return (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
3223 |
+
}
|
3224 |
+
|
3225 |
+
var ReactDebugCurrentFrame = {};
|
3226 |
+
|
3227 |
+
{
|
3228 |
+
// Component that is being worked on
|
3229 |
+
ReactDebugCurrentFrame.getCurrentStack = null;
|
3230 |
+
|
3231 |
+
ReactDebugCurrentFrame.getStackAddendum = function () {
|
3232 |
+
var impl = ReactDebugCurrentFrame.getCurrentStack;
|
3233 |
+
if (impl) {
|
3234 |
+
return impl();
|
3235 |
+
}
|
3236 |
+
return null;
|
3237 |
+
};
|
3238 |
+
}
|
3239 |
+
|
3240 |
+
var SEPARATOR = '.';
|
3241 |
+
var SUBSEPARATOR = ':';
|
3242 |
+
|
3243 |
+
/**
|
3244 |
+
* Escape and wrap key so it is safe to use as a reactid
|
3245 |
+
*
|
3246 |
+
* @param {string} key to be escaped.
|
3247 |
+
* @return {string} the escaped key.
|
3248 |
+
*/
|
3249 |
+
function escape(key) {
|
3250 |
+
var escapeRegex = /[=:]/g;
|
3251 |
+
var escaperLookup = {
|
3252 |
+
'=': '=0',
|
3253 |
+
':': '=2'
|
3254 |
+
};
|
3255 |
+
var escapedString = ('' + key).replace(escapeRegex, function (match) {
|
3256 |
+
return escaperLookup[match];
|
3257 |
+
});
|
3258 |
+
|
3259 |
+
return '$' + escapedString;
|
3260 |
+
}
|
3261 |
+
|
3262 |
+
/**
|
3263 |
+
* TODO: Test that a single child and an array with one item have the same key
|
3264 |
+
* pattern.
|
3265 |
+
*/
|
3266 |
+
|
3267 |
+
var didWarnAboutMaps = false;
|
3268 |
+
|
3269 |
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
3270 |
+
function escapeUserProvidedKey(text) {
|
3271 |
+
return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
|
3272 |
+
}
|
3273 |
+
|
3274 |
+
var POOL_SIZE = 10;
|
3275 |
+
var traverseContextPool = [];
|
3276 |
+
function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
|
3277 |
+
if (traverseContextPool.length) {
|
3278 |
+
var traverseContext = traverseContextPool.pop();
|
3279 |
+
traverseContext.result = mapResult;
|
3280 |
+
traverseContext.keyPrefix = keyPrefix;
|
3281 |
+
traverseContext.func = mapFunction;
|
3282 |
+
traverseContext.context = mapContext;
|
3283 |
+
traverseContext.count = 0;
|
3284 |
+
return traverseContext;
|
3285 |
+
} else {
|
3286 |
+
return {
|
3287 |
+
result: mapResult,
|
3288 |
+
keyPrefix: keyPrefix,
|
3289 |
+
func: mapFunction,
|
3290 |
+
context: mapContext,
|
3291 |
+
count: 0
|
3292 |
+
};
|
3293 |
+
}
|
3294 |
+
}
|
3295 |
+
|
3296 |
+
function releaseTraverseContext(traverseContext) {
|
3297 |
+
traverseContext.result = null;
|
3298 |
+
traverseContext.keyPrefix = null;
|
3299 |
+
traverseContext.func = null;
|
3300 |
+
traverseContext.context = null;
|
3301 |
+
traverseContext.count = 0;
|
3302 |
+
if (traverseContextPool.length < POOL_SIZE) {
|
3303 |
+
traverseContextPool.push(traverseContext);
|
3304 |
+
}
|
3305 |
+
}
|
3306 |
+
|
3307 |
+
/**
|
3308 |
+
* @param {?*} children Children tree container.
|
3309 |
+
* @param {!string} nameSoFar Name of the key path so far.
|
3310 |
+
* @param {!function} callback Callback to invoke with each child found.
|
3311 |
+
* @param {?*} traverseContext Used to pass information throughout the traversal
|
3312 |
+
* process.
|
3313 |
+
* @return {!number} The number of children in this subtree.
|
3314 |
+
*/
|
3315 |
+
function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
|
3316 |
+
var type = typeof children === 'undefined' ? 'undefined' : _typeof(children);
|
3317 |
+
|
3318 |
+
if (type === 'undefined' || type === 'boolean') {
|
3319 |
+
// All of the above are perceived as null.
|
3320 |
+
children = null;
|
3321 |
+
}
|
3322 |
+
|
3323 |
+
var invokeCallback = false;
|
3324 |
+
|
3325 |
+
if (children === null) {
|
3326 |
+
invokeCallback = true;
|
3327 |
+
} else {
|
3328 |
+
switch (type) {
|
3329 |
+
case 'string':
|
3330 |
+
case 'number':
|
3331 |
+
invokeCallback = true;
|
3332 |
+
break;
|
3333 |
+
case 'object':
|
3334 |
+
switch (children.$$typeof) {
|
3335 |
+
case REACT_ELEMENT_TYPE:
|
3336 |
+
case REACT_PORTAL_TYPE:
|
3337 |
+
invokeCallback = true;
|
3338 |
+
}
|
3339 |
+
}
|
3340 |
+
}
|
3341 |
+
|
3342 |
+
if (invokeCallback) {
|
3343 |
+
callback(traverseContext, children,
|
3344 |
+
// If it's the only child, treat the name as if it was wrapped in an array
|
3345 |
+
// so that it's consistent if the number of children grows.
|
3346 |
+
nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
|
3347 |
+
return 1;
|
3348 |
+
}
|
3349 |
+
|
3350 |
+
var child = void 0;
|
3351 |
+
var nextName = void 0;
|
3352 |
+
var subtreeCount = 0; // Count of children found in the current subtree.
|
3353 |
+
var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
3354 |
+
|
3355 |
+
if (Array.isArray(children)) {
|
3356 |
+
for (var i = 0; i < children.length; i++) {
|
3357 |
+
child = children[i];
|
3358 |
+
nextName = nextNamePrefix + getComponentKey(child, i);
|
3359 |
+
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
|
3360 |
+
}
|
3361 |
+
} else {
|
3362 |
+
var iteratorFn = getIteratorFn(children);
|
3363 |
+
if (typeof iteratorFn === 'function') {
|
3364 |
+
{
|
3365 |
+
// Warn about using Maps as children
|
3366 |
+
if (iteratorFn === children.entries) {
|
3367 |
+
warning(didWarnAboutMaps, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', ReactDebugCurrentFrame.getStackAddendum());
|
3368 |
+
didWarnAboutMaps = true;
|
3369 |
+
}
|
3370 |
+
}
|
3371 |
+
|
3372 |
+
var iterator = iteratorFn.call(children);
|
3373 |
+
var step = void 0;
|
3374 |
+
var ii = 0;
|
3375 |
+
while (!(step = iterator.next()).done) {
|
3376 |
+
child = step.value;
|
3377 |
+
nextName = nextNamePrefix + getComponentKey(child, ii++);
|
3378 |
+
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
|
3379 |
+
}
|
3380 |
+
} else if (type === 'object') {
|
3381 |
+
var addendum = '';
|
3382 |
+
{
|
3383 |
+
addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
|
3384 |
+
}
|
3385 |
+
var childrenString = '' + children;
|
3386 |
+
invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum);
|
3387 |
+
}
|
3388 |
+
}
|
3389 |
+
|
3390 |
+
return subtreeCount;
|
3391 |
+
}
|
3392 |
+
|
3393 |
+
/**
|
3394 |
+
* Traverses children that are typically specified as `props.children`, but
|
3395 |
+
* might also be specified through attributes:
|
3396 |
+
*
|
3397 |
+
* - `traverseAllChildren(this.props.children, ...)`
|
3398 |
+
* - `traverseAllChildren(this.props.leftPanelChildren, ...)`
|
3399 |
+
*
|
3400 |
+
* The `traverseContext` is an optional argument that is passed through the
|
3401 |
+
* entire traversal. It can be used to store accumulations or anything else that
|
3402 |
+
* the callback might find relevant.
|
3403 |
+
*
|
3404 |
+
* @param {?*} children Children tree object.
|
3405 |
+
* @param {!function} callback To invoke upon traversing each child.
|
3406 |
+
* @param {?*} traverseContext Context for traversal.
|
3407 |
+
* @return {!number} The number of children in this subtree.
|
3408 |
+
*/
|
3409 |
+
function traverseAllChildren(children, callback, traverseContext) {
|
3410 |
+
if (children == null) {
|
3411 |
+
return 0;
|
3412 |
+
}
|
3413 |
+
|
3414 |
+
return traverseAllChildrenImpl(children, '', callback, traverseContext);
|
3415 |
+
}
|
3416 |
+
|
3417 |
+
/**
|
3418 |
+
* Generate a key string that identifies a component within a set.
|
3419 |
+
*
|
3420 |
+
* @param {*} component A component that could contain a manual key.
|
3421 |
+
* @param {number} index Index that is used if a manual key is not provided.
|
3422 |
+
* @return {string}
|
3423 |
+
*/
|
3424 |
+
function getComponentKey(component, index) {
|
3425 |
+
// Do some typechecking here since we call this blindly. We want to ensure
|
3426 |
+
// that we don't block potential future ES APIs.
|
3427 |
+
if ((typeof component === 'undefined' ? 'undefined' : _typeof(component)) === 'object' && component !== null && component.key != null) {
|
3428 |
+
// Explicit key
|
3429 |
+
return escape(component.key);
|
3430 |
+
}
|
3431 |
+
// Implicit key determined by the index in the set
|
3432 |
+
return index.toString(36);
|
3433 |
+
}
|
3434 |
+
|
3435 |
+
function forEachSingleChild(bookKeeping, child, name) {
|
3436 |
+
var func = bookKeeping.func,
|
3437 |
+
context = bookKeeping.context;
|
3438 |
+
|
3439 |
+
func.call(context, child, bookKeeping.count++);
|
3440 |
+
}
|
3441 |
+
|
3442 |
+
/**
|
3443 |
+
* Iterates through children that are typically specified as `props.children`.
|
3444 |
+
*
|
3445 |
+
* See https://reactjs.org/docs/react-api.html#react.children.foreach
|
3446 |
+
*
|
3447 |
+
* The provided forEachFunc(child, index) will be called for each
|
3448 |
+
* leaf child.
|
3449 |
+
*
|
3450 |
+
* @param {?*} children Children tree container.
|
3451 |
+
* @param {function(*, int)} forEachFunc
|
3452 |
+
* @param {*} forEachContext Context for forEachContext.
|
3453 |
+
*/
|
3454 |
+
function forEachChildren(children, forEachFunc, forEachContext) {
|
3455 |
+
if (children == null) {
|
3456 |
+
return children;
|
3457 |
+
}
|
3458 |
+
var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
|
3459 |
+
traverseAllChildren(children, forEachSingleChild, traverseContext);
|
3460 |
+
releaseTraverseContext(traverseContext);
|
3461 |
+
}
|
3462 |
+
|
3463 |
+
function mapSingleChildIntoContext(bookKeeping, child, childKey) {
|
3464 |
+
var result = bookKeeping.result,
|
3465 |
+
keyPrefix = bookKeeping.keyPrefix,
|
3466 |
+
func = bookKeeping.func,
|
3467 |
+
context = bookKeeping.context;
|
3468 |
+
|
3469 |
+
var mappedChild = func.call(context, child, bookKeeping.count++);
|
3470 |
+
if (Array.isArray(mappedChild)) {
|
3471 |
+
mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument);
|
3472 |
+
} else if (mappedChild != null) {
|
3473 |
+
if (isValidElement(mappedChild)) {
|
3474 |
+
mappedChild = cloneAndReplaceKey(mappedChild,
|
3475 |
+
// Keep both the (mapped) and old keys if they differ, just as
|
3476 |
+
// traverseAllChildren used to do for objects as children
|
3477 |
+
keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
|
3478 |
+
}
|
3479 |
+
result.push(mappedChild);
|
3480 |
+
}
|
3481 |
+
}
|
3482 |
+
|
3483 |
+
function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
|
3484 |
+
var escapedPrefix = '';
|
3485 |
+
if (prefix != null) {
|
3486 |
+
escapedPrefix = escapeUserProvidedKey(prefix) + '/';
|
3487 |
+
}
|
3488 |
+
var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
|
3489 |
+
traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
|
3490 |
+
releaseTraverseContext(traverseContext);
|
3491 |
+
}
|
3492 |
+
|
3493 |
+
/**
|
3494 |
+
* Maps children that are typically specified as `props.children`.
|
3495 |
+
*
|
3496 |
+
* See https://reactjs.org/docs/react-api.html#react.children.map
|
3497 |
+
*
|
3498 |
+
* The provided mapFunction(child, key, index) will be called for each
|
3499 |
+
* leaf child.
|
3500 |
+
*
|
3501 |
+
* @param {?*} children Children tree container.
|
3502 |
+
* @param {function(*, int)} func The map function.
|
3503 |
+
* @param {*} context Context for mapFunction.
|
3504 |
+
* @return {object} Object containing the ordered map of results.
|
3505 |
+
*/
|
3506 |
+
function mapChildren(children, func, context) {
|
3507 |
+
if (children == null) {
|
3508 |
+
return children;
|
3509 |
+
}
|
3510 |
+
var result = [];
|
3511 |
+
mapIntoWithKeyPrefixInternal(children, result, null, func, context);
|
3512 |
+
return result;
|
3513 |
+
}
|
3514 |
+
|
3515 |
+
/**
|
3516 |
+
* Count the number of children that are typically specified as
|
3517 |
+
* `props.children`.
|
3518 |
+
*
|
3519 |
+
* See https://reactjs.org/docs/react-api.html#react.children.count
|
3520 |
+
*
|
3521 |
+
* @param {?*} children Children tree container.
|
3522 |
+
* @return {number} The number of children.
|
3523 |
+
*/
|
3524 |
+
function countChildren(children, context) {
|
3525 |
+
return traverseAllChildren(children, emptyFunction.thatReturnsNull, null);
|
3526 |
+
}
|
3527 |
+
|
3528 |
+
/**
|
3529 |
+
* Flatten a children object (typically specified as `props.children`) and
|
3530 |
+
* return an array with appropriately re-keyed children.
|
3531 |
+
*
|
3532 |
+
* See https://reactjs.org/docs/react-api.html#react.children.toarray
|
3533 |
+
*/
|
3534 |
+
function toArray(children) {
|
3535 |
+
var result = [];
|
3536 |
+
mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);
|
3537 |
+
return result;
|
3538 |
+
}
|
3539 |
+
|
3540 |
+
/**
|
3541 |
+
* Returns the first child in a collection of children and verifies that there
|
3542 |
+
* is only one child in the collection.
|
3543 |
+
*
|
3544 |
+
* See https://reactjs.org/docs/react-api.html#react.children.only
|
3545 |
+
*
|
3546 |
+
* The current implementation of this function assumes that a single child gets
|
3547 |
+
* passed without a wrapper, but the purpose of this helper function is to
|
3548 |
+
* abstract away the particular structure of children.
|
3549 |
+
*
|
3550 |
+
* @param {?object} children Child collection structure.
|
3551 |
+
* @return {ReactElement} The first and only `ReactElement` contained in the
|
3552 |
+
* structure.
|
3553 |
+
*/
|
3554 |
+
function onlyChild(children) {
|
3555 |
+
!isValidElement(children) ? invariant(false, 'React.Children.only expected to receive a single React element child.') : void 0;
|
3556 |
+
return children;
|
3557 |
+
}
|
3558 |
+
|
3559 |
+
function createContext(defaultValue, calculateChangedBits) {
|
3560 |
+
if (calculateChangedBits === undefined) {
|
3561 |
+
calculateChangedBits = null;
|
3562 |
+
} else {
|
3563 |
+
{
|
3564 |
+
warning(calculateChangedBits === null || typeof calculateChangedBits === 'function', 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
|
3565 |
+
}
|
3566 |
+
}
|
3567 |
+
|
3568 |
+
var context = {
|
3569 |
+
$$typeof: REACT_CONTEXT_TYPE,
|
3570 |
+
_calculateChangedBits: calculateChangedBits,
|
3571 |
+
_defaultValue: defaultValue,
|
3572 |
+
_currentValue: defaultValue,
|
3573 |
+
_changedBits: 0,
|
3574 |
+
// These are circular
|
3575 |
+
Provider: null,
|
3576 |
+
Consumer: null
|
3577 |
+
};
|
3578 |
+
|
3579 |
+
context.Provider = {
|
3580 |
+
$$typeof: REACT_PROVIDER_TYPE,
|
3581 |
+
_context: context
|
3582 |
+
};
|
3583 |
+
context.Consumer = context;
|
3584 |
+
|
3585 |
+
{
|
3586 |
+
context._currentRenderer = null;
|
3587 |
+
}
|
3588 |
+
|
3589 |
+
return context;
|
3590 |
+
}
|
3591 |
+
|
3592 |
+
function forwardRef(render) {
|
3593 |
+
{
|
3594 |
+
warning(typeof render === 'function', 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render === 'undefined' ? 'undefined' : _typeof(render));
|
3595 |
+
}
|
3596 |
+
|
3597 |
+
return {
|
3598 |
+
$$typeof: REACT_FORWARD_REF_TYPE,
|
3599 |
+
render: render
|
3600 |
+
};
|
3601 |
+
}
|
3602 |
+
|
3603 |
+
var describeComponentFrame = function describeComponentFrame(name, source, ownerName) {
|
3604 |
+
return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
|
3605 |
+
};
|
3606 |
+
|
3607 |
+
function isValidElementType(type) {
|
3608 |
+
return typeof type === 'string' || typeof type === 'function' ||
|
3609 |
+
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
3610 |
+
type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || (typeof type === 'undefined' ? 'undefined' : _typeof(type)) === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
|
3611 |
+
}
|
3612 |
+
|
3613 |
+
function getComponentName(fiber) {
|
3614 |
+
var type = fiber.type;
|
3615 |
+
|
3616 |
+
if (typeof type === 'function') {
|
3617 |
+
return type.displayName || type.name;
|
3618 |
+
}
|
3619 |
+
if (typeof type === 'string') {
|
3620 |
+
return type;
|
3621 |
+
}
|
3622 |
+
switch (type) {
|
3623 |
+
case REACT_FRAGMENT_TYPE:
|
3624 |
+
return 'ReactFragment';
|
3625 |
+
case REACT_PORTAL_TYPE:
|
3626 |
+
return 'ReactPortal';
|
3627 |
+
case REACT_CALL_TYPE:
|
3628 |
+
return 'ReactCall';
|
3629 |
+
case REACT_RETURN_TYPE:
|
3630 |
+
return 'ReactReturn';
|
3631 |
+
}
|
3632 |
+
return null;
|
3633 |
+
}
|
3634 |
+
|
3635 |
+
/**
|
3636 |
+
* ReactElementValidator provides a wrapper around a element factory
|
3637 |
+
* which validates the props passed to the element. This is intended to be
|
3638 |
+
* used only in DEV and could be replaced by a static type checker for languages
|
3639 |
+
* that support it.
|
3640 |
+
*/
|
3641 |
+
|
3642 |
+
var currentlyValidatingElement = void 0;
|
3643 |
+
var propTypesMisspellWarningShown = void 0;
|
3644 |
+
|
3645 |
+
var getDisplayName = function getDisplayName() {};
|
3646 |
+
var getStackAddendum = function getStackAddendum() {};
|
3647 |
+
|
3648 |
+
{
|
3649 |
+
currentlyValidatingElement = null;
|
3650 |
+
|
3651 |
+
propTypesMisspellWarningShown = false;
|
3652 |
+
|
3653 |
+
getDisplayName = function getDisplayName(element) {
|
3654 |
+
if (element == null) {
|
3655 |
+
return '#empty';
|
3656 |
+
} else if (typeof element === 'string' || typeof element === 'number') {
|
3657 |
+
return '#text';
|
3658 |
+
} else if (typeof element.type === 'string') {
|
3659 |
+
return element.type;
|
3660 |
+
} else if (element.type === REACT_FRAGMENT_TYPE) {
|
3661 |
+
return 'React.Fragment';
|
3662 |
+
} else {
|
3663 |
+
return element.type.displayName || element.type.name || 'Unknown';
|
3664 |
+
}
|
3665 |
+
};
|
3666 |
+
|
3667 |
+
getStackAddendum = function getStackAddendum() {
|
3668 |
+
var stack = '';
|
3669 |
+
if (currentlyValidatingElement) {
|
3670 |
+
var name = getDisplayName(currentlyValidatingElement);
|
3671 |
+
var owner = currentlyValidatingElement._owner;
|
3672 |
+
stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner));
|
3673 |
+
}
|
3674 |
+
stack += ReactDebugCurrentFrame.getStackAddendum() || '';
|
3675 |
+
return stack;
|
3676 |
+
};
|
3677 |
+
}
|
3678 |
+
|
3679 |
+
function getDeclarationErrorAddendum() {
|
3680 |
+
if (ReactCurrentOwner.current) {
|
3681 |
+
var name = getComponentName(ReactCurrentOwner.current);
|
3682 |
+
if (name) {
|
3683 |
+
return '\n\nCheck the render method of `' + name + '`.';
|
3684 |
+
}
|
3685 |
+
}
|
3686 |
+
return '';
|
3687 |
+
}
|
3688 |
+
|
3689 |
+
function getSourceInfoErrorAddendum(elementProps) {
|
3690 |
+
if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {
|
3691 |
+
var source = elementProps.__source;
|
3692 |
+
var fileName = source.fileName.replace(/^.*[\\\/]/, '');
|
3693 |
+
var lineNumber = source.lineNumber;
|
3694 |
+
return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
|
3695 |
+
}
|
3696 |
+
return '';
|
3697 |
+
}
|
3698 |
+
|
3699 |
+
/**
|
3700 |
+
* Warn if there's no key explicitly set on dynamic arrays of children or
|
3701 |
+
* object keys are not valid. This allows us to keep track of children between
|
3702 |
+
* updates.
|
3703 |
+
*/
|
3704 |
+
var ownerHasKeyUseWarning = {};
|
3705 |
+
|
3706 |
+
function getCurrentComponentErrorInfo(parentType) {
|
3707 |
+
var info = getDeclarationErrorAddendum();
|
3708 |
+
|
3709 |
+
if (!info) {
|
3710 |
+
var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
|
3711 |
+
if (parentName) {
|
3712 |
+
info = '\n\nCheck the top-level render call using <' + parentName + '>.';
|
3713 |
+
}
|
3714 |
+
}
|
3715 |
+
return info;
|
3716 |
+
}
|
3717 |
+
|
3718 |
+
/**
|
3719 |
+
* Warn if the element doesn't have an explicit key assigned to it.
|
3720 |
+
* This element is in an array. The array could grow and shrink or be
|
3721 |
+
* reordered. All children that haven't already been validated are required to
|
3722 |
+
* have a "key" property assigned to it. Error statuses are cached so a warning
|
3723 |
+
* will only be shown once.
|
3724 |
+
*
|
3725 |
+
* @internal
|
3726 |
+
* @param {ReactElement} element Element that requires a key.
|
3727 |
+
* @param {*} parentType element's parent's type.
|
3728 |
+
*/
|
3729 |
+
function validateExplicitKey(element, parentType) {
|
3730 |
+
if (!element._store || element._store.validated || element.key != null) {
|
3731 |
+
return;
|
3732 |
+
}
|
3733 |
+
element._store.validated = true;
|
3734 |
+
|
3735 |
+
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
3736 |
+
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
3737 |
+
return;
|
3738 |
+
}
|
3739 |
+
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
3740 |
+
|
3741 |
+
// Usually the current owner is the offender, but if it accepts children as a
|
3742 |
+
// property, it may be the creator of the child that's responsible for
|
3743 |
+
// assigning it a key.
|
3744 |
+
var childOwner = '';
|
3745 |
+
if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
|
3746 |
+
// Give the component that originally created this child.
|
3747 |
+
childOwner = ' It was passed a child from ' + getComponentName(element._owner) + '.';
|
3748 |
+
}
|
3749 |
+
|
3750 |
+
currentlyValidatingElement = element;
|
3751 |
+
{
|
3752 |
+
warning(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, getStackAddendum());
|
3753 |
+
}
|
3754 |
+
currentlyValidatingElement = null;
|
3755 |
+
}
|
3756 |
+
|
3757 |
+
/**
|
3758 |
+
* Ensure that every element either is passed in a static location, in an
|
3759 |
+
* array with an explicit keys property defined, or in an object literal
|
3760 |
+
* with valid key property.
|
3761 |
+
*
|
3762 |
+
* @internal
|
3763 |
+
* @param {ReactNode} node Statically passed child of any type.
|
3764 |
+
* @param {*} parentType node's parent's type.
|
3765 |
+
*/
|
3766 |
+
function validateChildKeys(node, parentType) {
|
3767 |
+
if ((typeof node === 'undefined' ? 'undefined' : _typeof(node)) !== 'object') {
|
3768 |
+
return;
|
3769 |
+
}
|
3770 |
+
if (Array.isArray(node)) {
|
3771 |
+
for (var i = 0; i < node.length; i++) {
|
3772 |
+
var child = node[i];
|
3773 |
+
if (isValidElement(child)) {
|
3774 |
+
validateExplicitKey(child, parentType);
|
3775 |
+
}
|
3776 |
+
}
|
3777 |
+
} else if (isValidElement(node)) {
|
3778 |
+
// This element was passed in a valid location.
|
3779 |
+
if (node._store) {
|
3780 |
+
node._store.validated = true;
|
3781 |
+
}
|
3782 |
+
} else if (node) {
|
3783 |
+
var iteratorFn = getIteratorFn(node);
|
3784 |
+
if (typeof iteratorFn === 'function') {
|
3785 |
+
// Entry iterators used to provide implicit keys,
|
3786 |
+
// but now we print a separate warning for them later.
|
3787 |
+
if (iteratorFn !== node.entries) {
|
3788 |
+
var iterator = iteratorFn.call(node);
|
3789 |
+
var step = void 0;
|
3790 |
+
while (!(step = iterator.next()).done) {
|
3791 |
+
if (isValidElement(step.value)) {
|
3792 |
+
validateExplicitKey(step.value, parentType);
|
3793 |
+
}
|
3794 |
+
}
|
3795 |
+
}
|
3796 |
+
}
|
3797 |
+
}
|
3798 |
+
}
|
3799 |
+
|
3800 |
+
/**
|
3801 |
+
* Given an element, validate that its props follow the propTypes definition,
|
3802 |
+
* provided by the type.
|
3803 |
+
*
|
3804 |
+
* @param {ReactElement} element
|
3805 |
+
*/
|
3806 |
+
function validatePropTypes(element) {
|
3807 |
+
var componentClass = element.type;
|
3808 |
+
if (typeof componentClass !== 'function') {
|
3809 |
+
return;
|
3810 |
+
}
|
3811 |
+
var name = componentClass.displayName || componentClass.name;
|
3812 |
+
var propTypes = componentClass.propTypes;
|
3813 |
+
if (propTypes) {
|
3814 |
+
currentlyValidatingElement = element;
|
3815 |
+
checkPropTypes(propTypes, element.props, 'prop', name, getStackAddendum);
|
3816 |
+
currentlyValidatingElement = null;
|
3817 |
+
} else if (componentClass.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
3818 |
+
propTypesMisspellWarningShown = true;
|
3819 |
+
warning(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
|
3820 |
+
}
|
3821 |
+
if (typeof componentClass.getDefaultProps === 'function') {
|
3822 |
+
warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
|
3823 |
+
}
|
3824 |
+
}
|
3825 |
+
|
3826 |
+
/**
|
3827 |
+
* Given a fragment, validate that it can only be provided with fragment props
|
3828 |
+
* @param {ReactElement} fragment
|
3829 |
+
*/
|
3830 |
+
function validateFragmentProps(fragment) {
|
3831 |
+
currentlyValidatingElement = fragment;
|
3832 |
+
|
3833 |
+
var keys = Object.keys(fragment.props);
|
3834 |
+
for (var i = 0; i < keys.length; i++) {
|
3835 |
+
var key = keys[i];
|
3836 |
+
if (key !== 'children' && key !== 'key') {
|
3837 |
+
warning(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.%s', key, getStackAddendum());
|
3838 |
+
break;
|
3839 |
+
}
|
3840 |
+
}
|
3841 |
+
|
3842 |
+
if (fragment.ref !== null) {
|
3843 |
+
warning(false, 'Invalid attribute `ref` supplied to `React.Fragment`.%s', getStackAddendum());
|
3844 |
+
}
|
3845 |
+
|
3846 |
+
currentlyValidatingElement = null;
|
3847 |
+
}
|
3848 |
+
|
3849 |
+
function createElementWithValidation(type, props, children) {
|
3850 |
+
var validType = isValidElementType(type);
|
3851 |
+
|
3852 |
+
// We warn in this case but don't throw. We expect the element creation to
|
3853 |
+
// succeed and there will likely be errors in render.
|
3854 |
+
if (!validType) {
|
3855 |
+
var info = '';
|
3856 |
+
if (type === undefined || (typeof type === 'undefined' ? 'undefined' : _typeof(type)) === 'object' && type !== null && Object.keys(type).length === 0) {
|
3857 |
+
info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
|
3858 |
+
}
|
3859 |
+
|
3860 |
+
var sourceInfo = getSourceInfoErrorAddendum(props);
|
3861 |
+
if (sourceInfo) {
|
3862 |
+
info += sourceInfo;
|
3863 |
+
} else {
|
3864 |
+
info += getDeclarationErrorAddendum();
|
3865 |
+
}
|
3866 |
+
|
3867 |
+
info += getStackAddendum() || '';
|
3868 |
+
|
3869 |
+
var typeString = void 0;
|
3870 |
+
if (type === null) {
|
3871 |
+
typeString = 'null';
|
3872 |
+
} else if (Array.isArray(type)) {
|
3873 |
+
typeString = 'array';
|
3874 |
+
} else {
|
3875 |
+
typeString = typeof type === 'undefined' ? 'undefined' : _typeof(type);
|
3876 |
+
}
|
3877 |
+
|
3878 |
+
warning(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
|
3879 |
+
}
|
3880 |
+
|
3881 |
+
var element = createElement.apply(this, arguments);
|
3882 |
+
|
3883 |
+
// The result can be nullish if a mock or a custom function is used.
|
3884 |
+
// TODO: Drop this when these are no longer allowed as the type argument.
|
3885 |
+
if (element == null) {
|
3886 |
+
return element;
|
3887 |
+
}
|
3888 |
+
|
3889 |
+
// Skip key warning if the type isn't valid since our key validation logic
|
3890 |
+
// doesn't expect a non-string/function type and can throw confusing errors.
|
3891 |
+
// We don't want exception behavior to differ between dev and prod.
|
3892 |
+
// (Rendering will throw with a helpful message and as soon as the type is
|
3893 |
+
// fixed, the key warnings will appear.)
|
3894 |
+
if (validType) {
|
3895 |
+
for (var i = 2; i < arguments.length; i++) {
|
3896 |
+
validateChildKeys(arguments[i], type);
|
3897 |
+
}
|
3898 |
+
}
|
3899 |
+
|
3900 |
+
if (type === REACT_FRAGMENT_TYPE) {
|
3901 |
+
validateFragmentProps(element);
|
3902 |
+
} else {
|
3903 |
+
validatePropTypes(element);
|
3904 |
+
}
|
3905 |
+
|
3906 |
+
return element;
|
3907 |
+
}
|
3908 |
+
|
3909 |
+
function createFactoryWithValidation(type) {
|
3910 |
+
var validatedFactory = createElementWithValidation.bind(null, type);
|
3911 |
+
validatedFactory.type = type;
|
3912 |
+
// Legacy hook: remove it
|
3913 |
+
{
|
3914 |
+
Object.defineProperty(validatedFactory, 'type', {
|
3915 |
+
enumerable: false,
|
3916 |
+
get: function get() {
|
3917 |
+
lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
|
3918 |
+
Object.defineProperty(this, 'type', {
|
3919 |
+
value: type
|
3920 |
+
});
|
3921 |
+
return type;
|
3922 |
+
}
|
3923 |
+
});
|
3924 |
+
}
|
3925 |
+
|
3926 |
+
return validatedFactory;
|
3927 |
+
}
|
3928 |
+
|
3929 |
+
function cloneElementWithValidation(element, props, children) {
|
3930 |
+
var newElement = cloneElement.apply(this, arguments);
|
3931 |
+
for (var i = 2; i < arguments.length; i++) {
|
3932 |
+
validateChildKeys(arguments[i], newElement.type);
|
3933 |
+
}
|
3934 |
+
validatePropTypes(newElement);
|
3935 |
+
return newElement;
|
3936 |
+
}
|
3937 |
+
|
3938 |
+
var React = {
|
3939 |
+
Children: {
|
3940 |
+
map: mapChildren,
|
3941 |
+
forEach: forEachChildren,
|
3942 |
+
count: countChildren,
|
3943 |
+
toArray: toArray,
|
3944 |
+
only: onlyChild
|
3945 |
+
},
|
3946 |
+
|
3947 |
+
createRef: createRef,
|
3948 |
+
Component: Component,
|
3949 |
+
PureComponent: PureComponent,
|
3950 |
+
|
3951 |
+
createContext: createContext,
|
3952 |
+
forwardRef: forwardRef,
|
3953 |
+
|
3954 |
+
Fragment: REACT_FRAGMENT_TYPE,
|
3955 |
+
StrictMode: REACT_STRICT_MODE_TYPE,
|
3956 |
+
unstable_AsyncMode: REACT_ASYNC_MODE_TYPE,
|
3957 |
+
|
3958 |
+
createElement: createElementWithValidation,
|
3959 |
+
cloneElement: cloneElementWithValidation,
|
3960 |
+
createFactory: createFactoryWithValidation,
|
3961 |
+
isValidElement: isValidElement,
|
3962 |
+
|
3963 |
+
version: ReactVersion,
|
3964 |
+
|
3965 |
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
|
3966 |
+
ReactCurrentOwner: ReactCurrentOwner,
|
3967 |
+
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
|
3968 |
+
assign: _assign
|
3969 |
+
}
|
3970 |
+
};
|
3971 |
+
|
3972 |
+
{
|
3973 |
+
_assign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
|
3974 |
+
// These should not be included in production.
|
3975 |
+
ReactDebugCurrentFrame: ReactDebugCurrentFrame,
|
3976 |
+
// Shim for React DOM 16.0.0 which still destructured (but not used) this.
|
3977 |
+
// TODO: remove in React 17.0.
|
3978 |
+
ReactComponentTreeHook: {}
|
3979 |
+
});
|
3980 |
+
}
|
3981 |
+
|
3982 |
+
var React$2 = Object.freeze({
|
3983 |
+
default: React
|
3984 |
+
});
|
3985 |
+
|
3986 |
+
var React$3 = React$2 && React || React$2;
|
3987 |
+
|
3988 |
+
// TODO: decide on the top-level export form.
|
3989 |
+
// This is hacky but makes it work with both Rollup and Jest.
|
3990 |
+
var react = React$3['default'] ? React$3['default'] : React$3;
|
3991 |
+
|
3992 |
+
module.exports = react;
|
3993 |
+
})();
|
3994 |
+
}
|
3995 |
+
|
3996 |
+
/***/ }),
|
3997 |
+
|
3998 |
+
/***/ "./node_modules/react/index.js":
|
3999 |
+
/*!*************************************!*\
|
4000 |
+
!*** ./node_modules/react/index.js ***!
|
4001 |
+
\*************************************/
|
4002 |
+
/*! no static exports found */
|
4003 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4004 |
+
|
4005 |
+
"use strict";
|
4006 |
+
|
4007 |
+
|
4008 |
+
if (false) {} else {
|
4009 |
+
module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "./node_modules/react/cjs/react.development.js");
|
4010 |
+
}
|
4011 |
+
|
4012 |
+
/***/ }),
|
4013 |
+
|
4014 |
+
/***/ "./node_modules/style-loader/lib/addStyles.js":
|
4015 |
+
/*!****************************************************!*\
|
4016 |
+
!*** ./node_modules/style-loader/lib/addStyles.js ***!
|
4017 |
+
\****************************************************/
|
4018 |
+
/*! no static exports found */
|
4019 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4020 |
+
|
4021 |
+
/*
|
4022 |
+
MIT License http://www.opensource.org/licenses/mit-license.php
|
4023 |
+
Author Tobias Koppers @sokra
|
4024 |
+
*/
|
4025 |
+
|
4026 |
+
var stylesInDom = {};
|
4027 |
+
|
4028 |
+
var memoize = function (fn) {
|
4029 |
+
var memo;
|
4030 |
+
|
4031 |
+
return function () {
|
4032 |
+
if (typeof memo === "undefined") memo = fn.apply(this, arguments);
|
4033 |
+
return memo;
|
4034 |
+
};
|
4035 |
+
};
|
4036 |
+
|
4037 |
+
var isOldIE = memoize(function () {
|
4038 |
+
// Test for IE <= 9 as proposed by Browserhacks
|
4039 |
+
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
4040 |
+
// Tests for existence of standard globals is to allow style-loader
|
4041 |
+
// to operate correctly into non-standard environments
|
4042 |
+
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
4043 |
+
return window && document && document.all && !window.atob;
|
4044 |
+
});
|
4045 |
+
|
4046 |
+
var getTarget = function (target) {
|
4047 |
+
return document.querySelector(target);
|
4048 |
+
};
|
4049 |
+
|
4050 |
+
var getElement = (function (fn) {
|
4051 |
+
var memo = {};
|
4052 |
+
|
4053 |
+
return function(target) {
|
4054 |
+
// If passing function in options, then use it for resolve "head" element.
|
4055 |
+
// Useful for Shadow Root style i.e
|
4056 |
+
// {
|
4057 |
+
// insertInto: function () { return document.querySelector("#foo").shadowRoot }
|
4058 |
+
// }
|
4059 |
+
if (typeof target === 'function') {
|
4060 |
+
return target();
|
4061 |
+
}
|
4062 |
+
if (typeof memo[target] === "undefined") {
|
4063 |
+
var styleTarget = getTarget.call(this, target);
|
4064 |
+
// Special case to return head of iframe instead of iframe itself
|
4065 |
+
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
|
4066 |
+
try {
|
4067 |
+
// This will throw an exception if access to iframe is blocked
|
4068 |
+
// due to cross-origin restrictions
|
4069 |
+
styleTarget = styleTarget.contentDocument.head;
|
4070 |
+
} catch(e) {
|
4071 |
+
styleTarget = null;
|
4072 |
+
}
|
4073 |
+
}
|
4074 |
+
memo[target] = styleTarget;
|
4075 |
+
}
|
4076 |
+
return memo[target]
|
4077 |
+
};
|
4078 |
+
})();
|
4079 |
+
|
4080 |
+
var singleton = null;
|
4081 |
+
var singletonCounter = 0;
|
4082 |
+
var stylesInsertedAtTop = [];
|
4083 |
+
|
4084 |
+
var fixUrls = __webpack_require__(/*! ./urls */ "./node_modules/style-loader/lib/urls.js");
|
4085 |
+
|
4086 |
+
module.exports = function(list, options) {
|
4087 |
+
if (typeof DEBUG !== "undefined" && DEBUG) {
|
4088 |
+
if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
|
4089 |
+
}
|
4090 |
+
|
4091 |
+
options = options || {};
|
4092 |
+
|
4093 |
+
options.attrs = typeof options.attrs === "object" ? options.attrs : {};
|
4094 |
+
|
4095 |
+
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
4096 |
+
// tags it will allow on a page
|
4097 |
+
if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
|
4098 |
+
|
4099 |
+
// By default, add <style> tags to the <head> element
|
4100 |
+
if (!options.insertInto) options.insertInto = "head";
|
4101 |
+
|
4102 |
+
// By default, add <style> tags to the bottom of the target
|
4103 |
+
if (!options.insertAt) options.insertAt = "bottom";
|
4104 |
+
|
4105 |
+
var styles = listToStyles(list, options);
|
4106 |
+
|
4107 |
+
addStylesToDom(styles, options);
|
4108 |
+
|
4109 |
+
return function update (newList) {
|
4110 |
+
var mayRemove = [];
|
4111 |
+
|
4112 |
+
for (var i = 0; i < styles.length; i++) {
|
4113 |
+
var item = styles[i];
|
4114 |
+
var domStyle = stylesInDom[item.id];
|
4115 |
+
|
4116 |
+
domStyle.refs--;
|
4117 |
+
mayRemove.push(domStyle);
|
4118 |
+
}
|
4119 |
+
|
4120 |
+
if(newList) {
|
4121 |
+
var newStyles = listToStyles(newList, options);
|
4122 |
+
addStylesToDom(newStyles, options);
|
4123 |
+
}
|
4124 |
+
|
4125 |
+
for (var i = 0; i < mayRemove.length; i++) {
|
4126 |
+
var domStyle = mayRemove[i];
|
4127 |
+
|
4128 |
+
if(domStyle.refs === 0) {
|
4129 |
+
for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
|
4130 |
+
|
4131 |
+
delete stylesInDom[domStyle.id];
|
4132 |
+
}
|
4133 |
+
}
|
4134 |
+
};
|
4135 |
+
};
|
4136 |
+
|
4137 |
+
function addStylesToDom (styles, options) {
|
4138 |
+
for (var i = 0; i < styles.length; i++) {
|
4139 |
+
var item = styles[i];
|
4140 |
+
var domStyle = stylesInDom[item.id];
|
4141 |
+
|
4142 |
+
if(domStyle) {
|
4143 |
+
domStyle.refs++;
|
4144 |
+
|
4145 |
+
for(var j = 0; j < domStyle.parts.length; j++) {
|
4146 |
+
domStyle.parts[j](item.parts[j]);
|
4147 |
+
}
|
4148 |
+
|
4149 |
+
for(; j < item.parts.length; j++) {
|
4150 |
+
domStyle.parts.push(addStyle(item.parts[j], options));
|
4151 |
+
}
|
4152 |
+
} else {
|
4153 |
+
var parts = [];
|
4154 |
+
|
4155 |
+
for(var j = 0; j < item.parts.length; j++) {
|
4156 |
+
parts.push(addStyle(item.parts[j], options));
|
4157 |
+
}
|
4158 |
+
|
4159 |
+
stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
|
4160 |
+
}
|
4161 |
+
}
|
4162 |
+
}
|
4163 |
+
|
4164 |
+
function listToStyles (list, options) {
|
4165 |
+
var styles = [];
|
4166 |
+
var newStyles = {};
|
4167 |
+
|
4168 |
+
for (var i = 0; i < list.length; i++) {
|
4169 |
+
var item = list[i];
|
4170 |
+
var id = options.base ? item[0] + options.base : item[0];
|
4171 |
+
var css = item[1];
|
4172 |
+
var media = item[2];
|
4173 |
+
var sourceMap = item[3];
|
4174 |
+
var part = {css: css, media: media, sourceMap: sourceMap};
|
4175 |
+
|
4176 |
+
if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
|
4177 |
+
else newStyles[id].parts.push(part);
|
4178 |
+
}
|
4179 |
+
|
4180 |
+
return styles;
|
4181 |
+
}
|
4182 |
+
|
4183 |
+
function insertStyleElement (options, style) {
|
4184 |
+
var target = getElement(options.insertInto)
|
4185 |
+
|
4186 |
+
if (!target) {
|
4187 |
+
throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
|
4188 |
+
}
|
4189 |
+
|
4190 |
+
var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
|
4191 |
+
|
4192 |
+
if (options.insertAt === "top") {
|
4193 |
+
if (!lastStyleElementInsertedAtTop) {
|
4194 |
+
target.insertBefore(style, target.firstChild);
|
4195 |
+
} else if (lastStyleElementInsertedAtTop.nextSibling) {
|
4196 |
+
target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
|
4197 |
+
} else {
|
4198 |
+
target.appendChild(style);
|
4199 |
+
}
|
4200 |
+
stylesInsertedAtTop.push(style);
|
4201 |
+
} else if (options.insertAt === "bottom") {
|
4202 |
+
target.appendChild(style);
|
4203 |
+
} else if (typeof options.insertAt === "object" && options.insertAt.before) {
|
4204 |
+
var nextSibling = getElement(options.insertInto + " " + options.insertAt.before);
|
4205 |
+
target.insertBefore(style, nextSibling);
|
4206 |
+
} else {
|
4207 |
+
throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
|
4208 |
+
}
|
4209 |
+
}
|
4210 |
+
|
4211 |
+
function removeStyleElement (style) {
|
4212 |
+
if (style.parentNode === null) return false;
|
4213 |
+
style.parentNode.removeChild(style);
|
4214 |
+
|
4215 |
+
var idx = stylesInsertedAtTop.indexOf(style);
|
4216 |
+
if(idx >= 0) {
|
4217 |
+
stylesInsertedAtTop.splice(idx, 1);
|
4218 |
+
}
|
4219 |
+
}
|
4220 |
+
|
4221 |
+
function createStyleElement (options) {
|
4222 |
+
var style = document.createElement("style");
|
4223 |
+
|
4224 |
+
options.attrs.type = "text/css";
|
4225 |
+
|
4226 |
+
addAttrs(style, options.attrs);
|
4227 |
+
insertStyleElement(options, style);
|
4228 |
+
|
4229 |
+
return style;
|
4230 |
+
}
|
4231 |
+
|
4232 |
+
function createLinkElement (options) {
|
4233 |
+
var link = document.createElement("link");
|
4234 |
+
|
4235 |
+
options.attrs.type = "text/css";
|
4236 |
+
options.attrs.rel = "stylesheet";
|
4237 |
+
|
4238 |
+
addAttrs(link, options.attrs);
|
4239 |
+
insertStyleElement(options, link);
|
4240 |
+
|
4241 |
+
return link;
|
4242 |
+
}
|
4243 |
+
|
4244 |
+
function addAttrs (el, attrs) {
|
4245 |
+
Object.keys(attrs).forEach(function (key) {
|
4246 |
+
el.setAttribute(key, attrs[key]);
|
4247 |
+
});
|
4248 |
+
}
|
4249 |
+
|
4250 |
+
function addStyle (obj, options) {
|
4251 |
+
var style, update, remove, result;
|
4252 |
+
|
4253 |
+
// If a transform function was defined, run it on the css
|
4254 |
+
if (options.transform && obj.css) {
|
4255 |
+
result = options.transform(obj.css);
|
4256 |
+
|
4257 |
+
if (result) {
|
4258 |
+
// If transform returns a value, use that instead of the original css.
|
4259 |
+
// This allows running runtime transformations on the css.
|
4260 |
+
obj.css = result;
|
4261 |
+
} else {
|
4262 |
+
// If the transform function returns a falsy value, don't add this css.
|
4263 |
+
// This allows conditional loading of css
|
4264 |
+
return function() {
|
4265 |
+
// noop
|
4266 |
+
};
|
4267 |
+
}
|
4268 |
+
}
|
4269 |
+
|
4270 |
+
if (options.singleton) {
|
4271 |
+
var styleIndex = singletonCounter++;
|
4272 |
+
|
4273 |
+
style = singleton || (singleton = createStyleElement(options));
|
4274 |
+
|
4275 |
+
update = applyToSingletonTag.bind(null, style, styleIndex, false);
|
4276 |
+
remove = applyToSingletonTag.bind(null, style, styleIndex, true);
|
4277 |
+
|
4278 |
+
} else if (
|
4279 |
+
obj.sourceMap &&
|
4280 |
+
typeof URL === "function" &&
|
4281 |
+
typeof URL.createObjectURL === "function" &&
|
4282 |
+
typeof URL.revokeObjectURL === "function" &&
|
4283 |
+
typeof Blob === "function" &&
|
4284 |
+
typeof btoa === "function"
|
4285 |
+
) {
|
4286 |
+
style = createLinkElement(options);
|
4287 |
+
update = updateLink.bind(null, style, options);
|
4288 |
+
remove = function () {
|
4289 |
+
removeStyleElement(style);
|
4290 |
+
|
4291 |
+
if(style.href) URL.revokeObjectURL(style.href);
|
4292 |
+
};
|
4293 |
+
} else {
|
4294 |
+
style = createStyleElement(options);
|
4295 |
+
update = applyToTag.bind(null, style);
|
4296 |
+
remove = function () {
|
4297 |
+
removeStyleElement(style);
|
4298 |
+
};
|
4299 |
+
}
|
4300 |
+
|
4301 |
+
update(obj);
|
4302 |
+
|
4303 |
+
return function updateStyle (newObj) {
|
4304 |
+
if (newObj) {
|
4305 |
+
if (
|
4306 |
+
newObj.css === obj.css &&
|
4307 |
+
newObj.media === obj.media &&
|
4308 |
+
newObj.sourceMap === obj.sourceMap
|
4309 |
+
) {
|
4310 |
+
return;
|
4311 |
+
}
|
4312 |
+
|
4313 |
+
update(obj = newObj);
|
4314 |
+
} else {
|
4315 |
+
remove();
|
4316 |
+
}
|
4317 |
+
};
|
4318 |
+
}
|
4319 |
+
|
4320 |
+
var replaceText = (function () {
|
4321 |
+
var textStore = [];
|
4322 |
+
|
4323 |
+
return function (index, replacement) {
|
4324 |
+
textStore[index] = replacement;
|
4325 |
+
|
4326 |
+
return textStore.filter(Boolean).join('\n');
|
4327 |
+
};
|
4328 |
+
})();
|
4329 |
+
|
4330 |
+
function applyToSingletonTag (style, index, remove, obj) {
|
4331 |
+
var css = remove ? "" : obj.css;
|
4332 |
+
|
4333 |
+
if (style.styleSheet) {
|
4334 |
+
style.styleSheet.cssText = replaceText(index, css);
|
4335 |
+
} else {
|
4336 |
+
var cssNode = document.createTextNode(css);
|
4337 |
+
var childNodes = style.childNodes;
|
4338 |
+
|
4339 |
+
if (childNodes[index]) style.removeChild(childNodes[index]);
|
4340 |
+
|
4341 |
+
if (childNodes.length) {
|
4342 |
+
style.insertBefore(cssNode, childNodes[index]);
|
4343 |
+
} else {
|
4344 |
+
style.appendChild(cssNode);
|
4345 |
+
}
|
4346 |
+
}
|
4347 |
+
}
|
4348 |
+
|
4349 |
+
function applyToTag (style, obj) {
|
4350 |
+
var css = obj.css;
|
4351 |
+
var media = obj.media;
|
4352 |
+
|
4353 |
+
if(media) {
|
4354 |
+
style.setAttribute("media", media)
|
4355 |
+
}
|
4356 |
+
|
4357 |
+
if(style.styleSheet) {
|
4358 |
+
style.styleSheet.cssText = css;
|
4359 |
+
} else {
|
4360 |
+
while(style.firstChild) {
|
4361 |
+
style.removeChild(style.firstChild);
|
4362 |
+
}
|
4363 |
+
|
4364 |
+
style.appendChild(document.createTextNode(css));
|
4365 |
+
}
|
4366 |
+
}
|
4367 |
+
|
4368 |
+
function updateLink (link, options, obj) {
|
4369 |
+
var css = obj.css;
|
4370 |
+
var sourceMap = obj.sourceMap;
|
4371 |
+
|
4372 |
+
/*
|
4373 |
+
If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
|
4374 |
+
and there is no publicPath defined then lets turn convertToAbsoluteUrls
|
4375 |
+
on by default. Otherwise default to the convertToAbsoluteUrls option
|
4376 |
+
directly
|
4377 |
+
*/
|
4378 |
+
var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
|
4379 |
+
|
4380 |
+
if (options.convertToAbsoluteUrls || autoFixUrls) {
|
4381 |
+
css = fixUrls(css);
|
4382 |
+
}
|
4383 |
+
|
4384 |
+
if (sourceMap) {
|
4385 |
+
// http://stackoverflow.com/a/26603875
|
4386 |
+
css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
|
4387 |
+
}
|
4388 |
+
|
4389 |
+
var blob = new Blob([css], { type: "text/css" });
|
4390 |
+
|
4391 |
+
var oldSrc = link.href;
|
4392 |
+
|
4393 |
+
link.href = URL.createObjectURL(blob);
|
4394 |
+
|
4395 |
+
if(oldSrc) URL.revokeObjectURL(oldSrc);
|
4396 |
+
}
|
4397 |
+
|
4398 |
+
|
4399 |
+
/***/ }),
|
4400 |
+
|
4401 |
+
/***/ "./node_modules/style-loader/lib/urls.js":
|
4402 |
+
/*!***********************************************!*\
|
4403 |
+
!*** ./node_modules/style-loader/lib/urls.js ***!
|
4404 |
+
\***********************************************/
|
4405 |
+
/*! no static exports found */
|
4406 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4407 |
+
|
4408 |
+
"use strict";
|
4409 |
+
|
4410 |
+
|
4411 |
+
/**
|
4412 |
+
* When source maps are enabled, `style-loader` uses a link element with a data-uri to
|
4413 |
+
* embed the css on the page. This breaks all relative urls because now they are relative to a
|
4414 |
+
* bundle instead of the current page.
|
4415 |
+
*
|
4416 |
+
* One solution is to only use full urls, but that may be impossible.
|
4417 |
+
*
|
4418 |
+
* Instead, this function "fixes" the relative urls to be absolute according to the current page location.
|
4419 |
+
*
|
4420 |
+
* A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
|
4421 |
+
*
|
4422 |
+
*/
|
4423 |
+
|
4424 |
+
module.exports = function (css) {
|
4425 |
+
// get current location
|
4426 |
+
var location = typeof window !== "undefined" && window.location;
|
4427 |
+
|
4428 |
+
if (!location) {
|
4429 |
+
throw new Error("fixUrls requires window.location");
|
4430 |
+
}
|
4431 |
+
|
4432 |
+
// blank or null?
|
4433 |
+
if (!css || typeof css !== "string") {
|
4434 |
+
return css;
|
4435 |
+
}
|
4436 |
+
|
4437 |
+
var baseUrl = location.protocol + "//" + location.host;
|
4438 |
+
var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
|
4439 |
+
|
4440 |
+
// convert each url(...)
|
4441 |
+
/*
|
4442 |
+
This regular expression is just a way to recursively match brackets within
|
4443 |
+
a string.
|
4444 |
+
/url\s*\( = Match on the word "url" with any whitespace after it and then a parens
|
4445 |
+
( = Start a capturing group
|
4446 |
+
(?: = Start a non-capturing group
|
4447 |
+
[^)(] = Match anything that isn't a parentheses
|
4448 |
+
| = OR
|
4449 |
+
\( = Match a start parentheses
|
4450 |
+
(?: = Start another non-capturing groups
|
4451 |
+
[^)(]+ = Match anything that isn't a parentheses
|
4452 |
+
| = OR
|
4453 |
+
\( = Match a start parentheses
|
4454 |
+
[^)(]* = Match anything that isn't a parentheses
|
4455 |
+
\) = Match a end parentheses
|
4456 |
+
) = End Group
|
4457 |
+
*\) = Match anything and then a close parens
|
4458 |
+
) = Close non-capturing group
|
4459 |
+
* = Match anything
|
4460 |
+
) = Close capturing group
|
4461 |
+
\) = Match a close parens
|
4462 |
+
/gi = Get all matches, not the first. Be case insensitive.
|
4463 |
+
*/
|
4464 |
+
var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function (fullMatch, origUrl) {
|
4465 |
+
// strip quotes (if they exist)
|
4466 |
+
var unquotedOrigUrl = origUrl.trim().replace(/^"(.*)"$/, function (o, $1) {
|
4467 |
+
return $1;
|
4468 |
+
}).replace(/^'(.*)'$/, function (o, $1) {
|
4469 |
+
return $1;
|
4470 |
+
});
|
4471 |
+
|
4472 |
+
// already a full url? no change
|
4473 |
+
if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
|
4474 |
+
return fullMatch;
|
4475 |
+
}
|
4476 |
+
|
4477 |
+
// convert the url to a full url
|
4478 |
+
var newUrl;
|
4479 |
+
|
4480 |
+
if (unquotedOrigUrl.indexOf("//") === 0) {
|
4481 |
+
//TODO: should we add protocol?
|
4482 |
+
newUrl = unquotedOrigUrl;
|
4483 |
+
} else if (unquotedOrigUrl.indexOf("/") === 0) {
|
4484 |
+
// path should be relative to the base url
|
4485 |
+
newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
|
4486 |
+
} else {
|
4487 |
+
// path should be relative to current directory
|
4488 |
+
newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
|
4489 |
+
}
|
4490 |
+
|
4491 |
+
// send back the fixed url(...)
|
4492 |
+
return "url(" + JSON.stringify(newUrl) + ")";
|
4493 |
+
});
|
4494 |
+
|
4495 |
+
// send back the fixed css
|
4496 |
+
return fixedCss;
|
4497 |
+
};
|
4498 |
+
|
4499 |
+
/***/ }),
|
4500 |
+
|
4501 |
+
/***/ "./node_modules/webpack/buildin/amd-options.js":
|
4502 |
+
/*!****************************************!*\
|
4503 |
+
!*** (webpack)/buildin/amd-options.js ***!
|
4504 |
+
\****************************************/
|
4505 |
+
/*! no static exports found */
|
4506 |
+
/***/ (function(module, exports) {
|
4507 |
+
|
4508 |
+
/* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */
|
4509 |
+
module.exports = __webpack_amd_options__;
|
4510 |
+
|
4511 |
+
/* WEBPACK VAR INJECTION */}.call(this, {}))
|
4512 |
+
|
4513 |
+
/***/ }),
|
4514 |
+
|
4515 |
+
/***/ "./node_modules/webpack/buildin/module.js":
|
4516 |
+
/*!***********************************!*\
|
4517 |
+
!*** (webpack)/buildin/module.js ***!
|
4518 |
+
\***********************************/
|
4519 |
+
/*! no static exports found */
|
4520 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4521 |
+
|
4522 |
+
"use strict";
|
4523 |
+
|
4524 |
+
|
4525 |
+
module.exports = function (module) {
|
4526 |
+
if (!module.webpackPolyfill) {
|
4527 |
+
module.deprecate = function () {};
|
4528 |
+
module.paths = [];
|
4529 |
+
// module.parent = undefined by default
|
4530 |
+
if (!module.children) module.children = [];
|
4531 |
+
Object.defineProperty(module, "loaded", {
|
4532 |
+
enumerable: true,
|
4533 |
+
get: function get() {
|
4534 |
+
return module.l;
|
4535 |
+
}
|
4536 |
+
});
|
4537 |
+
Object.defineProperty(module, "id", {
|
4538 |
+
enumerable: true,
|
4539 |
+
get: function get() {
|
4540 |
+
return module.i;
|
4541 |
+
}
|
4542 |
+
});
|
4543 |
+
module.webpackPolyfill = 1;
|
4544 |
+
}
|
4545 |
+
return module;
|
4546 |
+
};
|
4547 |
+
|
4548 |
+
/***/ })
|
4549 |
+
|
4550 |
+
/******/ });
|
4551 |
+
//# sourceMappingURL=blocks.js.map
|
blocks/release/blocks.js.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./blocks/development/form/css/blocks.scss?d382","webpack:///./blocks/development/form/js/block-form.js","webpack:///./blocks/development/form/js/class.MailChimpForms.js","webpack:///./blocks/development/form/js/countries.js","webpack:///./blocks/development/form/js/enable-submit-button-editing.js","webpack:///./blocks/development/form/js/get-form.js","webpack:///./blocks/development/form/js/get-forms.js","webpack:///./blocks/development/form/js/get-recaptcha.js","webpack:///./blocks/development/form/js/locales.js","webpack:///./blocks/development/form/js/slugify.js","webpack:///./blocks/development/form/js/states.js","webpack:///./blocks/index.js","webpack:///./node_modules/classnames/index.js","webpack:///./blocks/development/form/css/blocks.scss","webpack:///./node_modules/css-loader/lib/css-base.js","webpack:///./node_modules/fbjs/lib/emptyFunction.js","webpack:///./node_modules/fbjs/lib/emptyObject.js","webpack:///./node_modules/fbjs/lib/invariant.js","webpack:///./node_modules/fbjs/lib/warning.js","webpack:///./node_modules/object-assign/index.js","webpack:///./node_modules/prop-types/checkPropTypes.js","webpack:///./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///./node_modules/react-recaptcha/dist/react-recaptcha.js","webpack:///./node_modules/react/cjs/react.development.js","webpack:///./node_modules/react/index.js","webpack:///./node_modules/style-loader/lib/addStyles.js","webpack:///./node_modules/style-loader/lib/urls.js","webpack:///(webpack)/buildin/amd-options.js","webpack:///(webpack)/buildin/module.js"],"names":["require","__","wp","i18n","registerBlockType","blocks","edit_easy_form","props","onChangeForm","event","setAttributes","form_id","target","value","length","then","form","data","form_description","form_title","form_name","is_ajax","submission_settings","ajax","submit_button_text","form_settings","onChangeDescription","toggleShowDescription","show_description","checked","toggleInline","inline","toggleShowTitle","show_title","toggleFormTitle","toggleIsAjax","toggleRecaptcha","recaptcha","toggleRecaptchaTheme","recaptcha_theme","toggleRecaptchaLang","recaptcha_lang","toggleRecaptchaType","recaptcha_type","toggleRecaptchaSize","recaptcha_size","toggleRecaptchaVerifyCallback","recaptcha_verify_callback","toggleRecaptchaExpiredCallback","recaptcha_expired_callback","toggleSubmitButtonText","className","attributes","focus","save_easy_form","settings","title","category","icon","keywords","type","default","edit","save","EasyFormsBlock","Recaptcha","RichText","InspectorControls","PlainText","components","Spinner","TextControl","PanelBody","PanelRow","FormToggle","SelectControl","Component","element","MailChimpForms","arguments","state","forms","recaptcha_data","success","address_fields","setState","show_form_title","showTitle","show_form_description","showDescription","isAjax","recaptchaType","label","recaptchaTheme","locale","recaptchaLang","Object","keys","map","key","recaptchaSize","recaptchaVerifyCallback","recaptchaExpiredCallback","inspector_controls","formID","id","formTitle","descriptionValue","formData","addr_field","field","merge","handleFormFieldChanges","placeholder","choice","JSON","parse","choices","default_choice","ii","parseInt","date_format","cn","groups","group_id","indexOf","fields","desc","description","classes","description_above","hide","get_address_field","get_dropdown_field","get_radio_field","get_url_field","get_date_field","get_default_field","get_radio_interest_group","get_hidden_interest_group","get_checkboxes_interest_group","get_dropdown_interest_group","site_key","Math","random","toString","slice","submitButtonText","get_form","form_fields","form_recaptcha","submit_button","forms_dropdown","get_form_section","countries","$","document","ready","on","preventDefault","stopPropagation","jQuery","yikes_easy_forms_fetch_form","action","nonce","ez_forms_gb_data","fetch_form_nonce","post","ajax_url","yikes_easy_forms_fetch_forms","fetch_forms_nonce","get_recaptcha","fetch_recaptcha_nonce","locales","slugify","text","specialChars","toLowerCase","replace","index","str","states","hasOwn","hasOwnProperty","classNames","i","arg","argType","push","Array","isArray","apply","call","join","module","exports","define","window","useSourceMap","list","item","content","cssWithMappingToString","modules","mediaQuery","alreadyImportedModules","cssMapping","btoa","sourceMapping","toComment","sourceURLs","sources","source","sourceRoot","concat","sourceMap","base64","unescape","encodeURIComponent","stringify","makeEmptyFunction","emptyFunction","thatReturns","thatReturnsFalse","thatReturnsTrue","thatReturnsNull","thatReturnsThis","thatReturnsArgument","emptyObject","freeze","validateFormat","format","undefined","Error","invariant","condition","a","b","c","d","e","f","error","args","argIndex","name","framesToPop","warning","printWarning","_len","_key","message","console","x","_len2","_key2","getOwnPropertySymbols","prototype","propIsEnumerable","propertyIsEnumerable","toObject","val","TypeError","shouldUseNative","assign","test1","String","getOwnPropertyNames","test2","fromCharCode","order2","n","test3","split","forEach","letter","err","from","to","symbols","s","ReactPropTypesSecret","loggedTypeFailures","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","ex","stack","t","r","loaded","m","p","__esModule","o","ReferenceError","create","constructor","enumerable","writable","configurable","setPrototypeOf","__proto__","defineProperty","l","u","string","onloadCallbackName","elementID","onloadCallback","func","verifyCallback","expiredCallback","render","sitekey","theme","verifyCallbackName","expiredCallbackName","size","tabindex","hl","badge","h","grecaptcha","y","getPrototypeOf","_renderGrecaptcha","bind","reset","widget","setInterval","_updateReadyState","clearInterval","execute","callback","createElement","propTypes","defaultProps","isRequired","array","bool","number","object","symbol","any","arrayOf","instanceOf","node","objectOf","oneOf","oneOfType","shape","PropTypes","_assign","ReactVersion","hasSymbol","Symbol","REACT_ELEMENT_TYPE","REACT_CALL_TYPE","REACT_RETURN_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_FORWARD_REF_TYPE","MAYBE_ITERATOR_SYMBOL","iterator","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","lowPriorityWarning","warn","lowPriorityWarning$1","didWarnStateUpdateForUnmountedComponent","warnNoop","publicInstance","callerName","_constructor","displayName","warningKey","ReactNoopUpdateQueue","isMounted","enqueueForceUpdate","enqueueReplaceState","completeState","enqueueSetState","partialState","context","updater","refs","isReactComponent","forceUpdate","deprecatedAPIs","replaceState","defineDeprecationWarning","methodName","info","get","fnName","ComponentDummy","PureComponent","pureComponentPrototype","isPureReactComponent","createRef","refObject","current","seal","ReactCurrentOwner","RESERVED_PROPS","ref","__self","__source","specialPropKeyWarningShown","specialPropRefWarningShown","hasValidRef","config","getter","getOwnPropertyDescriptor","isReactWarning","hasValidKey","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","self","owner","$$typeof","_owner","_store","children","propName","childrenLength","childArray","cloneAndReplaceKey","oldElement","newKey","newElement","_self","_source","cloneElement","isValidElement","ReactDebugCurrentFrame","getCurrentStack","getStackAddendum","impl","SEPARATOR","SUBSEPARATOR","escape","escapeRegex","escaperLookup","escapedString","match","didWarnAboutMaps","userProvidedKeyEscapeRegex","escapeUserProvidedKey","POOL_SIZE","traverseContextPool","getPooledTraverseContext","mapResult","keyPrefix","mapFunction","mapContext","traverseContext","pop","result","count","releaseTraverseContext","traverseAllChildrenImpl","nameSoFar","invokeCallback","getComponentKey","child","nextName","subtreeCount","nextNamePrefix","iteratorFn","entries","step","next","done","addendum","childrenString","traverseAllChildren","component","forEachSingleChild","bookKeeping","forEachChildren","forEachFunc","forEachContext","mapSingleChildIntoContext","childKey","mappedChild","mapIntoWithKeyPrefixInternal","prefix","escapedPrefix","mapChildren","countChildren","toArray","onlyChild","createContext","defaultValue","calculateChangedBits","_calculateChangedBits","_defaultValue","_currentValue","_changedBits","Provider","Consumer","_context","_currentRenderer","forwardRef","describeComponentFrame","ownerName","fileName","lineNumber","isValidElementType","getComponentName","fiber","currentlyValidatingElement","propTypesMisspellWarningShown","getDisplayName","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","elementProps","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","parentName","validateExplicitKey","validated","currentComponentErrorInfo","childOwner","validateChildKeys","validatePropTypes","componentClass","getDefaultProps","isReactClassApproved","validateFragmentProps","fragment","createElementWithValidation","validType","sourceInfo","typeString","createFactoryWithValidation","validatedFactory","cloneElementWithValidation","React","Children","only","Fragment","StrictMode","unstable_AsyncMode","createFactory","version","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactComponentTreeHook","React$2","React$3","react","css","baseUrl","protocol","host","currentDir","pathname","fixedCss","fullMatch","origUrl","unquotedOrigUrl","trim","$1","test","newUrl","webpackPolyfill","deprecate","paths"],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;;;;;AClEA;;AAEA;;AAEA;AACA;;;;AAIA,eAAe;;AAEf;AACA;;AAEA;;AAEA;;AAEA,Y;;;;;;;;;;;;;;;;;;ACnBA;;;;AAEA;;;;AAEA;;;;AAEA,mBAAAA,CAAS,uGAAT;;AAEA;IACQC,E,GAAOC,GAAGC,I,CAAVF,E;;AAER;;IACQG,iB,GAAsBF,GAAGG,M,CAAzBD,iB;;;AAER,IAAME,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;;AAEA;;AAEA;AACA;;AAEA,iBAAiB,mBAAmB;AACpC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,iBAAiB,sBAAsB;AACvC;;AAEA;AACA,mBAAmB,2BAA2B;;AAE9C;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,mBAAmB;AACnC;AACA;;AAEA;AACA;;AAEA,iBAAiB,2BAA2B;AAC5C;AACA;;AAEA,QAAQ,uBAAuB;AAC/B;AACA;AACA,GAAG;AACH;;AAEA,iBAAiB,uBAAuB;AACxC;AACA;;AAEA,2BAA2B;AAC3B;AACA;AACA;;AAEA;AACA;AACA;;AAEA,gBAAgB,iBAAiB;AACjC;AACA;AACA;AACA;AACA;AACA,cAAc;;AAEd,kDAAkD,sBAAsB;AACxE;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,EAAE;AACF;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;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P;AACA,CArBD,C","file":"blocks.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./blocks/index.js\");\n","\nvar content = require(\"!!../../../../node_modules/css-loader/index.js!../../../../node_modules/sass-loader/lib/loader.js!./blocks.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/index.js!../../../../node_modules/sass-loader/lib/loader.js!./blocks.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/index.js!../../../../node_modules/sass-loader/lib/loader.js!./blocks.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","import yikes_easy_forms_fetch_form from './get-form.js'\r\n\r\nimport MailChimpForms from './class.MailChimpForms.js';\r\n\r\nimport '../css/blocks.scss'\r\n\r\nrequire( './enable-submit-button-editing.js' );\r\n\r\n// Get just the __() localization function from wp.i18n\r\nconst { __ } = wp.i18n;\r\n\r\n// Get registerBlockType and other methods from wp.blocks\r\nconst { registerBlockType } = wp.blocks;\r\n\r\nconst edit_easy_form = function( props ) {\r\n\r\n\tconst onChangeForm = ( event ) => {\r\n\t props.setAttributes( { form_id: event.target.value } );\r\n\r\n\t if ( event.target.value.length > 0 ) {\r\n\t \tyikes_easy_forms_fetch_form( event.target.value ).then( function( form ) {\r\n\t \t\tprops.setAttributes( { form: form.data } );\r\n\t \t\tprops.setAttributes( { form_description: form.data.form_description } );\r\n\t \t\tprops.setAttributes( { form_title: form.data.form_name } );\r\n\t \t\tprops.setAttributes( { is_ajax: form.data.submission_settings.ajax === '1' } );\r\n\t \t\tprops.setAttributes( { submit_button_text: form.data.form_settings['yikes-easy-mc-submit-button-text'] } );\r\n\t \t});\r\n\t }\r\n\t};\r\n\r\n\tconst onChangeDescription = ( value ) => {\r\n\t\tprops.setAttributes( { form_description: value } );\r\n\t};\r\n\r\n\tconst toggleShowDescription = ( event ) => {\r\n\t\tprops.setAttributes( { show_description: !! event.target.checked } );\r\n\t}\r\n\r\n\tconst toggleInline = ( event ) => {\r\n\t\tprops.setAttributes( { inline: !! event.target.checked } );\r\n\t}\r\n\r\n\tconst toggleShowTitle = ( event ) => {\r\n\t\tprops.setAttributes( { show_title: !! event.target.checked } );\r\n\t}\r\n\r\n\tconst toggleFormTitle = ( value ) => {\r\n\t\tprops.setAttributes( { form_title: value } );\r\n\t}\r\n\r\n\tconst toggleIsAjax = ( event ) => {\r\n\t\tprops.setAttributes( { is_ajax: !! event.target.checked } );\r\n\t}\r\n\r\n\tconst toggleRecaptcha = ( event ) => {\r\n\t\tprops.setAttributes( { recaptcha: !! event.target.checked } );\t\r\n\t}\r\n\r\n\tconst toggleRecaptchaTheme = ( value ) => {\r\n\t\tprops.setAttributes( { recaptcha_theme: value } );\r\n\t}\r\n\r\n\tconst toggleRecaptchaLang = ( value ) => {\r\n\t\tprops.setAttributes( { recaptcha_lang: value } );\r\n\t}\r\n\r\n\tconst toggleRecaptchaType = ( value ) => {\r\n\t\tprops.setAttributes( { recaptcha_type: value } );\r\n\t}\r\n\r\n\tconst toggleRecaptchaSize = ( value ) => {\r\n\t\tprops.setAttributes( { recaptcha_size: value } );\r\n\t}\r\n\r\n\tconst toggleRecaptchaVerifyCallback = ( value ) => {\r\n\t\tprops.setAttributes( { recaptcha_verify_callback: value } );\r\n\t}\r\n\r\n\tconst toggleRecaptchaExpiredCallback = ( value ) => {\r\n\t\tprops.setAttributes( { recaptcha_expired_callback: value } );\r\n\t}\r\n\r\n\tconst toggleSubmitButtonText = ( value ) => {\r\n\t\tprops.setAttributes( { submit_button_text: value })\r\n\t}\r\n\r\n\treturn (\r\n\t\t<MailChimpForms\r\n\t\t\tclassName={ props.className }\r\n\t\t\tonChangeForm={ onChangeForm }\r\n\t\t\tformID={ props.attributes.form_id }\r\n\t\t\tformData={ props.attributes.form }\r\n\t\t\tonChangeDescription={ onChangeDescription }\r\n\t\t\tdescriptionValue={ props.attributes.form_description }\r\n\t\t\tshowDescription={ props.attributes.show_description }\r\n\t\t\ttoggleShowDescription={ toggleShowDescription }\r\n\t\t\tfocus={ !! props.focus }\r\n\t\t\tinline={ props.attributes.inline }\r\n\t\t\ttoggleInline={ toggleInline }\r\n\t\t\tformTitle={ props.attributes.form_title }\r\n\t\t\ttoggleFormTitle={ toggleFormTitle }\r\n\t\t\tshowTitle={ props.attributes.show_title }\r\n\t\t\ttoggleShowTitle={ toggleShowTitle }\r\n\t\t\tisAjax={ props.attributes.is_ajax }\r\n\t\t\ttoggleIsAjax={ toggleIsAjax }\r\n\t\t\trecaptcha={ props.attributes.recaptcha }\r\n\t\t\ttoggleRecaptcha={ toggleRecaptcha }\r\n\t\t\trecaptchaTheme={ props.attributes.recaptcha_theme }\r\n\t\t\ttoggleRecaptchaTheme={ toggleRecaptchaTheme }\r\n\t\t\trecaptchaLang={ props.attributes.recaptcha_lang }\r\n\t\t\ttoggleRecaptchaLang={ toggleRecaptchaLang }\r\n\t\t\trecaptchaType={ props.attributes.recaptcha_type }\r\n\t\t\ttoggleRecaptchaType={ toggleRecaptchaType }\r\n\t\t\trecaptchaSize={ props.attributes.recaptcha_size }\r\n\t\t\ttoggleRecaptchaSize={ toggleRecaptchaSize }\r\n\t\t\trecaptchaVerifyCallback={ props.attributes.recaptcha_verify_callback }\r\n\t\t\ttoggleRecaptchaVerifyCallback={ toggleRecaptchaVerifyCallback }\r\n\t\t\trecaptchaExpiredCallback={ props.attributes.recaptcha_expired_callback }\r\n\t\t\ttoggleRecaptchaExpiredCallback={ toggleRecaptchaExpiredCallback }\r\n\t\t\tsubmitButtonText={ props.attributes.submit_button_text }\r\n\t\t\ttoggleSubmitButtonText={ toggleSubmitButtonText }\r\n\t\t/>\r\n\t);\r\n\r\n}\r\n\r\nconst save_easy_form = function( props ) {\r\n\treturn null;\r\n}\r\n\r\nconst settings = {\r\n\ttitle : __( 'Easy Forms for MailChimp' ),\r\n\tcategory : 'common', // Options include \"common\", \"formatting\", \"layout\", \"widgets\" and \"embed.\"\r\n\ticon : 'email-alt',\r\n\tkeywords : ['mailchimp', 'easy forms for mailchimp', 'yikes'],\r\n\tattributes: {\r\n\t\tform_id: {\r\n\t\t\ttype: 'number'\r\n\t\t},\r\n\t\tform: {\r\n\t\t\ttype: 'object'\r\n\t\t},\r\n\t\tform_description: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\tshow_description: {\r\n\t\t\ttype: 'boolean',\r\n\t\t\tdefault: false\r\n\t\t},\r\n\t\tinline: {\r\n\t\t\ttype: 'boolean',\r\n\t\t\tdefault: false\r\n\t\t},\r\n\t\tshow_title: {\r\n\t\t\ttype: 'boolean',\r\n\t\t\tdefault: false\r\n\t\t},\r\n\t\tform_title: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\tis_ajax: {\r\n\t\t\ttype: 'boolean',\r\n\t\t\tdefault: true,\r\n\t\t},\r\n\t\trecaptcha: {\r\n\t\t\ttype: 'boolean',\r\n\t\t\tdefault: true,\r\n\t\t},\r\n\t\trecaptcha_theme: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: 'light'\r\n\t\t},\r\n\t\trecaptcha_lang: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\trecaptcha_type: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: 'image'\r\n\t\t},\r\n\t\trecaptcha_size: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: 'normal'\r\n\t\t},\r\n\t\trecaptcha_verify_callback: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\trecaptcha_expired_callback: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\tsubmit_button_text: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: ''\r\n\t\t}\r\n\t},\r\n\tedit: edit_easy_form,\r\n\tsave: save_easy_form,\r\n}\r\n\r\nconst EasyFormsBlock = registerBlockType(\r\n\r\n\t// Name\r\n\t'yikes-inc-easy-forms/easy-forms-block',\r\n\r\n\t// Settings\r\n\tsettings\r\n);","// Import dependencies\r\nimport yikes_easy_forms_fetch_forms from './get-forms.js';\r\n\r\nimport get_recaptcha from './get-recaptcha.js';\r\n\r\nimport slugify from './slugify.js';\r\n\r\nimport countries from './countries.js';\r\n\r\nimport states from './states.js';\r\n\r\nimport locales from './locales.js';\r\n\r\n// Get functions / blocks / components\r\nconst Recaptcha = require( 'react-recaptcha' );\r\nconst { __ } = wp.i18n;\r\nconst { registerBlockType, RichText, InspectorControls, PlainText } = wp.blocks;\r\nconst { Spinner, TextControl, PanelBody, PanelRow, FormToggle, SelectControl } = wp.components;\r\nconst { Component } = wp.element;\r\n\r\nexport default class MailChimpForms extends Component {\r\n constructor( props ) {\r\n super( ...arguments );\r\n this.state = {\r\n forms : [],\r\n recaptcha_data: {\r\n data: {},\r\n success: false\r\n }\r\n }\r\n\r\n this.address_fields = {\r\n 'addr1': 'Address 1', \r\n 'addr2': 'Address 2', \r\n 'city' : 'City', \r\n 'state': 'State', \r\n 'zip' : 'Zip',\r\n 'country': 'Country'\r\n }\r\n\r\n yikes_easy_forms_fetch_forms()\r\n .then( forms => {\r\n return this.setState( { forms: forms.data } );\r\n });\r\n\r\n get_recaptcha()\r\n .then( recaptcha_data => {\r\n return this.setState( { recaptcha_data: recaptcha_data });\r\n });\r\n }\r\n\r\n handleFormFieldChanges( event ) {\r\n \t// console.log( event );\r\n \t\r\n \t// console.log( value );\r\n \t// console.log( this );\r\n \t// console.log( typeof this.setState );\r\n\r\n \t// const target = event.target;\r\n // const value = target.type === 'checkbox' ? target.checked : target.value;\r\n // const name = target.name;\r\n\r\n // return this.setState( { [name]: value } );\r\n }\r\n\r\n inspector_controls() {\r\n\r\n const inline = (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"inline-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n >\r\n { __( 'Inline' ) }\r\n </label>\r\n <FormToggle\r\n id=\"inline-form-toggle\"\r\n label={ __( 'Inline' ) }\r\n checked={ !! this.props.inline }\r\n onChange={ this.props.toggleInline }\r\n />\r\n </PanelRow>\r\n )\r\n\r\n const show_form_title = (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"show-title-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n >\r\n { __( 'Show Form Title' ) }\r\n </label>\r\n <FormToggle\r\n id=\"show-title-form-toggle\"\r\n label={ __( 'Show Form Title' ) }\r\n checked={ !! this.props.showTitle }\r\n onChange={ this.props.toggleShowTitle }\r\n />\r\n </PanelRow>\r\n )\r\n\r\n const show_form_description = (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"show-description-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n >\r\n { __( 'Show Form Description' ) }\r\n </label>\r\n <FormToggle\r\n id=\"show-description-form-toggle\"\r\n label={ __( 'Show Form Description' ) }\r\n checked={ !! this.props.showDescription }\r\n onChange={ this.props.toggleShowDescription }\r\n />\r\n </PanelRow>\r\n )\r\n\r\n const is_ajax = (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"is-ajax-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n >\r\n { __( 'AJAX Submissions' ) }\r\n </label>\r\n <FormToggle\r\n id=\"is-ajax-form-toggle\"\r\n label={ __( 'AJAX' ) }\r\n checked={ !! this.props.isAjax }\r\n onChange={ this.props.toggleIsAjax }\r\n />\r\n </PanelRow>\r\n )\r\n\r\n const recaptcha = (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"recaptcha-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n >\r\n { __( 'reCAPTCHA' ) }\r\n </label>\r\n <FormToggle\r\n id=\"recaptcha-form-toggle\"\r\n label={ __( 'reCAPTCHA' ) }\r\n checked={ !! this.props.recaptcha }\r\n onChange={ this.props.toggleRecaptcha }\r\n />\r\n </PanelRow>\r\n )\r\n\r\n const recaptcha_type = !! this.props.recaptcha ?\r\n (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"recaptcha-type-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n >\r\n { __( 'reCAPTCHA Type' ) }\r\n </label>\r\n <SelectControl\r\n value={ this.props.recaptchaType }\r\n options={ [ { value: 'image', label: 'Image' }, { value: 'audio', 'label': 'Audio' } ] }\r\n onChange={ this.props.toggleRecaptchaType }\r\n />\r\n </PanelRow>\r\n )\r\n : '';\r\n\r\n const recaptcha_theme = !! this.props.recaptcha ?\r\n (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"recaptcha-theme-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n >\r\n { __( 'reCAPTCHA Theme' ) }\r\n </label>\r\n <SelectControl\r\n value={ this.props.recaptchaTheme }\r\n options={ [ { value: 'light', label: 'Light' }, {value: 'dark', 'label': 'Dark' } ] }\r\n onChange={ this.props.toggleRecaptchaTheme }\r\n />\r\n </PanelRow>\r\n )\r\n : '';\r\n\r\n const recaptcha_lang = !! this.props.recaptcha ?\r\n (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"recaptcha-language-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n title={ this.state.recaptcha_data.data ? 'The default language for your locale is ' + locales[ this.state.recaptcha_data.data.locale ] : '' }\r\n >\r\n { __( 'reCAPTCHA Language' ) }\r\n </label>\r\n <SelectControl\r\n id=\"recaptcha-language-form-toggle\"\r\n value={ this.props.recaptchaLang.length > 0 ? this.props.recaptchaLang : ( this.state.recaptcha_data.data ? this.state.recaptcha_data.data.locale : '' ) }\r\n onChange={ this.props.toggleRecaptchaLang }\r\n title={ this.state.recaptcha_data.data ? 'The default language for your locale is ' + locales[ this.state.recaptcha_data.data.locale ] : '' }\r\n options={ Object.keys( locales ).map( ( key ) => { return { value: key, label: locales[key] } }) }\r\n />\r\n </PanelRow>\r\n )\r\n : '';\r\n\r\n const recaptcha_size = !! this.props.recaptcha ?\r\n (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"recaptcha-size-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n >\r\n { __( 'reCAPTCHA Size' ) }\r\n </label>\r\n <SelectControl\r\n id=\"recaptcha-size-form-toggle\"\r\n value={ this.props.recaptchaSize }\r\n onChange={ this.props.toggleRecaptchaSize }\r\n options={ [ { value: 'normal', label: 'Normal' }, { value: 'compact', label: 'Compact' } ] }\r\n />\r\n </PanelRow>\r\n )\r\n : '';\r\n\r\n const recaptcha_verify_callback = !! this.props.recaptcha ?\r\n (\r\n <TextControl\r\n id=\"recaptcha-verify-callback-form-toggle\"\r\n label={ __( 'reCAPTCHA Verify Callback' ) }\r\n value={ this.props.recaptchaVerifyCallback }\r\n onChange={ this.props.toggleRecaptchaVerifyCallback }\r\n />\r\n )\r\n : '';\r\n\r\n const recaptcha_expired_callback = !! this.props.recaptcha ?\r\n (\r\n <TextControl\r\n id=\"recaptcha-expired-callback-form-toggle\"\r\n label={ __( 'reCAPTCHA Expired Callback' ) }\r\n value={ this.props.recaptchaExpiredCallback }\r\n onChange={ this.props.toggleRecaptchaExpiredCallback }\r\n />\r\n )\r\n : '';\r\n\r\n const inspector_controls = \r\n <InspectorControls key=\"easy-forms-inspector\">\r\n\r\n <PanelBody title={ __( 'Settings' ) } >\r\n {inline}\r\n {show_form_title}\r\n {show_form_description}\r\n {is_ajax}\r\n {recaptcha}\r\n {recaptcha_type}\r\n {recaptcha_theme}\r\n {recaptcha_lang}\r\n {recaptcha_size}\r\n {recaptcha_verify_callback}\r\n {recaptcha_expired_callback}\r\n </PanelBody>\r\n\r\n </InspectorControls>\r\n\r\n return inspector_controls;\r\n }\r\n\r\n forms_dropdown() {\r\n return this.state.forms.length > 0 ? \r\n <select \r\n value={ this.props.formID } \r\n onChange={ this.props.onChangeForm } \r\n className=\"yikes-mailchimp-forms-dropdown\"\r\n key=\"yikes-mailchimp-forms-dropdown\"\r\n >\r\n <option key=\"select\" value=\"\">Select MailChimp Form...</option>\r\n { this.state.forms.map( ( form ) => {\r\n return <option key={ 'yikes-select-form-' + form.id } value={ form.id }>{ form.form_name }</option>\r\n })}\r\n </select> \r\n : '';\r\n }\r\n\r\n form_title() {\r\n return this.props.showTitle === true ?\r\n ( this.props.focus ? \r\n <h3 \r\n className={ \"yikes-mailchimp-form-title yikes-mailchimp-form-title-\" + this.props.formID }\r\n key=\"yikes-mailchimp-form-title-wrapper\"\r\n >\r\n <PlainText\r\n placeholder={ this.props.formTitle }\r\n key=\"yikes-mailchimp-form-title-editable\"\r\n value={ this.props.formTitle }\r\n onChange={ this.props.toggleFormTitle }\r\n />\r\n </h3>\r\n :\r\n <h3 className={ \"yikes-mailchimp-form-title yikes-mailchimp-form-title-\" + this.props.formID } key=\"yikes-mailchimp-form-title\">\r\n { this.props.formTitle }\r\n </h3> \r\n ) : ''; \r\n }\r\n\r\n form_description() {\r\n return this.props.showDescription === true ?\r\n <section className={ \"yikes-mailchimp-form-description yikes-mailchimp-form-description-\" + this.props.formID } key=\"yikes-mailchimp-form-description\">\r\n <PlainText\r\n className=\"mailchimpDescription\"\r\n placeholder={ __( 'Enter your form\\'s description here.' ) /*( this.props.formData && this.props.formData.form_description && this.props.formData.form_description.length > 0 || this.props.descriptionValue && this.props.descriptionValue.length > 0 ) ? '' : __( 'Enter your form\\'s description here.' )*/ }\r\n value={ this.props.descriptionValue.length > 0 ? this.props.descriptionValue : ( this.props.formData && this.props.formData.form_description ? this.props.formData.form_description : '' ) }\r\n onChange={ this.props.onChangeDescription }\r\n key=\"mailchimpDescription\"\r\n />\r\n </section> \r\n : ''; \r\n }\r\n\r\n get_address_field( addr_field, field ) {\r\n switch( addr_field ) {\r\n\r\n case 'addr1':\r\n case 'addr2':\r\n case 'city':\r\n case 'zip':\r\n return (\r\n <TextControl\r\n id={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge + '-' + addr_field }\r\n onChange={ this.handleFormFieldChanges }\r\n type=\"text\"\r\n name={ field.merge + '[' + addr_field + ']' }\r\n className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }\r\n key= { 'yikes-mailchimp-field-' + field.merge + '-' + addr_field }\r\n required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }\r\n placeholder={ field.placeholder === '1' ? this.address_fields[ addr_field ] : '' }\r\n />\r\n )\r\n break;\r\n\r\n case 'state':\r\n return (\r\n <select \r\n id={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge + '-' + addr_field } \r\n name={ field.merge + '[' + addr_field + ']' }\r\n className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }\r\n onChange={ this.handleFormFieldChanges }\r\n key= { 'yikes-mailchimp-field-' + field.merge + '-' + addr_field }\r\n value=''\r\n required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }\r\n >\r\n { Object.keys( states ).map( ( key ) => {\r\n var choice = states[ key ];\r\n return <option key={ 'state-' + key } value={ key }>{ choice }</option>\r\n })}\r\n \r\n </select>\r\n )\r\n break;\r\n\r\n case 'country':\r\n return (\r\n <select \r\n id={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge + '-' + addr_field } \r\n name={ field.merge + '[' + addr_field + ']' }\r\n className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }\r\n onChange={ this.handleFormFieldChanges }\r\n key= { 'yikes-mailchimp-field-' + field.merge + '-' + addr_field }\r\n value=''\r\n required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }\r\n >\r\n { Object.keys( countries ).map( ( key ) => {\r\n var choice = countries[ key ];\r\n return <option key={ 'country-' + key } value={ key }>{ choice }</option>\r\n })}\r\n \r\n </select>\r\n )\r\n break;\r\n }\r\n }\r\n\r\n get_dropdown_field( field ) {\r\n return (\r\n <select \r\n id={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge }\r\n name={ field.merge }\r\n className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }\r\n onChange={ this.handleFormFieldChanges }\r\n key= { 'yikes-mailchimp-field-' + field.merge }\r\n value={ JSON.parse( field.choices )[ field.default_choice ] }\r\n required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }\r\n >\r\n { Object.keys( JSON.parse( field.choices ) ).map( ( key ) => {\r\n var choice = JSON.parse( field.choices )[ key ];\r\n return <option key={ slugify( choice ) } value={ choice }>{ choice }</option>\r\n })}\r\n </select>\r\n )\r\n }\r\n\r\n get_radio_field( field ) {\r\n var ii = 0;\r\n\r\n return (\r\n JSON.parse( field.choices ).map( ( key ) => {\r\n ii++;\r\n return (\r\n <label \r\n htmlFor={ field.merge + '-' + ii }\r\n className=\"yikes-easy-mc-checkbox-label\"\r\n key={ field.merge + '-label-radio-key-' + ii }\r\n >\r\n <input\r\n type=\"radio\"\r\n name={ field.merge }\r\n id={ field.merge + '-' + ii }\r\n key={ field.merge + '-' + ii + '-input-key' }\r\n value={ key }\r\n onChange={ this.handleFormFieldChanges }\r\n checked={ parseInt( field.default_choice ) === ( ii - 1 ) }\r\n />\r\n <span key={ field.merge + '-span-radio-key-' + ii } className={ field.merge + '-label' }>{ key }</span>\r\n </label>\r\n )\r\n })\r\n )\r\n }\r\n\r\n get_url_field( field ) {\r\n return (\r\n <TextControl\r\n id={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge }\r\n placeholder={ field.placeholder }\r\n onChange={ this.handleFormFieldChanges }\r\n type='url'\r\n value={ field.default }\r\n name={ field.merge }\r\n className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }\r\n key= { 'yikes-mailchimp-field-' + field.merge }\r\n required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }\r\n title={ field.type === 'url' ? __( 'Please enter a valid URL to the website.' ) : __( 'Please enter a valid URL to the image.' ) }\r\n />\r\n )\r\n }\r\n\r\n get_default_field( field ) {\r\n\r\n var type = field.type === 'zip' || field.type === 'phone' ? 'text' : field.type;\r\n\r\n return (\r\n <TextControl\r\n id={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge }\r\n placeholder={ field.placeholder }\r\n onChange={ this.handleFormFieldChanges }\r\n type={ type }\r\n value={ field.default }\r\n name={ field.merge }\r\n className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }\r\n key= { 'yikes-mailchimp-field-' + field.merge }\r\n required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }\r\n />\r\n )\r\n }\r\n\r\n get_date_field( field ) {\r\n return (\r\n <TextControl\r\n id={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge }\r\n placeholder={ field.placeholder }\r\n onChange={ this.handleFormFieldChanges }\r\n type='text'\r\n value={ field.default }\r\n name={ field.merge }\r\n className={ 'yikes-easy-mc-' + field.type + ' hasDatepicker ' + field['additional-classes'] }\r\n key= { 'yikes-mailchimp-field-' + field.merge }\r\n required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }\r\n data-attr-type={ field.type }\r\n data-date-format={ field.date_format }\r\n />\r\n )\r\n }\r\n\r\n get_radio_interest_group( field ) {\r\n var ii = -1;\r\n var cn = \"yikes-easy-mc-checkbox-label \" + field['additional-classes'];\r\n\r\n return (\r\n Object.keys( JSON.parse( field.groups ) ).map( ( key ) => {\r\n var choice = JSON.parse( field.groups )[ key ];\r\n ii++;\r\n return (\r\n <label\r\n htmlFor={ field.group_id + '-' + ii }\r\n className={ { [cn]: true, 'field-no-label': field['hide-label'] === '1' } }\r\n key={ field.group_id + '-' + ii + '-label-key' }\r\n >\r\n <input\r\n type=\"radio\"\r\n name={\"group-\" + field.group_id + '[]' }\r\n id={ field.group_id + '-' + ii }\r\n key={ field.group_id + '-' + ii + '-input-key' }\r\n value={ key }\r\n onChange={ this.handleFormFieldChanges }\r\n checked={ key === field.default_choice }\r\n className={ { 'yikes-interest-group-required': field.require === '1' } }\r\n />\r\n { choice }\r\n </label>\r\n )\r\n })\r\n )\r\n }\r\n\r\n get_hidden_interest_group( field ) {\r\n var ii = -1;\r\n\r\n return (\r\n Object.keys( JSON.parse( field.groups ) ).map( ( key ) => {\r\n var choice = JSON.parse( field.groups )[ key ];\r\n ii++;\r\n return (\r\n <label\r\n htmlFor={ field.group_id + '-' + ii }\r\n className={ \"yikes-easy-mc-checkbox-label \" + field['additional-classes'] }\r\n key={ field.group_id + '-' + ii + '-label-key' }\r\n >\r\n <input\r\n type=\"checkbox\"\r\n name={\"group-\" + field.group_id + '[]' }\r\n id={ field.group_id + '-' + ii }\r\n key={ field.group_id + '-' + ii + '-input-key' }\r\n value={ key }\r\n onChange={ this.handleFormFieldChanges }\r\n checked={ field.default_choice.indexOf( key ) !== -1 }\r\n />\r\n { choice }\r\n </label>\r\n )\r\n })\r\n )\r\n }\r\n\r\n get_checkboxes_interest_group( field ) {\r\n var ii = -1;\r\n var cn = \"yikes-easy-mc-checkbox-label \" + field['additional-classes'];\r\n\r\n return (\r\n Object.keys( JSON.parse( field.groups ) ).map( ( key ) => {\r\n var choice = JSON.parse( field.groups )[ key ];\r\n ii++;\r\n return (\r\n <label\r\n htmlFor={ field.group_id + '-' + ii }\r\n className={ { [cn]: true, 'field-no-label': field['hide-label'] === '1' } }\r\n key={ field.group_id + '-' + ii + '-label-key' }\r\n >\r\n <input\r\n className={ { 'yikes-interest-group-required': field.require === '1' } }\r\n type=\"checkbox\"\r\n name={\"group-\" + field.group_id + '[]' }\r\n id={ field.group_id + '-' + ii }\r\n key={ field.group_id + '-' + ii + '-input-key' }\r\n value={ key }\r\n onChange={ this.handleFormFieldChanges }\r\n checked={ field.default_choice.indexOf( key ) !== -1 }\r\n required={ field.require === '1' ? 'required' : false }\r\n />\r\n { choice }\r\n </label>\r\n )\r\n })\r\n )\r\n }\r\n\r\n get_dropdown_interest_group( field ) {\r\n var ii = -1;\r\n\r\n return (\r\n <select \r\n id={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.group_id } \r\n name={ \"group-\" + field.group_id }\r\n className={ \"yikes-easy-mc-dropdown \" + field['additional-classes'] }\r\n value={ field.default_choice }\r\n onChange={ this.handleFormFieldChanges }\r\n required={ field.require === '1' ? 'required' : false }\r\n >\r\n\r\n { Object.keys( JSON.parse( field.groups ) ).map( ( key ) => {\r\n var choice = JSON.parse( field.groups )[ key ];\r\n ii++;\r\n return (\r\n <option key={ field.group_id + '-' + ii + '-input-key' } value={ key }>{ choice }</option>\r\n )\r\n })}\r\n </select>\r\n )\r\n }\r\n\r\n form_fields() {\r\n\r\n return this.props.formData && this.props.formData.fields ?\r\n Object.keys( this.props.formData.fields ).map( ( key ) => {\r\n\r\n var field = this.props.formData.fields[ key ];\r\n\r\n // Form Fields (aka merge variables)\r\n if ( typeof field.merge !== 'undefined' ) {\r\n\r\n var desc = field.description.length > 0 ? \r\n <p className=\"form-field-description\" id={ \"form-field-description-\" + field.merge } key={ \"form-field-description-\" + field.merge }>{ field.description }</p>\r\n : '';\r\n\r\n var label = field['hide-label'] !== '1' ? <span className={ field.merge + '-label' } key={ field.merge + '-label-span-key' }>{ field.label }</span> : '';\r\n\r\n var classes = {'yikes-mailchimp-field-required' : field.merge === 'EMAIL' || field.require === '1' }\r\n classes[ field.merge + '-label'] = true;\r\n\r\n if ( field.type === 'address' ) {\r\n\r\n return ([\r\n field.description_above === '1' && field.description.length > 0 && desc,\r\n Object.keys( this.address_fields ).map( ( addr_field ) => {\r\n label = field['hide-label'] !== '1' ? <span className={ field.merge + '-label' } key={ field.merge + '-label-span-key-' + addr_field }>{ this.address_fields[ addr_field ] }</span> : '';\r\n\r\n return (\r\n <label \r\n htmlFor={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge + '-' + addr_field } \r\n className={ classes } \r\n key={ field.merge + '-label-key-' + addr_field }\r\n style={ field.hide === '1' ? { 'display': 'none' } : {} }\r\n >\r\n { label }\r\n { this.get_address_field( addr_field, field ) }\r\n </label> \r\n )\r\n }),\r\n field.description_above !== '1' && field.description.length > 0 && desc\r\n ])\r\n } else {\r\n return (\r\n <label \r\n htmlFor={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge } \r\n className={ classes } \r\n key={ field.merge + '-label-key' }\r\n style={ field.hide === '1' ? { 'display': 'none' } : {} }\r\n >\r\n { label }\r\n\r\n { field.description_above === '1' && field.description.length > 0 && desc }\r\n\r\n { \r\n ( field.type === 'dropdown' ? this.get_dropdown_field( field ) :\r\n ( field.type === 'radio' ? this.get_radio_field( field ) : \r\n ( field.type === 'url' || field.type === 'imageurl' ? this.get_url_field( field ) :\r\n ( field.type === 'date' || field.type === 'birthday' ? this.get_date_field( field ) :\r\n this.get_default_field( field ) ) ) ) )\r\n }\r\n\r\n { field.description_above !== '1' && field.description.length > 0 && desc }\r\n\r\n </label>\r\n )\r\n }\r\n } else {\r\n\r\n var desc = field.description.length > 0 ? \r\n <p className=\"form-field-description\" id={ \"form-field-description-\" + field.group_id } key={ \"form-field-description-\" + field.group_id }>{ field.description }</p>\r\n : '';\r\n\r\n var label = field['hide-label'] !== '1' ?\r\n <span key={ field.group_id + \"-label-span-key\" } className={ field.group_id + \"-label checkbox-parent-label\" }>{ field.label }</span> \r\n : '';\r\n\r\n var classes = { 'yikes-mailchimp-field-required' : field.require === '1' }\r\n classes[ field.group_id + '-label'] = true;\r\n\r\n return ( \r\n <label \r\n htmlFor={ field.group_id }\r\n className= { classes }\r\n key={ field.group_id + \"-label-span-key\" }\r\n style={ field.type === 'hidden' || field.hide === '1' ? { 'display': 'none' } : {} }\r\n >\r\n\r\n { label }\r\n\r\n { field.description_above === '1' && field.description.length > 0 && desc }\r\n\r\n {\r\n ( field.type === 'radio' ? this.get_radio_interest_group( field ) :\r\n ( field.type === 'hidden' ? this.get_hidden_interest_group( field ) : \r\n ( field.type === 'checkboxes' ? this.get_checkboxes_interest_group( field ) :\r\n ( field.type === 'dropdown' ? this.get_dropdown_interest_group( field ) : '' ) ) ) )\r\n }\r\n\r\n { field.description_above !== '1' && field.description.length > 0 && desc }\r\n\r\n </label>\r\n )\r\n }\r\n })\r\n : '';\r\n }\r\n\r\n form_recaptcha() {\r\n\r\n return this.state.recaptcha_data.success === true && this.state.recaptcha_data.data.site_key && this.props.recaptcha === true ? \r\n <Recaptcha\r\n sitekey={ this.state.recaptcha_data.data.site_key }\r\n key={ 'easy-forms-recaptcha-1' }\r\n elementID={ 'google-recaptcha-id-' + Math.random().toString(36).slice(-8) } // Need to use a unique ID for multiple reCAPTCHAs to work on the same page.\r\n theme={ this.props.recaptchaTheme }\r\n hl={ this.props.recaptchaLang.length > 0 ? this.props.recaptchaLang : this.state.recaptcha_data.data.locale }\r\n type={ this.props.recaptchaType }\r\n size={ this.props.recaptchaSize }\r\n verifyCallback=''\r\n expiredCallback=''\r\n />\r\n : ''; \r\n }\r\n\r\n submit_button() {\r\n return this.props.formData && this.props.formData.fields ?\r\n ( this.props.focus && this.props.formData.form_settings['yikes-easy-mc-submit-button-type'] === 'text' ?\r\n <button\r\n type=\"submit\"\r\n key=\"mailchimpSubmitButton\"\r\n className={ \"yikes-easy-mc-submit-button yikes-easy-mc-submit-button-\" + this.props.formID + \" btn btn-primary\" + \" \" + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'] }\r\n >\r\n <PlainText\r\n className=\"yikes-mailchimp-submit-button-span-text\"\r\n key=\"yikes-mailchimp-submit-button-span-text\"\r\n value={ this.props.submitButtonText ? this.props.submitButtonText : '' }\r\n onChange={ this.props.toggleSubmitButtonText }\r\n />\r\n </button>\r\n :\r\n ( this.props.formData.form_settings['yikes-easy-mc-submit-button-type'] === 'text' ? \r\n <button\r\n type=\"submit\"\r\n key=\"mailchimpSubmitButton\"\r\n className={ \"yikes-easy-mc-submit-button yikes-easy-mc-submit-button-\" + this.props.formID + \" btn btn-primary\" + \" \" + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'] }\r\n >\r\n <span className=\"yikes-mailchimp-submit-button-span-text\" key=\"yikes-mailchimp-submit-button-span-text\">{ this.props.submitButtonText }</span>\r\n </button>\r\n :\r\n <input\r\n type=\"image\"\r\n alt={ this.props.submitButtonText }\r\n src={ this.props.formData.form_settings['yikes-easy-mc-submit-button-image'] }\r\n className={ \"yikes-easy-mc-submit-button yikes-easy-mc-submit-button-image yikes-easy-mc-submit-button-\" + this.props.formID + \" btn btn-primary\" + \" \" + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'] }\r\n />\r\n )\r\n )\r\n : '';\r\n }\r\n\r\n get_form_section() {\r\n return (\r\n <section \r\n id={ \"yikes-mailchimp-container-\" + this.props.formID } \r\n className={ \"yikes-mailchimp-container yikes-mailchimp-container-\" + this.props.formID }\r\n key=\"yikes-mailchimp-container-section\"\r\n >\r\n {[\r\n\r\n // Form title\r\n [this.form_title()],\r\n\r\n // Form Description\r\n [this.form_description()],\r\n\r\n // Get the form\r\n [this.get_form()] \r\n ]}\r\n </section>\r\n );\r\n }\r\n\r\n get_form() {\r\n return (\r\n // Form Wrapper\r\n <form\r\n id={ slugify( this.props.formTitle ) + '-' + this.props.formID }\r\n className={ \"yikes-easy-mc-form yikes-easy-mc-form-\" + this.props.formID + \" \" + this.props.formData.form_settings['yikes-easy-mc-form-class-names'] }\r\n key=\"yikes-mailchimp-container-form\"\r\n >\r\n {[\r\n\r\n // Form fields\r\n [this.form_fields()],\r\n\r\n // Recaptcha\r\n [this.form_recaptcha()],\r\n\r\n // Submit button\r\n [this.submit_button()]\r\n ]}\r\n </form>\r\n );\r\n }\r\n\r\n render() {\r\n\r\n if ( this.state.forms.length > 0 && this.props.formData && Object.keys( this.props.formData ).length > 0 ) {\r\n\r\n \t return (\r\n\r\n <div className={ this.props.className }>\r\n\r\n {// Show inspector controls when focused\r\n this.props.focus && this.inspector_controls()}\r\n\r\n {// Show the forms dropdown\r\n this.forms_dropdown()}\r\n\r\n <hr key=\"easy-forms-dropdown-divider\"/>\r\n\r\n {// Show the form\r\n this.get_form_section()}\r\n </div>\r\n \r\n \t );\r\n\r\n \t} else if ( this.state.forms.length > 0 ) {\r\n\r\n // If we don't have form data, show the forms dropdown\r\n \t\treturn ( \r\n <div className={ this.props.className }>\r\n {this.forms_dropdown()}\r\n </div>\r\n );\r\n\r\n \t} else {\r\n\r\n // Show loading... & spinner\r\n \t\treturn (\r\n <p key=\"loading-easy-forms\" className={ this.props.className }>\r\n <span key=\"yikes-easy-forms-loading-text\">Loading...</span>\r\n <Spinner key=\"yikes-easy-forms-loading-spinner\" />\r\n </p>\r\n );\r\n \t}\r\n }\r\n}","const countries = {\r\n\t'US': 'United States',\r\n\t'GB': 'United Kingdom',\r\n\t'AF': 'Afghanistan',\r\n\t'AX': 'Aland Islands',\r\n\t'AL': 'Albania',\r\n\t'DZ': 'Algeria',\r\n\t'AS': 'American Samoa',\r\n\t'AD': 'Andorra',\r\n\t'AO': 'Angola',\r\n\t'AI': 'Anguilla',\r\n\t'AQ': 'Antarctica',\r\n\t'AG': 'Antigua and Barbuda',\r\n\t'AR': 'Argentina',\r\n\t'AM': 'Armenia',\r\n\t'AW': 'Aruba',\r\n\t'AU': 'Australia',\r\n\t'AT': 'Austria',\r\n\t'AZ': 'Azerbaijan',\r\n\t'BS': 'Bahamas',\r\n\t'BH': 'Bahrain',\r\n\t'BD': 'Bangladesh',\r\n\t'BB': 'Barbados',\r\n\t'BY': 'Belarus',\r\n\t'BE': 'Belgium',\r\n\t'BZ': 'Belize',\r\n\t'BJ': 'Benin',\r\n\t'BM': 'Bermuda',\r\n\t'BT': 'Bhutan',\r\n\t'BO': 'Bolivia',\r\n\t'BA': 'Bosnia and Herzegovina',\r\n\t'BW': 'Botswana',\r\n\t'BV': 'Bouvet Island',\r\n\t'BR': 'Brazil',\r\n\t'IO': 'British Indian Ocean Territory',\r\n\t'BN': 'Brunei Darussalam',\r\n\t'BG': 'Bulgaria',\r\n\t'BF': 'Burkina Faso',\r\n\t'BI': 'Burundi',\r\n\t'KH': 'Cambodia',\r\n\t'CM': 'Cameroon',\r\n\t'CA': 'Canada',\r\n\t'CV': 'Cape Verde',\r\n\t'KY': 'Cayman Islands',\r\n\t'CF': 'Central African Republic',\r\n\t'TD': 'Chad',\r\n\t'CL': 'Chile',\r\n\t'CN': 'China',\r\n\t'CX': 'Christmas Island',\r\n\t'CC': 'Cocos (Keeling) Islands',\r\n\t'CO': 'Colombia',\r\n\t'KM': 'Comoros',\r\n\t'CG': 'Congo',\r\n\t'CD': 'Congo, The Democratic Republic of The',\r\n\t'CK': 'Cook Islands',\r\n\t'CR': 'Costa Rica',\r\n\t'CI': 'Cote D’ivoire',\r\n\t'HR': 'Croatia',\r\n\t'CU': 'Cuba',\r\n\t'CY': 'Cyprus',\r\n\t'CZ': 'Czech Republic',\r\n\t'DK': 'Denmark',\r\n\t'DJ': 'Djibouti',\r\n\t'DM': 'Dominica',\r\n\t'DO': 'Dominican Republic',\r\n\t'EC': 'Ecuador',\r\n\t'EG': 'Egypt',\r\n\t'SV': 'El Salvador',\r\n\t'GQ': 'Equatorial Guinea',\r\n\t'ER': 'Eritrea',\r\n\t'EE': 'Estonia',\r\n\t'ET': 'Ethiopia',\r\n\t'FK': 'Falkland Islands (Malvinas)',\r\n\t'FO': 'Faroe Islands',\r\n\t'FJ': 'Fiji',\r\n\t'FI': 'Finland',\r\n\t'FR': 'France',\r\n\t'GF': 'French Guiana',\r\n\t'PF': 'French Polynesia',\r\n\t'TF': 'French Southern Territories',\r\n\t'GA': 'Gabon',\r\n\t'GM': 'Gambia',\r\n\t'GE': 'Georgia',\r\n\t'DE': 'Germany',\r\n\t'GH': 'Ghana',\r\n\t'GI': 'Gibraltar',\r\n\t'GR': 'Greece',\r\n\t'GL': 'Greenland',\r\n\t'GD': 'Grenada',\r\n\t'GP': 'Guadeloupe',\r\n\t'GU': 'Guam',\r\n\t'GT': 'Guatemala',\r\n\t'GG': 'Guernsey',\r\n\t'GN': 'Guinea',\r\n\t'GW': 'Guinea-bissau',\r\n\t'GY': 'Guyana',\r\n\t'HT': 'Haiti',\r\n\t'HM': 'Heard Island and Mcdonald Islands',\r\n\t'VA': 'Holy See (Vatican City State)',\r\n\t'HN': 'Honduras',\r\n\t'HK': 'Hong Kong',\r\n\t'HU': 'Hungary',\r\n\t'IS': 'Iceland',\r\n\t'IN': 'India',\r\n\t'ID': 'Indonesia',\r\n\t'IR': 'Iran, Islamic Republic of',\r\n\t'IQ': 'Iraq',\r\n\t'IE': 'Ireland',\r\n\t'IM': 'Isle of Man',\r\n\t'IL': 'Israel',\r\n\t'IT': 'Italy',\r\n\t'JM': 'Jamaica',\r\n\t'JP': 'Japan',\r\n\t'JE': 'Jersey',\r\n\t'JO': 'Jordan',\r\n\t'KZ': 'Kazakhstan',\r\n\t'KE': 'Kenya',\r\n\t'KI': 'Kiribati',\r\n\t'KP': 'Korea, Democratic People’s Republic of',\r\n\t'KR': 'Korea, Republic of',\r\n\t'KW': 'Kuwait',\r\n\t'KG': 'Kyrgyzstan',\r\n\t'LA': 'Lao People’s Democratic Republic',\r\n\t'LV': 'Latvia',\r\n\t'LB': 'Lebanon',\r\n\t'LS': 'Lesotho',\r\n\t'LR': 'Liberia',\r\n\t'LY': 'Libyan Arab Jamahiriya',\r\n\t'LI': 'Liechtenstein',\r\n\t'LT': 'Lithuania',\r\n\t'LU': 'Luxembourg',\r\n\t'MO': 'Macao',\r\n\t'MK': 'Macedonia, The Former Yugoslav Republic of',\r\n\t'MG': 'Madagascar',\r\n\t'MW': 'Malawi',\r\n\t'MY': 'Malaysia',\r\n\t'MV': 'Maldives',\r\n\t'ML': 'Mali',\r\n\t'MT': 'Malta',\r\n\t'MH': 'Marshall Islands',\r\n\t'MQ': 'Martinique',\r\n\t'MR': 'Mauritania',\r\n\t'MU': 'Mauritius',\r\n\t'YT': 'Mayotte',\r\n\t'MX': 'Mexico',\r\n\t'FM': 'Micronesia, Federated States of',\r\n\t'MD': 'Moldova, Republic of',\r\n\t'MC': 'Monaco',\r\n\t'MN': 'Mongolia',\r\n\t'ME': 'Montenegro',\r\n\t'MS': 'Montserrat',\r\n\t'MA': 'Morocco',\r\n\t'MZ': 'Mozambique',\r\n\t'MM': 'Myanmar',\r\n\t'NA': 'Namibia',\r\n\t'NR': 'Nauru',\r\n\t'NP': 'Nepal',\r\n\t'NL': 'Netherlands',\r\n\t'AN': 'Netherlands Antilles',\r\n\t'NC': 'New Caledonia',\r\n\t'NZ': 'New Zealand',\r\n\t'NI': 'Nicaragua',\r\n\t'NE': 'Niger',\r\n\t'NG': 'Nigeria',\r\n\t'NU': 'Niue',\r\n\t'NF': 'Norfolk Island',\r\n\t'MP': 'Northern Mariana Islands',\r\n\t'NO': 'Norway',\r\n\t'OM': 'Oman',\r\n\t'PK': 'Pakistan',\r\n\t'PW': 'Palau',\r\n\t'PS': 'Palestinian Territory, Occupied',\r\n\t'PA': 'Panama',\r\n\t'PG': 'Papua New Guinea',\r\n\t'PY': 'Paraguay',\r\n\t'PE': 'Peru',\r\n\t'PH': 'Philippines',\r\n\t'PN': 'Pitcairn',\r\n\t'PL': 'Poland',\r\n\t'PT': 'Portugal',\r\n\t'PR': 'Puerto Rico',\r\n\t'QA': 'Qatar',\r\n\t'RE': 'Reunion',\r\n\t'RO': 'Romania',\r\n\t'RU': 'Russian Federation',\r\n\t'RW': 'Rwanda',\r\n\t'SH': 'Saint Helena',\r\n\t'KN': 'Saint Kitts and Nevis',\r\n\t'LC': 'Saint Lucia',\r\n\t'PM': 'Saint Pierre and Miquelon',\r\n\t'VC': 'Saint Vincent and The Grenadines',\r\n\t'WS': 'Samoa',\r\n\t'SM': 'San Marino',\r\n\t'ST': 'Sao Tome and Principe',\r\n\t'SA': 'Saudi Arabia',\r\n\t'SN': 'Senegal',\r\n\t'RS': 'Serbia',\r\n\t'SC': 'Seychelles',\r\n\t'SL': 'Sierra Leone',\r\n\t'SG': 'Singapore',\r\n\t'SK': 'Slovakia',\r\n\t'SI': 'Slovenia',\r\n\t'SB': 'Solomon Islands',\r\n\t'SO': 'Somalia',\r\n\t'ZA': 'South Africa',\r\n\t'GS': 'South Georgia and The South Sandwich Islands',\r\n\t'ES': 'Spain',\r\n\t'LK': 'Sri Lanka',\r\n\t'SD': 'Sudan',\r\n\t'SR': 'Suriname',\r\n\t'SJ': 'Svalbard and Jan Mayen',\r\n\t'SZ': 'Swaziland',\r\n\t'SE': 'Sweden',\r\n\t'CH': 'Switzerland',\r\n\t'SY': 'Syrian Arab Republic',\r\n\t'TW': 'Taiwan, Province of China',\r\n\t'TJ': 'Tajikistan',\r\n\t'TZ': 'Tanzania, United Republic of',\r\n\t'TH': 'Thailand',\r\n\t'TL': 'Timor-leste',\r\n\t'TG': 'Togo',\r\n\t'TK': 'Tokelau',\r\n\t'TO': 'Tonga',\r\n\t'TT': 'Trinidad and Tobago',\r\n\t'TN': 'Tunisia',\r\n\t'TR': 'Turkey',\r\n\t'TM': 'Turkmenistan',\r\n\t'TC': 'Turks and Caicos Islands',\r\n\t'TV': 'Tuvalu',\r\n\t'UG': 'Uganda',\r\n\t'UA': 'Ukraine',\r\n\t'AE': 'United Arab Emirates',\r\n\t'UM': 'United States Minor Outlying Islands',\r\n\t'UY': 'Uruguay',\r\n\t'UZ': 'Uzbekistan',\r\n\t'VU': 'Vanuatu',\r\n\t'VE': 'Venezuela',\r\n\t'VN': 'Viet Nam',\r\n\t'VG': 'Virgin Islands, British',\r\n\t'VI': 'Virgin Islands, U.S.',\r\n\t'WF': 'Wallis and Futuna',\r\n\t'EH': 'Western Sahara',\r\n\t'YE': 'Yemen',\r\n\t'ZM': 'Zambia',\r\n\t'ZW': 'Zimbabwe',\r\n}\r\n\r\nexport default countries;","( function( $ ) {\r\n\r\n\t$( document ).ready( function() {\r\n\t\t\r\n\t\t$( 'body' ).on( 'click', '.yikes-easy-mc-submit-button', function( event ) { \r\n\t\t event.preventDefault();\r\n\t\t event.stopPropagation();\r\n\t\t $( '.yikes-mailchimp-submit-button-span-text' ).focus();\r\n\t\t}); \r\n\r\n\t\t$( 'body' ).on( 'click', '.yikes-mailchimp-submit-button-span-text', function( event ) {\r\n\t\t event.preventDefault();\r\n\t\t event.stopPropagation();\r\n\t\t});\r\n\t});\r\n\r\n})( jQuery );","export default function yikes_easy_forms_fetch_form( form_id ) {\r\n\tlet data = {\r\n\t\taction: 'yikes_get_form',\r\n\t\tform_id: form_id,\r\n\t\tnonce: ez_forms_gb_data.fetch_form_nonce\r\n\t}\r\n\r\n\tlet form = $.post( ez_forms_gb_data.ajax_url, data );\r\n\r\n\treturn form;\r\n}","export default function yikes_easy_forms_fetch_forms() {\r\n\r\n\tlet data = {\r\n\t\taction: 'yikes_get_forms',\r\n\t\tnonce: ez_forms_gb_data.fetch_forms_nonce,\r\n\t}\r\n\r\n\tlet forms = $.post( ez_forms_gb_data.ajax_url, data );\r\n\r\n\treturn forms;\r\n}","export default function get_recaptcha() {\r\n\r\n\tlet data = {\r\n\t\taction: 'yikes_get_recaptcha',\r\n\t\tnonce: ez_forms_gb_data.fetch_recaptcha_nonce\r\n\t}\r\n\r\n\tlet recaptcha_data = $.post( ez_forms_gb_data.ajax_url, data );\r\n\r\n\treturn recaptcha_data;\r\n}","const locales = {\r\n\t\"ar\" : \"Arabic\",\r\n\t\"af\" : \"Afrikaans\",\r\n\t\"am\" : \"Amharic\",\r\n\t\"hy\" : \"Armenian\",\r\n\t\"az\" : \"Azerbaijani\",\r\n\t\"eu\" : \"Basque\",\r\n\t\"bn\" : \"Bengali\",\r\n\t\"bg\" : \"Bulgarian\",\r\n\t\"ca\" : \"Catalan\",\r\n\t\"zh-HK\" : \"Chinese (Hong Kong)\",\r\n\t\"zh-CN\" : \"Chinese (Simplified)\",\r\n\t\"zh-TW\" : \"Chinese (Traditional)\",\r\n\t\"hr\" : \"Croatian\",\r\n\t\"cs\" : \"Czech\",\r\n\t\"da\" : \"Danish\",\r\n\t\"nl\" : \"Dutch\",\r\n\t\"en-GB\" : \"English (UK)\",\r\n\t\"en\" : \"English (US)\",\r\n\t\"et\" : \"Estonian\",\r\n\t\"fil\" : \"Filipino\",\r\n\t\"fi\" : \"Finnish\",\r\n\t\"fr\" : \"French\",\r\n\t\"fr-CA\" : \"French (Canadian)\",\r\n\t\"gl\" : \"Galician\",\r\n\t\"ka\" : \"Georgian\",\r\n\t\"de\" : \"German\",\r\n\t\"de-AT\" : \"German (Austria)\",\r\n\t\"de-CH\" : \"German (Switzerland)\",\r\n\t\"el\" : \"Greek\",\r\n\t\"gu\" : \"Gujarati\",\r\n\t\"iw\" : \"Hebrew\",\r\n\t\"hi\" : \"Hindi\",\r\n\t\"hu\" : \"Hungarain\",\r\n\t\"is\" : \"Icelandic\",\r\n\t\"id\" : \"Indonesian\",\r\n\t\"it\" : \"Italian\",\r\n\t\"ja\" : \"Japanese\",\r\n\t\"kn\" : \"Kannada\",\r\n\t\"ko\" : \"Korean\",\r\n\t\"lo\" : \"Laothian\",\r\n\t\"lv\" : \"Latvian\",\r\n\t\"lt\" : \"Lithuanian\",\r\n\t\"ms\" : \"Malay\",\r\n\t\"ml\" : \"Malayalam\",\r\n\t\"mr\" : \"Marathi\",\r\n\t\"mn\" : \"Mongolian\",\r\n\t\"no\" : \"Norwegian\",\r\n\t\"fa\" : \"Persian\",\r\n\t\"pl\" : \"Polish\",\r\n\t\"pt\" : \"Portuguese\",\r\n\t\"pt-BR\" : \"Portuguese (Brazil)\",\r\n\t\"pt-PT\" : \"Portuguese (Portugal)\",\r\n\t\"ro\" : \"Romanian\",\r\n\t\"ru\" : \"Russian\",\r\n\t\"sr\" : \"Serbian\",\r\n\t\"si\" : \"Sinhalese\",\r\n\t\"sk\" : \"Slovak\",\r\n\t\"sl\" : \"Slovenian\",\r\n\t\"es\" : \"Spanish\",\r\n\t\"es-419\" : \"Spanish (Latin America)\",\r\n\t\"sw\" : \"Swahili\",\r\n\t\"sv\" : \"Swedish\",\r\n\t\"ta\" : \"Tamil\",\r\n\t\"te\" : \"Telugu\",\r\n\t\"th\" : \"Thai\",\r\n\t\"tr\" : \"Turkish\",\r\n\t\"uk\" : \"Ukrainian\",\r\n\t\"ur\" : \"Urdu\",\r\n\t\"vi\" : \"Vietnamese\",\r\n\t\"zu\" : \"Zulu\"\r\n}\r\n\r\nexport default locales;","/*\r\n* This should have the same effect as WP/PHP's `sanitize_title()` function\r\n*\r\n* Source: https://gist.github.com/mathewbyrne/1280286\r\n*/\r\nexport default function slugify( text ) {\r\n\r\n // Use hash map for special characters \r\n let specialChars = {\"à\":'a',\"ä\":'a',\"á\":'a',\"â\":'a',\"æ\":'a',\"å\":'a',\"ë\":'e',\"è\":'e',\"é\":'e', \"ê\":'e',\"î\":'i',\"ï\":'i',\"ì\":'i',\"í\":'i',\"ò\":'o',\"ó\":'o',\"ö\":'o',\"ô\":'o',\"ø\":'o',\"ù\":'o',\"ú\":'u',\"ü\":'u',\"û\":'u',\"ñ\":'n',\"ç\":'c',\"ß\":'s',\"ÿ\":'y',\"œ\":'o',\"ŕ\":'r',\"ś\":'s',\"ń\":'n',\"ṕ\":'p',\"ẃ\":'w',\"ǵ\":'g',\"ǹ\":'n',\"ḿ\":'m',\"ǘ\":'u',\"ẍ\":'x',\"ź\":'z',\"ḧ\":'h',\"·\":'-',\"/\":'-',\"_\":'-',\",\":'-',\":\":'-',\";\":'-'};\r\n\r\n return text.toString().toLowerCase()\r\n .replace(/\\s+/g, '-') // Replace spaces with -\r\n .replace(/./g,(target, index, str) => specialChars[target] || target) // Replace special characters using the hash map\r\n .replace(/&/g, '-and-') // Replace & with 'and'\r\n .replace(/[^\\w\\-]+/g, '') // Remove all non-word chars\r\n .replace(/\\-\\-+/g, '-') // Replace multiple - with single -\r\n .replace(/^-+/, '') // Trim - from start of text\r\n .replace(/-+$/, ''); // Trim - from end of text\r\n};\r\n","const states = {\r\n\t'': '—',\r\n\t'AL': 'Alabama',\r\n\t'AK': 'Alaska',\r\n\t'AZ': 'Arizona',\r\n\t'AR': 'Arkansas',\r\n\t'CA': 'California',\r\n\t'CO': 'Colorado',\r\n\t'CT': 'Connecticut',\r\n\t'DE': 'Delaware',\r\n\t'DC': 'District Of Columbia',\r\n\t'FL': 'Florida',\r\n\t'GA': 'Georgia',\r\n\t'HI': 'Hawaii',\r\n\t'ID': 'Idaho',\r\n\t'IL': 'Illinois',\r\n\t'IN': 'Indiana',\r\n\t'IA': 'Iowa',\r\n\t'KS': 'Kansas',\r\n\t'KY': 'Kentucky',\r\n\t'LA': 'Louisiana',\r\n\t'ME': 'Maine',\r\n\t'MD': 'Maryland',\r\n\t'MA': 'Massachusetts',\r\n\t'MI': 'Michigan',\r\n\t'MN': 'Minnesota',\r\n\t'MS': 'Mississippi',\r\n\t'MO': 'Missouri',\r\n\t'MT': 'Montana',\r\n\t'NE': 'Nebraska',\r\n\t'NV': 'Nevada',\r\n\t'NH': 'New Hampshire',\r\n\t'NJ': 'New Jersey',\r\n\t'NM': 'New Mexico',\r\n\t'NY': 'New York',\r\n\t'NC': 'North Carolina',\r\n\t'ND': 'North Dakota',\r\n\t'OH': 'Ohio',\r\n\t'OK': 'Oklahoma',\r\n\t'OR': 'Oregon',\r\n\t'PA': 'Pennsylvania',\r\n\t'RI': 'Rhode Island',\r\n\t'SC': 'South Carolina',\r\n\t'SD': 'South Dakota',\r\n\t'TN': 'Tennessee',\r\n\t'TX': 'Texas',\r\n\t'UT': 'Utah',\r\n\t'VT': 'Vermont',\r\n\t'VA': 'Virginia',\r\n\t'WA': 'Washington',\r\n\t'WV': 'West Virginia',\r\n\t'WI': 'Wisconsin',\r\n\t'WY': 'Wyoming',\r\n\t'AB': 'Alberta',\r\n\t'BC': 'British Columbia',\r\n\t'MB': 'Manitoba',\r\n\t'NB': 'New Brunswick',\r\n\t'NL': 'Newfoundland and Labrador',\r\n\t'NS': 'Nova Scotia',\r\n\t'ON': 'Ontario',\r\n\t'PE': 'Prince Edward Island',\r\n\t'QC': 'Quebec',\r\n\t'SK': 'Saskatchewan',\r\n\t'NT': 'Northwest Territories',\r\n\t'NU': 'Nunavut',\r\n\t'YT': 'Yukon',\r\n}\r\n\r\nexport default states;","import './development/form/js/block-form.js';","/*!\n Copyright (c) 2016 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","exports = module.exports = require(\"../../../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \".wp-block-yikes-inc-easy-forms-easy-forms-block textarea.yikes-mailchimp-submit-button-span-text {\\n background: none;\\n text-align: center; }\\n\\n.wp-block-yikes-inc-easy-forms-easy-forms-block select {\\n height: auto; }\\n\", \"\"]);\n\n// exports\n","/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function(useSourceMap) {\n\tvar list = [];\n\n\t// return the list of modules as css string\n\tlist.toString = function toString() {\n\t\treturn this.map(function (item) {\n\t\t\tvar content = cssWithMappingToString(item, useSourceMap);\n\t\t\tif(item[2]) {\n\t\t\t\treturn \"@media \" + item[2] + \"{\" + content + \"}\";\n\t\t\t} else {\n\t\t\t\treturn content;\n\t\t\t}\n\t\t}).join(\"\");\n\t};\n\n\t// import a list of modules into the list\n\tlist.i = function(modules, mediaQuery) {\n\t\tif(typeof modules === \"string\")\n\t\t\tmodules = [[null, modules, \"\"]];\n\t\tvar alreadyImportedModules = {};\n\t\tfor(var i = 0; i < this.length; i++) {\n\t\t\tvar id = this[i][0];\n\t\t\tif(typeof id === \"number\")\n\t\t\t\talreadyImportedModules[id] = true;\n\t\t}\n\t\tfor(i = 0; i < modules.length; i++) {\n\t\t\tvar item = modules[i];\n\t\t\t// skip already imported module\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\n\t\t\t// when a module is imported multiple times with different media queries.\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n\t\t\t\tif(mediaQuery && !item[2]) {\n\t\t\t\t\titem[2] = mediaQuery;\n\t\t\t\t} else if(mediaQuery) {\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n\t\t\t\t}\n\t\t\t\tlist.push(item);\n\t\t\t}\n\t\t}\n\t};\n\treturn list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n\tvar content = item[1] || '';\n\tvar cssMapping = item[3];\n\tif (!cssMapping) {\n\t\treturn content;\n\t}\n\n\tif (useSourceMap && typeof btoa === 'function') {\n\t\tvar sourceMapping = toComment(cssMapping);\n\t\tvar sourceURLs = cssMapping.sources.map(function (source) {\n\t\t\treturn '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'\n\t\t});\n\n\t\treturn [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n\t}\n\n\treturn [content].join('\\n');\n}\n\n// Adapted from convert-source-map (MIT)\nfunction toComment(sourceMap) {\n\t// eslint-disable-next-line no-undef\n\tvar base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n\tvar data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n\n\treturn '/*# ' + data + ' */';\n}\n","\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\nvar emptyObject = {};\n\nif (process.env.NODE_ENV !== 'production') {\n Object.freeze(emptyObject);\n}\n\nmodule.exports = emptyObject;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\nmodule.exports = invariant;","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\nvar emptyFunction = require('./emptyFunction');\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = emptyFunction;\n\nif (process.env.NODE_ENV !== 'production') {\n var printWarning = function printWarning(format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n warning = function warning(condition, format) {\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (format.indexOf('Failed Composite propType: ') === 0) {\n return; // Ignore CompositeComponent proptype check.\n }\n\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== 'production') {\n var invariant = require('fbjs/lib/invariant');\n var warning = require('fbjs/lib/warning');\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (typeSpecs.hasOwnProperty(typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]);\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');\n }\n }\n }\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t(require(\"react\")):\"function\"==typeof define&&define.amd?define([\"react\"],t):\"object\"==typeof exports?exports.ReactRecaptcha=t(require(\"react\")):e.ReactRecaptcha=t(e.React)}(this,function(e){return function(e){function t(r){if(a[r])return a[r].exports;var n=a[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var a={};return t.m=e,t.c=a,t.p=\"\",t(0)}([function(e,t,a){\"use strict\";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function o(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}function i(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,\"__esModule\",{value:!0});var s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),l=a(6),c=r(l),p=a(4),u=r(p),d={className:u.default.string,onloadCallbackName:u.default.string,elementID:u.default.string,onloadCallback:u.default.func,verifyCallback:u.default.func,expiredCallback:u.default.func,render:u.default.string,sitekey:u.default.string,theme:u.default.string,type:u.default.string,verifyCallbackName:u.default.string,expiredCallbackName:u.default.string,size:u.default.string,tabindex:u.default.string,hl:u.default.string,badge:u.default.string},f={elementID:\"g-recaptcha\",onloadCallback:void 0,onloadCallbackName:\"onloadCallback\",verifyCallback:void 0,verifyCallbackName:\"verifyCallback\",expiredCallback:void 0,expiredCallbackName:\"expiredCallback\",render:\"onload\",theme:\"light\",type:\"image\",size:\"normal\",tabindex:\"0\",hl:\"en\",badge:\"bottomright\"},h=function(){return\"undefined\"!=typeof window&&\"undefined\"!=typeof window.grecaptcha},y=void 0,b=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a._renderGrecaptcha=a._renderGrecaptcha.bind(a),a.reset=a.reset.bind(a),a.state={ready:h(),widget:null},a.state.ready||(y=setInterval(a._updateReadyState.bind(a),1e3)),a}return i(t,e),s(t,[{key:\"componentDidMount\",value:function(){this.state.ready&&this._renderGrecaptcha()}},{key:\"componentDidUpdate\",value:function(e,t){var a=this.props,r=a.render,n=a.onloadCallback;\"explicit\"===r&&n&&this.state.ready&&!t.ready&&this._renderGrecaptcha()}},{key:\"componentWillUnmount\",value:function(){clearInterval(y)}},{key:\"reset\",value:function(){var e=this.state,t=e.ready,a=e.widget;t&&null!==a&&grecaptcha.reset(a)}},{key:\"execute\",value:function(){var e=this.state,t=e.ready,a=e.widget;t&&null!==a&&grecaptcha.execute(a)}},{key:\"_updateReadyState\",value:function(){h()&&(this.setState({ready:!0}),clearInterval(y))}},{key:\"_renderGrecaptcha\",value:function(){this.state.widget=grecaptcha.render(this.props.elementID,{sitekey:this.props.sitekey,callback:this.props.verifyCallback?this.props.verifyCallback:void 0,theme:this.props.theme,type:this.props.type,size:this.props.size,tabindex:this.props.tabindex,hl:this.props.hl,badge:this.props.badge,\"expired-callback\":this.props.expiredCallback?this.props.expiredCallback:void 0}),this.props.onloadCallback&&this.props.onloadCallback()}},{key:\"render\",value:function(){return\"explicit\"===this.props.render&&this.props.onloadCallback?c.default.createElement(\"div\",{id:this.props.elementID,\"data-onloadcallbackname\":this.props.onloadCallbackName,\"data-verifycallbackname\":this.props.verifyCallbackName}):c.default.createElement(\"div\",{id:this.props.elementID,className:\"g-recaptcha\",\"data-sitekey\":this.props.sitekey,\"data-theme\":this.props.theme,\"data-type\":this.props.type,\"data-size\":this.props.size,\"data-badge\":this.props.badge,\"data-tabindex\":this.props.tabindex})}}]),t}(l.Component);t.default=b,b.propTypes=d,b.defaultProps=f,e.exports=t.default},function(e,t){\"use strict\";function a(e){return function(){return e}}var r=function(){};r.thatReturns=a,r.thatReturnsFalse=a(!1),r.thatReturnsTrue=a(!0),r.thatReturnsNull=a(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,a){\"use strict\";function r(e,t,a,r,o,i,s,l){if(n(t),!e){var c;if(void 0===t)c=new Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else{var p=[a,r,o,i,s,l],u=0;c=new Error(t.replace(/%s/g,function(){return p[u++]})),c.name=\"Invariant Violation\"}throw c.framesToPop=1,c}}var n=function(e){};e.exports=r},function(e,t,a){\"use strict\";var r=a(1),n=a(2),o=a(5);e.exports=function(){function e(e,t,a,r,i,s){s!==o&&n(!1,\"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types\")}function t(){return e}e.isRequired=e;var a={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return a.checkPropTypes=r,a.PropTypes=a,a}},function(e,t,a){e.exports=a(3)()},function(e,t){\"use strict\";var a=\"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\";e.exports=a},function(t,a){t.exports=e}])});","/** @license React v16.3.1\n * react.development.js\n *\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar _assign = require('object-assign');\nvar emptyObject = require('fbjs/lib/emptyObject');\nvar invariant = require('fbjs/lib/invariant');\nvar warning = require('fbjs/lib/warning');\nvar emptyFunction = require('fbjs/lib/emptyFunction');\nvar checkPropTypes = require('prop-types/checkPropTypes');\n\n// TODO: this is special because it gets imported during build.\n\nvar ReactVersion = '16.3.1';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol['for'];\n\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol['for']('react.element') : 0xeac7;\nvar REACT_CALL_TYPE = hasSymbol ? Symbol['for']('react.call') : 0xeac8;\nvar REACT_RETURN_TYPE = hasSymbol ? Symbol['for']('react.return') : 0xeac9;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol['for']('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol['for']('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol['for']('react.strict_mode') : 0xeacc;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol['for']('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol['for']('react.context') : 0xeace;\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol['for']('react.async_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol['for']('react.forward_ref') : 0xead0;\n\nvar MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\n\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable === 'undefined') {\n return null;\n }\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n return null;\n}\n\n/**\n * WARNING: DO NOT manually require this module.\n * This is a replacement for `invariant(...)` used by the error code system\n * and will _only_ be required by the corresponding babel pass.\n * It always throws.\n */\n\n/**\n * Forked from fbjs/warning:\n * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js\n *\n * Only change is we use console.warn instead of console.error,\n * and do nothing when 'console' is not supported.\n * This really simplifies the code.\n * ---\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar lowPriorityWarning = function () {};\n\n{\n var printWarning = function (format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.warn(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n lowPriorityWarning = function (condition, format) {\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n}\n\nvar lowPriorityWarning$1 = lowPriorityWarning;\n\nvar didWarnStateUpdateForUnmountedComponent = {};\n\nfunction warnNoop(publicInstance, callerName) {\n {\n var _constructor = publicInstance.constructor;\n var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';\n var warningKey = componentName + '.' + callerName;\n if (didWarnStateUpdateForUnmountedComponent[warningKey]) {\n return;\n }\n warning(false, \"Can't call %s on a component that is not yet mounted. \" + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);\n didWarnStateUpdateForUnmountedComponent[warningKey] = true;\n }\n}\n\n/**\n * This is the abstract API for an update queue.\n */\nvar ReactNoopUpdateQueue = {\n /**\n * Checks whether or not this composite component is mounted.\n * @param {ReactClass} publicInstance The instance we want to test.\n * @return {boolean} True if mounted, false otherwise.\n * @protected\n * @final\n */\n isMounted: function (publicInstance) {\n return false;\n },\n\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueForceUpdate: function (publicInstance, callback, callerName) {\n warnNoop(publicInstance, 'forceUpdate');\n },\n\n /**\n * Replaces all of the state. Always use this or `setState` to mutate state.\n * You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} completeState Next state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {\n warnNoop(publicInstance, 'replaceState');\n },\n\n /**\n * Sets a subset of the state. This only exists because _pendingState is\n * internal. This provides a merging strategy that is not available to deep\n * properties which is confusing. TODO: Expose pendingState or don't use it\n * during the merge.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} partialState Next partial state to be merged with state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} Name of the calling function in the public API.\n * @internal\n */\n enqueueSetState: function (publicInstance, partialState, callback, callerName) {\n warnNoop(publicInstance, 'setState');\n }\n};\n\n/**\n * Base class helpers for the updating state of a component.\n */\nfunction Component(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n // We initialize the default updater but the real one gets injected by the\n // renderer.\n this.updater = updater || ReactNoopUpdateQueue;\n}\n\nComponent.prototype.isReactComponent = {};\n\n/**\n * Sets a subset of the state. Always use this to mutate\n * state. You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * There is no guarantee that calls to `setState` will run synchronously,\n * as they may eventually be batched together. You can provide an optional\n * callback that will be executed when the call to setState is actually\n * completed.\n *\n * When a function is provided to setState, it will be called at some point in\n * the future (not synchronously). It will be called with the up to date\n * component arguments (state, props, context). These values can be different\n * from this.* because your function may be called after receiveProps but before\n * shouldComponentUpdate, and this new state, props, and context will not yet be\n * assigned to this.\n *\n * @param {object|function} partialState Next partial state or function to\n * produce next partial state to be merged with current state.\n * @param {?function} callback Called after state is updated.\n * @final\n * @protected\n */\nComponent.prototype.setState = function (partialState, callback) {\n !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0;\n this.updater.enqueueSetState(this, partialState, callback, 'setState');\n};\n\n/**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {?function} callback Called after update is complete.\n * @final\n * @protected\n */\nComponent.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');\n};\n\n/**\n * Deprecated APIs. These APIs used to exist on classic React classes but since\n * we would like to deprecate them, we're not going to move them over to this\n * modern base class. Instead, we define a getter that warns if it's accessed.\n */\n{\n var deprecatedAPIs = {\n isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n };\n var defineDeprecationWarning = function (methodName, info) {\n Object.defineProperty(Component.prototype, methodName, {\n get: function () {\n lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);\n return undefined;\n }\n });\n };\n for (var fnName in deprecatedAPIs) {\n if (deprecatedAPIs.hasOwnProperty(fnName)) {\n defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n }\n }\n}\n\nfunction ComponentDummy() {}\nComponentDummy.prototype = Component.prototype;\n\n/**\n * Convenience component with default shallow equality check for sCU.\n */\nfunction PureComponent(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\n\nvar pureComponentPrototype = PureComponent.prototype = new ComponentDummy();\npureComponentPrototype.constructor = PureComponent;\n// Avoid an extra prototype jump for these methods.\n_assign(pureComponentPrototype, Component.prototype);\npureComponentPrototype.isPureReactComponent = true;\n\n// an immutable object with a single mutable value\nfunction createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n}\n\n/**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\nvar ReactCurrentOwner = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n};\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\n\nvar specialPropKeyWarningShown = void 0;\nvar specialPropRefWarningShown = void 0;\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.key !== undefined;\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n warning(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);\n }\n };\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n warning(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);\n }\n };\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n}\n\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, no instanceof check\n * will work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} key\n * @param {string|object} ref\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @param {*} owner\n * @param {*} props\n * @internal\n */\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {};\n\n // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n });\n // self and source are DEV only properties.\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n });\n // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n\n/**\n * Create and return a new ReactElement of the given type.\n * See https://reactjs.org/docs/react-api.html#createelement\n */\nfunction createElement(type, config, children) {\n var propName = void 0;\n\n // Reserved names are extracted\n var props = {};\n\n var key = null;\n var ref = null;\n var self = null;\n var source = null;\n\n if (config != null) {\n if (hasValidRef(config)) {\n ref = config.ref;\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n\n self = config.__self === undefined ? null : config.__self;\n source = config.__source === undefined ? null : config.__source;\n // Remaining properties are added to a new props object\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n }\n }\n\n // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n {\n if (Object.freeze) {\n Object.freeze(childArray);\n }\n }\n props.children = childArray;\n }\n\n // Resolve default props\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n {\n if (key || ref) {\n if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n }\n }\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n}\n\n/**\n * Return a function that produces ReactElements of a given type.\n * See https://reactjs.org/docs/react-api.html#createfactory\n */\n\n\nfunction cloneAndReplaceKey(oldElement, newKey) {\n var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n\n return newElement;\n}\n\n/**\n * Clone and return a new ReactElement using element as the starting point.\n * See https://reactjs.org/docs/react-api.html#cloneelement\n */\nfunction cloneElement(element, config, children) {\n var propName = void 0;\n\n // Original props are copied\n var props = _assign({}, element.props);\n\n // Reserved names are extracted\n var key = element.key;\n var ref = element.ref;\n // Self is preserved since the owner is preserved.\n var self = element._self;\n // Source is preserved since cloneElement is unlikely to be targeted by a\n // transpiler, and the original source is probably a better indicator of the\n // true owner.\n var source = element._source;\n\n // Owner will be preserved, unless ref is overridden\n var owner = element._owner;\n\n if (config != null) {\n if (hasValidRef(config)) {\n // Silently steal the ref from the parent.\n ref = config.ref;\n owner = ReactCurrentOwner.current;\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n\n // Remaining properties override existing props\n var defaultProps = void 0;\n if (element.type && element.type.defaultProps) {\n defaultProps = element.type.defaultProps;\n }\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n if (config[propName] === undefined && defaultProps !== undefined) {\n // Resolve default props\n props[propName] = defaultProps[propName];\n } else {\n props[propName] = config[propName];\n }\n }\n }\n }\n\n // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n props.children = childArray;\n }\n\n return ReactElement(element.type, key, ref, self, source, owner, props);\n}\n\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a valid component.\n * @final\n */\nfunction isValidElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\n\nvar ReactDebugCurrentFrame = {};\n\n{\n // Component that is being worked on\n ReactDebugCurrentFrame.getCurrentStack = null;\n\n ReactDebugCurrentFrame.getStackAddendum = function () {\n var impl = ReactDebugCurrentFrame.getCurrentStack;\n if (impl) {\n return impl();\n }\n return null;\n };\n}\n\nvar SEPARATOR = '.';\nvar SUBSEPARATOR = ':';\n\n/**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\nfunction escape(key) {\n var escapeRegex = /[=:]/g;\n var escaperLookup = {\n '=': '=0',\n ':': '=2'\n };\n var escapedString = ('' + key).replace(escapeRegex, function (match) {\n return escaperLookup[match];\n });\n\n return '$' + escapedString;\n}\n\n/**\n * TODO: Test that a single child and an array with one item have the same key\n * pattern.\n */\n\nvar didWarnAboutMaps = false;\n\nvar userProvidedKeyEscapeRegex = /\\/+/g;\nfunction escapeUserProvidedKey(text) {\n return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');\n}\n\nvar POOL_SIZE = 10;\nvar traverseContextPool = [];\nfunction getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {\n if (traverseContextPool.length) {\n var traverseContext = traverseContextPool.pop();\n traverseContext.result = mapResult;\n traverseContext.keyPrefix = keyPrefix;\n traverseContext.func = mapFunction;\n traverseContext.context = mapContext;\n traverseContext.count = 0;\n return traverseContext;\n } else {\n return {\n result: mapResult,\n keyPrefix: keyPrefix,\n func: mapFunction,\n context: mapContext,\n count: 0\n };\n }\n}\n\nfunction releaseTraverseContext(traverseContext) {\n traverseContext.result = null;\n traverseContext.keyPrefix = null;\n traverseContext.func = null;\n traverseContext.context = null;\n traverseContext.count = 0;\n if (traverseContextPool.length < POOL_SIZE) {\n traverseContextPool.push(traverseContext);\n }\n}\n\n/**\n * @param {?*} children Children tree container.\n * @param {!string} nameSoFar Name of the key path so far.\n * @param {!function} callback Callback to invoke with each child found.\n * @param {?*} traverseContext Used to pass information throughout the traversal\n * process.\n * @return {!number} The number of children in this subtree.\n */\nfunction traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {\n var type = typeof children;\n\n if (type === 'undefined' || type === 'boolean') {\n // All of the above are perceived as null.\n children = null;\n }\n\n var invokeCallback = false;\n\n if (children === null) {\n invokeCallback = true;\n } else {\n switch (type) {\n case 'string':\n case 'number':\n invokeCallback = true;\n break;\n case 'object':\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = true;\n }\n }\n }\n\n if (invokeCallback) {\n callback(traverseContext, children,\n // If it's the only child, treat the name as if it was wrapped in an array\n // so that it's consistent if the number of children grows.\n nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);\n return 1;\n }\n\n var child = void 0;\n var nextName = void 0;\n var subtreeCount = 0; // Count of children found in the current subtree.\n var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;\n\n if (Array.isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n nextName = nextNamePrefix + getComponentKey(child, i);\n subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n }\n } else {\n var iteratorFn = getIteratorFn(children);\n if (typeof iteratorFn === 'function') {\n {\n // Warn about using Maps as children\n if (iteratorFn === children.entries) {\n warning(didWarnAboutMaps, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', ReactDebugCurrentFrame.getStackAddendum());\n didWarnAboutMaps = true;\n }\n }\n\n var iterator = iteratorFn.call(children);\n var step = void 0;\n var ii = 0;\n while (!(step = iterator.next()).done) {\n child = step.value;\n nextName = nextNamePrefix + getComponentKey(child, ii++);\n subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n }\n } else if (type === 'object') {\n var addendum = '';\n {\n addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();\n }\n var childrenString = '' + children;\n invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum);\n }\n }\n\n return subtreeCount;\n}\n\n/**\n * Traverses children that are typically specified as `props.children`, but\n * might also be specified through attributes:\n *\n * - `traverseAllChildren(this.props.children, ...)`\n * - `traverseAllChildren(this.props.leftPanelChildren, ...)`\n *\n * The `traverseContext` is an optional argument that is passed through the\n * entire traversal. It can be used to store accumulations or anything else that\n * the callback might find relevant.\n *\n * @param {?*} children Children tree object.\n * @param {!function} callback To invoke upon traversing each child.\n * @param {?*} traverseContext Context for traversal.\n * @return {!number} The number of children in this subtree.\n */\nfunction traverseAllChildren(children, callback, traverseContext) {\n if (children == null) {\n return 0;\n }\n\n return traverseAllChildrenImpl(children, '', callback, traverseContext);\n}\n\n/**\n * Generate a key string that identifies a component within a set.\n *\n * @param {*} component A component that could contain a manual key.\n * @param {number} index Index that is used if a manual key is not provided.\n * @return {string}\n */\nfunction getComponentKey(component, index) {\n // Do some typechecking here since we call this blindly. We want to ensure\n // that we don't block potential future ES APIs.\n if (typeof component === 'object' && component !== null && component.key != null) {\n // Explicit key\n return escape(component.key);\n }\n // Implicit key determined by the index in the set\n return index.toString(36);\n}\n\nfunction forEachSingleChild(bookKeeping, child, name) {\n var func = bookKeeping.func,\n context = bookKeeping.context;\n\n func.call(context, child, bookKeeping.count++);\n}\n\n/**\n * Iterates through children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#react.children.foreach\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} forEachFunc\n * @param {*} forEachContext Context for forEachContext.\n */\nfunction forEachChildren(children, forEachFunc, forEachContext) {\n if (children == null) {\n return children;\n }\n var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);\n traverseAllChildren(children, forEachSingleChild, traverseContext);\n releaseTraverseContext(traverseContext);\n}\n\nfunction mapSingleChildIntoContext(bookKeeping, child, childKey) {\n var result = bookKeeping.result,\n keyPrefix = bookKeeping.keyPrefix,\n func = bookKeeping.func,\n context = bookKeeping.context;\n\n\n var mappedChild = func.call(context, child, bookKeeping.count++);\n if (Array.isArray(mappedChild)) {\n mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument);\n } else if (mappedChild != null) {\n if (isValidElement(mappedChild)) {\n mappedChild = cloneAndReplaceKey(mappedChild,\n // Keep both the (mapped) and old keys if they differ, just as\n // traverseAllChildren used to do for objects as children\n keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);\n }\n result.push(mappedChild);\n }\n}\n\nfunction mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {\n var escapedPrefix = '';\n if (prefix != null) {\n escapedPrefix = escapeUserProvidedKey(prefix) + '/';\n }\n var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);\n traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);\n releaseTraverseContext(traverseContext);\n}\n\n/**\n * Maps children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#react.children.map\n *\n * The provided mapFunction(child, key, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} func The map function.\n * @param {*} context Context for mapFunction.\n * @return {object} Object containing the ordered map of results.\n */\nfunction mapChildren(children, func, context) {\n if (children == null) {\n return children;\n }\n var result = [];\n mapIntoWithKeyPrefixInternal(children, result, null, func, context);\n return result;\n}\n\n/**\n * Count the number of children that are typically specified as\n * `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#react.children.count\n *\n * @param {?*} children Children tree container.\n * @return {number} The number of children.\n */\nfunction countChildren(children, context) {\n return traverseAllChildren(children, emptyFunction.thatReturnsNull, null);\n}\n\n/**\n * Flatten a children object (typically specified as `props.children`) and\n * return an array with appropriately re-keyed children.\n *\n * See https://reactjs.org/docs/react-api.html#react.children.toarray\n */\nfunction toArray(children) {\n var result = [];\n mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);\n return result;\n}\n\n/**\n * Returns the first child in a collection of children and verifies that there\n * is only one child in the collection.\n *\n * See https://reactjs.org/docs/react-api.html#react.children.only\n *\n * The current implementation of this function assumes that a single child gets\n * passed without a wrapper, but the purpose of this helper function is to\n * abstract away the particular structure of children.\n *\n * @param {?object} children Child collection structure.\n * @return {ReactElement} The first and only `ReactElement` contained in the\n * structure.\n */\nfunction onlyChild(children) {\n !isValidElement(children) ? invariant(false, 'React.Children.only expected to receive a single React element child.') : void 0;\n return children;\n}\n\nfunction createContext(defaultValue, calculateChangedBits) {\n if (calculateChangedBits === undefined) {\n calculateChangedBits = null;\n } else {\n {\n warning(calculateChangedBits === null || typeof calculateChangedBits === 'function', 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);\n }\n }\n\n var context = {\n $$typeof: REACT_CONTEXT_TYPE,\n _calculateChangedBits: calculateChangedBits,\n _defaultValue: defaultValue,\n _currentValue: defaultValue,\n _changedBits: 0,\n // These are circular\n Provider: null,\n Consumer: null\n };\n\n context.Provider = {\n $$typeof: REACT_PROVIDER_TYPE,\n _context: context\n };\n context.Consumer = context;\n\n {\n context._currentRenderer = null;\n }\n\n return context;\n}\n\nfunction forwardRef(render) {\n {\n warning(typeof render === 'function', 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);\n }\n\n return {\n $$typeof: REACT_FORWARD_REF_TYPE,\n render: render\n };\n}\n\nvar describeComponentFrame = function (name, source, ownerName) {\n return '\\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');\n};\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' ||\n // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);\n}\n\nfunction getComponentName(fiber) {\n var type = fiber.type;\n\n if (typeof type === 'function') {\n return type.displayName || type.name;\n }\n if (typeof type === 'string') {\n return type;\n }\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'ReactFragment';\n case REACT_PORTAL_TYPE:\n return 'ReactPortal';\n case REACT_CALL_TYPE:\n return 'ReactCall';\n case REACT_RETURN_TYPE:\n return 'ReactReturn';\n }\n return null;\n}\n\n/**\n * ReactElementValidator provides a wrapper around a element factory\n * which validates the props passed to the element. This is intended to be\n * used only in DEV and could be replaced by a static type checker for languages\n * that support it.\n */\n\nvar currentlyValidatingElement = void 0;\nvar propTypesMisspellWarningShown = void 0;\n\nvar getDisplayName = function () {};\nvar getStackAddendum = function () {};\n\n{\n currentlyValidatingElement = null;\n\n propTypesMisspellWarningShown = false;\n\n getDisplayName = function (element) {\n if (element == null) {\n return '#empty';\n } else if (typeof element === 'string' || typeof element === 'number') {\n return '#text';\n } else if (typeof element.type === 'string') {\n return element.type;\n } else if (element.type === REACT_FRAGMENT_TYPE) {\n return 'React.Fragment';\n } else {\n return element.type.displayName || element.type.name || 'Unknown';\n }\n };\n\n getStackAddendum = function () {\n var stack = '';\n if (currentlyValidatingElement) {\n var name = getDisplayName(currentlyValidatingElement);\n var owner = currentlyValidatingElement._owner;\n stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner));\n }\n stack += ReactDebugCurrentFrame.getStackAddendum() || '';\n return stack;\n };\n}\n\nfunction getDeclarationErrorAddendum() {\n if (ReactCurrentOwner.current) {\n var name = getComponentName(ReactCurrentOwner.current);\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n return '';\n}\n\nfunction getSourceInfoErrorAddendum(elementProps) {\n if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {\n var source = elementProps.__source;\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n return '';\n}\n\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n if (parentName) {\n info = '\\n\\nCheck the top-level render call using <' + parentName + '>.';\n }\n }\n return info;\n}\n\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\nfunction validateExplicitKey(element, parentType) {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n element._store.validated = true;\n\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true;\n\n // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n var childOwner = '';\n if (element && element._owner && element._owner !== ReactCurrentOwner.current) {\n // Give the component that originally created this child.\n childOwner = ' It was passed a child from ' + getComponentName(element._owner) + '.';\n }\n\n currentlyValidatingElement = element;\n {\n warning(false, 'Each child in an array or iterator should have a unique \"key\" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, getStackAddendum());\n }\n currentlyValidatingElement = null;\n}\n\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\nfunction validateChildKeys(node, parentType) {\n if (typeof node !== 'object') {\n return;\n }\n if (Array.isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step = void 0;\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n}\n\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\nfunction validatePropTypes(element) {\n var componentClass = element.type;\n if (typeof componentClass !== 'function') {\n return;\n }\n var name = componentClass.displayName || componentClass.name;\n var propTypes = componentClass.propTypes;\n if (propTypes) {\n currentlyValidatingElement = element;\n checkPropTypes(propTypes, element.props, 'prop', name, getStackAddendum);\n currentlyValidatingElement = null;\n } else if (componentClass.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true;\n warning(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');\n }\n if (typeof componentClass.getDefaultProps === 'function') {\n warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n}\n\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\nfunction validateFragmentProps(fragment) {\n currentlyValidatingElement = fragment;\n\n var keys = Object.keys(fragment.props);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (key !== 'children' && key !== 'key') {\n warning(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.%s', key, getStackAddendum());\n break;\n }\n }\n\n if (fragment.ref !== null) {\n warning(false, 'Invalid attribute `ref` supplied to `React.Fragment`.%s', getStackAddendum());\n }\n\n currentlyValidatingElement = null;\n}\n\nfunction createElementWithValidation(type, props, children) {\n var validType = isValidElementType(type);\n\n // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n if (!validType) {\n var info = '';\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(props);\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n info += getStackAddendum() || '';\n\n var typeString = void 0;\n if (type === null) {\n typeString = 'null';\n } else if (Array.isArray(type)) {\n typeString = 'array';\n } else {\n typeString = typeof type;\n }\n\n warning(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = createElement.apply(this, arguments);\n\n // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n if (element == null) {\n return element;\n }\n\n // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n if (validType) {\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], type);\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n}\n\nfunction createFactoryWithValidation(type) {\n var validatedFactory = createElementWithValidation.bind(null, type);\n validatedFactory.type = type;\n // Legacy hook: remove it\n {\n Object.defineProperty(validatedFactory, 'type', {\n enumerable: false,\n get: function () {\n lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');\n Object.defineProperty(this, 'type', {\n value: type\n });\n return type;\n }\n });\n }\n\n return validatedFactory;\n}\n\nfunction cloneElementWithValidation(element, props, children) {\n var newElement = cloneElement.apply(this, arguments);\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], newElement.type);\n }\n validatePropTypes(newElement);\n return newElement;\n}\n\nvar React = {\n Children: {\n map: mapChildren,\n forEach: forEachChildren,\n count: countChildren,\n toArray: toArray,\n only: onlyChild\n },\n\n createRef: createRef,\n Component: Component,\n PureComponent: PureComponent,\n\n createContext: createContext,\n forwardRef: forwardRef,\n\n Fragment: REACT_FRAGMENT_TYPE,\n StrictMode: REACT_STRICT_MODE_TYPE,\n unstable_AsyncMode: REACT_ASYNC_MODE_TYPE,\n\n createElement: createElementWithValidation,\n cloneElement: cloneElementWithValidation,\n createFactory: createFactoryWithValidation,\n isValidElement: isValidElement,\n\n version: ReactVersion,\n\n __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {\n ReactCurrentOwner: ReactCurrentOwner,\n // Used by renderers to avoid bundling object-assign twice in UMD bundles:\n assign: _assign\n }\n};\n\n{\n _assign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {\n // These should not be included in production.\n ReactDebugCurrentFrame: ReactDebugCurrentFrame,\n // Shim for React DOM 16.0.0 which still destructured (but not used) this.\n // TODO: remove in React 17.0.\n ReactComponentTreeHook: {}\n });\n}\n\n\n\nvar React$2 = Object.freeze({\n\tdefault: React\n});\n\nvar React$3 = ( React$2 && React ) || React$2;\n\n// TODO: decide on the top-level export form.\n// This is hacky but makes it work with both Rollup and Jest.\nvar react = React$3['default'] ? React$3['default'] : React$3;\n\nmodule.exports = react;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n\nvar stylesInDom = {};\n\nvar\tmemoize = function (fn) {\n\tvar memo;\n\n\treturn function () {\n\t\tif (typeof memo === \"undefined\") memo = fn.apply(this, arguments);\n\t\treturn memo;\n\t};\n};\n\nvar isOldIE = memoize(function () {\n\t// Test for IE <= 9 as proposed by Browserhacks\n\t// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\n\t// Tests for existence of standard globals is to allow style-loader\n\t// to operate correctly into non-standard environments\n\t// @see https://github.com/webpack-contrib/style-loader/issues/177\n\treturn window && document && document.all && !window.atob;\n});\n\nvar getTarget = function (target) {\n return document.querySelector(target);\n};\n\nvar getElement = (function (fn) {\n\tvar memo = {};\n\n\treturn function(target) {\n // If passing function in options, then use it for resolve \"head\" element.\n // Useful for Shadow Root style i.e\n // {\n // insertInto: function () { return document.querySelector(\"#foo\").shadowRoot }\n // }\n if (typeof target === 'function') {\n return target();\n }\n if (typeof memo[target] === \"undefined\") {\n\t\t\tvar styleTarget = getTarget.call(this, target);\n\t\t\t// Special case to return head of iframe instead of iframe itself\n\t\t\tif (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n\t\t\t\ttry {\n\t\t\t\t\t// This will throw an exception if access to iframe is blocked\n\t\t\t\t\t// due to cross-origin restrictions\n\t\t\t\t\tstyleTarget = styleTarget.contentDocument.head;\n\t\t\t\t} catch(e) {\n\t\t\t\t\tstyleTarget = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmemo[target] = styleTarget;\n\t\t}\n\t\treturn memo[target]\n\t};\n})();\n\nvar singleton = null;\nvar\tsingletonCounter = 0;\nvar\tstylesInsertedAtTop = [];\n\nvar\tfixUrls = require(\"./urls\");\n\nmodule.exports = function(list, options) {\n\tif (typeof DEBUG !== \"undefined\" && DEBUG) {\n\t\tif (typeof document !== \"object\") throw new Error(\"The style-loader cannot be used in a non-browser environment\");\n\t}\n\n\toptions = options || {};\n\n\toptions.attrs = typeof options.attrs === \"object\" ? options.attrs : {};\n\n\t// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n\t// tags it will allow on a page\n\tif (!options.singleton && typeof options.singleton !== \"boolean\") options.singleton = isOldIE();\n\n\t// By default, add <style> tags to the <head> element\n if (!options.insertInto) options.insertInto = \"head\";\n\n\t// By default, add <style> tags to the bottom of the target\n\tif (!options.insertAt) options.insertAt = \"bottom\";\n\n\tvar styles = listToStyles(list, options);\n\n\taddStylesToDom(styles, options);\n\n\treturn function update (newList) {\n\t\tvar mayRemove = [];\n\n\t\tfor (var i = 0; i < styles.length; i++) {\n\t\t\tvar item = styles[i];\n\t\t\tvar domStyle = stylesInDom[item.id];\n\n\t\t\tdomStyle.refs--;\n\t\t\tmayRemove.push(domStyle);\n\t\t}\n\n\t\tif(newList) {\n\t\t\tvar newStyles = listToStyles(newList, options);\n\t\t\taddStylesToDom(newStyles, options);\n\t\t}\n\n\t\tfor (var i = 0; i < mayRemove.length; i++) {\n\t\t\tvar domStyle = mayRemove[i];\n\n\t\t\tif(domStyle.refs === 0) {\n\t\t\t\tfor (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();\n\n\t\t\t\tdelete stylesInDom[domStyle.id];\n\t\t\t}\n\t\t}\n\t};\n};\n\nfunction addStylesToDom (styles, options) {\n\tfor (var i = 0; i < styles.length; i++) {\n\t\tvar item = styles[i];\n\t\tvar domStyle = stylesInDom[item.id];\n\n\t\tif(domStyle) {\n\t\t\tdomStyle.refs++;\n\n\t\t\tfor(var j = 0; j < domStyle.parts.length; j++) {\n\t\t\t\tdomStyle.parts[j](item.parts[j]);\n\t\t\t}\n\n\t\t\tfor(; j < item.parts.length; j++) {\n\t\t\t\tdomStyle.parts.push(addStyle(item.parts[j], options));\n\t\t\t}\n\t\t} else {\n\t\t\tvar parts = [];\n\n\t\t\tfor(var j = 0; j < item.parts.length; j++) {\n\t\t\t\tparts.push(addStyle(item.parts[j], options));\n\t\t\t}\n\n\t\t\tstylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};\n\t\t}\n\t}\n}\n\nfunction listToStyles (list, options) {\n\tvar styles = [];\n\tvar newStyles = {};\n\n\tfor (var i = 0; i < list.length; i++) {\n\t\tvar item = list[i];\n\t\tvar id = options.base ? item[0] + options.base : item[0];\n\t\tvar css = item[1];\n\t\tvar media = item[2];\n\t\tvar sourceMap = item[3];\n\t\tvar part = {css: css, media: media, sourceMap: sourceMap};\n\n\t\tif(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});\n\t\telse newStyles[id].parts.push(part);\n\t}\n\n\treturn styles;\n}\n\nfunction insertStyleElement (options, style) {\n\tvar target = getElement(options.insertInto)\n\n\tif (!target) {\n\t\tthrow new Error(\"Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.\");\n\t}\n\n\tvar lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];\n\n\tif (options.insertAt === \"top\") {\n\t\tif (!lastStyleElementInsertedAtTop) {\n\t\t\ttarget.insertBefore(style, target.firstChild);\n\t\t} else if (lastStyleElementInsertedAtTop.nextSibling) {\n\t\t\ttarget.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);\n\t\t} else {\n\t\t\ttarget.appendChild(style);\n\t\t}\n\t\tstylesInsertedAtTop.push(style);\n\t} else if (options.insertAt === \"bottom\") {\n\t\ttarget.appendChild(style);\n\t} else if (typeof options.insertAt === \"object\" && options.insertAt.before) {\n\t\tvar nextSibling = getElement(options.insertInto + \" \" + options.insertAt.before);\n\t\ttarget.insertBefore(style, nextSibling);\n\t} else {\n\t\tthrow new Error(\"[Style Loader]\\n\\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\\n Must be 'top', 'bottom', or Object.\\n (https://github.com/webpack-contrib/style-loader#insertat)\\n\");\n\t}\n}\n\nfunction removeStyleElement (style) {\n\tif (style.parentNode === null) return false;\n\tstyle.parentNode.removeChild(style);\n\n\tvar idx = stylesInsertedAtTop.indexOf(style);\n\tif(idx >= 0) {\n\t\tstylesInsertedAtTop.splice(idx, 1);\n\t}\n}\n\nfunction createStyleElement (options) {\n\tvar style = document.createElement(\"style\");\n\n\toptions.attrs.type = \"text/css\";\n\n\taddAttrs(style, options.attrs);\n\tinsertStyleElement(options, style);\n\n\treturn style;\n}\n\nfunction createLinkElement (options) {\n\tvar link = document.createElement(\"link\");\n\n\toptions.attrs.type = \"text/css\";\n\toptions.attrs.rel = \"stylesheet\";\n\n\taddAttrs(link, options.attrs);\n\tinsertStyleElement(options, link);\n\n\treturn link;\n}\n\nfunction addAttrs (el, attrs) {\n\tObject.keys(attrs).forEach(function (key) {\n\t\tel.setAttribute(key, attrs[key]);\n\t});\n}\n\nfunction addStyle (obj, options) {\n\tvar style, update, remove, result;\n\n\t// If a transform function was defined, run it on the css\n\tif (options.transform && obj.css) {\n\t result = options.transform(obj.css);\n\n\t if (result) {\n\t \t// If transform returns a value, use that instead of the original css.\n\t \t// This allows running runtime transformations on the css.\n\t \tobj.css = result;\n\t } else {\n\t \t// If the transform function returns a falsy value, don't add this css.\n\t \t// This allows conditional loading of css\n\t \treturn function() {\n\t \t\t// noop\n\t \t};\n\t }\n\t}\n\n\tif (options.singleton) {\n\t\tvar styleIndex = singletonCounter++;\n\n\t\tstyle = singleton || (singleton = createStyleElement(options));\n\n\t\tupdate = applyToSingletonTag.bind(null, style, styleIndex, false);\n\t\tremove = applyToSingletonTag.bind(null, style, styleIndex, true);\n\n\t} else if (\n\t\tobj.sourceMap &&\n\t\ttypeof URL === \"function\" &&\n\t\ttypeof URL.createObjectURL === \"function\" &&\n\t\ttypeof URL.revokeObjectURL === \"function\" &&\n\t\ttypeof Blob === \"function\" &&\n\t\ttypeof btoa === \"function\"\n\t) {\n\t\tstyle = createLinkElement(options);\n\t\tupdate = updateLink.bind(null, style, options);\n\t\tremove = function () {\n\t\t\tremoveStyleElement(style);\n\n\t\t\tif(style.href) URL.revokeObjectURL(style.href);\n\t\t};\n\t} else {\n\t\tstyle = createStyleElement(options);\n\t\tupdate = applyToTag.bind(null, style);\n\t\tremove = function () {\n\t\t\tremoveStyleElement(style);\n\t\t};\n\t}\n\n\tupdate(obj);\n\n\treturn function updateStyle (newObj) {\n\t\tif (newObj) {\n\t\t\tif (\n\t\t\t\tnewObj.css === obj.css &&\n\t\t\t\tnewObj.media === obj.media &&\n\t\t\t\tnewObj.sourceMap === obj.sourceMap\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tupdate(obj = newObj);\n\t\t} else {\n\t\t\tremove();\n\t\t}\n\t};\n}\n\nvar replaceText = (function () {\n\tvar textStore = [];\n\n\treturn function (index, replacement) {\n\t\ttextStore[index] = replacement;\n\n\t\treturn textStore.filter(Boolean).join('\\n');\n\t};\n})();\n\nfunction applyToSingletonTag (style, index, remove, obj) {\n\tvar css = remove ? \"\" : obj.css;\n\n\tif (style.styleSheet) {\n\t\tstyle.styleSheet.cssText = replaceText(index, css);\n\t} else {\n\t\tvar cssNode = document.createTextNode(css);\n\t\tvar childNodes = style.childNodes;\n\n\t\tif (childNodes[index]) style.removeChild(childNodes[index]);\n\n\t\tif (childNodes.length) {\n\t\t\tstyle.insertBefore(cssNode, childNodes[index]);\n\t\t} else {\n\t\t\tstyle.appendChild(cssNode);\n\t\t}\n\t}\n}\n\nfunction applyToTag (style, obj) {\n\tvar css = obj.css;\n\tvar media = obj.media;\n\n\tif(media) {\n\t\tstyle.setAttribute(\"media\", media)\n\t}\n\n\tif(style.styleSheet) {\n\t\tstyle.styleSheet.cssText = css;\n\t} else {\n\t\twhile(style.firstChild) {\n\t\t\tstyle.removeChild(style.firstChild);\n\t\t}\n\n\t\tstyle.appendChild(document.createTextNode(css));\n\t}\n}\n\nfunction updateLink (link, options, obj) {\n\tvar css = obj.css;\n\tvar sourceMap = obj.sourceMap;\n\n\t/*\n\t\tIf convertToAbsoluteUrls isn't defined, but sourcemaps are enabled\n\t\tand there is no publicPath defined then lets turn convertToAbsoluteUrls\n\t\ton by default. Otherwise default to the convertToAbsoluteUrls option\n\t\tdirectly\n\t*/\n\tvar autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;\n\n\tif (options.convertToAbsoluteUrls || autoFixUrls) {\n\t\tcss = fixUrls(css);\n\t}\n\n\tif (sourceMap) {\n\t\t// http://stackoverflow.com/a/26603875\n\t\tcss += \"\\n/*# sourceMappingURL=data:application/json;base64,\" + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + \" */\";\n\t}\n\n\tvar blob = new Blob([css], { type: \"text/css\" });\n\n\tvar oldSrc = link.href;\n\n\tlink.href = URL.createObjectURL(blob);\n\n\tif(oldSrc) URL.revokeObjectURL(oldSrc);\n}\n","\n/**\n * When source maps are enabled, `style-loader` uses a link element with a data-uri to\n * embed the css on the page. This breaks all relative urls because now they are relative to a\n * bundle instead of the current page.\n *\n * One solution is to only use full urls, but that may be impossible.\n *\n * Instead, this function \"fixes\" the relative urls to be absolute according to the current page location.\n *\n * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.\n *\n */\n\nmodule.exports = function (css) {\n // get current location\n var location = typeof window !== \"undefined\" && window.location;\n\n if (!location) {\n throw new Error(\"fixUrls requires window.location\");\n }\n\n\t// blank or null?\n\tif (!css || typeof css !== \"string\") {\n\t return css;\n }\n\n var baseUrl = location.protocol + \"//\" + location.host;\n var currentDir = baseUrl + location.pathname.replace(/\\/[^\\/]*$/, \"/\");\n\n\t// convert each url(...)\n\t/*\n\tThis regular expression is just a way to recursively match brackets within\n\ta string.\n\n\t /url\\s*\\( = Match on the word \"url\" with any whitespace after it and then a parens\n\t ( = Start a capturing group\n\t (?: = Start a non-capturing group\n\t [^)(] = Match anything that isn't a parentheses\n\t | = OR\n\t \\( = Match a start parentheses\n\t (?: = Start another non-capturing groups\n\t [^)(]+ = Match anything that isn't a parentheses\n\t | = OR\n\t \\( = Match a start parentheses\n\t [^)(]* = Match anything that isn't a parentheses\n\t \\) = Match a end parentheses\n\t ) = End Group\n *\\) = Match anything and then a close parens\n ) = Close non-capturing group\n * = Match anything\n ) = Close capturing group\n\t \\) = Match a close parens\n\n\t /gi = Get all matches, not the first. Be case insensitive.\n\t */\n\tvar fixedCss = css.replace(/url\\s*\\(((?:[^)(]|\\((?:[^)(]+|\\([^)(]*\\))*\\))*)\\)/gi, function(fullMatch, origUrl) {\n\t\t// strip quotes (if they exist)\n\t\tvar unquotedOrigUrl = origUrl\n\t\t\t.trim()\n\t\t\t.replace(/^\"(.*)\"$/, function(o, $1){ return $1; })\n\t\t\t.replace(/^'(.*)'$/, function(o, $1){ return $1; });\n\n\t\t// already a full url? no change\n\t\tif (/^(#|data:|http:\\/\\/|https:\\/\\/|file:\\/\\/\\/|\\s*$)/i.test(unquotedOrigUrl)) {\n\t\t return fullMatch;\n\t\t}\n\n\t\t// convert the url to a full url\n\t\tvar newUrl;\n\n\t\tif (unquotedOrigUrl.indexOf(\"//\") === 0) {\n\t\t \t//TODO: should we add protocol?\n\t\t\tnewUrl = unquotedOrigUrl;\n\t\t} else if (unquotedOrigUrl.indexOf(\"/\") === 0) {\n\t\t\t// path should be relative to the base url\n\t\t\tnewUrl = baseUrl + unquotedOrigUrl; // already starts with '/'\n\t\t} else {\n\t\t\t// path should be relative to current directory\n\t\t\tnewUrl = currentDir + unquotedOrigUrl.replace(/^\\.\\//, \"\"); // Strip leading './'\n\t\t}\n\n\t\t// send back the fixed url(...)\n\t\treturn \"url(\" + JSON.stringify(newUrl) + \")\";\n\t});\n\n\t// send back the fixed css\n\treturn fixedCss;\n};\n","/* globals __webpack_amd_options__ */\r\nmodule.exports = __webpack_amd_options__;\r\n","module.exports = function(module) {\r\n\tif (!module.webpackPolyfill) {\r\n\t\tmodule.deprecate = function() {};\r\n\t\tmodule.paths = [];\r\n\t\t// module.parent = undefined by default\r\n\t\tif (!module.children) module.children = [];\r\n\t\tObject.defineProperty(module, \"loaded\", {\r\n\t\t\tenumerable: true,\r\n\t\t\tget: function() {\r\n\t\t\t\treturn module.l;\r\n\t\t\t}\r\n\t\t});\r\n\t\tObject.defineProperty(module, \"id\", {\r\n\t\t\tenumerable: true,\r\n\t\t\tget: function() {\r\n\t\t\t\treturn module.i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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
== Changelog ==
|
2 |
+
|
3 |
+
= 6.4.0 - May 1st, 2018 =
|
4 |
+
* All calls to the MailChimp v2 API have been removed or updated to the v3 API where possible.
|
5 |
+
* The Account page has been removed because it was relying on V2 API endpoints. Some account data from this page has been moved to the Manage Lists page.
|
6 |
+
* The ChimpChatter dashboard widget has been removed.
|
7 |
+
* The List Activity dashboard widget has a new filter, `yikes-mailchimp-dashboard-widgets-enabled`, that controls whether the widget is loaded or not.
|
8 |
+
* The welcome screen you see on plugin activation/updates has been removed.
|
9 |
+
* The error log now lives in a new place outside the plugin: wp-content/uploads/yikes-log/yikes-easy-mailchimp-error-log.php.
|
10 |
+
* The changelog is now in its own file, changelog.txt, and has been removed from the readme.
|
11 |
+
* The inline form styles should now handle a theme's default padding/margin better. There are also a bunch of new filters for customizing a form's inline styles.
|
12 |
+
* Setting up a scheduled form should be a much smoother process now.
|
13 |
+
* Some inline JavaScript for processing a form's shortcode has been moved into the form-submission-helpers.js file.
|
14 |
+
* You can now customize the message displayed to the user after an update profile email is requested. You'll see a new custom message section has been added to the form builder.
|
15 |
+
* Our checkbox integrations (e.g. Contact Form 7, WooCommerce) now allow you to choose multiple lists (and corresponding interest groups) for your subscribers to sign up to.
|
16 |
+
* Added some initial support for Easy Forms in Gutenberg. Feel free to download the Gutenberg plugin and test out the Easy Forms Block!
|
17 |
+
|
18 |
+
= 6.3.30 - February 15th, 2018 =
|
19 |
+
* Added a new filter: `yikes_mailchimp_widget_shortcode_attributes`. You can use this filter to customize the shortcode arguments for your Easy Forms widget. For example, you can remove the recaptcha from a widget.
|
20 |
+
* Added a new filter: `yikes-easy-mailchimp-email-address-field`. You can use this filter to customize the email merge field. For example, you can rename the field to something other than "Email Address."
|
21 |
+
* Fixed the way the loading SVGs were added in JavaScript. You can now use the existing filters to safely remove them.
|
22 |
+
* Removed the dependency from the Public CSS file.
|
23 |
+
|
24 |
+
= 6.3.29 - November 8th, 2017 =
|
25 |
+
* Refactored the way the support form works and integrates with add-ons
|
26 |
+
* Refactored the way the transients are deleted when the API key is cleared - adding a new API key should now properly clear all cached data
|
27 |
+
* Added a filter - `yikes-mailchimp-page-data` - that can be used to prevent page data from being POSTed with a subscription request
|
28 |
+
|
29 |
+
= 6.3.28 - October 21st, 2017 =
|
30 |
+
* Fixing bug with 6.3.27's single optin resubscribe
|
31 |
+
|
32 |
+
= 6.3.27 - October 20th, 2017 =
|
33 |
+
* Replaced the current loading gifs with SVGs
|
34 |
+
* Added support for address field placeholder values. You can filter these values with the filter `yikes-mailchimp-address-{$addr_type}-placeholder`.
|
35 |
+
* Added support for single opt-in unsubscribed users to re-subscribe. Shout out to @jasonhildebrand for adding this functionality.
|
36 |
+
* Fixed an issue with interest groups. This should fix the "Invalid Interest Group: 0" error some users saw. Another really big shoutout to @jasonhildebrand for fixing this directly.
|
37 |
+
* Fixed up some PHP warnings - thanks to @szepeviktor on GitHub for reporting these.
|
38 |
+
|
39 |
+
= 6.3.26 - October 4th, 2017 =
|
40 |
+
* Added two new filters: `yikes-mailchimp-{$merge_tag}-default-value` and `yikes-mailchimp-wooco-integration-checkbox-placement`.
|
41 |
+
|
42 |
+
= 6.3.25 - September 11th, 2017 =
|
43 |
+
* Fixing some HTML validation/markup errors related to labels. Thanks to @upekshapriya for bringing these to our attention.
|
44 |
+
|
45 |
+
= 6.3.24 - August 28th, 2017 =
|
46 |
+
* If a subscriber has unsubscribed, the signup form will re-send them a confirmation email (double opt-in only)
|
47 |
+
* If a subscriber received the double confirmation email but never subscribed (pending status), the signup form will re-send them a confirmation email (double opt-in only)
|
48 |
+
|
49 |
+
= 6.3.23 - August 14th, 2017 =
|
50 |
+
* Removed an additional `esc_url` call on the redirect URL. Redirect URLs should now be able to accept characters like ampersands without encoding them.
|
51 |
+
* Fixed the way the `yikes-mailchimp-general-error-response` filter works. You can now use the original response as the first argument in the function. This should allow you to change a MailChimp response w/ str parsing.
|
52 |
+
* Some minor code cleanup
|
53 |
+
|
54 |
+
= 6.3.22 - June 23rd, 2017 =
|
55 |
+
* Fixed an issue with comment integration subscriptions - comments will now be spam checked correctly
|
56 |
+
|
57 |
+
= 6.3.21 - June 22nd, 2017 =
|
58 |
+
* Cleaned up some HTML on the form
|
59 |
+
* Fixed an issue with comment integration subscriptions - the commenter's name will now populate the First Name field in your MailChimp list.
|
60 |
+
|
61 |
+
= 6.3.20 - May 31st, 2017 =
|
62 |
+
* Added a filter - `yikes-mailchimp-integration-is-user-subscribed` - for the integration checkbox. You can override whether the checkbox will display for already subscribed users (by default, the checkbox will not display).
|
63 |
+
* Updated the way we're logging errors for the homepage dashboard widgets - an error should no longer break your dashboard!
|
64 |
+
* Added some default excluded post types for our post query on the form builder (CPTS are forum, topic, and reply). This should help people who use bbPress and are experiencing timeout issues. (These can be filtered with the `yikes-mailchimp-excluded-redirect-post-types`).
|
65 |
+
|
66 |
+
= 6.3.19 - May 16th, 2017 =
|
67 |
+
* Fixed a bug where hidden form fields were being counted as visible.
|
68 |
+
* Added a new filter - yikes-mailchimp-save-form-filter - that allows you to filter all of a form's data before it gets saved.
|
69 |
+
* Replaced the current datepicker with the standard jQuery core datepicker. Added styles and custom code to support this.
|
70 |
+
* Added a new filter - yikes-mailchimp-datepicker-options - that allows you to filter the datepicker options.
|
71 |
+
|
72 |
+
= 6.3.18 - May 3rd, 2017 =
|
73 |
+
* Added a filter, `yikes-mailchimp-checkbox-integration-body`, for the checkbox integrations. You can now filter the entire request body before it's sent to MailChimp.
|
74 |
+
* Fixed up the code that was requiring address 2. By default, the address 2 field will never be required (can be changed with filters `yikes-mailchimp-address-2-required` and `yikes-mailchimp-ignore-required-array-field`).
|
75 |
+
|
76 |
+
= 6.3.17 - May 1st, 2017 =
|
77 |
+
* Added a quick fix for the Addon Settings list
|
78 |
+
|
79 |
+
= 6.3.16 - April 26th, 2017 =
|
80 |
+
* Quick fix to 6.3.15 - forgot to add a couple of files that handle the "Description Above Field" when a form field/interest group is initially added to the form.
|
81 |
+
|
82 |
+
= 6.3.15 - April 26th, 2017 =
|
83 |
+
* Google Analytics Event Tracking is here! We've added an action - `yikes-mailchimp-google-analytics` - where you can add Google Analytics JavaScript. Check out our knowledge base article (https://yikesplugins.com/support/knowledge-base/add-google-analytics-event-tracking/) for more instructions.
|
84 |
+
* The form builder field instructions are now hidden when there are no fields added to the form.
|
85 |
+
* Added the Clear API Cache button to the form builder - you can find the button in the Associated List Settings box.
|
86 |
+
* Added a new option to the fields in the form builder: the ability to place the description above the field. This also comes with some minor style changes and a couple new filters: `'yikes-mailchimp-{$interest_group_id}-description-html'` to filter the interest group's description HTML, and `'yikes-mailchimp-{$merge_tag}-description-html'` to filter a form/merge field's description HTML.
|
87 |
+
* Added HTML so that labels will work properly in the form builder. You can now select input fields by clicking on the field's label.
|
88 |
+
|
89 |
+
= 6.3.14 - April 21st, 2017 =
|
90 |
+
* Updating the WooCommerce Checkout integration checkbox with a new class and a filter for the classes (yikes-mailchimp-wooco-integration-checkbox-classes). The checkbox should now align correctly.
|
91 |
+
* Added a new setting to the General Setting page that controls using the nonce validation. The nonce has caused numerous people issues, and the filter is difficult for some people. This new setting will turn off the nonce validation for all forms on the website. The previously added filter, yikes-mailchimp-use-nonce-verification, can still turn off nonce validation on a per-form basis.
|
92 |
+
|
93 |
+
= 6.3.13 - April 17th, 2017 =
|
94 |
+
* Two new filters: `yikes-mailchimp-wp-comment-integration-placement` and `yikes-mailchimp-use-nonce-verification`.
|
95 |
+
* `yikes-mailchimp-use-nonce-verification` - Control whether we verify the nonce on form submissions. Default: `true` (by default, we check the nonce). @params: $use_nonce, $form_id
|
96 |
+
* `yikes-mailchimp-wp-comment-integration-placement` - Control the placement of the subscription checkbox for the WP Comment Form integration. Default: `comment_form_field_comment` (after the comment textarea box) - @params: $comment_form_field. This filter allows you to choose which WP Comment Form filter to use, and for the full list of WP Comment Form filters, check the documentation: https://codex.wordpress.org/Function_Reference/comment_form.
|
97 |
+
|
98 |
+
= 6.3.12 - April 6th, 2017 =
|
99 |
+
* Security vulnerability patched - Discovered with DefenseCode ThunderScan Source Code Security Analyzer by Neven Biruski
|
100 |
+
|
101 |
+
= 6.3.11 - March 23rd, 2017 =
|
102 |
+
* Optimized our query that fetches all posts/pages/CPTs - we now fetch only the IDs - this should prevent issues such as memory overflow or timeout
|
103 |
+
|
104 |
+
= 6.3.10 - March 21st, 2017 =
|
105 |
+
* Added a filter to customize the options in the states' dropdown. You can now add your own states/provinces, or remove the default ones. Use `yikes-mailchimp-state-province-list`
|
106 |
+
* Added a filter to customize the behavior of the zip code field. There are now around 20 different countries that the zip code field will be displayed for. Use the filter `yikes-mailchimp-countries-with-zip` to add/remove.
|
107 |
+
* Fixed an error handling bug that occurred when interest groups were empty for certain integrations
|
108 |
+
|
109 |
+
= 6.3.9.1 - March 14th, 2017 =
|
110 |
+
* Added a new option for AJAX submissions with redirect set: open in new window/tab. (Note: some browsers may detect the redirect as a popup and block it by default)
|
111 |
+
* Refactored the way the redirect logic worked
|
112 |
+
|
113 |
+
= 6.3.9 - March 10th, 2017 =
|
114 |
+
* The dismiss button for the "Please Review Us" box now redirects you to your current page instead of the admin home page.
|
115 |
+
|
116 |
+
= 6.3.8 - March 3rd, 2017 =
|
117 |
+
* Fixed an issue with label classes and refactored the code - there are now spaces in between the classes
|
118 |
+
|
119 |
+
= 6.3.7 - March 3rd, 2017 =
|
120 |
+
* Fixed an issue with the JavaScript helper file that was updated in 6.3.5 - the update profile link should now work as expected (shout out to @manouallouon on GitHub for pointing this out)
|
121 |
+
|
122 |
+
= 6.3.6 - February 27th, 2017 =
|
123 |
+
* Removing the following post types from our dropdown of potential redirect pages: `custom_css`, `customize_changeset`, and WooCommerce's `shop_order` and `shop_order_refund`.
|
124 |
+
* Adding a filter (`yikes-mailchimp-excluded-redirect-post-types`) to allow users to define which CPTs will be excluded from the list of potential redirect pages. See the "Other Notes" section for the default list of excluded post types.
|
125 |
+
|
126 |
+
= 6.3.5 - February 13th, 2017 =
|
127 |
+
* Added Canadian provinces to the state dropdown list. If you choose "Canada" as your country, you will see only the provinces. If you choose U.S. you will see only the states. For all other countries, the dropdown will fade out.
|
128 |
+
* Added the filter: `yikes-mailchimp-default-zip-code` for defaulting the zip code
|
129 |
+
* Added the variable $form_id to the `yikes-mailchimp-default-country-value`, `yikes-mailchimp-address-{$type}-label`, and `yikes-mailchimp-zip-pattern` filters
|
130 |
+
* Fixed an issue with pagination when viewing a list's subscribers. By default, each page jumps ahead 20 subscribers. This can be changed with the filter `yikes_admin_list_subscriber_limit`.
|
131 |
+
* Fixed an issue where using double/single quotes in field names could break the field name.
|
132 |
+
|
133 |
+
= 6.3.4 - February 2nd, 2017 =
|
134 |
+
* CSS update to fix an issue with interest groups displaying in the form builder caused by 6.3.3
|
135 |
+
|
136 |
+
= 6.3.3 - February 1st, 2017 =
|
137 |
+
* Security vulnerability patched - props to @nathan-hermit for bringing this to our attention
|
138 |
+
* New feature: the ability to edit field labels
|
139 |
+
* Generated new .pot file
|
140 |
+
|
141 |
+
= 6.3.2 - January 25th, 2017 =
|
142 |
+
* Custom message visibility is now dictated by your opt-in settings
|
143 |
+
* Fixed an issue with the PHP `array_keys` function that breaks PHP versions < 5.4
|
144 |
+
* Hidden interest groups now work properly and are defined as checkboxes for consistency with MailChimp
|
145 |
+
* Some minor copy changes and a new .pot file
|
146 |
+
|
147 |
+
= 6.3.1 - January 18th, 2017 =
|
148 |
+
* Generated new .pot file for proper i18n/l10n
|
149 |
+
|
150 |
+
= 6.3.0 - January 17th, 2017 =
|
151 |
+
* Version 6.3.0's biggest change is migrating the plugin to use MailChimp's v3 API.
|
152 |
+
* Created API classes to interact with the MailChimp API
|
153 |
+
* Converted all supported v2 endpoints to the corresponding v3 endpoint
|
154 |
+
* Refactored all v2 endpoints that are unsupported in v3 to use the new API classes
|
155 |
+
* Added filters to customize API requests
|
156 |
+
|
157 |
+
* Version 6.3.0 includes a suite of custom message updates:
|
158 |
+
* Removed the "invalid email" custom message (v3 no longer supports error codes to detect things like an invalid email error)
|
159 |
+
* Updated the custom messages descriptions text
|
160 |
+
* Updated the success message - it is now specifically for successful double opt-in subscriptions
|
161 |
+
* Added two new custom success messages: "Success: Single opt-in" for successful single opt-in subscriptions, and "Success: Re-subscriber" for successful re-subscriptions
|
162 |
+
* Added two new custom messages for customizing the "update your profile link" email: "Email Subject" to customize the subject of the email, and "Email body" to customize the body of the email
|
163 |
+
* Added/Updated filters for each custom message type. See the `Filters` section for more details.
|
164 |
+
|
165 |
+
* Version 6.3.0 includes a suite of bug fixes, enhancements, and changes:
|
166 |
+
* Added server-side validation to check for required form fields and required interest groups; this supports browsers like Safari that do not support the HTML 5 `required` attribute, or situations where the JavaScript validation fails
|
167 |
+
* Added the HTML 5 required attribute to radio button and dropdown formatted interest groups
|
168 |
+
* Wrapped the subscription form submit button's text in a span to better support adding custom HTML to the submit button text
|
169 |
+
* Changed the types of values that are wiped out after submission to better support subscribing multiple times without refreshing the page
|
170 |
+
* Added a nonce to the subscription form submission
|
171 |
+
* Multiple interest groups can now be highlighted and added to the form at the same time (instead of one at a time)
|
172 |
+
* Fixed the way default values work for interest groups and checkbox/dropdown/radio form fields
|
173 |
+
* Changed the way the datepicker displays birthdays when the date format is DD/MM
|
174 |
+
* Added error handling and a default error message for fatal server errors ('Error collecting the API response')
|
175 |
+
* Allowing + signs for phone fields using MailChimp's international phone format (supports country codes)
|
176 |
+
* Added transients throughout the application for common requests (e.g. API requests and internal form data requests)
|
177 |
+
* The "Send Welcome Email" option is no longer supported by MailChimp and has been removed
|
178 |
+
* The second address line (addr2) is never required by default (this can be changed using a filter - see `yikes-mailchimp-address-2-required`).
|
179 |
+
|
180 |
+
* Version 6.3.0 includes a lot of new filters, some renamed filters, some new parameters added, and some filters removed. For a complete list of available filters, please see the newly updated filters section. Here are some of the highlights:
|
181 |
+
* Renamed filters `yikes-mailchimp-before-submission` and `yikes-mailchimp-before-submission-{$form_id}` to `yikes-mailchimp-filter-before-submission` and `yikes-mailchimp-filter-before-submission-{$form_id}`. This prevents conflicts between the actions of the same name.
|
182 |
+
* Renamed filter `yikes-mailchimp-user-already-subscribed-error` to `yikes-mailchimp-user-already-subscribed-text`
|
183 |
+
* Added filters `yikes-mailchimp-filter-groups-before-submission` and `yikes-mailchimp-filter-groups-before-submission-{$form_id}` to filter the interest groups before they're submitted
|
184 |
+
* Removed filters `yikes-mailchimp-user-subscribe-api-request`, `yikes-mailchimp-checkbox-integration-subscribe-api-request`
|
185 |
+
* Removed filter `yikes-mailchimp-interest-group-required-top-error` - replaced by `yikes-mailchimp-required-interest-group-missing` - this handles all types of interest group fields, not just checkboxes
|
186 |
+
* Removed filter `yikes-mailchimp-interest-group-checkbox-error` - missing fields are now highlighted
|
187 |
+
|
188 |
+
= 6.2.4 - December 6th, 2016 =
|
189 |
+
* Fixed the way birthday field data was being handled / stored
|
190 |
+
* Added version number to main AJAX JavaScript file - Thanks goes to Viktor Szépe for committing this change
|
191 |
+
* Tested with WordPress version 4.7 (and updated the corresponding 'Tested up to' tag)
|
192 |
+
* Added minor error handling and logic to the forms page
|
193 |
+
|
194 |
+
= 6.2.3 - November 1st, 2016 =
|
195 |
+
* Changed the way HTML field data is retrieved for compatibility with the options DB table and the Incentives Add-on
|
196 |
+
* Fixed the path to the Knowledge Base on the welcome page
|
197 |
+
* Refactored and localized the tinyMCE JS file
|
198 |
+
* Fixed an i18n issue where an incorrect URL was being displayed in an error message
|
199 |
+
* Changed the way the address field is displayed when viewing a mailing list user's info
|
200 |
+
|
201 |
+
= 6.2.2 - October 25th, 2016 =
|
202 |
+
* Minor security patch - Thanks goes to the Tristan Madani for locating and disclosing the issues below.
|
203 |
+
* Fixed a bug where request variable "section" was not sanitize before execution and rendering
|
204 |
+
* Fixed a bug where global constant "YIKES_MC_API_KEY" was not sanitize before execution and rendering
|
205 |
+
* Fixed a bug where WP option "yikes-mc-api-key" was not sanitize before validating and saving
|
206 |
+
|
207 |
+
= 6.2.1 - October 19th, 2016 =
|
208 |
+
* Fixed a bug where the title and description will not display using the shortcode.
|
209 |
+
* Fixed a bug where the `recaptcha` shortcode parameter doesn't work properly.
|
210 |
+
|
211 |
+
= 6.2.0 - October 17th, 2016 =
|
212 |
+
* Fixed a bug where the default for a radio button would not show up if the first item was selected ([#587](https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/587))
|
213 |
+
* Fixed a bug where the form settings would not import properly ([#572](https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/572))
|
214 |
+
* Fixed a bug in our Visual Composer extension ([#514](https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/514))
|
215 |
+
* Fixed a bug where Interest Groups that are in radio format could not be changed when saving ([#584](https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/584))
|
216 |
+
* Fixed a bug where the Phone Format field would continually append # signs ([#562](https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/562))
|
217 |
+
* Fixed a compatibilty issue where our localized script variables were using common names ([#575](https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/575))
|
218 |
+
* Updated the storage of form data to utilize the Options API instead of a custom database table.
|
219 |
+
* Under-the-hood improvements and enhancements
|
220 |
+
|
221 |
+
As noted above, this release modifies this plugin to utilize the Options API instead of a custom database table. After upgrading, a routine will run that will grab all of your forms from the custom database table and convert them into a WordPress Option that the code will use from this point forward. At this point, we're choosing to keep the existing custom database table in place, so you can rest assured that all of your form data will be safe.
|
222 |
+
|
223 |
+
If for some reason you need to revert to using the custom database table, you can add a constant to your `wp-config.php` file:
|
224 |
+
|
225 |
+
`define( 'YIKES_EMCE_CUSTOM_DB', true );`
|
226 |
+
|
227 |
+
If you find that you *need* to do this, please contact us to let us know what you're seeing. In a future release, we will remove the custom database table entirely.
|
228 |
+
|
229 |
+
= 6.1.3 - July 26th, 2016 =
|
230 |
+
* Minor security patch - Thanks goes to the Wordfence Research Team for locating and disclosing the issue.
|
231 |
+
* Cleared API/Account transient data when API key has changed.
|
232 |
+
* Refactored our shortcode function to abort early, when no fields are present (inline or not).
|
233 |
+
* Added `labels-hidden` class to the submit button `<span></span>` element so we can better style inline forms when <strong>all</strong> labels are hidden.
|
234 |
+
|
235 |
+
= 6.1.2 - July 21st, 2016 =
|
236 |
+
* Fixed incorrect date format on date picker for birthday fields (Front end).
|
237 |
+
* Ensure that hidden fields don't become visible when forms are submitted (.fadeTo() bug)
|
238 |
+
* Built in support for defining a constant for your API keys in wp-config.php (`YIKES_MC_API_KEY` see FAQ)
|
239 |
+
|
240 |
+
= 6.1.1 - July 20th, 2016 =
|
241 |
+
* Added helper classes to the address fields to allow for easier targeting (Supports zip lookup extension).
|
242 |
+
|
243 |
+
= 6.1 - July 11th, 2016 =
|
244 |
+
* Sanitized section request on the options page properly.
|
245 |
+
* Fixed the apostraphes converted to tildes.
|
246 |
+
* Added the missing space in the form field classes when labels were hidden.
|
247 |
+
* Added preloaders to the submit button and the form overlay. Lowered opacity during AJAX processing.
|
248 |
+
* Fixed the 'Duplicate' form function.
|
249 |
+
* Repaired phone number validation on the phone form fields.
|
250 |
+
* Properly hide descriptions when they are not set. (Markup should no longer be generated)
|
251 |
+
* Added a 'Clear API Cache' link below the associated list dropdown during form creation.
|
252 |
+
* Swapped out `get_currentuserinfo()` for the correct, newer, functions.
|
253 |
+
* Repaired undefined variable on the 'Birthday/Date' form fields, when no default was set.
|
254 |
+
* Users can now bulk add fields to forms, instead of having to do it one at a time.
|
255 |
+
* Removed any dependency to the RSS feeds served from https://www.yikesplugins.com, which could potentially cause issues if the servers are ever down.
|
256 |
+
* Refactored the database creation function, and swapped out the field types - to support older versions of PHP (<v5.3).
|
257 |
+
* Added new filter to allow users to alter who can view/access the admin dashboard widgets - `yikes-mailchimp-admin-widget-capability`
|
258 |
+
* Added a new filter (`yikes-mailchimp-user-already-subscribed-error`) allowing the 'already subscribed' error message to be filtered.
|
259 |
+
* Added a new template tag (`[email]`) which can be used in the already subscribed response, to display the user entered email back in the response.
|
260 |
+
* Added a new template tag (`[link][/link]`) which can be used to wrap text in the 'update profile' link, allowing users to create a custom response & link.
|
261 |
+
|
262 |
+
= 6.0.5.5 - April 5th, 2016 =
|
263 |
+
* Fixed incompatibility with the avada theme options page.
|
264 |
+
* Removed the admin dashboard widgets for non-admins. Note: To alter, use the `yikes-mailchimp-user-role-access` filter.
|
265 |
+
|
266 |
+
= 6.0.5.4 - March 30th, 2016 =
|
267 |
+
* Added `yikes-mailchimp-before-form-submission` hook, to perform actions before data gets sent to MailChimp.
|
268 |
+
* Setup unit tests, wrote a few basic tests to start.
|
269 |
+
* Added `no_priv` to the update profile email, so users who are not logged in do not hit an error.
|
270 |
+
|
271 |
+
= 6.0.5.3 - March 14th, 2016 =
|
272 |
+
* Removed rogue `return;` causing blank screen on certain pages.
|
273 |
+
* Wrapped transient in else statement to prevent wrong data from being stored when an error is hit.
|
274 |
+
|
275 |
+
= 6.0.5.2 - March 11th, 2016 =
|
276 |
+
* Added extra error check for empty forms.
|
277 |
+
* Fixed incorrect 'Invalid Email' response being displayed to the user. (Now more user friendly)
|
278 |
+
* Fixed some checkbox integrations not working properly.
|
279 |
+
* Enhanced error logging.
|
280 |
+
|
281 |
+
= 6.0.5.1 - March 7th, 2016 =
|
282 |
+
* Cleaned up an error getting by the check when no interest groups were enabled on a form.
|
283 |
+
* Ensured 'invalid email' error was being used where appropriate.
|
284 |
+
|
285 |
+
= 6.0.5 - March 5th, 2016 =
|
286 |
+
* Removed the old MailChimp PHP wrapper (increasing stability, and decreasing overall plugin size by 200+kb).
|
287 |
+
* All API requests are now handled via WP HTTP class (goodbye SSL cert errors)
|
288 |
+
* Added new `yikes-mailchimp-sslverify` filter to toggle true/false on API requests.
|
289 |
+
* Added a new 'View List' link below the associated lists on the form edit page.
|
290 |
+
* Updated all api requests throughout the plugin.
|
291 |
+
* Re-wrote both the ajax and non-ajax form submission files.
|
292 |
+
* Re-wrote form validation, error checks and success/error responses.
|
293 |
+
* More specific error messages now coming from MailChimp for a better debugging experience.
|
294 |
+
* Repaired broken strings, Optin/optin to Opt-in/opt-in, reCaptcha to reCAPTCHA.
|
295 |
+
* Fixed user data not properly displaying on the user cards page.
|
296 |
+
|
297 |
+
= 6.0.4.7 - March 4th, 2016 =
|
298 |
+
* Fix error being thrown when the user has not set their name on the profile page.
|
299 |
+
* Updated the API validation function to use WP HTTP class. (workaround for SSL cert error preventing API key validation)
|
300 |
+
* Add 'Custom URL' selection to page redirect drop down, allow users to hard code a custom URL to redirect users to (third party site etc.)
|
301 |
+
|
302 |
+
= 6.0.4.6 - March 2nd, 2016 =
|
303 |
+
* Repair 'update existing subscriber' parameter in the API request to respect the options set for the given form (AJAX and non-AJAX forms).
|
304 |
+
|
305 |
+
= 6.0.4.5 - March 1st, 2016 =
|
306 |
+
* Added `load_plugin_textdomain()` call to base class.
|
307 |
+
* Added missing string to translation.
|
308 |
+
|
309 |
+
= 6.0.4.4 - February 29th, 2016 =
|
310 |
+
* Fixed reCAPTCHA check being skipped when a non-ajax form is submitted.
|
311 |
+
* Fixed incorrect variable name in reCAPTCHA form submission (non-ajax).
|
312 |
+
* Re-worded the reCAPTCHA error message when left blank.
|
313 |
+
* Passed new reCAPTCHA error message through new filter (`yikes-mailchimp-recaptcha-required-error` - works for AJAX and standard forms).
|
314 |
+
* Added missing placeholder/default values to the date form fields.
|
315 |
+
* Fixed foreign characters causing issues on certain form fields (all languages should now work without issues).
|
316 |
+
|
317 |
+
= 6.0.4.3 - February 23rd, 2016 =
|
318 |
+
* Added new filter to alter the success message from the form (`yikes-mailchimp-success-response` - see readme.txt for help).
|
319 |
+
* Added new filter to alter the zip code regex pattern (`yikes-mailchimp-zip-pattern` - see readme.txt for help and default value).
|
320 |
+
* Added new filter to alter the default country selection in the dropdown. (`yikes-mailchimp-default-country-value` - Defaults to 'US'.)
|
321 |
+
* Altered zip/state fields, when the default value is set to something other than US via `yikes-mailchimp-default-country-value`.
|
322 |
+
* Removed `height: 100%` CSS declaration on form fields (causing minor issues on some themes).
|
323 |
+
* Tweaked front end .js.
|
324 |
+
|
325 |
+
= 6.0.4.2 - February 18th, 2016 =
|
326 |
+
* Add missing .js file to trigger the update existing subscriber detials email on non-ajax forms.
|
327 |
+
* Re-worded a few strings.
|
328 |
+
|
329 |
+
= 6.0.4.1 - February 17th, 2016 =
|
330 |
+
* Fixed foreign languages saving field labels with backslashes.
|
331 |
+
* Fixed foreign language dropdown not saving/displaying properly.
|
332 |
+
* Setup two-factor authentication when users go to update subscription details.
|
333 |
+
* Added new filters, `yikes-mailchimp-update-email-subject` and `yikes-mailchimp-update-email-content`.
|
334 |
+
* Removed languages directory, as everything is now handled within GlotPress.
|
335 |
+
|
336 |
+
= 6.0.4 - February 1st, 2016 =
|
337 |
+
* Added a conditional to upgrade the database if the user is not currently up to date.
|
338 |
+
* Some users report not being able to update form settings, due to database tables not being present.
|
339 |
+
|
340 |
+
= 6.0.3.9 - January 31st, 2016 =
|
341 |
+
* Refactored date form field submissions, to properly format international dates (dd/mm/yyyy).
|
342 |
+
* Re-worded sections.
|
343 |
+
* Added new screenshots.
|
344 |
+
|
345 |
+
= 6.0.3.8 - January 29th, 2016 =
|
346 |
+
* Added a new custom description parameter to the shortcode. eg: `[yikes-mailchimp custom_description="This is a custom description" description="1"]`
|
347 |
+
* Added all new settings on a per form level. New options now include - Form classes, Inline form, Submit button type, Submit button classes, schedule form by date/time, and require users to be logged in.
|
348 |
+
* Users can now specify if they want a form to display inline by using the `inline="1"` parameter in the shortcode. Example: `[yikes-mailchimp inline="1"]`. The shortcode parameter will take precedence over the form setting.
|
349 |
+
* Users can now set the submit button to image, and specify a custom image to use.
|
350 |
+
* Tweaked styles on the 'Account Activity/Chimp Chatter' page.
|
351 |
+
* Re-factored a few functions to be more performant.
|
352 |
+
* Added new, additional hooks for our add-ons to make use of. (`yikes-mailchimp-list-interest-groups-metabox`)
|
353 |
+
* Fixed the typo in our check box integration filter from `yikes-mailchimp-checkbox-integration-subscibe-api-request` to `yikes-mailchimp-checkbox-integration-subscribe-api-request`.
|
354 |
+
* Added missing `$charset_collate` variable when creating the database tables - which caused encoding issues with a few foreign characters.
|
355 |
+
* Localized all date pickers - for our international users.
|
356 |
+
* Added new sections to the welcome screen - 'Knowledge Base' and 'Add-Ons'.
|
357 |
+
* Fixed foreign language character encoding, and storing in database as question marks.
|
358 |
+
* Fixed date formats not storing properly when adding a date/birthday field to your form.
|
359 |
+
* Fixed the form editor being hidden on medium-width screens.
|
360 |
+
|
361 |
+
= 6.0.3.7 - December 28th, 2015 =
|
362 |
+
* Fixed certain [recaptcha parameters](https://yikesplugins.com/support/knowledge-base/how-do-i-customize-the-recaptcha-field/) not working properly
|
363 |
+
|
364 |
+
= 6.0.3.6 - December 28th, 2015 =
|
365 |
+
* Removed extra closing php tag after 'Interest Group' dropdown field
|
366 |
+
|
367 |
+
= 6.0.3.5 - December 20th, 2015 =
|
368 |
+
* Ensured the `$form_id` variable is set before including the form processing file for non-ajax forms.
|
369 |
+
* Updated `yikes_retrieve_form_settings()`, to ensure we have a `$form_id` and settings to return.
|
370 |
+
|
371 |
+
= 6.0.3.4 - December 18th, 2015 =
|
372 |
+
* Make bundled classes work when field labels are hidden.
|
373 |
+
* Way to reset submission counts for individual forms.
|
374 |
+
* URL fields now prepend http:// to prevent confusion with the end user.
|
375 |
+
* Added conditionals to hide state/zip input fields in the address section when the country != US.
|
376 |
+
* Multiple reCAPTCHAs on a single page should now work.
|
377 |
+
* Non-Ajax Forms set to redirect, throw errors
|
378 |
+
* Check form descriptions generating additional `<p>` tags.yikes-mailchimp-form-description is not wrapped around the description.
|
379 |
+
* Add helper function to retrieve form data by ID. (eg: `$form_data = yikes_get_form_data( 1 );` )
|
380 |
+
|
381 |
+
= 6.0.3.3 - November 12th, 2015 =
|
382 |
+
* Patched a minor security issue where post passwords were accessible prior to entering the password - (props @ldwd)
|
383 |
+
|
384 |
+
= 6.0.3.2 - November 9th, 2015 =
|
385 |
+
* International characters in custom messages causing some escaping issues for AJAX forms.
|
386 |
+
* Added Google reCAPTCHA override to the shortcode recaptcha="1"/recpatcha="0" to manually set it on a per form basis (still needs to be globally enabled on the settings page).
|
387 |
+
* Added additional reCAPTCHA parameters to the shortcode. (see <a href="https://yikesplugins.com/support/knowledge-base/how-do-i-customize-the-recaptcha-field/" target="_blank">https://yikesplugins.com/support/knowledge-base/how-do-i-customize-the-recaptcha-field/</a>).
|
388 |
+
* Re-coded the redirect function for non-ajax forms, so that it properly utilizes `wp_redirect()` instead of a .js injection after submission.
|
389 |
+
* Added new constant `YIKES_MAILCHIMP_NULL_DEBUG` to debug 'null' API response from MailChimp API (see <a href="https://yikesplugins.com/support/knowledge-base/i-received-the-following-error-we-received-an-unexpected-error-null/" target="_blank">https://yikesplugins.com/support/knowledge-base/i-received-the-following-error-we-received-an-unexpected-error-null/</a>).
|
390 |
+
|
391 |
+
= 6.0.3.1 - November 2nd, 2015 =
|
392 |
+
* Repair issue where multiple AJAX forms on same page was only submitting last displayed form.
|
393 |
+
* Parsed `[yikes-mailchimp-subscriber-count]`, to display the number of subscribers in the associated list on the manage forms page for form descriptions.
|
394 |
+
* When 'Hide Label' and 'Hide Field' are both checked, ensure that the associated form field is hidden.
|
395 |
+
* Confirmed error messages via the API are working as intended for both AJAX/standard opt-in forms.
|
396 |
+
* Fixed issue/spacing of the secondary 'Update Form' button on the edit forms page.
|
397 |
+
|
398 |
+
= 6.0.3 - October 29th, 2015 =
|
399 |
+
* Add filter to allow altering field descriptions. `yikes_mailchimp_frontend_content`
|
400 |
+
* Resolve error thrown when no default is set for checkbox inerest groups.
|
401 |
+
* Alter old knowledge base URLs to new KB URL.
|
402 |
+
* Confirm each form field type 'Hide Field' works as expected.
|
403 |
+
* Added a bit of spacing between checkbox/radio button default options.
|
404 |
+
* Added new class `yikes-mailchimp-form-class` to allow for additional classes to be added to the `<form>` element.
|
405 |
+
* Implemented a fix for required interest group checkbox type. (ajax = js validation/non-ajax = php).
|
406 |
+
* Appended form IDs to input field ID parameter. The new form IDs now prepended with yikes-mc-form-#- -- eg: Old: id="EMAIL", New: id="yikes-mc-form-1-EMAIL".
|
407 |
+
* Add a "Save Form" button to the left of the new "Clear Form Fields" on the Form builder. (better UX)
|
408 |
+
* Integrate with Visual Composer plugin.
|
409 |
+
* Ability to add a class to the form tag. Appropriate filter is `yikes-mailchimp-form-class` for `<form>` element, and `yikes-mailchimp-form-container-class` for parent `<section>` container.
|
410 |
+
* Fix Site Origin Page builder issues saving the widget form IDs.
|
411 |
+
|
412 |
+
= 6.0.3 - October 29th, 2015 =
|
413 |
+
* Fixed undefined variable warning for interest group labels
|
414 |
+
* Added new filter to allow alterations of each form field description
|
415 |
+
|
416 |
+
= 6.0.2.4 - October 17th, 2015 =
|
417 |
+
* Fixed error thrown for some users on edit forms page 'save'.
|
418 |
+
* Added new shortcode: `[yikes-mailchimp-subscriber-count list="#"]` to display the number of subscribers to a specified list (use: `[yikes-mailchimp-subscriber-count form="form_id"]` (preferred) or `[yikes-mailchimp-subscriber-count list="mc_list_id"]`)
|
419 |
+
* Added new filter to filter the submit button text (yikes-mailchimp-form-submit-button-text)
|
420 |
+
* Tweaked international phone number validation - now regex checks [0-9]{1,}
|
421 |
+
* Added two new classes to field labels - `.merge_tag-label` (eg: EMAIL-label) on all fields & `.yikes-mailchimp-field-required` on fields set to required.
|
422 |
+
* Added capability check to TinyMCE button in wp editor (defaults to manage_options).
|
423 |
+
* Tweaked 'show some love' container on the edit forms page.
|
424 |
+
* Ensured 'Clear Form Fields' button was hidden after all form fields were removed.
|
425 |
+
* Passed form descriptions through `the_content()` to allow for shortcodes to be processed.
|
426 |
+
|
427 |
+
= 6.0.2.3 - October 16th, 2015 =
|
428 |
+
* Fixed incorrect opt-in time being sent to MailChimp for new subscribers (fixed for checkbox integrations, ajax and non-ajax forms)
|
429 |
+
* Fixed 'Hide Label' displaying twice under interest groups
|
430 |
+
* Fixed error thrown for custom_fields for some users
|
431 |
+
* Fixed dropdown interest group data not being sent to MailChimp properly
|
432 |
+
|
433 |
+
= 6.0.2.2 - October 15th, 2015 =
|
434 |
+
* Added the ability to bulk remove form fields from the form builder
|
435 |
+
* Fixed hidden interest groups from not displaying the default value properly
|
436 |
+
* Added hidden interest groups to the field type switch
|
437 |
+
* Fixed interest group errors thrown for some users
|
438 |
+
* Added new option to replace/update interest groups
|
439 |
+
|
440 |
+
= 6.0.2/6.0.2.1 - October 12th, 2015 =
|
441 |
+
* Added ability to pre-select interest groups for each third party integration (bbpress, contact form 7, buddypress, edd, woocommerce, comment form, registration form).
|
442 |
+
* Removed "Check your email for the confirmation message." from the default success message if single opt-in is checked.
|
443 |
+
* Fixed Address field, zip not hiding properly.
|
444 |
+
* Tweaked class names, labels.
|
445 |
+
* Renamed clickable pre-defined tags to something more user friendly instead of tags (eg: 'Page Title' instead of {page_title}).
|
446 |
+
* Renamed the `field-third-left/right` class to `field-third` as it made more sense. Now elements floated left.
|
447 |
+
* Tweaked pre-defined class styles.
|
448 |
+
* Altered pre-defined class names for the address fields.
|
449 |
+
* Built in check for MailChimp class to prevent conflict with other plugins integrating MailChimp.
|
450 |
+
* Built in responsive styles for pre-defined form class styles (field-half-left/right & field-third).
|
451 |
+
* Tweak responsive styles on calendar date picker on mobile devices.
|
452 |
+
* Confirm each integration is working as intended.
|
453 |
+
|
454 |
+
= 6.0.1 - October 7th, 2015 =
|
455 |
+
* This release is a <strong>complete</strong> rewrite of the previous version. Before upgrading to the latest release, it is <em>highly recommended</em> that you take a backup of your database.
|
456 |
+
* Changed plugin name to Easy Forms for MailChimp to comply with new guidelines for [Plugins that Include Company and/or Product Names in the Plugin Name](https://make.wordpress.org/plugins/2015/10/05/guidelines-for-plugins-that-include-company-andor-product-names-in-the-plugin-name/)
|
457 |
+
* Enhancements:
|
458 |
+
* All forms have moved to their own table in the database, yikes_easy_mc_forms.
|
459 |
+
* Admin interface has been re-designed for a seamless integration into the WordPress dashboard.
|
460 |
+
* You can now create an unlimited number of forms, and assign them to any of your lists (even multiple forms to the same list).
|
461 |
+
* Now you can easily duplicate forms at the click of a button.
|
462 |
+
* We have built out an advanced debugging feature that will log errors as they occur, for easy debugging.
|
463 |
+
* You can now toggle on/off AJAX form submissions on a per form basis.
|
464 |
+
* Toggle on or off the MailChimp welcome email being sent.
|
465 |
+
* You can now quickly switch which list your forms assign subscribers to.
|
466 |
+
* We now support every type of field you can assign to a form, including interest groups.
|
467 |
+
* You can now set custom success and error messages, to set messages in your native language.
|
468 |
+
* Easily browse your lists and view individual subscribers. Manage your subscriptions directly within the plugin.
|
469 |
+
* We've completely re-designed the settings pages to allow for easier navigation.
|
470 |
+
* A whole number of additional settings have been enabled for different form input fields.
|
471 |
+
* Español translated started by @hiwhatsup
|
472 |
+
* Française translated by @mialevesque
|
473 |
+
* Português do Brasil translated by @enxaqueca
|
474 |
+
* reCAPTCHA now loads in the language of the site it's being displayed on.
|
475 |
+
* All translations functions have been implemented for worldwide i18n.
|
476 |
+
* We have built out an API and implemented a number of hooks and filters to enable developers to easily extend the plugin [see knowledge base](https://yikesplugins.com/support/knowledge-base/product/developer-documentation/?utm_source=wp_plugin_repo&utm_medium=link&utm_campaign=easy_forms_for_mailchimp)
|
477 |
+
* We have started building out a number of add ons to extend the base functionality of the plugin. [check them out](https://yikesplugins.com/plugins/?utm_source=wp_plugin_repo&utm_medium=link&utm_campaign=easy_forms_for_mailchimp)
|
478 |
+
|
479 |
+
= 5.4.3 - March 17th, 2015 =
|
480 |
+
* Fixed: Re-import form fields function not properly refreshing the page
|
481 |
+
* Fixed: Updating a list field no longer throws an empty error
|
482 |
+
|
483 |
+
= 5.4.2 - March 10th, 2015 =
|
484 |
+
* Fixed: custom class names on input fields merged together with other class names making them un-usable.
|
485 |
+
|
486 |
+
= 5.4.1 - March 3rd, 2015 =
|
487 |
+
* Fixed: tinyMCE error thrown when saving settings page, ultimately preventing the ability to store the API key.
|
488 |
+
|
489 |
+
= 5.4 - March 2nd, 2015 =
|
490 |
+
* Enhancement: Re-bundled unaltered MailChimp API wrapper class file, and added appropriate class check to prevent conflicts with other MailChimp plugins (Gravity Forms etc.)
|
491 |
+
* Enhancement: Removed the WYSIWYG editor from the options page. This caused issues for some users who were unable to validate the MailChimp API key.
|
492 |
+
* Enhancement: Added a new setting to toggle the sending of the MailChimp welcome email. Users can now disable the email all together, on a list by list basis. (checked = disabled)
|
493 |
+
* Enhancement: Prevented users from being able to update the 'EMAIL' merge variable. Added a notification with instruction on what filter to use.
|
494 |
+
* Enhancement: Replaced all instances of the old class name (wpyksMCMailChimp API) with the appropriate MailChimp class (Mailchimp)
|
495 |
+
* Enhancement: Stripped slashes and properly escaped interest group labels
|
496 |
+
|
497 |
+
|
498 |
+
= 5.3.3 - February 26th, 2015 =
|
499 |
+
* Enhancement: Added a new filter to alter field labels. Very helpful when you want to alter the default 'Email Address' field label to something else. (`yikes_mc_field_label`) (see 'filters' section in 'Other Notes')
|
500 |
+
|
501 |
+
= 5.3.2 - February 17th, 2015 =
|
502 |
+
* Fixed: Patched the error displayed below the opt-in forms when `display_yikes_mc_form_messages` is not defined.
|
503 |
+
|
504 |
+
= 5.3.1 - January 13th, 2014 =
|
505 |
+
* Enhancement: Added new filter to allow users to change which role has access to the administration pages ( `yks-mailchimp-user-role` ) ( check readme for example )
|
506 |
+
|
507 |
+
= 5.3 - January 11th, 2014 =
|
508 |
+
* Enhancement: Added ability to move the success + error messages above or below the form based on a defined constant ( `display_yikes_mc_form_messages` [options: before/after] )
|
509 |
+
* Enhancement: Added new settings and the ability to show/hide * = required field , from the top of the forms, via the settings page
|
510 |
+
* Enhancement: Fixed incorrect error 'click here to update your profile' shown on front end on all errors
|
511 |
+
|
512 |
+
= 5.2 - December 10th, 2014 =
|
513 |
+
* New Feature: Added ability to add, edit or delete form fields directly from the WordPress dashboard
|
514 |
+
* New Feature: Added ability to add, edit or delete interest groups directly from the WordPress dashboard
|
515 |
+
* New Feature: Add "Update" link to forms when a user has previously subscribed
|
516 |
+
* New Feature: Added 'default' option to text fields ( with custom pre-defined tags : {post_id} , {post_title} , {page_url} , {blog_name} , {user_logged_in} with the ability to define your own! )
|
517 |
+
* New Feature: Added the ability to adjust required state, visibility state, merge tag and more
|
518 |
+
* New Feature: Added the ability to toggle between ssl_verifypeer true/false
|
519 |
+
* New Feature: Added an error log to help users diagnose errors happening within the plugin (and updated advanced debugging) - found on the debug options of the settings page
|
520 |
+
* Enhancement: Remove JavaScript dependency to populate place holder values
|
521 |
+
* Enhancement: Replaced CAPTCHA with the all new reCAPTCHA API from Google
|
522 |
+
* Enhancement: Introduced all new filters ( check documentation for examples )
|
523 |
+
* Enhancement: Un-checking 'visibility' now hides the input field (instead of not generating it at all)
|
524 |
+
* Enhancement: Re-defined YKSEME_PATH for users who have the plugins folder outside of wp-content
|
525 |
+
* Enhancement: Added new classes to labels and input fields on the front end forms ( new classes yks-mc-label-field-label , yks-mc-form-row-field-label , yks-mc-input-field-row-field-label , yks-mc-input-field-label )
|
526 |
+
* Bug Fix: Re-sorting fields that had a stored custom class name didn't store properly
|
527 |
+
* Bug Fix: Wrapped bundled template text in filters
|
528 |
+
* Bug Fix: Repaired some broken filters (get_form_data_before_send)
|
529 |
+
* Bug Fix: Fixed labels on 'Manage List Forms' page and added field names to titles
|
530 |
+
* Bug Fix: Fixed path to check box images on 'Clean Blue' bundled templates
|
531 |
+
* Bug Fix: Fixed empty MailChimp API key from outputting any string (confused some users)
|
532 |
+
* Other: Split main class file into multiple included files (help organize the main class file (sub-files located in /lib/inc/)
|
533 |
+
* Other: Began to build up a [Wiki](https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/wiki) on Github , for plug in installation/usage instructions
|
534 |
+
* Other: Altered single/double opt-in strings inside shortcode_form.php ([reference thread](https://wordpress.org/support/topic/code-mangling-on-script-use-in-messageserror-handling))
|
535 |
+
* Other: Removed 'Interest Group Label' option, as users can now update the name from within the plugin
|
536 |
+
|
537 |
+
= 5.1.1 - November 5, 2014 =
|
538 |
+
Fix: repair 'Opt In' default list drop down on options page
|
539 |
+
Fix: repair errors being thrown when a commenter is added to a list
|
540 |
+
|
541 |
+
= 5.1.0.1 - November 4, 2014 =
|
542 |
+
|
543 |
+
Removed the update profile info link, some users brought up security concerns.
|
544 |
+
Fixed missing argument when using table display formatting.
|
545 |
+
|
546 |
+
= 5.1 - November 3, 2014 =
|
547 |
+
|
548 |
+
We have added brand new functionality, allowing users to easily customize forms on the fly, through a familiar UI as well as a templating framework to allow users to design and implement their own custom forms. A minor security bug was patched in this release as well. We fixed an issue with the MailChimp API key check running on each page load, and added a few new filters to allow users to alter text.
|
549 |
+
|
550 |
+
= 5.0.9 - October 3rd, 2014 =
|
551 |
+
|
552 |
+
**Fixes**
|
553 |
+
|
554 |
+
* Added autocomplete="false" to MailChimp API input field
|
555 |
+
* Added event listener to form submission (forms can now be placed in modals/slideout menus)
|
556 |
+
|
557 |
+
= 5.0.8 - September 23, 2014 =
|
558 |
+
|
559 |
+
**Fixes**
|
560 |
+
|
561 |
+
* Band-aid fix for the -1 response returned from ajax.php
|
562 |
+
|
563 |
+
= 5.0.7 - September 19, 2014 =
|
564 |
+
|
565 |
+
**Fixes**
|
566 |
+
|
567 |
+
* Security Vulnerability patched - props @g0blinResearch for privately disclosing the issue
|
568 |
+
|
569 |
+
= 5.0.6 - August 22, 2014 =
|
570 |
+
|
571 |
+
**Fixes**
|
572 |
+
|
573 |
+
* fix bug with nonce security check when using table 'Preferred Form Layout' setting
|
574 |
+
|
575 |
+
= 5.0.5 - August 21, 2014 =
|
576 |
+
|
577 |
+
**Fixes**
|
578 |
+
|
579 |
+
- added `stripslashes()` to the following settings fields :
|
580 |
+
- Single Opt-in Confirmation Message
|
581 |
+
- Double Opt-in Confirmation Message
|
582 |
+
- Interest Group Label
|
583 |
+
- Opt-in Checkbox Text
|
584 |
+
|
585 |
+
**Updates**
|
586 |
+
|
587 |
+
- Updated readme FAQ section
|
588 |
+
|
589 |
+
= 5.0.4 - August 6, 2014 =
|
590 |
+
* Update SSL conditional in main plugin file
|
591 |
+
* Added mcrypt module check, for API encryption
|
592 |
+
* Conditionally loaded scripts and styles in admin ( prevent conflicts )
|
593 |
+
* Included NONCE security checks on form submissions ( helps prevent CSRF and other attacks )
|
594 |
+
* Added proper update task function to add missing settings to the options page ( prevents undefined variables for new settings )
|
595 |
+
* Added missing styles to post page ( added missing icon to tinyMCE button )
|
596 |
+
* Added missing styles to widget page
|
597 |
+
* Adjusted Chimp Chatter activity time formatting to return correct time based on user time zone
|
598 |
+
* New Feature: Real time updates to Account Activity ( utilizing the heartbeat API )
|
599 |
+
* New Feature: Added account activity widget to dashboard ( with live updates using heartbeat API )
|
600 |
+
* Added screenshot of admin dashboard account activity widget
|
601 |
+
|
602 |
+
= 4.5 =
|
603 |
+
* Added reCAPTCHA support to prevent bots and spammers from submitting forms
|
604 |
+
* Split settings page into three separate sections
|
605 |
+
* Removed Jetpack sharing icons from appearing in the success messages (removed sharedaddy filter)
|
606 |
+
* Updated translation files with new strings
|
607 |
+
* Update existing screen shots and add new screen shot
|
608 |
+
* Update FAQ
|
609 |
+
* Added "loaded server modules" to the debug page, to better aid in support requests
|
610 |
+
|
611 |
+
= 3.0 =
|
612 |
+
* Update MailChimp API to v2.0
|
613 |
+
* Added API Key Validation Check
|
614 |
+
|
615 |
+
= 2.2.0 =
|
616 |
+
* Added support for multiples of the same list
|
617 |
+
* Bug fixes
|
618 |
+
|
619 |
+
= 2.1.0 =
|
620 |
+
* Changed name of plugin to Easy Forms
|
621 |
+
* Added support for multiples of the same list
|
622 |
+
* Bug fixes
|
623 |
+
|
624 |
+
= 2.0.0 =
|
625 |
+
* Supports custom merge vars now
|
626 |
+
* Allows import from MailChimp
|
627 |
+
* Allows Table or Div output
|
628 |
+
|
629 |
+
= 1.3.1 =
|
630 |
+
* Fixed form not submitting to MailChimp for anonymous users bug
|
631 |
+
|
632 |
+
= 1.3.0 =
|
633 |
+
* Custom merge vars allows more customized field configuration
|
634 |
+
|
635 |
+
= 1.2.0 =
|
636 |
+
* Removed required from First Name and Last Name fields
|
637 |
+
* Added update routines for future versions
|
638 |
+
|
639 |
+
= 1.1.0 =
|
640 |
+
* Changed the list logic and added a notice for the MERGE VAR naming schema
|
641 |
+
|
642 |
+
= 1.0.1 =
|
643 |
+
* Changed CSS paths from Absolute to Relative
|
644 |
+
|
645 |
+
= 1.0.0 =
|
646 |
+
* Initial Release
|
647 |
+
|
648 |
+
|
649 |
+
== Upgrade Notice ==
|
650 |
+
|
651 |
+
= 6.1.3 - July 26th, 2016 =
|
652 |
+
|
653 |
+
* Minor security patch - Thanks goes to the Wordfence Research Team for locating and disclosing the issue.
|
654 |
+
* Cleared API/Account transient data when API key has changed.
|
655 |
+
* Refactored our shortcode function to abort early, when no fields are present (inline or not).
|
656 |
+
* Added `labels-hidden` class to the submit button `<span></span>` element so we can better style inline forms when <strong>all</strong> labels are hidden.
|
657 |
+
|
658 |
+
= 6.1.2 - July 21st, 2016 =
|
659 |
+
|
660 |
+
* Fixed incorrect date format on date picker for birthday fields (Front end).
|
661 |
+
* Ensure that hidden fields don't become visible when forms are submitted (.fadeTo() bug)
|
662 |
+
* Built in support for defining a constant for your API keys in wp-config.php (`YIKES_MC_API_KEY` see FAQ)
|
663 |
+
|
664 |
+
= 6.1.1 - July 20th, 2016 =
|
665 |
+
|
666 |
+
* Added helper classes to the address fields to allow for easier targeting (Supports zip lookup extension).
|
667 |
+
|
668 |
+
= 6.1 - July 11th, 2016 =
|
669 |
+
|
670 |
+
* Sanitized section request on the options page properly.
|
671 |
+
* Fixed the apostraphes converted to tildes.
|
672 |
+
* Added the missing space in the form field classes when labels were hidden.
|
673 |
+
* Added preloaders to the submit button and the form overlay. Lowered opacity during AJAX processing.
|
674 |
+
* Fixed the 'Duplicate' form function.
|
675 |
+
* Repaired phone number validation on the phone form fields.
|
676 |
+
* Properly hide descriptions when they are not set. (Markup should no longer be generated)
|
677 |
+
* Added a 'Clear API Cache' link below the associated list dropdown during form creation.
|
678 |
+
* Swapped out `get_currentuserinfo()` for the correct, newer, functions.
|
679 |
+
* Repaired undefined variable on the 'Birthday/Date' form fields, when no default was set.
|
680 |
+
* Users can now bulk add fields to forms, instead of having to do it one at a time.
|
681 |
+
* Removed any dependency to the RSS feeds served from https://www.yikesplugins.com, which could potentially cause issues if the servers are ever down.
|
682 |
+
* Refactored the database creation function, and swapped out the field types - to support older versions of PHP (<v5.3).
|
683 |
+
* Added new filter to allow users to alter who can view/access the admin dashboard widgets - `yikes-mailchimp-admin-widget-capability`
|
684 |
+
* Added a new filter (`yikes-mailchimp-user-already-subscribed-error`) allowing the 'already subscribed' error message to be filtered.
|
685 |
+
* Added a new template tag (`[email]`) which can be used in the already subscribed response, to display the user entered email back in the response.
|
686 |
+
* Added a new template tag (`[link][/link]`) which can be used to wrap text in the 'update profile' link, allowing users to create a custom response & link.
|
687 |
+
|
688 |
+
= 6.0.5.5 - April 5th, 2016 =
|
689 |
+
|
690 |
+
* Fixed incompatibility with the avada theme options page.
|
691 |
+
* Removed the admin dashboard widgets for non-admins. Note: To alter, use the `yikes-mailchimp-user-role-access` filter.
|
692 |
+
|
693 |
+
= 6.0.5.4 - March 30th, 2016 =
|
694 |
+
|
695 |
+
* Added `yikes-mailchimp-before-form-submission` hook, to perform actions before data gets sent to MailChimp.
|
696 |
+
* Setup unit tests, wrote a few basic tests to start.
|
697 |
+
* Added `no_priv` to the update profile email, so users who are not logged in do not hit an error.
|
698 |
+
|
699 |
+
= 6.0.5.3 - March 14th, 2016 =
|
700 |
+
|
701 |
+
* Removed rogue `return;` causing blank screen on certain pages.
|
702 |
+
* Wrapped transient in else statement to prevent wrong data from being stored when an error is hit.
|
703 |
+
|
704 |
+
= 6.0.5.2 - March 11th, 2016 =
|
705 |
+
|
706 |
+
* Added extra error check for empty forms.
|
707 |
+
* Fixed incorrect 'Invalid Email' response being displayed to the user. (Now more user friendly)
|
708 |
+
* Fixed some checkbox integrations not working properly.
|
709 |
+
* Enhanced error logging.
|
710 |
+
|
711 |
+
= 6.0.5.1 - March 7th, 2016 =
|
712 |
+
|
713 |
+
* Cleaned up an error getting by the check when no interest groups were enabled on a form.
|
714 |
+
* Ensured 'invalid email' error was being used where appropriate.
|
715 |
+
|
716 |
+
= 6.0.5 - March 5th, 2016 =
|
717 |
+
|
718 |
+
* Removed the old MailChimp PHP wrapper (increasing stability, and decreasing overall plugin size by 200+kb).
|
719 |
+
* All API requests are now handled via WP HTTP class (goodbye SSL cert errors)
|
720 |
+
* Added new `yikes-mailchimp-sslverify` filter to toggle true/false on API requests.
|
721 |
+
* Added a new 'View List' link below the associated lists on the form edit page.
|
722 |
+
* Updated all api requests throughout the plugin.
|
723 |
+
* Re-wrote both the ajax and non-ajax form submission files.
|
724 |
+
* Re-wrote form validation, error checks and success/error responses.
|
725 |
+
* More specific error messages now coming from MailChimp for a better debugging experience.
|
726 |
+
* Repaired broken strings, Optin/optin to Opt-in/opt-in, reCaptcha to reCAPTCHA.
|
727 |
+
* Fixed user data not properly displaying on the user cards page.
|
728 |
+
|
729 |
+
= 6.0.4.7 - March 4th, 2016 =
|
730 |
+
|
731 |
+
* Fix error being thrown when the user has not set their name on the profile page.
|
732 |
+
* Updated the API validation function to use WP HTTP class. (workaround for SSL cert error preventing API key validation)
|
733 |
+
* Add 'Custom URL' selection to page redirect drop down, allow users to hard code a custom URL to redirect users to (third party site etc.)
|
734 |
+
|
735 |
+
= 6.0.4.6 - March 2nd, 2016 =
|
736 |
+
|
737 |
+
* Repair 'update existing subscriber' parameter in the API request to respect the options set for the given form (AJAX and non-AJAX forms).
|
738 |
+
|
739 |
+
= 6.0.4.5 - March 1st, 2016 =
|
740 |
+
|
741 |
+
* Added `load_plugin_textdomain()` call to base class.
|
742 |
+
* Added missing string to translation.
|
743 |
+
|
744 |
+
= 6.0.4.4 - February 29th, 2016 =
|
745 |
+
|
746 |
+
* Fixed reCAPTCHA check being skipped when a non-ajax form is submitted.
|
747 |
+
* Fixed incorrect variable name in reCAPTCHA form submission (non-ajax).
|
748 |
+
* Re-worded the reCAPTCHA error message when left blank.
|
749 |
+
* Passed new reCAPTCHA error message through new filter (`yikes-mailchimp-recaptcha-required-error` - works for AJAX and standard forms).
|
750 |
+
* Added missing placeholder/default values to the date form fields.
|
751 |
+
* Fixed foreign characters causing issues on certain form fields (all languages should now work without issues).
|
752 |
+
|
753 |
+
= 6.0.4.3 - February 23rd, 2016 =
|
754 |
+
|
755 |
+
* Added new filter to alter the success message from the form (`yikes-mailchimp-success-response` - see readme.txt for help).
|
756 |
+
* Added new filter to alter the zip code regex pattern (`yikes-mailchimp-zip-pattern` - see readme.txt for help and default value).
|
757 |
+
* Added new filter to alter the default country selection in the dropdown. (`yikes-mailchimp-default-country-value` - Defaults to 'US'.)
|
758 |
+
* Altered zip/state fields, when the default value is set to something other than US via `yikes-mailchimp-default-country-value`.
|
759 |
+
* Removed `height: 100%` CSS declaration on form fields (causing minor issues on some themes).
|
760 |
+
* Tweaked front end .js.
|
761 |
+
|
762 |
+
= 6.0.4.2 - February 18th, 2016 =
|
763 |
+
|
764 |
+
* Add missing .js file to trigger the update existing subscriber detials email on non-ajax forms.
|
765 |
+
* Re-worded a few strings.
|
766 |
+
|
767 |
+
= 6.0.4.1 - February 3rd, 2015 =
|
768 |
+
|
769 |
+
* Fixed foreign languages saving field labels with backslashes
|
770 |
+
* Fixed foreign language dropdown not saving/displaying properly
|
771 |
+
|
772 |
+
= 6.0.4 - February 1st, 2015 =
|
773 |
+
|
774 |
+
* Added a conditional to upgrade the database if the user is not currently up to date.
|
775 |
+
* Some users report not being able to update form settings, due to database tables not being present.
|
776 |
+
|
777 |
+
= 6.0.3.9 - January 31st, 2015 =
|
778 |
+
|
779 |
+
* Refactored date form field submissions, to properly format international dates (dd/mm/yyyy).
|
780 |
+
* Re-worded sections.
|
781 |
+
* Added new screenshots.
|
782 |
+
|
783 |
+
= 6.0.3.8 - January 29th, 2015 =
|
784 |
+
|
785 |
+
* Added a new custom description parameter to the shortcode. eg: `[yikes-mailchimp custom_description="This is a custom description" description="1"]`
|
786 |
+
* Added all new settings on a per form level. New options now include - Form classes, Inline form, Submit button type, Submit button classes, schedule form by date/time, and require users to be logged in.
|
787 |
+
* Users can now specify if they want a form to display inline by using the `inline="1"` parameter in the shortcode. Example: `[yikes-mailchimp inline="1"]`. The shortcode parameter will take precedence over the form setting.
|
788 |
+
* Users can now set the submit button to image, and specify a custom image to use.
|
789 |
+
* Tweaked styles on the 'Account Activity/Chimp Chatter' page.
|
790 |
+
* Re-factored a few functions to be more performant.
|
791 |
+
* Added new, additional hooks for our add-ons to make use of. (`yikes-mailchimp-list-interest-groups-metabox`)
|
792 |
+
* Fixed the typo in our check box integration filter from `yikes-mailchimp-checkbox-integration-subscibe-api-request` to `yikes-mailchimp-checkbox-integration-subscribe-api-request`.
|
793 |
+
* Added missing `$charset_collate` variable when creating the database tables - which caused encoding issues with a few foreign characters.
|
794 |
+
* Localized all date pickers - for our international users.
|
795 |
+
* Added new sections to the welcome screen - 'Knowledge Base' and 'Add-Ons'.
|
796 |
+
* Fixed foreign language character encoding, and storing in database as question marks.
|
797 |
+
* Fixed date formats not storing properly when adding a date/birthday field to your form.
|
798 |
+
* Fixed the form editor being hidden on medium-width screens.
|
799 |
+
|
800 |
+
= 6.0.3.7 - December 28th, 2015 =
|
801 |
+
|
802 |
+
* Fixed certain [recaptcha parameters](https://yikesplugins.com/support/knowledge-base/how-do-i-customize-the-recaptcha-field/) not working properly
|
803 |
+
|
804 |
+
= 6.0.3.6 - December 28th, 2015 =
|
805 |
+
|
806 |
+
* Removed extra closing php tag after 'Interest Group' dropdown field
|
807 |
+
|
808 |
+
= 6.0.3.5 - December 20th, 2015 =
|
809 |
+
|
810 |
+
* Ensured the `$form_id` variable is set before including the form processing file for non-ajax forms.
|
811 |
+
* Updated `yikes_retrieve_form_settings()`, to ensure we have a `$form_id` and settings to return.
|
812 |
+
|
813 |
+
= 6.0.3.4 - December 18th, 2015 =
|
814 |
+
|
815 |
+
* Make bundled classes work when field labels are hidden.
|
816 |
+
* Way to reset submission counts for individual forms.
|
817 |
+
* URL fields now prepend http:// to prevent confusion with the end user.
|
818 |
+
* Added conditionals to hide state/zip input fields in the address section when the country != US.
|
819 |
+
* Multiple reCAPTCHAs on a single page should now work.
|
820 |
+
* Non-Ajax Forms set to redirect, throw errors
|
821 |
+
* Check form descriptions generating additional `<p>` tags.yikes-mailchimp-form-description is not wrapped around the description.
|
822 |
+
* Add helper function to retrieve form data by ID. (eg: `$form_data = yikes_get_form_data( 1 );` )
|
823 |
+
|
824 |
+
= 6.0.3.3 - November 12th, 2015 =
|
825 |
+
|
826 |
+
* Patched a minor security issue where post passwords were accessible prior to entering the password - (props @ldwd)
|
827 |
+
|
828 |
+
= 6.0.3.2 - November 9th, 2015 =
|
829 |
+
|
830 |
+
* International characters in custom messages causing some escaping issues for AJAX forms.
|
831 |
+
* Added Google ReCaptcha override to the shortcode recaptcha="1"/recpatcha="0" to manually set it on a per form basis (still needs to be globally enabled on the settings page).
|
832 |
+
* Added additional reCAPTCHA parameters to the shortcode. (see <a href="https://yikesplugins.com/support/knowledge-base/how-do-i-customize-the-recaptcha-field/" tareget="_blank">https://yikesplugins.com/support/knowledge-base/how-do-i-customize-the-recaptcha-field/</a>).
|
833 |
+
* Re-coded the redirect function for non-ajax forms, so that it properly utilizes `wp_redirect()` instead of a .js injection after submission.
|
834 |
+
* Added new constant `YIKES_MAILCHIMP_NULL_DEBUG` to debug 'null' API response from MailChimp API (see <a href="https://yikesplugins.com/support/knowledge-base/i-received-the-following-error-we-received-an-unexpected-error-null/" target="_blank">https://yikesplugins.com/support/knowledge-base/i-received-the-following-error-we-received-an-unexpected-error-null/</a>).
|
835 |
+
|
836 |
+
= 6.0.3.1 - November 2nd, 2015 =
|
837 |
+
|
838 |
+
* Repair issue where multiple AJAX forms on same page was only submitting last displayed form.
|
839 |
+
* Parsed `[yikes-mailchimp-subscriber-count]`, to display the number of subscribers in the associated list on the manage forms page for form descriptions.
|
840 |
+
* When 'Hide Label' and 'Hide Field' are both checked, ensure that the associated form field is hidden.
|
841 |
+
* Confirmed error messages via the MailChimp API are working as intended for both AJAX/standard opt-in forms.
|
842 |
+
* Fixed issue/spacing of the secondary 'Update Form' button on the edit forms page.
|
843 |
+
|
844 |
+
= 6.0.3 - October 29th, 2015 =
|
845 |
+
|
846 |
+
* Add filter to allow altering field descriptions. `yikes_mailchimp_frontend_content`
|
847 |
+
* Resolve error thrown when no default is set for checkbox inerest groups.
|
848 |
+
* Alter old knowledge base URLs to new KB URL.
|
849 |
+
* Confirm each form field type 'Hide Field' works as expected.
|
850 |
+
* Added a bit of spacing between checkbox/radio button default options.
|
851 |
+
* Added new class `yikes-mailchimp-form-class` to allow for additional classes to be added to the `<form>` element.
|
852 |
+
* Implemented a fix for required interest group checkbox type. (ajax = js validation/non-ajax = php).
|
853 |
+
* Appended form IDs to input field ID parameter. The new form IDs now prepended with yikes-mc-form-#- -- eg: Old: id="EMAIL", New: id="yikes-mc-form-1-EMAIL".
|
854 |
+
* Add a "Save Form" button to the left of the new "Clear Form Fields" on the Form builder. (better UX)
|
855 |
+
* Integrate with Visual Composer plugin.
|
856 |
+
* Ability to add a class to the form tag. Appropriate filter is `yikes-mailchimp-form-class` for `<form>` element, and `yikes-mailchimp-form-container-class` for parent `<section>` container.
|
857 |
+
* Fix Site Origin Page builder issues saving the widget form IDs.
|
858 |
+
|
859 |
+
= 6.0.2.4 - October 17th, 2015 =
|
860 |
+
|
861 |
+
* Fixed error thrown for some users on edit forms page 'save'.
|
862 |
+
* Added new shortcode: `[yikes-mailchimp-subscriber-count list="#"]` to display the number of subscribers to a specified list (use: `[yikes-mailchimp-subscriber-count form="form_id"]` (preferred) or `[yikes-mailchimp-subscriber-count list="mc_list_id"]`)
|
863 |
+
* Added new filter to filter the submit button text (yikes-mailchimp-form-submit-button-text)
|
864 |
+
* Tweaked international phone number validation - now regex checks [0-9]{1,}
|
865 |
+
* Added two new classes to field labels - `.merge_tag-label` (eg: EMAIL-label) on all fields & `.yikes-mailchimp-field-required` on fields set to required.
|
866 |
+
* Added capability check to TinyMCE button in wp editor (defaults to manage_options).
|
867 |
+
* Tweaked 'show some love' container on the edit forms page.
|
868 |
+
* Passed form descriptions through `the_content()` to allow for shortcodes to be processed.
|
869 |
+
|
870 |
+
= 6.0.2.3 - October 16th, 2015 =
|
871 |
+
|
872 |
+
* Fixed incorrect opt-in time being sent to MailChimp for new subscribers (fixed for checkbox integrations, ajax and non-ajax forms)
|
873 |
+
* Fixed 'Hide Label' displaying twice under interest groups
|
874 |
+
* Fixed error thrown for custom_fields for some users
|
875 |
+
* Fixed dropdown interest group data not being sent to MailChimp properly
|
876 |
+
|
877 |
+
= 6.0.2.2 - October 15th, 2015 =
|
878 |
+
|
879 |
+
* Added the ability to bulk remove form fields from the form builder
|
880 |
+
* Fixed hidden interest groups from not displaying the default value properly
|
881 |
+
* Added hidden interest groups to the field type switch
|
882 |
+
* Fixed interest group errors thrown for some users
|
883 |
+
* Added new option to replace/update interest groups
|
884 |
+
|
885 |
+
= 6.0.2/6.0.2.1 - October 12th, 2015 =
|
886 |
+
|
887 |
+
* Added ability to pre-select interest groups for each third party integration (bbpress, contact form 7, buddypress, edd, woocommerce, comment form, registration form).
|
888 |
+
* Removed "Check your email for the confirmation message." from the default success message if single opt-in is checked.
|
889 |
+
* Fixed Address field, zip not hiding properly.
|
890 |
+
* Tweaked class names, labels.
|
891 |
+
* Renamed clickable pre-defined tags to something more user friendly instead of tags (eg: 'Page Title' instead of {page_title}).
|
892 |
+
* Renamed the `field-third-left/right` class to `field-third` as it made more sense. Now elements floated left.
|
893 |
+
* Tweaked pre-defined class styles.
|
894 |
+
* Altered pre-defined class names for the address fields.
|
895 |
+
* Built in check for MailChimp class to prevent conflict with other plugins integrating MailChimp.
|
896 |
+
* Built in responsive styles for pre-defined form class styles (field-half-left/right & field-third).
|
897 |
+
* Tweak responsive styles on calendar date picker on mobile devices.
|
898 |
+
* Confirm each integration is working as intended.
|
899 |
+
|
900 |
+
= 6.0.1 - October 7th, 2015 =
|
901 |
+
|
902 |
+
* This release is a <strong>complete</strong> rewrite of the previous version. Before upgrading to the latest release, it is <em>highly recommended</em> that you take a backup of your database.
|
903 |
+
* Changed plugin name to Easy Forms for MailChimp to comply with new guidelines for [Plugins that Include Company and/or Product Names in the Plugin Name](https://make.wordpress.org/plugins/2015/10/05/guidelines-for-plugins-that-include-company-andor-product-names-in-the-plugin-name/)
|
904 |
+
* Enhancements:
|
905 |
+
* All forms have moved to their own table in the database, yikes_easy_mc_forms.
|
906 |
+
* Admin interface has been re-designed for a seamless integration into the WordPress dashboard.
|
907 |
+
* You can now create an unlimited number of forms, and assign them to any of your lists (even multiple forms to the same list).
|
908 |
+
* Now you can easily duplicate forms at the click of a button.
|
909 |
+
* We have built out an advanced debugging feature that will log errors as they occur, for easy debugging.
|
910 |
+
* You can now toggle on/off AJAX form submissions on a per form basis.
|
911 |
+
* Toggle on or off the MailChimp welcome email being sent.
|
912 |
+
* You can now quickly switch which list your forms assign subscribers to.
|
913 |
+
* We now support every type of field you can assign to a form, including interest groups.
|
914 |
+
* You can now set custom success and error messages, to set messages in your native language.
|
915 |
+
* Easily browse your lists and view individual subscribers. Manage your subscriptions directly within the plugin.
|
916 |
+
* We've completely re-designed the settings pages to allow for easier navigation.
|
917 |
+
* A whole number of additional settings have been enabled for different form input fields.
|
918 |
+
* Español translated started by @hiwhatsup
|
919 |
+
* Française translated by @mialevesque
|
920 |
+
* Português do Brasil translated by @enxaqueca
|
921 |
+
* reCAPTCHA now loads in the language of the site it's being displayed on.
|
922 |
+
* All translations functions have been implemented for worldwide i18n.
|
923 |
+
* We have built out an API and implemented a number of hooks and filters to enable developers to easily extend the plugin [see Knowledge Base](https://yikesplugins.com/support/knowledge-base/product/developer-documentation/?utm_source=wp_plugin_repo&utm_medium=link&utm_campaign=easy_forms_for_mailchimp)
|
924 |
+
* We have started building out a number of add ons to extend the base functionality of the plugin. [check them out](https://yikesplugins.com/plugins/?utm_source=wp_plugin_repo&utm_medium=link&utm_campaign=easy_forms_for_mailchimp)
|
925 |
+
|
926 |
+
= 4.3 - March 17th, 2015 =
|
927 |
+
* Fixed: Re-import form fields function not properly refreshing the page
|
928 |
+
* Fixed: Updating a list field no longer throws an empty error
|
929 |
+
|
930 |
+
= 5.4.2 - March 10th, 2015 =
|
931 |
+
* Fixed: custom class names on input fields merged together with other class names making them un-usable.
|
932 |
+
|
933 |
+
= 5.4.1 - March 3rd, 2015 =
|
934 |
+
* Fixed: tinyMCE error thrown when saving settings page, ultimately preventing the ability to store the MailChimp API key.
|
935 |
+
|
936 |
+
= 5.4 - March 2nd, 2015 =
|
937 |
+
* Enhancement: Re-bundled unaltered MailChimp API wrapper class file, and added appropriate class check to prevent conflicts with other MailChimp plugins (Gravity Forms etc.)
|
938 |
+
* Enhancement: Removed the WYSIWYG editor from the options page. This caused issues for some users who were unable to validate the MailChimp API key.
|
939 |
+
* Enhancement: Added a new setting to toggle the sending of the MailChimp welcome email. Users can now disable the email all together, on a list by list basis. (checked = disabled)
|
940 |
+
* Enhancement: Prevented users from being able to update the 'EMAIL' merge variable. Added a notification with instruction on what filter to use.
|
941 |
+
* Enhancement: Replaced all instances of the old class name (wpyksMCMailChimp API) with the appropriate MailChimp class (Mailchimp)
|
942 |
+
* Enhancement: Stripped slashes and properly escaped interest group labels
|
943 |
+
|
944 |
+
|
945 |
+
= 5.3.3 - February 26th, 2015 =
|
946 |
+
* Enhancement: Added a new filter to alter field labels. Very helpful when you want to alter the default 'Email Address' field label to something else. (`yikes_mc_field_label`) (see 'filters' section in 'Other Notes')
|
947 |
+
|
948 |
+
= 5.3.2 - February 17th, 2015 =
|
949 |
+
* Fixed: Patched the error displayed below the opt-in forms when `display_yikes_mc_form_messages` is not defined.
|
950 |
+
|
951 |
+
= 5.3.1 - January 13th, 2014 =
|
952 |
+
* Enhancement: Added new filter to allow users to change which role has access to the administration pages ( `yks-mailchimp-user-role` ) ( check readme for example )
|
953 |
+
|
954 |
+
= 5.3 - January 11th, 2014 =
|
955 |
+
* Enhancement: Added ability to move the success + error messages above or below the form based on a defined constant ( `display_yikes_mc_form_messages` [options: before/after] )
|
956 |
+
* Enhancement: Added new settings and the ability to show/hide * = required field , from the top of the forms, via the settings page
|
957 |
+
* Enhancement: Fixed incorrect error 'click here to update your profile' shown on front end on all errors
|
958 |
+
|
959 |
+
= 5.2 - December 10th, 2014 =
|
960 |
+
* New Feature: Added ability to add, edit or delete form fields directly from the WordPress dashboard
|
961 |
+
* New Feature: Added ability to add, edit or delete interest groups directly from the WordPress dashboard
|
962 |
+
* New Feature: Add "Update" link to forms when a user has previously subscribed
|
963 |
+
* New Feature: Added 'default' option to text fields ( with custom pre-defined tags : {post_id} , {post_title} , {page_url} , {blog_name} , {user_logged_in} with the ability to define your own! )
|
964 |
+
* New Feature: Added the ability to adjust required state, visibility state, merge tag and more
|
965 |
+
* New Feature: Added the ability to toggle between ssl_verifypeer true/false
|
966 |
+
* New Feature: Added an error log to help users diagnose errors happening within the plugin (and updated advanced debugging) - found on the debug options of the settings page
|
967 |
+
* Enhancement: Remove JavaScript dependency to populate place holder values
|
968 |
+
* Enhancement: Replaced CAPTCHA with the all new reCAPTCHA API from Google
|
969 |
+
* Enhancement: Introduced all new filters ( check documentation for examples )
|
970 |
+
* Enhancement: Un-checking 'visibility' now hides the input field (instead of not generating it at all)
|
971 |
+
* Enhancement: Re-defined YKSEME_PATH for users who have the plugins folder outside of wp-content
|
972 |
+
* Enhancement: Added new classes to labels and input fields on the front end forms ( new classes yks-mc-label-field-label , yks-mc-form-row-field-label , yks-mc-input-field-row-field-label , yks-mc-input-field-label )
|
973 |
+
* Bug Fix: Re-sorting fields that had a stored custom class name didn't store properly
|
974 |
+
* Bug Fix: Wrapped bundled template text in filters
|
975 |
+
* Bug Fix: Repaired some broken filters (get_form_data_before_send)
|
976 |
+
* Bug Fix: Fixed labels on 'Manage List Forms' page and added field names to titles
|
977 |
+
* Bug Fix: Fixed path to check box images on 'Clean Blue' bundled templates
|
978 |
+
* Bug Fix: Fixed empty MailChimp API key from outputting any string (confused some users)
|
979 |
+
* Other: Split main class file into multiple included files (help organize the main class file (sub-files located in /lib/inc/)
|
980 |
+
* Other: Began to build up a [Wiki](https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/wiki) on Github , for plug in installation/usage instructions
|
981 |
+
* Other: Altered single/double opt-in strings inside shortcode_form.php ([reference thread](https://wordpress.org/support/topic/code-mangling-on-script-use-in-messageserror-handling))
|
982 |
+
* Other: Removed 'Interest Group Label' option, as users can now update the name from within the plugin
|
983 |
+
|
984 |
+
= 5.1.1 - November 5, 2014 =
|
985 |
+
Fix: repair 'Opt In' default list drop down on options page
|
986 |
+
Fix: repair errors being thrown when a commenter is added to a list
|
987 |
+
|
988 |
+
= 5.1.0.1 - November 4, 2014 =
|
989 |
+
|
990 |
+
Removed the update profile info link, some users brought up security concerns.
|
991 |
+
Fixed missing argument when using table display formatting.
|
992 |
+
|
993 |
+
= 5.1 - November 3, 2014 =
|
994 |
+
|
995 |
+
We have added brand new functionality, allowing users to easily customize forms on the fly, through a familiar UI as well as a templating framework to allow users to design and implement their own custom forms. A minor security bug was patched in this release as well. We fixed an issue with the API key check running on each page load, and added a few new filters to allow users to alter text.
|
996 |
+
|
997 |
+
= 5.0.9 - October 3rd, 2014 =
|
998 |
+
|
999 |
+
**Fixes**
|
1000 |
+
|
1001 |
+
* Added autocomplete="false" to API input field
|
1002 |
+
* Added event listener to form submission (forms can now be placed in modals/slideout menus)
|
1003 |
+
|
1004 |
+
= 5.0.8 - September 23, 2014 =
|
1005 |
+
|
1006 |
+
**Fixes**
|
1007 |
+
|
1008 |
+
* Band-aid fix for the -1 response returned from ajax.php
|
1009 |
+
|
1010 |
+
= 5.0.7 - September 19, 2014 =
|
1011 |
+
|
1012 |
+
**Fixes**
|
1013 |
+
|
1014 |
+
* Security Vulnerability patched - props @g0blinResearch for privately disclosing the issue
|
1015 |
+
|
1016 |
+
= 5.0.6 - August 22, 2014 =
|
1017 |
+
|
1018 |
+
**Fixes**
|
1019 |
+
|
1020 |
+
* fix bug with nonce security check when using table 'Preferred Form Layout' setting
|
1021 |
+
|
1022 |
+
= 5.0.5 - August 21, 2014 =
|
1023 |
+
|
1024 |
+
**Fixes**
|
1025 |
+
|
1026 |
+
- added `stripslashes()` to the following settings fields :
|
1027 |
+
- Single Opt-in Confirmation Message
|
1028 |
+
- Double Opt-in Confirmation Message
|
1029 |
+
- Interest Group Label
|
1030 |
+
- Opt-in Checkbox Text
|
1031 |
+
|
1032 |
+
**Updates**
|
1033 |
+
|
1034 |
+
- Updated readme FAQ section
|
1035 |
+
|
1036 |
+
= 5.0.4 - August 6, 2014 =
|
1037 |
+
* Update SSL conditional in main plugin file
|
1038 |
+
* Added mcrypt module check, for MailChimp API encryption
|
1039 |
+
* Conditionally loaded scripts and styles in admin ( prevent conflicts )
|
1040 |
+
* Included NONCE security checks on form submissions ( helps prevent CSRF and other attacks )
|
1041 |
+
* Added proper update task function to add missing settings to the options page ( prevents undefined variables for new settings )
|
1042 |
+
* Added missing styles to post page ( added missing icon to tinyMCE button )
|
1043 |
+
* Added missing styles to widget page
|
1044 |
+
* Adjusted Chimp Chatter activity time formatting to return correct time based on user time zone
|
1045 |
+
* New Feature: Real time updates to Account Activity ( utilizing the heartbeat MailChimp API )
|
1046 |
+
* New Feature: Added account activity widget to dashboard ( with live updates using heartbeat MailChimp API )
|
1047 |
+
* Added screenshot of admin dashboard account activity widget
|
1048 |
+
|
1049 |
+
= 4.5 =
|
1050 |
+
* Added reCAPTCHA support to prevent bots and spammers from submitting forms
|
1051 |
+
* Split settings page into three separate sections
|
1052 |
+
* Removed Jetpack sharing icons from appearing in the success messages (removed sharedaddy filter)
|
1053 |
+
* Updated translation files with new strings
|
1054 |
+
* Update existing screen shots and add new screen shot
|
1055 |
+
* Update FAQ
|
1056 |
+
* Added "loaded server modules" to the debug page, to better aid in support requests
|
1057 |
+
|
1058 |
+
= 3.0 =
|
1059 |
+
* Update MailChimp API to v2.0
|
1060 |
+
* Added API Key Validation Check
|
1061 |
+
|
1062 |
+
= 2.2.0 =
|
1063 |
+
* Changed name of plugin to Easy Forms
|
1064 |
+
* Added support for multiples of the same list
|
1065 |
+
* Bug fixes
|
1066 |
+
|
1067 |
+
= 2.1.0 =
|
1068 |
+
* Added support for multiples of the same list
|
1069 |
+
* Bug fixes
|
1070 |
+
|
1071 |
+
= 2.0.0 =
|
1072 |
+
* Supports custom merge vars now
|
1073 |
+
* Allows import from MailChimp
|
1074 |
+
* Allows Table or Div output
|
1075 |
+
|
1076 |
+
= 1.3.1 =
|
1077 |
+
* Fixed form not submitting to MailChimp for anonymous users bug
|
1078 |
+
|
1079 |
+
= 1.3.0 =
|
1080 |
+
* Custom merge vars allows more customized field configuration
|
1081 |
+
|
1082 |
+
= 1.2.0 =
|
1083 |
+
* Removed required from First Name and Last Name fields
|
1084 |
+
* Added update routines for future versions
|
1085 |
+
|
1086 |
+
= 1.1.0 =
|
1087 |
+
* Changed the list logic and added a notice for the MERGE VAR naming schema
|
1088 |
+
|
1089 |
+
= 1.0.1 =
|
1090 |
+
* Changed CSS paths from Absolute to Relative
|
1091 |
+
|
1092 |
+
= 1.0.0 =
|
1093 |
+
* Initial Release
|
class-map.php
CHANGED
@@ -8,11 +8,8 @@ return array (
|
|
8 |
'yikes_inc_easy_mailchimp_extender_helper' => 'admin/partials/helpers/init.php',
|
9 |
'yikes_inc_easy_mailchimp_api_account' => 'includes/api/class-yikes-inc-eacy-mailchimp-api-account.php',
|
10 |
'yikes_inc_easy_mailchimp_api_abstract_items' => 'includes/api/class-yikes-inc-easy-mailchimp-api-abstract-items.php',
|
11 |
-
'yikes_inc_easy_mailchimp_api_account_details' => 'includes/api/class-yikes-inc-easy-mailchimp-api-account-details.php',
|
12 |
-
'yikes_inc_easy_mailchimp_api_chimp_chatter' => 'includes/api/class-yikes-inc-easy-mailchimp-api-chimp-chatter.php',
|
13 |
'yikes_inc_easy_mailchimp_api_lists' => 'includes/api/class-yikes-inc-easy-mailchimp-api-lists.php',
|
14 |
'yikes_inc_easy_mailchimp_api_manager' => 'includes/api/class-yikes-inc-easy-mailchimp-api-manager.php',
|
15 |
-
'yikes_inc_easy_mailchimp_api_profile' => 'includes/api/class-yikes-inc-easy-mailchimp-api-profile.php',
|
16 |
'yikes_inc_easy_mailchimp_api' => 'includes/api/class-yikes-inc-easy-mailchimp-api.php',
|
17 |
'yikes_inc_easy_mailchimp_extender_activator' => 'includes/class-yikes-inc-easy-mailchimp-extender-activator.php',
|
18 |
'yikes_inc_easy_mailchimp_extender_form_interface' => 'includes/class-yikes-inc-easy-mailchimp-extender-form-interface.php',
|
8 |
'yikes_inc_easy_mailchimp_extender_helper' => 'admin/partials/helpers/init.php',
|
9 |
'yikes_inc_easy_mailchimp_api_account' => 'includes/api/class-yikes-inc-eacy-mailchimp-api-account.php',
|
10 |
'yikes_inc_easy_mailchimp_api_abstract_items' => 'includes/api/class-yikes-inc-easy-mailchimp-api-abstract-items.php',
|
|
|
|
|
11 |
'yikes_inc_easy_mailchimp_api_lists' => 'includes/api/class-yikes-inc-easy-mailchimp-api-lists.php',
|
12 |
'yikes_inc_easy_mailchimp_api_manager' => 'includes/api/class-yikes-inc-easy-mailchimp-api-manager.php',
|
|
|
13 |
'yikes_inc_easy_mailchimp_api' => 'includes/api/class-yikes-inc-easy-mailchimp-api.php',
|
14 |
'yikes_inc_easy_mailchimp_extender_activator' => 'includes/class-yikes-inc-easy-mailchimp-extender-activator.php',
|
15 |
'yikes_inc_easy_mailchimp_extender_form_interface' => 'includes/class-yikes-inc-easy-mailchimp-extender-form-interface.php',
|
includes/api/class-yikes-inc-easy-mailchimp-api-account-details.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Get Account details.
|
5 |
-
*
|
6 |
-
* This uses the V2 API.
|
7 |
-
*
|
8 |
-
* @deprecated
|
9 |
-
*
|
10 |
-
* @author Jeremy Pry
|
11 |
-
* @since 6.3.0
|
12 |
-
*/
|
13 |
-
class Yikes_Inc_Easy_MailChimp_API_Account_Details extends Yikes_Inc_Easy_MailChimp_API_Abstract_Items {
|
14 |
-
|
15 |
-
/**
|
16 |
-
* The base API path.
|
17 |
-
*
|
18 |
-
* @since 6.3.0
|
19 |
-
* @var string
|
20 |
-
*/
|
21 |
-
protected $base_path = 'helper/account-details.json';
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Whether a V2 API connection is required.
|
25 |
-
*
|
26 |
-
* @since 6.3.0
|
27 |
-
* @var bool
|
28 |
-
*/
|
29 |
-
protected $requires_v2 = true;
|
30 |
-
|
31 |
-
/**
|
32 |
-
* Get the account details.
|
33 |
-
*
|
34 |
-
* This is meant to use the V2 API.
|
35 |
-
*
|
36 |
-
* @author Jeremy Pry
|
37 |
-
* @since 6.3.0
|
38 |
-
*
|
39 |
-
* @param bool $use_transient Whether to use a transient in the response.
|
40 |
-
*
|
41 |
-
* @return array|WP_Error
|
42 |
-
*/
|
43 |
-
public function account_details( $use_transient = true ) {
|
44 |
-
$transient_key = 'yikes_eme_account_details';
|
45 |
-
|
46 |
-
return $this->post_base_path( $transient_key, $use_transient );
|
47 |
-
}
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/api/class-yikes-inc-easy-mailchimp-api-chimp-chatter.php
DELETED
@@ -1,46 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Chimp Chatter handler.
|
5 |
-
*
|
6 |
-
* Note that this expects a V2 API object.
|
7 |
-
*
|
8 |
-
* @deprecated
|
9 |
-
*
|
10 |
-
* @author Jeremy Pry
|
11 |
-
* @since 6.3.0
|
12 |
-
*/
|
13 |
-
class Yikes_Inc_Easy_MailChimp_API_Chimp_Chatter extends Yikes_Inc_Easy_MailChimp_API_Abstract_Items {
|
14 |
-
|
15 |
-
/**
|
16 |
-
* The base API path.
|
17 |
-
*
|
18 |
-
* @since 6.3.0
|
19 |
-
* @var string
|
20 |
-
*/
|
21 |
-
protected $base_path = 'helper/chimp-chatter.json';
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Whether a V2 API connection is required.
|
25 |
-
*
|
26 |
-
* @since 6.3.0
|
27 |
-
* @var bool
|
28 |
-
*/
|
29 |
-
protected $requires_v2 = true;
|
30 |
-
|
31 |
-
/**
|
32 |
-
* Retrieve the Chimp Chatter
|
33 |
-
*
|
34 |
-
* @author Jeremy Pry
|
35 |
-
* @since 6.3.0
|
36 |
-
*
|
37 |
-
* @param bool $use_transient Whether to use a transient in the response.
|
38 |
-
*
|
39 |
-
* @return array|WP_Error
|
40 |
-
*/
|
41 |
-
public function chimp_chatter( $use_transient = true ) {
|
42 |
-
$transient_key = 'yikes_eme_chimp_chatter';
|
43 |
-
|
44 |
-
return $this->post_base_path( $transient_key, $use_transient );
|
45 |
-
}
|
46 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/api/class-yikes-inc-easy-mailchimp-api-manager.php
CHANGED
@@ -10,14 +10,6 @@
|
|
10 |
*/
|
11 |
class Yikes_Inc_Easy_MailChimp_API_Manager {
|
12 |
|
13 |
-
/**
|
14 |
-
* The account details instance.
|
15 |
-
*
|
16 |
-
* @since 6.3.0
|
17 |
-
* @var Yikes_Inc_Easy_MailChimp_API_Account_Details
|
18 |
-
*/
|
19 |
-
protected $account_details = null;
|
20 |
-
|
21 |
/**
|
22 |
* The account manager instance.
|
23 |
*
|
@@ -42,14 +34,6 @@ class Yikes_Inc_Easy_MailChimp_API_Manager {
|
|
42 |
*/
|
43 |
protected $api_key = '';
|
44 |
|
45 |
-
/**
|
46 |
-
* Yikes_Inc_Easy_MailChimp_API_Chimp_Chatter instance.
|
47 |
-
*
|
48 |
-
* @since 6.3.0
|
49 |
-
* @var Yikes_Inc_Easy_MailChimp_API_Chimp_Chatter
|
50 |
-
*/
|
51 |
-
protected $chimp_chatter = null;
|
52 |
-
|
53 |
/**
|
54 |
* The Datacenter for the MailChimp account.
|
55 |
*
|
@@ -74,14 +58,6 @@ class Yikes_Inc_Easy_MailChimp_API_Manager {
|
|
74 |
*/
|
75 |
protected $list_manager = null;
|
76 |
|
77 |
-
/**
|
78 |
-
* Yikes_Inc_Easy_MailChimp_API_Profile instance.
|
79 |
-
*
|
80 |
-
* @since 6.3.0
|
81 |
-
* @var Yikes_Inc_Easy_MailChimp_API_Profile
|
82 |
-
*/
|
83 |
-
protected $profile = null;
|
84 |
-
|
85 |
/**
|
86 |
* Yikes_Inc_Easy_MailChimp_API_Manager constructor.
|
87 |
*
|
@@ -205,51 +181,4 @@ class Yikes_Inc_Easy_MailChimp_API_Manager {
|
|
205 |
|
206 |
return $this->account_manager;
|
207 |
}
|
208 |
-
|
209 |
-
/**
|
210 |
-
* Get the chimp chatter instance.
|
211 |
-
*
|
212 |
-
* @author Jeremy Pry
|
213 |
-
* @since 6.3.0
|
214 |
-
* @return Yikes_Inc_Easy_MailChimp_API_Chimp_Chatter
|
215 |
-
*/
|
216 |
-
public function get_chimp_chatter() {
|
217 |
-
if ( null === $this->chimp_chatter ) {
|
218 |
-
$this->chimp_chatter = new Yikes_Inc_Easy_MailChimp_API_Chimp_Chatter( $this->get_api( '2.0' ) );
|
219 |
-
}
|
220 |
-
|
221 |
-
return $this->chimp_chatter;
|
222 |
-
}
|
223 |
-
|
224 |
-
/**
|
225 |
-
* Get the User Profile instance.
|
226 |
-
*
|
227 |
-
* This uses the V2 API.
|
228 |
-
*
|
229 |
-
* @author Jeremy Pry
|
230 |
-
* @since 6.3.0
|
231 |
-
* @return Yikes_Inc_Easy_MailChimp_API_Profile
|
232 |
-
*/
|
233 |
-
public function get_profile_handler() {
|
234 |
-
if ( null === $this->profile ) {
|
235 |
-
$this->profile = new Yikes_Inc_Easy_MailChimp_API_Profile( $this->get_api( '2.0' ) );
|
236 |
-
}
|
237 |
-
|
238 |
-
return $this->profile;
|
239 |
-
}
|
240 |
-
|
241 |
-
/**
|
242 |
-
* Get the Account Details instance.
|
243 |
-
*
|
244 |
-
* @author Jeremy Pry
|
245 |
-
* @since 6.3.0
|
246 |
-
* @return Yikes_Inc_Easy_MailChimp_API_Account_Details
|
247 |
-
*/
|
248 |
-
public function get_account_details_handler() {
|
249 |
-
if ( null === $this->account_details ) {
|
250 |
-
$this->account_details = new Yikes_Inc_Easy_MailChimp_API_Account_Details( $this->get_api( '2.0' ) );
|
251 |
-
}
|
252 |
-
|
253 |
-
return $this->account_details;
|
254 |
-
}
|
255 |
}
|
10 |
*/
|
11 |
class Yikes_Inc_Easy_MailChimp_API_Manager {
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
/**
|
14 |
* The account manager instance.
|
15 |
*
|
34 |
*/
|
35 |
protected $api_key = '';
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
/**
|
38 |
* The Datacenter for the MailChimp account.
|
39 |
*
|
58 |
*/
|
59 |
protected $list_manager = null;
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
/**
|
62 |
* Yikes_Inc_Easy_MailChimp_API_Manager constructor.
|
63 |
*
|
181 |
|
182 |
return $this->account_manager;
|
183 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
}
|
includes/api/class-yikes-inc-easy-mailchimp-api-profile.php
DELETED
@@ -1,46 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* User Profile handler.
|
5 |
-
*
|
6 |
-
* Note: This needs the V2 endpoint.
|
7 |
-
*
|
8 |
-
* @deprecated
|
9 |
-
*
|
10 |
-
* @author Jeremy Pry
|
11 |
-
* @since 6.3.0
|
12 |
-
*/
|
13 |
-
class Yikes_Inc_Easy_MailChimp_API_Profile extends Yikes_Inc_Easy_MailChimp_API_Abstract_Items {
|
14 |
-
|
15 |
-
/**
|
16 |
-
* The base API path.
|
17 |
-
*
|
18 |
-
* @since 6.3.0
|
19 |
-
* @var string
|
20 |
-
*/
|
21 |
-
protected $base_path = 'users/profile.json';
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Whether a V2 API connection is required.
|
25 |
-
*
|
26 |
-
* @since 6.3.0
|
27 |
-
* @var bool
|
28 |
-
*/
|
29 |
-
protected $requires_v2 = true;
|
30 |
-
|
31 |
-
/**
|
32 |
-
* Get profile data from the API.
|
33 |
-
*
|
34 |
-
* @author Jeremy Pry
|
35 |
-
* @since 6.3.0
|
36 |
-
*
|
37 |
-
* @param bool $use_transients Whether to use a transient in the response.
|
38 |
-
*
|
39 |
-
* @return array|WP_Error
|
40 |
-
*/
|
41 |
-
public function get_profile( $use_transients = true ) {
|
42 |
-
$transient_key = 'yikes_eme_user_profile';
|
43 |
-
|
44 |
-
return $this->post_base_path( $transient_key, $use_transients );
|
45 |
-
}
|
46 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/class-yikes-inc-easy-mailchimp-extender.php
CHANGED
@@ -108,6 +108,10 @@ class Yikes_Inc_Easy_Mailchimp_Extender {
|
|
108 |
* side of the site.
|
109 |
*/
|
110 |
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-yikes-inc-easy-mailchimp-extender-public.php';
|
|
|
|
|
|
|
|
|
111 |
$this->loader = new Yikes_Inc_Easy_Mailchimp_Extender_Loader();
|
112 |
}
|
113 |
/**
|
108 |
* side of the site.
|
109 |
*/
|
110 |
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-yikes-inc-easy-mailchimp-extender-public.php';
|
111 |
+
/**
|
112 |
+
* The class responsible for orchestrating the actions and filters for the Gutenberg blocks
|
113 |
+
*/
|
114 |
+
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'blocks/blocks.php';
|
115 |
$this->loader = new Yikes_Inc_Easy_Mailchimp_Extender_Loader();
|
116 |
}
|
117 |
/**
|
includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php
CHANGED
@@ -34,6 +34,20 @@ class Yikes_Inc_Easy_Mailchimp_Error_Logging {
|
|
34 |
*/
|
35 |
protected $is_debugging;
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
/**
|
38 |
* Define the core functionality of the plugin.
|
39 |
*
|
@@ -44,7 +58,13 @@ class Yikes_Inc_Easy_Mailchimp_Error_Logging {
|
|
44 |
* @since 1.0.0
|
45 |
*/
|
46 |
public function __construct() {
|
47 |
-
$this->is_debugging
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
}
|
49 |
|
50 |
/**
|
@@ -65,6 +85,30 @@ class Yikes_Inc_Easy_Mailchimp_Error_Logging {
|
|
65 |
|
66 |
$this->yikes_easy_mailchimp_write_to_error_log( $returned_error, $error_type, $page );
|
67 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
|
69 |
|
70 |
/* this will be used to write errors to our log
|
@@ -85,16 +129,13 @@ class Yikes_Inc_Easy_Mailchimp_Error_Logging {
|
|
85 |
return;
|
86 |
}
|
87 |
|
88 |
-
$contents = file_get_contents(
|
89 |
|
90 |
// if we pass in a custom page, don't set things up
|
91 |
-
if( empty( $page ) ) {
|
|
|
92 |
// get the current page, admin or front end?
|
93 |
-
|
94 |
-
$page = __( 'Admin', 'yikes-inc-easy-mailchimp-extender' );
|
95 |
-
} else {
|
96 |
-
$page = __( 'Front End', 'yikes-inc-easy-mailchimp-extender' );
|
97 |
-
}
|
98 |
}
|
99 |
|
100 |
ob_start();
|
@@ -106,19 +147,19 @@ class Yikes_Inc_Easy_Mailchimp_Error_Logging {
|
|
106 |
</label>
|
107 |
</td>
|
108 |
<td>
|
109 |
-
<?php _e( 'Page:'
|
|
|
|
|
110 |
</td>
|
111 |
</tr>
|
112 |
<?php
|
113 |
$new_contents = ob_get_clean() . $contents;
|
114 |
|
115 |
// file put contents $returned error + other data
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
);
|
121 |
-
}
|
122 |
}
|
123 |
|
124 |
/*
|
@@ -128,11 +169,12 @@ class Yikes_Inc_Easy_Mailchimp_Error_Logging {
|
|
128 |
* @since 5.6
|
129 |
*/
|
130 |
public function yikes_easy_mailchimp_generate_error_log_table() {
|
|
|
131 |
// ensure file_get_contents exists
|
132 |
if( function_exists( 'file_get_contents' ) ) {
|
133 |
// confirm that our file exists
|
134 |
-
if( file_exists(
|
135 |
-
$error_log_contents = file_get_contents(
|
136 |
if( $error_log_contents === FALSE ) {
|
137 |
return _e( 'File get contents not available' , 'yikes-inc-easy-mailchimp-extender' );
|
138 |
}
|
34 |
*/
|
35 |
protected $is_debugging;
|
36 |
|
37 |
+
/**
|
38 |
+
* The path to the error log file.
|
39 |
+
*
|
40 |
+
* @var string
|
41 |
+
*/
|
42 |
+
public $error_log_file_path;
|
43 |
+
|
44 |
+
/**
|
45 |
+
* The path to the error log folder.
|
46 |
+
*
|
47 |
+
* @var string
|
48 |
+
*/
|
49 |
+
protected $error_log_folder_path;
|
50 |
+
|
51 |
/**
|
52 |
* Define the core functionality of the plugin.
|
53 |
*
|
58 |
* @since 1.0.0
|
59 |
*/
|
60 |
public function __construct() {
|
61 |
+
$this->is_debugging = WP_DEBUG || get_option( 'yikes-mailchimp-debug-status', '' ) == '1';
|
62 |
+
$this->error_log_file_path = $this->get_error_log_file_path();
|
63 |
+
$this->error_log_folder_path = $this->get_error_log_folder();
|
64 |
+
|
65 |
+
// Create our error log folder and file
|
66 |
+
$this->create_error_log_folder();
|
67 |
+
$this->create_error_log_file();
|
68 |
}
|
69 |
|
70 |
/**
|
85 |
|
86 |
$this->yikes_easy_mailchimp_write_to_error_log( $returned_error, $error_type, $page );
|
87 |
}
|
88 |
+
|
89 |
+
public function create_error_log_folder() {
|
90 |
+
|
91 |
+
// If our directory doesn't exist, make it.
|
92 |
+
if ( ! file_exists( $this->get_error_log_folder() ) ) {
|
93 |
+
mkdir( $this->get_error_log_folder() );
|
94 |
+
}
|
95 |
+
}
|
96 |
+
|
97 |
+
public function create_error_log_file() {
|
98 |
+
|
99 |
+
// If our error log doesn't exist, make it.
|
100 |
+
if ( ! file_exists( $this->error_log_file_path ) ) {
|
101 |
+
file_put_contents( $this->error_log_file_path, '' );
|
102 |
+
}
|
103 |
+
}
|
104 |
+
|
105 |
+
private function get_error_log_folder() {
|
106 |
+
return WP_CONTENT_DIR . '/uploads/yikes-log/';
|
107 |
+
}
|
108 |
+
|
109 |
+
private function get_error_log_file_path() {
|
110 |
+
return WP_CONTENT_DIR . '/uploads/yikes-log/yikes-easy-mailchimp-error-log.txt';
|
111 |
+
}
|
112 |
|
113 |
|
114 |
/* this will be used to write errors to our log
|
129 |
return;
|
130 |
}
|
131 |
|
132 |
+
$contents = file_get_contents( $this->error_log_file_path, true );
|
133 |
|
134 |
// if we pass in a custom page, don't set things up
|
135 |
+
if ( empty( $page ) ) {
|
136 |
+
|
137 |
// get the current page, admin or front end?
|
138 |
+
$page = is_admin() ? __( 'Admin', 'yikes-inc-easy-mailchimp-extender' ) : __( 'Front End', 'yikes-inc-easy-mailchimp-extender' );
|
|
|
|
|
|
|
|
|
139 |
}
|
140 |
|
141 |
ob_start();
|
147 |
</label>
|
148 |
</td>
|
149 |
<td>
|
150 |
+
<?php _e( 'Page:', 'yikes-inc-easy-mailchimp-extender' ); echo ' ' . $page; ?> ||
|
151 |
+
<?php _e( 'Type:', 'yikes-inc-easy-mailchimp-extender' ); echo ' ' . $error_type; ?> ||
|
152 |
+
<?php _e( 'Time:', 'yikes-inc-easy-mailchimp-extender' ); echo ' ' . date( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), current_time( 'timestamp' ) ); ?>
|
153 |
</td>
|
154 |
</tr>
|
155 |
<?php
|
156 |
$new_contents = ob_get_clean() . $contents;
|
157 |
|
158 |
// file put contents $returned error + other data
|
159 |
+
file_put_contents(
|
160 |
+
$this->error_log_file_path,
|
161 |
+
$new_contents
|
162 |
+
);
|
|
|
|
|
163 |
}
|
164 |
|
165 |
/*
|
169 |
* @since 5.6
|
170 |
*/
|
171 |
public function yikes_easy_mailchimp_generate_error_log_table() {
|
172 |
+
|
173 |
// ensure file_get_contents exists
|
174 |
if( function_exists( 'file_get_contents' ) ) {
|
175 |
// confirm that our file exists
|
176 |
+
if( file_exists( $this->error_log_file_path ) ) {
|
177 |
+
$error_log_contents = file_get_contents( $this->error_log_file_path, true );
|
178 |
if( $error_log_contents === FALSE ) {
|
179 |
return _e( 'File get contents not available' , 'yikes-inc-easy-mailchimp-extender' );
|
180 |
}
|
includes/third-party-integrations/visual-composer/visual-composer.php
CHANGED
@@ -13,8 +13,12 @@ class YIKES_MailChimp_Visual_Composer_Extension {
|
|
13 |
* @since 6.0.3
|
14 |
*/
|
15 |
function __construct() {
|
|
|
16 |
add_action( 'admin_init', array( $this, 'extend_visual_composer' ) );
|
17 |
-
|
|
|
|
|
|
|
18 |
}
|
19 |
|
20 |
/**
|
@@ -23,6 +27,11 @@ class YIKES_MailChimp_Visual_Composer_Extension {
|
|
23 |
* @since 6.0.3
|
24 |
*/
|
25 |
public function extend_visual_composer() {
|
|
|
|
|
|
|
|
|
|
|
26 |
vc_map( array(
|
27 |
'name' => __( 'Easy Forms for MailChimp', 'yikes-inc-easy-mailchimp-extender' ),
|
28 |
'base' => 'yikes-mailchimp',
|
13 |
* @since 6.0.3
|
14 |
*/
|
15 |
function __construct() {
|
16 |
+
|
17 |
add_action( 'admin_init', array( $this, 'extend_visual_composer' ) );
|
18 |
+
|
19 |
+
if ( function_exists( 'vc_add_shortcode_param' ) ) {
|
20 |
+
vc_add_shortcode_param( 'yikes_mailchimp_logo', array( $this, 'yikes_mailchimp_logo_vc_section' ) );
|
21 |
+
}
|
22 |
}
|
23 |
|
24 |
/**
|
27 |
* @since 6.0.3
|
28 |
*/
|
29 |
public function extend_visual_composer() {
|
30 |
+
|
31 |
+
if ( ! function_exists( 'vc_map' ) ) {
|
32 |
+
return;
|
33 |
+
}
|
34 |
+
|
35 |
vc_map( array(
|
36 |
'name' => __( 'Easy Forms for MailChimp', 'yikes-inc-easy-mailchimp-extender' ),
|
37 |
'base' => 'yikes-mailchimp',
|
languages/yikes-inc-easy-mailchimp-extender.pot
CHANGED
@@ -6,9 +6,9 @@
|
|
6 |
#, fuzzy
|
7 |
msgid ""
|
8 |
msgstr ""
|
9 |
-
"Project-Id-Version: yikes-inc-easy-mailchimp-extender 6.
|
10 |
"Report-Msgid-Bugs-To: \n"
|
11 |
-
"POT-Creation-Date:
|
12 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
@@ -18,59 +18,59 @@ msgstr ""
|
|
18 |
"Content-Transfer-Encoding: 8bit\n"
|
19 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
20 |
|
21 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
22 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
23 |
msgid "Settings"
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
27 |
msgid "More plugins by YIKES, Inc."
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
31 |
msgid ""
|
32 |
"Disclaimer: <strong>Easy Forms for MailChimp</strong> is in no way endorsed, "
|
33 |
"affiliated or backed by MailChimp, or its parent company Rocket Science "
|
34 |
"Group."
|
35 |
msgstr ""
|
36 |
|
37 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
38 |
msgid "Thanks :)"
|
39 |
msgstr ""
|
40 |
|
41 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
42 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
43 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
44 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
45 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
46 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
47 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
48 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
49 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
50 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
51 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
52 |
msgid ""
|
53 |
"We've run into an error. The security check didn't pass. Please try again."
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
57 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
58 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
59 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
60 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
61 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
62 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
63 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
64 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
65 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
66 |
msgid "Failed nonce validation"
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
70 |
msgid "We encountered an error. Please contact the YIKES Inc. support team."
|
71 |
msgstr ""
|
72 |
|
73 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
74 |
#, php-format
|
75 |
msgid ""
|
76 |
"It looks like you've been using %1$s for 2 weeks now. We hope you're "
|
@@ -81,220 +81,209 @@ msgid ""
|
|
81 |
"really awesome features and premium support."
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
85 |
msgid "Leave A Review"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
89 |
msgid "View Addons"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
93 |
msgid "Dismiss"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
97 |
msgid ""
|
98 |
"Easy Forms for MailChimp requires a minimum of PHP 5.3. The plugin will not "
|
99 |
"function properly until you update. Please reach out to your host provider "
|
100 |
"for assistance."
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
104 |
-
#: includes/third-party-integrations/visual-composer/visual-composer.php:
|
105 |
msgid "Please Import Some MailChimp Lists"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
109 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
110 |
-
#: includes/third-party-integrations/visual-composer/visual-composer.php:
|
111 |
-
#: includes/third-party-integrations/visual-composer/visual-composer.php:
|
112 |
msgid "Easy Forms for MailChimp"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
116 |
-
#: includes/third-party-integrations/visual-composer/visual-composer.php:
|
117 |
msgid "MailChimp Opt-In Form"
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
121 |
-
#: includes/third-party-integrations/visual-composer/visual-composer.php:
|
122 |
msgid "Display Form Title"
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
126 |
-
#: includes/third-party-integrations/visual-composer/visual-composer.php:
|
127 |
msgid "Display Form Description"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
131 |
msgid "Custom Submit Button Text"
|
132 |
msgstr ""
|
133 |
|
134 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
135 |
msgid "If left empty, the button will use the default submit button text ."
|
136 |
msgstr ""
|
137 |
|
138 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
139 |
#, php-format
|
140 |
msgid ""
|
141 |
"You need to <a href=%s title=\"%s\">create a form</a> before you can add one "
|
142 |
"to a page or post."
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
146 |
-
#: admin/partials/front-end-widgets/front-end-widget-form.php:
|
147 |
msgid "Create a form"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
151 |
msgid "Locating Interest Groups"
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
155 |
msgid ""
|
156 |
"No fields assigned to this form. Select some fields to add to this form from "
|
157 |
"the right hand column."
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
161 |
msgid ""
|
162 |
"Are you sure you want to delete all of the fields assigned to this form?"
|
163 |
msgstr ""
|
164 |
|
165 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
166 |
msgid "Done"
|
167 |
msgstr ""
|
168 |
|
169 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
170 |
msgid "Today"
|
171 |
msgstr ""
|
172 |
|
173 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
174 |
msgid "Show a different month"
|
175 |
msgstr ""
|
176 |
|
177 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
178 |
msgid ""
|
179 |
"Error: The start date and time cannot occur after the end date and time. "
|
180 |
"Chosen date reverted to previous selection."
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
184 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
185 |
msgid "Click to edit the label"
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
189 |
msgid "Click to cancel editing. Your changes will not be saved."
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
193 |
msgid "Easy Forms"
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
197 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
198 |
msgid "Opt-in Forms"
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
202 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
203 |
msgid "Mailing Lists"
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
207 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:956
|
208 |
-
msgid "Account"
|
209 |
-
msgstr ""
|
210 |
-
|
211 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:967
|
212 |
msgid "Settings."
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
216 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
217 |
#: admin/partials/menu/support.php:14
|
218 |
msgid "Support"
|
219 |
msgstr ""
|
220 |
|
221 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
222 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
223 |
#: admin/partials/menu/add-ons.php:12
|
224 |
-
#: admin/partials/welcome-page/welcome.php:21
|
225 |
msgid "Add-Ons"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
229 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
230 |
-
#: public/partials/shortcodes/process_form_shortcode.php:
|
231 |
msgid "Edit Form"
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
235 |
msgid "Us Easy Forms for MailChimp Upgrade Options Structure"
|
236 |
msgstr ""
|
237 |
|
238 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
239 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
240 |
-
|
241 |
-
msgstr ""
|
242 |
-
|
243 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1029
|
244 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1030
|
245 |
-
#: admin/partials/edit-form.php:718 admin/partials/view-user.php:119
|
246 |
msgid "View List"
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
250 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
251 |
msgid "View User"
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
255 |
msgid "API Connection"
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
259 |
#: admin/partials/menu/options-sections/general-settings.php:26
|
260 |
#: admin/partials/menu/options-sections/general-settings.php:28
|
261 |
msgid "MailChimp API Key"
|
262 |
msgstr ""
|
263 |
|
264 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
265 |
msgid "Select Checkboxes to Generate"
|
266 |
msgstr ""
|
267 |
|
268 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
269 |
msgid "Enter reCAPTCHA Site Key"
|
270 |
msgstr ""
|
271 |
|
272 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
273 |
msgid "Enter reCAPTCHA Secret Key"
|
274 |
msgstr ""
|
275 |
|
276 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
277 |
msgid "Enable ReCaptcha"
|
278 |
msgstr ""
|
279 |
|
280 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
281 |
#: admin/partials/menu/options-sections/debug-settings.php:16
|
282 |
msgid "Enable Debugging"
|
283 |
msgstr ""
|
284 |
|
285 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
286 |
msgid "Your API key appears to be invalid."
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
290 |
msgid "Connecting to MailChimp"
|
291 |
msgstr ""
|
292 |
|
293 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
294 |
msgid "Settings Page/General Settings"
|
295 |
msgstr ""
|
296 |
|
297 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
298 |
#, php-format
|
299 |
msgid ""
|
300 |
"The previously stored options for %s have been cleared from the database. "
|
@@ -304,12 +293,12 @@ msgid ""
|
|
304 |
"previously set-up."
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
308 |
#, php-format
|
309 |
msgid "It looks like you're upgrading from a previous version of %s."
|
310 |
msgstr ""
|
311 |
|
312 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
313 |
#, php-format
|
314 |
msgid ""
|
315 |
"In the newest version of %s, the options data structure has changed. We've "
|
@@ -318,175 +307,174 @@ msgid ""
|
|
318 |
"assign them to the same mailing list."
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
322 |
msgid ""
|
323 |
"Before you continue, it's strongly recommended you the perform the migration "
|
324 |
"to ensure the plugin continues to function properly."
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
328 |
msgid "It's also strongly recommended that you take a backup of your database."
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
332 |
msgid "Perform Migration"
|
333 |
msgstr ""
|
334 |
|
335 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
336 |
msgid "Dismiss Notice"
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
340 |
msgid "Additional Settings"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
344 |
#: admin/partials/menu/options-sections/general-settings.php:11
|
345 |
#: admin/partials/menu/options-sections/integration-settings.php:98
|
346 |
#: admin/partials/menu/options.php:37
|
347 |
msgid "General Settings"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
351 |
#: admin/partials/menu/options-sections/integration-settings.php:79
|
352 |
msgid "Integration Settings"
|
353 |
msgstr ""
|
354 |
|
355 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
356 |
#: public/partials/shortcodes/process_form_shortcode.php:60
|
357 |
#: public/partials/shortcodes/process_form_shortcode.php:63
|
358 |
msgid "ReCaptcha Settings"
|
359 |
msgstr ""
|
360 |
|
361 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
362 |
#: admin/partials/menu/options-sections/api-cache-settings.php:6
|
363 |
msgid "API Cache Settings"
|
364 |
msgstr ""
|
365 |
|
366 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
367 |
#: admin/partials/menu/options-sections/debug-settings.php:7
|
368 |
msgid "Debug Settings"
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
372 |
msgid "Import/Export"
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
376 |
msgid "Addon Settings"
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
380 |
msgid "Create a New Signup Form"
|
381 |
msgstr ""
|
382 |
|
383 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
384 |
msgid ""
|
385 |
"Give your form a name, select a MailChimp list to assign users to, then "
|
386 |
"click 'Create'."
|
387 |
msgstr ""
|
388 |
|
389 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
390 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
391 |
#: admin/partials/edit-form.php:157 admin/partials/menu/manage-forms.php:103
|
392 |
#: admin/partials/menu/manage-forms.php:118
|
393 |
msgid "Form Name"
|
394 |
msgstr ""
|
395 |
|
396 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
397 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
398 |
#: admin/partials/edit-form.php:163 admin/partials/menu/manage-forms.php:104
|
399 |
#: admin/partials/menu/manage-forms.php:119
|
400 |
msgid "Form Description"
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
404 |
-
#: admin/partials/edit-form.php:
|
405 |
-
#: admin/partials/menu/options-sections/integration-settings.php:142
|
406 |
msgid "Associated List"
|
407 |
msgstr ""
|
408 |
|
409 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
410 |
msgid "Please enter a valid API key."
|
411 |
msgstr ""
|
412 |
|
413 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
414 |
msgid "No lists were found on the account."
|
415 |
msgstr ""
|
416 |
|
417 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
418 |
msgid "MailChimp list data has been succesfully refreshed."
|
419 |
msgstr ""
|
420 |
|
421 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
422 |
#, php-format
|
423 |
msgid ""
|
424 |
"Head over to <a href=\"http://www.MailChimp.com\" title=\"%s\">MailChimp</a> "
|
425 |
"to create a new list."
|
426 |
msgstr ""
|
427 |
|
428 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
429 |
msgid "Create a list"
|
430 |
msgstr ""
|
431 |
|
432 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
433 |
msgid "Create"
|
434 |
msgstr ""
|
435 |
|
436 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
437 |
msgid "Please enter a valid MailChimp API key to get started."
|
438 |
msgstr ""
|
439 |
|
440 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
441 |
msgid "general settings"
|
442 |
msgstr ""
|
443 |
|
444 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
445 |
msgid "Refresh Lists"
|
446 |
msgstr ""
|
447 |
|
448 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
449 |
msgid "Select A Page or Post"
|
450 |
msgstr ""
|
451 |
|
452 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
453 |
msgid "Custom URL"
|
454 |
msgstr ""
|
455 |
|
456 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
457 |
msgid "Enter Custom URL"
|
458 |
msgstr ""
|
459 |
|
460 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
461 |
msgid "About YIKES, Inc."
|
462 |
msgstr ""
|
463 |
|
464 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
465 |
msgid "Show Us Some Love"
|
466 |
msgstr ""
|
467 |
|
468 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
469 |
msgid "Leave a review"
|
470 |
msgstr ""
|
471 |
|
472 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
473 |
msgid "Tweet about it"
|
474 |
msgstr ""
|
475 |
|
476 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
477 |
msgid "Vote that the plugin works"
|
478 |
msgstr ""
|
479 |
|
480 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
481 |
msgid "Vote for Compatibility"
|
482 |
msgstr ""
|
483 |
|
484 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
485 |
#, php-format
|
486 |
msgid "This plugin made with %s by %s"
|
487 |
msgstr ""
|
488 |
|
489 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
490 |
msgid ""
|
491 |
"is a web design and development company located in Philadelphia, "
|
492 |
"Pennsylvania, US. YIKES specializes in custom WordPress theme and plugin "
|
@@ -494,102 +482,102 @@ msgid ""
|
|
494 |
"applications and more."
|
495 |
msgstr ""
|
496 |
|
497 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
498 |
msgid "Show YIKES Some Love"
|
499 |
msgstr ""
|
500 |
|
501 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
502 |
msgid "About YIKES"
|
503 |
msgstr ""
|
504 |
|
505 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
506 |
msgid "Easy Forms for MailChimp Add-Ons"
|
507 |
msgstr ""
|
508 |
|
509 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
510 |
msgid "Check out available add-ons for some seriously enhanced features."
|
511 |
msgstr ""
|
512 |
|
513 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
514 |
msgid "View Add-Ons"
|
515 |
msgstr ""
|
516 |
|
517 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
518 |
msgid "We've encountered an error. No list ID was sent."
|
519 |
msgstr ""
|
520 |
|
521 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
522 |
msgid ""
|
523 |
"We've encountered an error. Reload the page and try again. If the error "
|
524 |
"persists, please reach out to support."
|
525 |
msgstr ""
|
526 |
|
527 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
528 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
529 |
msgid "Field no longer exists."
|
530 |
msgstr ""
|
531 |
|
532 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
533 |
msgid "Click to save changes."
|
534 |
msgstr ""
|
535 |
|
536 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
537 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
538 |
#: admin/partials/ajax/add_field_to_form.php:41
|
539 |
#: admin/partials/ajax/add_interest_group_to_form.php:65
|
540 |
msgid "type"
|
541 |
msgstr ""
|
542 |
|
543 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
544 |
msgid ""
|
545 |
"This field no longer exists in this list. Delete this field from the form to "
|
546 |
"prevent issues on your website."
|
547 |
msgstr ""
|
548 |
|
549 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
550 |
#: admin/partials/ajax/add_field_to_form.php:65
|
551 |
msgid "Merge Tag"
|
552 |
msgstr ""
|
553 |
|
554 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
555 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
556 |
#: admin/partials/ajax/add_field_to_form.php:90
|
557 |
#: admin/partials/ajax/add_field_to_form.php:136
|
558 |
msgid "Placeholder"
|
559 |
msgstr ""
|
560 |
|
561 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
562 |
#: admin/partials/ajax/add_field_to_form.php:95
|
563 |
msgid "Assign a placeholder value to this field."
|
564 |
msgstr ""
|
565 |
|
566 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
567 |
#: admin/partials/ajax/add_field_to_form.php:141
|
568 |
msgid ""
|
569 |
"Use placeholders for this field (these will be automatically filled in with "
|
570 |
"field names)."
|
571 |
msgstr ""
|
572 |
|
573 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
574 |
#: admin/partials/ajax/add_field_to_form.php:159
|
575 |
msgid "Default Value"
|
576 |
msgstr ""
|
577 |
|
578 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
579 |
#: admin/partials/ajax/add_field_to_form.php:164
|
580 |
msgid ""
|
581 |
"Assign a default value to populate this field with on initial page load."
|
582 |
msgstr ""
|
583 |
|
584 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
585 |
#: admin/partials/ajax/add_field_to_form.php:169
|
586 |
msgid "View Pre-Defined Tags"
|
587 |
msgstr ""
|
588 |
|
589 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
590 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
591 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
592 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
593 |
#: admin/partials/ajax/add_field_to_form.php:183
|
594 |
#: admin/partials/ajax/add_field_to_form.php:209
|
595 |
#: admin/partials/ajax/add_interest_group_to_form.php:90
|
@@ -598,44 +586,44 @@ msgstr ""
|
|
598 |
msgid "Default Selection"
|
599 |
msgstr ""
|
600 |
|
601 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
602 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
603 |
#: admin/partials/ajax/add_field_to_form.php:197
|
604 |
#: admin/partials/ajax/add_interest_group_to_form.php:103
|
605 |
#: admin/partials/ajax/add_interest_group_to_form.php:127
|
606 |
msgid "Select the option that should be selected by default."
|
607 |
msgstr ""
|
608 |
|
609 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
610 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
611 |
#: admin/partials/ajax/add_field_to_form.php:220
|
612 |
#: admin/partials/ajax/add_interest_group_to_form.php:152
|
613 |
msgid "Which option should be selected by default?"
|
614 |
msgstr ""
|
615 |
|
616 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
617 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
618 |
#: admin/partials/ajax/add_field_to_form.php:233
|
619 |
#: admin/partials/ajax/add_interest_group_to_form.php:164
|
620 |
msgid "Description"
|
621 |
msgstr ""
|
622 |
|
623 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
624 |
msgid ""
|
625 |
"Enter the description for the form field. This will be displayed to the user "
|
626 |
"and will provide some direction on how the field should be filled out or "
|
627 |
"selected."
|
628 |
msgstr ""
|
629 |
|
630 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
631 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
632 |
#: admin/partials/ajax/add_field_to_form.php:245
|
633 |
#: admin/partials/ajax/add_interest_group_to_form.php:177
|
634 |
msgid "Description Above Field"
|
635 |
msgstr ""
|
636 |
|
637 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
638 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
639 |
#: admin/partials/ajax/add_field_to_form.php:250
|
640 |
#: admin/partials/ajax/add_interest_group_to_form.php:182
|
641 |
msgid ""
|
@@ -643,98 +631,98 @@ msgid ""
|
|
643 |
"if you'd like the description to appear above the field."
|
644 |
msgstr ""
|
645 |
|
646 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
647 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
648 |
#: admin/partials/ajax/add_field_to_form.php:257
|
649 |
#: admin/partials/ajax/add_interest_group_to_form.php:190
|
650 |
msgid "Additional Classes"
|
651 |
msgstr ""
|
652 |
|
653 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
654 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
655 |
#: admin/partials/ajax/add_field_to_form.php:262
|
656 |
#: admin/partials/ajax/add_interest_group_to_form.php:195
|
657 |
#, php-format
|
658 |
msgid "Assign additional classes to this field. %s."
|
659 |
msgstr ""
|
660 |
|
661 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
662 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
663 |
#: admin/partials/ajax/add_field_to_form.php:262
|
664 |
#: admin/partials/ajax/add_interest_group_to_form.php:195
|
665 |
msgid "View bundled classes"
|
666 |
msgstr ""
|
667 |
|
668 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
669 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
670 |
#: admin/partials/ajax/add_field_to_form.php:269
|
671 |
#: admin/partials/ajax/add_interest_group_to_form.php:202
|
672 |
msgid "Field Required?"
|
673 |
msgstr ""
|
674 |
|
675 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
676 |
#: admin/partials/ajax/add_field_to_form.php:273
|
677 |
msgid "Email is a required field."
|
678 |
msgstr ""
|
679 |
|
680 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
681 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
682 |
#: admin/partials/ajax/add_field_to_form.php:274
|
683 |
#: admin/partials/ajax/add_interest_group_to_form.php:207
|
684 |
msgid "Require this field to be filled in before the form can be submitted."
|
685 |
msgstr ""
|
686 |
|
687 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
688 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
689 |
#: admin/partials/ajax/add_field_to_form.php:281
|
690 |
#: admin/partials/ajax/add_interest_group_to_form.php:214
|
691 |
msgid "Hide Field"
|
692 |
msgstr ""
|
693 |
|
694 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
695 |
#: admin/partials/ajax/add_field_to_form.php:285
|
696 |
msgid "Cannot toggle email field visibility."
|
697 |
msgstr ""
|
698 |
|
699 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
700 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
701 |
#: admin/partials/ajax/add_field_to_form.php:286
|
702 |
#: admin/partials/ajax/add_interest_group_to_form.php:219
|
703 |
msgid "Hide this field from being displayed on the front end."
|
704 |
msgstr ""
|
705 |
|
706 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
707 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
708 |
#: admin/partials/ajax/add_field_to_form.php:293
|
709 |
#: admin/partials/ajax/add_interest_group_to_form.php:226
|
710 |
msgid "Hide Label"
|
711 |
msgstr ""
|
712 |
|
713 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
714 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
715 |
#: admin/partials/ajax/add_field_to_form.php:298
|
716 |
#: admin/partials/ajax/add_interest_group_to_form.php:231
|
717 |
msgid "Toggle field label visibility."
|
718 |
msgstr ""
|
719 |
|
720 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
721 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
722 |
#: admin/partials/ajax/add_field_to_form.php:317
|
723 |
#: admin/partials/ajax/add_field_to_form.php:323
|
724 |
msgid "Date Format"
|
725 |
msgstr ""
|
726 |
|
727 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
728 |
#: admin/partials/ajax/add_field_to_form.php:329
|
729 |
msgid "Phone Format"
|
730 |
msgstr ""
|
731 |
|
732 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
733 |
#: admin/partials/ajax/add_field_to_form.php:330
|
734 |
msgid "International"
|
735 |
msgstr ""
|
736 |
|
737 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
738 |
#: admin/partials/ajax/add_field_to_form.php:342
|
739 |
#, php-format
|
740 |
msgid ""
|
@@ -743,27 +731,27 @@ msgid ""
|
|
743 |
"import this field."
|
744 |
msgstr ""
|
745 |
|
746 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
747 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
748 |
#: admin/partials/ajax/add_field_to_form.php:361
|
749 |
#: admin/partials/ajax/add_interest_group_to_form.php:241
|
750 |
msgid "Close"
|
751 |
msgstr ""
|
752 |
|
753 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
754 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
755 |
#: admin/partials/ajax/add_field_to_form.php:362
|
756 |
#: admin/partials/ajax/add_interest_group_to_form.php:242
|
757 |
msgid "Remove Field"
|
758 |
msgstr ""
|
759 |
|
760 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
761 |
msgid ""
|
762 |
"This field no longer exists in this list. Delete this field from the form to "
|
763 |
"prevent issues on the front end."
|
764 |
msgstr ""
|
765 |
|
766 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
767 |
#: admin/partials/ajax/add_field_to_form.php:238
|
768 |
#: admin/partials/ajax/add_interest_group_to_form.php:169
|
769 |
msgid ""
|
@@ -771,139 +759,138 @@ msgid ""
|
|
771 |
"and provide some direction on how the field should be filled out or selected."
|
772 |
msgstr ""
|
773 |
|
774 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
775 |
msgid ""
|
776 |
"No fields are assigned to this form. Select fields from the right hand "
|
777 |
"column to add to this form."
|
778 |
msgstr ""
|
779 |
|
780 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
781 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
782 |
msgid "Page Title"
|
783 |
msgstr ""
|
784 |
|
785 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
786 |
msgid ""
|
787 |
"Pre-populate the field with the current page or post title that the user is "
|
788 |
"on when opting in to your mailing list."
|
789 |
msgstr ""
|
790 |
|
791 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
792 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
793 |
msgid "Page ID"
|
794 |
msgstr ""
|
795 |
|
796 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
797 |
msgid ""
|
798 |
"Pre-populate the field with the current page or post ID that the user is on "
|
799 |
"when opting in to your mailing list."
|
800 |
msgstr ""
|
801 |
|
802 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
803 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
804 |
msgid "Page URL"
|
805 |
msgstr ""
|
806 |
|
807 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
808 |
msgid ""
|
809 |
"Pre-populate the field with the current page URL that the user is on when "
|
810 |
"opting in to your mailing list."
|
811 |
msgstr ""
|
812 |
|
813 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
814 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
815 |
msgid "Blog Name"
|
816 |
msgstr ""
|
817 |
|
818 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
819 |
msgid ""
|
820 |
"Pre-populate the field with the current blog name that the user is on when "
|
821 |
"opting in to your mailing list. This is especially helpful for multi-site "
|
822 |
"networks."
|
823 |
msgstr ""
|
824 |
|
825 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
826 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
827 |
msgid "User Logged In"
|
828 |
msgstr ""
|
829 |
|
830 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
831 |
msgid ""
|
832 |
"Detects if a user is logged in and pre-populates the field with an "
|
833 |
"appropriate value."
|
834 |
msgstr ""
|
835 |
|
836 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
837 |
msgid "Pre Defined Tags"
|
838 |
msgstr ""
|
839 |
|
840 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
841 |
msgid ""
|
842 |
"You can use any of the following tags to populate a MailChimp text field "
|
843 |
"with dynamic content. This can be used to determine which page the user "
|
844 |
"signed up on, if the user was logged in and more."
|
845 |
msgstr ""
|
846 |
|
847 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
848 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
849 |
msgid "Already assigned to your form"
|
850 |
msgstr ""
|
851 |
|
852 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
853 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
854 |
msgid "required field"
|
855 |
msgstr ""
|
856 |
|
857 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
858 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
859 |
msgid "Add to Form Builder"
|
860 |
msgstr ""
|
861 |
|
862 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
863 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
864 |
msgid "Error creating a new form"
|
865 |
msgstr ""
|
866 |
|
867 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
868 |
msgid "Creating a new form"
|
869 |
msgstr ""
|
870 |
|
871 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
872 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:15
|
873 |
msgid "Forms"
|
874 |
msgstr ""
|
875 |
|
876 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
877 |
msgid "Greetings,"
|
878 |
msgstr ""
|
879 |
|
880 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
881 |
msgid ""
|
882 |
"A request has been made to update your MailChimp account profile information."
|
883 |
msgstr ""
|
884 |
|
885 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
886 |
msgid " To do so please use the following link: "
|
887 |
msgstr ""
|
888 |
|
889 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
890 |
msgid "Update MailChimp Profile Info"
|
891 |
msgstr ""
|
892 |
|
893 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
894 |
msgid "If you did not request this update, please disregard this email."
|
895 |
msgstr ""
|
896 |
|
897 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
898 |
#, php-format
|
899 |
msgid "This email was sent from: %s"
|
900 |
msgstr ""
|
901 |
|
902 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
903 |
msgid "Unsubscribe User"
|
904 |
msgstr ""
|
905 |
|
906 |
-
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:
|
907 |
msgid "Manage List Page"
|
908 |
msgstr ""
|
909 |
|
@@ -953,7 +940,7 @@ msgstr ""
|
|
953 |
#: admin/partials/ajax/class.ajax.php:55
|
954 |
#: admin/partials/dashboard-widgets/class.list-activity-widget.php:73
|
955 |
#: admin/partials/edit-form.php:82 admin/partials/menu/manage-forms.php:15
|
956 |
-
#: admin/partials/menu/manage-lists.php:
|
957 |
#: admin/partials/menu/options-sections/integration-settings.php:90
|
958 |
#: admin/partials/view-list.php:17 admin/partials/view-user.php:55
|
959 |
#: public/partials/shortcodes/yikes-mailchimp-subscriber-count.php:68
|
@@ -976,16 +963,12 @@ msgstr ""
|
|
976 |
msgid "Could not update the field label: API request failed."
|
977 |
msgstr ""
|
978 |
|
979 |
-
#: admin/partials/dashboard-widgets/class.list-activity-widget.php:
|
980 |
msgid "Preloader"
|
981 |
msgstr ""
|
982 |
|
983 |
-
#: admin/partials/dashboard-widgets/class.list-activity-widget.php:52
|
984 |
-
msgid "MailChimp List Stats"
|
985 |
-
msgstr ""
|
986 |
-
|
987 |
#: admin/partials/dashboard-widgets/class.list-activity-widget.php:58
|
988 |
-
msgid "MailChimp
|
989 |
msgstr ""
|
990 |
|
991 |
#: admin/partials/dashboard-widgets/class.list-activity-widget.php:81
|
@@ -1004,18 +987,6 @@ msgid ""
|
|
1004 |
"lists."
|
1005 |
msgstr ""
|
1006 |
|
1007 |
-
#: admin/partials/dashboard-widgets/class.list-activity-widget.php:115
|
1008 |
-
msgid "Get Account Activity"
|
1009 |
-
msgstr ""
|
1010 |
-
|
1011 |
-
#: admin/partials/dashboard-widgets/templates/account-activity-template.php:6
|
1012 |
-
msgid "Type"
|
1013 |
-
msgstr ""
|
1014 |
-
|
1015 |
-
#: admin/partials/dashboard-widgets/templates/account-activity-template.php:7
|
1016 |
-
msgid "Message"
|
1017 |
-
msgstr ""
|
1018 |
-
|
1019 |
#: admin/partials/dashboard-widgets/templates/stats-list-template.php:34
|
1020 |
msgid "view List"
|
1021 |
msgstr ""
|
@@ -1104,10 +1075,10 @@ msgstr ""
|
|
1104 |
#: admin/partials/edit-form.php:56 admin/partials/edit-form.php:365
|
1105 |
#: admin/partials/edit-form.php:366
|
1106 |
#: admin/partials/front-end-widgets/front-end-widget-form.php:45
|
1107 |
-
#: admin/partials/front-end-widgets/front-end-widget-form.php:
|
1108 |
#: includes/class-yikes-inc-easy-mailchimp-extender-forms-abstract.php:43
|
1109 |
-
#: includes/third-party-integrations/visual-composer/visual-composer.php:
|
1110 |
-
#: public/partials/shortcodes/process_form_shortcode.php:
|
1111 |
msgid "Submit"
|
1112 |
msgstr ""
|
1113 |
|
@@ -1127,9 +1098,8 @@ msgid "at"
|
|
1127 |
msgstr ""
|
1128 |
|
1129 |
#: admin/partials/edit-form.php:67
|
1130 |
-
#: includes/class-yikes-inc-easy-mailchimp-extender-forms-abstract.php:50
|
1131 |
#, php-format
|
1132 |
-
msgid "
|
1133 |
msgstr ""
|
1134 |
|
1135 |
#: admin/partials/edit-form.php:69
|
@@ -1137,16 +1107,16 @@ msgstr ""
|
|
1137 |
msgid "You need to be logged in to sign up for this mailing list."
|
1138 |
msgstr ""
|
1139 |
|
1140 |
-
#: admin/partials/edit-form.php:125 admin/partials/menu/
|
1141 |
-
#: admin/partials/menu/
|
1142 |
-
#: admin/partials/menu/manage-lists.php:
|
1143 |
#: admin/partials/menu/support.php:12 admin/partials/view-list.php:93
|
1144 |
#: admin/partials/view-user.php:111
|
1145 |
msgid "Freddie - MailChimp Mascot"
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/partials/edit-form.php:127 admin/partials/menu/manage-forms.php:144
|
1149 |
-
#: public/partials/shortcodes/process_form_shortcode.php:
|
1150 |
msgid "Edit"
|
1151 |
msgstr ""
|
1152 |
|
@@ -1183,7 +1153,7 @@ msgstr ""
|
|
1183 |
msgid "Form Builder"
|
1184 |
msgstr ""
|
1185 |
|
1186 |
-
#: admin/partials/edit-form.php:185 admin/partials/edit-form.php:
|
1187 |
msgid "Form Settings"
|
1188 |
msgstr ""
|
1189 |
|
@@ -1206,7 +1176,7 @@ msgstr ""
|
|
1206 |
msgid "Clear Form Fields"
|
1207 |
msgstr ""
|
1208 |
|
1209 |
-
#: admin/partials/edit-form.php:226 admin/partials/edit-form.php:
|
1210 |
msgid "Update Form"
|
1211 |
msgstr ""
|
1212 |
|
@@ -1312,7 +1282,7 @@ msgid "Select the submit button type for this form."
|
|
1312 |
msgstr ""
|
1313 |
|
1314 |
#: admin/partials/edit-form.php:364
|
1315 |
-
#: includes/third-party-integrations/visual-composer/visual-composer.php:
|
1316 |
msgid "Submit Button Text"
|
1317 |
msgstr ""
|
1318 |
|
@@ -1511,104 +1481,134 @@ msgstr ""
|
|
1511 |
|
1512 |
#: admin/partials/edit-form.php:551
|
1513 |
#: admin/partials/upgrade-helpers/upgrade-migrate-options.php:25
|
1514 |
-
#: public/partials/ajax/class.public_ajax.php:
|
1515 |
msgid "MailChimp Profile Update"
|
1516 |
msgstr ""
|
1517 |
|
1518 |
-
#: admin/partials/edit-form.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1519 |
msgid ""
|
1520 |
"Customize the response messages for this form. Leave the field blank to use "
|
1521 |
"the default message. The messages shown below depend on the Opt-in Settings "
|
1522 |
"chosen."
|
1523 |
msgstr ""
|
1524 |
|
1525 |
-
#: admin/partials/edit-form.php:
|
1526 |
msgid "Success: Double opt-in"
|
1527 |
msgstr ""
|
1528 |
|
1529 |
-
#: admin/partials/edit-form.php:
|
1530 |
msgid "Success: Single opt-in"
|
1531 |
msgstr ""
|
1532 |
|
1533 |
-
#: admin/partials/edit-form.php:
|
1534 |
msgid "Success: Re-subscriber"
|
1535 |
msgstr ""
|
1536 |
|
1537 |
-
#: admin/partials/edit-form.php:
|
1538 |
msgid "Success: Re-subscriber with link to email profile update message"
|
1539 |
msgstr ""
|
1540 |
|
1541 |
-
#: admin/partials/edit-form.php:
|
1542 |
msgid "Error: Re-subscribers not permitted"
|
1543 |
msgstr ""
|
1544 |
|
1545 |
-
#: admin/partials/edit-form.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1546 |
msgid "Error: General"
|
1547 |
msgstr ""
|
1548 |
|
1549 |
-
#: admin/partials/edit-form.php:
|
1550 |
msgid ""
|
1551 |
"Customize the profile verification email sent to re-subscribers. Leave the "
|
1552 |
"text unedited to use the default message."
|
1553 |
msgstr ""
|
1554 |
|
1555 |
-
#: admin/partials/edit-form.php:
|
1556 |
msgid "Email Subject"
|
1557 |
msgstr ""
|
1558 |
|
1559 |
-
#: admin/partials/edit-form.php:
|
1560 |
msgid "Email Body"
|
1561 |
msgstr ""
|
1562 |
|
1563 |
-
#: admin/partials/edit-form.php:
|
1564 |
msgid "Custom Message Help"
|
1565 |
msgstr ""
|
1566 |
|
1567 |
-
#: admin/partials/edit-form.php:
|
1568 |
msgid "The message displayed after a double opt-in form has been submitted."
|
1569 |
msgstr ""
|
1570 |
|
1571 |
-
#: admin/partials/edit-form.php:
|
1572 |
msgid "Success Message: Single opt-in"
|
1573 |
msgstr ""
|
1574 |
|
1575 |
-
#: admin/partials/edit-form.php:
|
1576 |
msgid "The message displayed after a single opt-in form has been submitted."
|
1577 |
msgstr ""
|
1578 |
|
1579 |
-
#: admin/partials/edit-form.php:
|
1580 |
msgid ""
|
1581 |
"The message displayed after a subscriber submits a form for a list they are "
|
1582 |
"already subscribed to."
|
1583 |
msgstr ""
|
1584 |
|
1585 |
-
#: admin/partials/edit-form.php:
|
1586 |
msgid ""
|
1587 |
"The message displayed after a subscriber submits a form for a list they are "
|
1588 |
"already subscribed to. Wrap the text you want to be the link in <code>[link]"
|
1589 |
"[/link]</code> tags."
|
1590 |
msgstr ""
|
1591 |
|
1592 |
-
#: admin/partials/edit-form.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1593 |
msgid ""
|
1594 |
"The message displayed after a subscriber tries to join a list they are "
|
1595 |
"already subscribed to. You can display the user's email in the message "
|
1596 |
"using an <code>[email]</code> tag."
|
1597 |
msgstr ""
|
1598 |
|
1599 |
-
#: admin/partials/edit-form.php:
|
1600 |
msgid "The message displayed if a form error has occurred."
|
1601 |
msgstr ""
|
1602 |
|
1603 |
-
#: admin/partials/edit-form.php:
|
1604 |
msgid "Email Message Help"
|
1605 |
msgstr ""
|
1606 |
|
1607 |
-
#: admin/partials/edit-form.php:
|
1608 |
msgid "The subject of the email sent to the user."
|
1609 |
msgstr ""
|
1610 |
|
1611 |
-
#: admin/partials/edit-form.php:
|
1612 |
#, php-format
|
1613 |
msgid ""
|
1614 |
"The text in the profile update verification email sent to the subscriber. "
|
@@ -1617,184 +1617,184 @@ msgid ""
|
|
1617 |
"can also use <code>[url]</code> tag to display your website's URL (e.g. %s)."
|
1618 |
msgstr ""
|
1619 |
|
1620 |
-
#: admin/partials/edit-form.php:
|
1621 |
msgid "Edit Another Form"
|
1622 |
msgstr ""
|
1623 |
|
1624 |
-
#: admin/partials/edit-form.php:
|
1625 |
msgid "Shortcode"
|
1626 |
msgstr ""
|
1627 |
|
1628 |
-
#: admin/partials/edit-form.php:
|
1629 |
msgid "Associated List Settings"
|
1630 |
msgstr ""
|
1631 |
|
1632 |
-
#: admin/partials/edit-form.php:
|
1633 |
msgid "No Lists Found"
|
1634 |
msgstr ""
|
1635 |
|
1636 |
-
#: admin/partials/edit-form.php:
|
1637 |
msgid ""
|
1638 |
"Users who sign up via this form will be added to the list selected above."
|
1639 |
msgstr ""
|
1640 |
|
1641 |
-
#: admin/partials/edit-form.php:
|
1642 |
msgid ""
|
1643 |
"It looks like you first need to create a list to assign this form to. Head "
|
1644 |
"over to"
|
1645 |
msgstr ""
|
1646 |
|
1647 |
-
#: admin/partials/edit-form.php:
|
1648 |
msgid "Create a new list"
|
1649 |
msgstr ""
|
1650 |
|
1651 |
-
#: admin/partials/edit-form.php:
|
1652 |
msgid "to create your first list"
|
1653 |
msgstr ""
|
1654 |
|
1655 |
-
#: admin/partials/edit-form.php:
|
1656 |
#: admin/partials/menu/options-sections/api-cache-settings.php:15
|
1657 |
msgid "No MailChimp data found in temporary cache storage."
|
1658 |
msgstr ""
|
1659 |
|
1660 |
-
#: admin/partials/edit-form.php:
|
1661 |
#: admin/partials/menu/options-sections/api-cache-settings.php:15
|
1662 |
#: admin/partials/menu/options-sections/api-cache-settings.php:17
|
1663 |
msgid "Clear MailChimp API Cache"
|
1664 |
msgstr ""
|
1665 |
|
1666 |
-
#: admin/partials/edit-form.php:
|
1667 |
msgid "Opt-in Settings"
|
1668 |
msgstr ""
|
1669 |
|
1670 |
-
#: admin/partials/edit-form.php:
|
1671 |
msgid "Single or Double Opt-in"
|
1672 |
msgstr ""
|
1673 |
|
1674 |
-
#: admin/partials/edit-form.php:
|
1675 |
msgid "Single"
|
1676 |
msgstr ""
|
1677 |
|
1678 |
-
#: admin/partials/edit-form.php:
|
1679 |
msgid "Double"
|
1680 |
msgstr ""
|
1681 |
|
1682 |
-
#: admin/partials/edit-form.php:
|
1683 |
msgid ""
|
1684 |
"Double opt-in requires users to confirm their email address before being "
|
1685 |
"added to a list (recommended)"
|
1686 |
msgstr ""
|
1687 |
|
1688 |
-
#: admin/partials/edit-form.php:
|
1689 |
msgid "Update Existing Subscriber"
|
1690 |
msgstr ""
|
1691 |
|
1692 |
-
#: admin/partials/edit-form.php:
|
1693 |
-
#: admin/partials/edit-form.php:
|
1694 |
-
#: admin/partials/edit-form.php:
|
1695 |
-
#: admin/partials/menu/options-sections/integration-settings.php:
|
1696 |
-
#: includes/third-party-integrations/visual-composer/visual-composer.php:
|
1697 |
-
#: includes/third-party-integrations/visual-composer/visual-composer.php:
|
1698 |
#: public/classes/checkbox-integrations/class.contact_form_7-checkbox.php:54
|
1699 |
msgid "Yes"
|
1700 |
msgstr ""
|
1701 |
|
1702 |
-
#: admin/partials/edit-form.php:
|
1703 |
-
#: admin/partials/edit-form.php:
|
1704 |
-
#: admin/partials/edit-form.php:
|
1705 |
-
#: admin/partials/menu/options-sections/integration-settings.php:
|
1706 |
#: public/classes/checkbox-integrations/class.contact_form_7-checkbox.php:54
|
1707 |
msgid "No"
|
1708 |
msgstr ""
|
1709 |
|
1710 |
-
#: admin/partials/edit-form.php:
|
1711 |
#, php-format
|
1712 |
msgid ""
|
1713 |
"Update an existing subscriber's profile information instead of displaying a "
|
1714 |
"%s message."
|
1715 |
msgstr ""
|
1716 |
|
1717 |
-
#: admin/partials/edit-form.php:
|
1718 |
msgid "\"user already subscribed\""
|
1719 |
msgstr ""
|
1720 |
|
1721 |
-
#: admin/partials/edit-form.php:
|
1722 |
msgid "Send Update Email"
|
1723 |
msgstr ""
|
1724 |
|
1725 |
-
#: admin/partials/edit-form.php:
|
1726 |
msgid ""
|
1727 |
"Send an email to the user granting their permission to update their profile "
|
1728 |
"information. Otherwise, an existing subscriber filling out this form, will "
|
1729 |
"have their profile information updated without any further interaction."
|
1730 |
msgstr ""
|
1731 |
|
1732 |
-
#: admin/partials/edit-form.php:
|
1733 |
msgid "Submission Settings"
|
1734 |
msgstr ""
|
1735 |
|
1736 |
-
#: admin/partials/edit-form.php:
|
1737 |
msgid "Enable AJAX Submission"
|
1738 |
msgstr ""
|
1739 |
|
1740 |
-
#: admin/partials/edit-form.php:
|
1741 |
msgid ""
|
1742 |
"AJAX form submissions transmit data without requiring the page to refresh."
|
1743 |
msgstr ""
|
1744 |
|
1745 |
-
#: admin/partials/edit-form.php:
|
1746 |
msgid "Redirect On Submission"
|
1747 |
msgstr ""
|
1748 |
|
1749 |
-
#: admin/partials/edit-form.php:
|
1750 |
msgid "When the user signs up would you like to redirect them to another page?"
|
1751 |
msgstr ""
|
1752 |
|
1753 |
-
#: admin/partials/edit-form.php:
|
1754 |
msgid "Open Redirect URL in a New Window"
|
1755 |
msgstr ""
|
1756 |
|
1757 |
-
#: admin/partials/edit-form.php:
|
1758 |
msgid "Should the redirect URL open in a new window/tab?"
|
1759 |
msgstr ""
|
1760 |
|
1761 |
-
#: admin/partials/edit-form.php:
|
1762 |
msgid "Hide Form After Sign Up"
|
1763 |
msgstr ""
|
1764 |
|
1765 |
-
#: admin/partials/edit-form.php:
|
1766 |
msgid "Should the form be hidden after the user successfully signs up?"
|
1767 |
msgstr ""
|
1768 |
|
1769 |
-
#: admin/partials/edit-form.php:
|
1770 |
msgid "Existing Interest Groups"
|
1771 |
msgstr ""
|
1772 |
|
1773 |
-
#: admin/partials/edit-form.php:
|
1774 |
msgid "Replace"
|
1775 |
msgstr ""
|
1776 |
|
1777 |
-
#: admin/partials/edit-form.php:
|
1778 |
msgid "Update"
|
1779 |
msgstr ""
|
1780 |
|
1781 |
-
#: admin/partials/edit-form.php:
|
1782 |
msgid ""
|
1783 |
"<strong>Replace</strong>: Replace all interest groups with the new ones "
|
1784 |
"submitted."
|
1785 |
msgstr ""
|
1786 |
|
1787 |
-
#: admin/partials/edit-form.php:
|
1788 |
msgid ""
|
1789 |
"<strong>Update</strong>: Update <em>only</em> the ones submitted. Leave "
|
1790 |
"existing interest groups as is."
|
1791 |
msgstr ""
|
1792 |
|
1793 |
-
#: admin/partials/edit-form.php:
|
1794 |
msgid "Are you sure you want to delete this form? This cannot be undone."
|
1795 |
msgstr ""
|
1796 |
|
1797 |
-
#: admin/partials/edit-form.php:
|
1798 |
msgid "Delete Form"
|
1799 |
msgstr ""
|
1800 |
|
@@ -1807,38 +1807,38 @@ msgid "MailChimp opt-in widget for your sidebar."
|
|
1807 |
msgstr ""
|
1808 |
|
1809 |
#: admin/partials/front-end-widgets/front-end-widget-form.php:42
|
1810 |
-
#: admin/partials/front-end-widgets/front-end-widget-form.php:
|
1811 |
msgid "MailChimp Signup Form"
|
1812 |
msgstr ""
|
1813 |
|
1814 |
-
#: admin/partials/front-end-widgets/front-end-widget-form.php:
|
1815 |
#, php-format
|
1816 |
msgid ""
|
1817 |
"No forms found. It looks like you need to <a href=\"%s\" title=\"%s\">%s</a>."
|
1818 |
msgstr ""
|
1819 |
|
1820 |
-
#: admin/partials/front-end-widgets/front-end-widget-form.php:
|
1821 |
msgid "create a form"
|
1822 |
msgstr ""
|
1823 |
|
1824 |
-
#: admin/partials/front-end-widgets/front-end-widget-form.php:
|
1825 |
msgid ""
|
1826 |
"Please enter a valid MailChimp API key to connect your site to MailChimp."
|
1827 |
msgstr ""
|
1828 |
|
1829 |
-
#: admin/partials/front-end-widgets/front-end-widget-form.php:
|
1830 |
msgid "Title:"
|
1831 |
msgstr ""
|
1832 |
|
1833 |
-
#: admin/partials/front-end-widgets/front-end-widget-form.php:
|
1834 |
msgid "Form:"
|
1835 |
msgstr ""
|
1836 |
|
1837 |
-
#: admin/partials/front-end-widgets/front-end-widget-form.php:
|
1838 |
msgid "Display Form Description:"
|
1839 |
msgstr ""
|
1840 |
|
1841 |
-
#: admin/partials/front-end-widgets/front-end-widget-form.php:
|
1842 |
msgid "Submit Button Text:"
|
1843 |
msgstr ""
|
1844 |
|
@@ -1978,87 +1978,6 @@ msgid ""
|
|
1978 |
"we make initial contact you can attach any screenshots necessary."
|
1979 |
msgstr ""
|
1980 |
|
1981 |
-
#: admin/partials/menu/account-details.php:4
|
1982 |
-
msgid ""
|
1983 |
-
"It looks like you need to re-validate your MailChimp API key before you can "
|
1984 |
-
"continue."
|
1985 |
-
msgstr ""
|
1986 |
-
|
1987 |
-
#: admin/partials/menu/account-details.php:18
|
1988 |
-
msgid "Get Profile Info."
|
1989 |
-
msgstr ""
|
1990 |
-
|
1991 |
-
#: admin/partials/menu/account-details.php:30
|
1992 |
-
msgid "Get Account Details"
|
1993 |
-
msgstr ""
|
1994 |
-
|
1995 |
-
#: admin/partials/menu/account-details.php:42
|
1996 |
-
msgid "Get Chimp Chatter"
|
1997 |
-
msgstr ""
|
1998 |
-
|
1999 |
-
#: admin/partials/menu/account-details.php:53
|
2000 |
-
msgid "Account Overview"
|
2001 |
-
msgstr ""
|
2002 |
-
|
2003 |
-
#: admin/partials/menu/account-details.php:55
|
2004 |
-
msgid ""
|
2005 |
-
"Below you'll find a brief overview of account activity as well as some "
|
2006 |
-
"account and profile info."
|
2007 |
-
msgstr ""
|
2008 |
-
|
2009 |
-
#: admin/partials/menu/account-details.php:65
|
2010 |
-
msgid "Chimp Chatter"
|
2011 |
-
msgstr ""
|
2012 |
-
|
2013 |
-
#: admin/partials/menu/account-details.php:157
|
2014 |
-
msgid "View All Activity"
|
2015 |
-
msgstr ""
|
2016 |
-
|
2017 |
-
#: admin/partials/menu/account-details.php:178
|
2018 |
-
#: admin/partials/menu/account-details.php:179
|
2019 |
-
msgid "MailChimp Site"
|
2020 |
-
msgstr ""
|
2021 |
-
|
2022 |
-
#: admin/partials/menu/account-details.php:189
|
2023 |
-
msgid "Account Active"
|
2024 |
-
msgstr ""
|
2025 |
-
|
2026 |
-
#: admin/partials/menu/account-details.php:189
|
2027 |
-
msgid "Account Inactive"
|
2028 |
-
msgstr ""
|
2029 |
-
|
2030 |
-
#: admin/partials/menu/account-details.php:191
|
2031 |
-
msgid "MailChimp avatar"
|
2032 |
-
msgstr ""
|
2033 |
-
|
2034 |
-
#: admin/partials/menu/account-details.php:197
|
2035 |
-
msgid "Company"
|
2036 |
-
msgstr ""
|
2037 |
-
|
2038 |
-
#: admin/partials/menu/account-details.php:205
|
2039 |
-
msgid "Industry"
|
2040 |
-
msgstr ""
|
2041 |
-
|
2042 |
-
#: admin/partials/menu/account-details.php:213
|
2043 |
-
msgid "Member Since"
|
2044 |
-
msgstr ""
|
2045 |
-
|
2046 |
-
#: admin/partials/menu/account-details.php:221
|
2047 |
-
msgid "Plan Type"
|
2048 |
-
msgstr ""
|
2049 |
-
|
2050 |
-
#: admin/partials/menu/account-details.php:230
|
2051 |
-
msgid "Emails Left"
|
2052 |
-
msgstr ""
|
2053 |
-
|
2054 |
-
#: admin/partials/menu/account-details.php:239
|
2055 |
-
msgid "Affiliate Link"
|
2056 |
-
msgstr ""
|
2057 |
-
|
2058 |
-
#: admin/partials/menu/account-details.php:242
|
2059 |
-
msgid "View Link"
|
2060 |
-
msgstr ""
|
2061 |
-
|
2062 |
#: admin/partials/menu/add-ons.php:12
|
2063 |
msgid "View All Add-Ons"
|
2064 |
msgstr ""
|
@@ -2070,7 +1989,6 @@ msgid ""
|
|
2070 |
msgstr ""
|
2071 |
|
2072 |
#: admin/partials/menu/manage-forms.php:28
|
2073 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:15
|
2074 |
msgid "Manage Forms"
|
2075 |
msgstr ""
|
2076 |
|
@@ -2169,40 +2087,46 @@ msgid ""
|
|
2169 |
"No MailChimp forms found. Use the form to the right to create a new one."
|
2170 |
msgstr ""
|
2171 |
|
2172 |
-
#: admin/partials/menu/manage-lists.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
2173 |
msgid "Manage Mailing Lists"
|
2174 |
msgstr ""
|
2175 |
|
2176 |
-
#: admin/partials/menu/manage-lists.php:
|
2177 |
msgid "Make edits to your MailChimp lists."
|
2178 |
msgstr ""
|
2179 |
|
2180 |
-
#: admin/partials/menu/manage-lists.php:
|
2181 |
#, php-format
|
2182 |
msgid ""
|
2183 |
"You need to connect to MailChimp before you can start creating forms. Head "
|
2184 |
"over to the %s and enter your API key."
|
2185 |
msgstr ""
|
2186 |
|
2187 |
-
#: admin/partials/menu/manage-lists.php:
|
2188 |
msgid "Settings Page"
|
2189 |
msgstr ""
|
2190 |
|
2191 |
-
#: admin/partials/menu/manage-lists.php:
|
2192 |
-
#: admin/partials/menu/manage-lists.php:
|
2193 |
msgid "List Name"
|
2194 |
msgstr ""
|
2195 |
|
2196 |
-
#: admin/partials/menu/manage-lists.php:
|
2197 |
-
#: admin/partials/menu/manage-lists.php:
|
2198 |
msgid "Subscriber Count"
|
2199 |
msgstr ""
|
2200 |
|
2201 |
-
#: admin/partials/menu/manage-lists.php:
|
2202 |
msgid "View"
|
2203 |
msgstr ""
|
2204 |
|
2205 |
-
#: admin/partials/menu/manage-lists.php:
|
2206 |
#, php-format
|
2207 |
msgid ""
|
2208 |
"No MailChimp lists found. Head over to <a href=\"%s\" title=\"MailChimp.com"
|
@@ -2210,6 +2134,31 @@ msgid ""
|
|
2210 |
"can head back here to customize it!"
|
2211 |
msgstr ""
|
2212 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2213 |
#: admin/partials/menu/options-sections/api-cache-settings.php:12
|
2214 |
msgid ""
|
2215 |
"Delete all MailChimp data stored in your sites cache. Most data is stored in "
|
@@ -2418,37 +2367,36 @@ msgstr ""
|
|
2418 |
|
2419 |
#: admin/partials/menu/options-sections/integration-settings.php:109
|
2420 |
msgid ""
|
2421 |
-
"
|
2422 |
-
"
|
2423 |
-
"
|
2424 |
-
"
|
2425 |
-
"any new commenters to a pre-determined MailChimp mailing list."
|
2426 |
msgstr ""
|
2427 |
|
2428 |
-
#: admin/partials/menu/options-sections/integration-settings.php:
|
2429 |
#, php-format
|
2430 |
msgid "Use %s in Contact Form 7 to display the checkbox."
|
2431 |
msgstr ""
|
2432 |
|
2433 |
-
#: admin/partials/menu/options-sections/integration-settings.php:
|
2434 |
-
msgid "
|
2435 |
msgstr ""
|
2436 |
|
2437 |
-
#: admin/partials/menu/options-sections/integration-settings.php:
|
2438 |
msgid ""
|
2439 |
-
"You have not setup any lists.
|
2440 |
-
"
|
2441 |
msgstr ""
|
2442 |
|
2443 |
-
#: admin/partials/menu/options-sections/integration-settings.php:
|
2444 |
-
msgid "Checkbox Label"
|
2445 |
msgstr ""
|
2446 |
|
2447 |
-
#: admin/partials/menu/options-sections/integration-settings.php:
|
2448 |
-
msgid "Precheck Checkbox"
|
2449 |
msgstr ""
|
2450 |
|
2451 |
-
#: admin/partials/menu/options-sections/integration-settings.php:
|
2452 |
msgid "Nothing is active."
|
2453 |
msgstr ""
|
2454 |
|
@@ -2492,16 +2440,10 @@ msgstr ""
|
|
2492 |
msgid "reCAPTCHA Preview"
|
2493 |
msgstr ""
|
2494 |
|
2495 |
-
#: admin/partials/menu/options-sections/templates/integration-interest-groups.php:
|
2496 |
-
msgid ""
|
2497 |
-
"It looks like we found some interest groups! Pre-select interest groups for "
|
2498 |
-
"this integration below."
|
2499 |
-
msgstr ""
|
2500 |
-
|
2501 |
-
#: admin/partials/menu/options-sections/templates/integration-interest-groups.php:8
|
2502 |
msgid ""
|
2503 |
-
"
|
2504 |
-
"
|
2505 |
msgstr ""
|
2506 |
|
2507 |
#: admin/partials/menu/options.php:9
|
@@ -2598,8 +2540,6 @@ msgid "Before submitting a support request, please visit our %s."
|
|
2598 |
msgstr ""
|
2599 |
|
2600 |
#: admin/partials/menu/support.php:26
|
2601 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:52
|
2602 |
-
#: admin/partials/welcome-page/welcome.php:24
|
2603 |
msgid "Knowledge Base"
|
2604 |
msgstr ""
|
2605 |
|
@@ -2834,7 +2774,7 @@ msgstr ""
|
|
2834 |
msgid "To edit this lists segments, head over to"
|
2835 |
msgstr ""
|
2836 |
|
2837 |
-
#: admin/partials/view-user.php:24 public/classes/checkbox-integrations.php:
|
2838 |
msgid "Get Member Info"
|
2839 |
msgstr ""
|
2840 |
|
@@ -2910,172 +2850,6 @@ msgstr ""
|
|
2910 |
msgid "View Google Map"
|
2911 |
msgstr ""
|
2912 |
|
2913 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:3
|
2914 |
-
#, php-format
|
2915 |
-
msgid ""
|
2916 |
-
"Before you can create any forms, you first need to enter your MailChimp API "
|
2917 |
-
"key into our <a href='%s' title='Easy MailChimp Forms Settings'>settings "
|
2918 |
-
"page</a>"
|
2919 |
-
msgstr ""
|
2920 |
-
|
2921 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:9
|
2922 |
-
msgid "Creating Your First Form"
|
2923 |
-
msgstr ""
|
2924 |
-
|
2925 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:13
|
2926 |
-
msgid "Create first optin form screenshot"
|
2927 |
-
msgstr ""
|
2928 |
-
|
2929 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:16
|
2930 |
-
msgid ""
|
2931 |
-
"To start collecting email addresses and building your mailing list, you need "
|
2932 |
-
"to create your first form. You can create as many forms as you like and "
|
2933 |
-
"assign each form to one of your lists."
|
2934 |
-
msgstr ""
|
2935 |
-
|
2936 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:20
|
2937 |
-
msgid "Additional Options"
|
2938 |
-
msgstr ""
|
2939 |
-
|
2940 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:21
|
2941 |
-
msgid ""
|
2942 |
-
"For each form, you can choose the fields you want added to it and customize "
|
2943 |
-
"the success and error messages returned by MailChimp."
|
2944 |
-
msgstr ""
|
2945 |
-
|
2946 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:27
|
2947 |
-
msgid "Optin settings screenshot"
|
2948 |
-
msgstr ""
|
2949 |
-
|
2950 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:29
|
2951 |
-
msgid "Customize the Form"
|
2952 |
-
msgstr ""
|
2953 |
-
|
2954 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:30
|
2955 |
-
msgid ""
|
2956 |
-
"Once created, you can customize the form. This includes editing the success "
|
2957 |
-
"and error messages displayed to the user, choosing which fields or interest "
|
2958 |
-
"groups are displayed, adding CSS classes to fields, assigning default values "
|
2959 |
-
"amp; placeholders and tons more!"
|
2960 |
-
msgstr ""
|
2961 |
-
|
2962 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:34
|
2963 |
-
msgid ""
|
2964 |
-
"Quickly and easily switch which list the form is associated with, toggle "
|
2965 |
-
"single or double optin, whether the welcome email should be sent, toggle "
|
2966 |
-
"AJAX form submissions and more. Get customizing!"
|
2967 |
-
msgstr ""
|
2968 |
-
|
2969 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:38
|
2970 |
-
msgid "Add field to form screenshot"
|
2971 |
-
msgstr ""
|
2972 |
-
|
2973 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:40
|
2974 |
-
msgid "Add Form to Page/Post"
|
2975 |
-
msgstr ""
|
2976 |
-
|
2977 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:41
|
2978 |
-
msgid ""
|
2979 |
-
"When you're ready to add your MailChimp opt-in form to a page or post, you "
|
2980 |
-
"can click on the small MailChimp button in the content editor toolbar."
|
2981 |
-
msgstr ""
|
2982 |
-
|
2983 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:45
|
2984 |
-
msgid "Add Form to Widget"
|
2985 |
-
msgstr ""
|
2986 |
-
|
2987 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:46
|
2988 |
-
msgid ""
|
2989 |
-
"We've created a MailChimp widget to easily add forms to any sidebar or "
|
2990 |
-
"widgetized area on your site. The widget allows you to select from any "
|
2991 |
-
"created forms."
|
2992 |
-
msgstr ""
|
2993 |
-
|
2994 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:50
|
2995 |
-
msgid "Need Support?"
|
2996 |
-
msgstr ""
|
2997 |
-
|
2998 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:53
|
2999 |
-
#, php-format
|
3000 |
-
msgid ""
|
3001 |
-
"For full plugin documentation, visit our <a href=\"%s\" title=\"Knowledge "
|
3002 |
-
"Base\" target=\"_blank\">Knowledge Base</a> where we have step-by-step "
|
3003 |
-
"guides and troubleshooting help.."
|
3004 |
-
msgstr ""
|
3005 |
-
|
3006 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:55
|
3007 |
-
msgid "Free Support"
|
3008 |
-
msgstr ""
|
3009 |
-
|
3010 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:56
|
3011 |
-
msgid ""
|
3012 |
-
"If you need help using the free version of the plugin, please post your "
|
3013 |
-
"questions to our support forum on the WordPress Plugin Directory."
|
3014 |
-
msgstr ""
|
3015 |
-
|
3016 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:57
|
3017 |
-
msgid "WordPress Plugin Directory"
|
3018 |
-
msgstr ""
|
3019 |
-
|
3020 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:57
|
3021 |
-
msgid "Easy Forms for MailChimp Free Support Forum"
|
3022 |
-
msgstr ""
|
3023 |
-
|
3024 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:59
|
3025 |
-
msgid "Priority Support"
|
3026 |
-
msgstr ""
|
3027 |
-
|
3028 |
-
#: admin/partials/welcome-page/welcome-sections/getting-started-section.php:60
|
3029 |
-
msgid ""
|
3030 |
-
"If you want immediate support, please consider purchasing an add-on or "
|
3031 |
-
"Unlimited License. Not only will you get 1 full year of automatic updates "
|
3032 |
-
"and priority support, you will enjoy all of the features packed into our add-"
|
3033 |
-
"ons not available in the free version."
|
3034 |
-
msgstr ""
|
3035 |
-
|
3036 |
-
#: admin/partials/welcome-page/welcome-sections/whats-new-section.php:5
|
3037 |
-
#: admin/partials/welcome-page/welcome-sections/whats-new-section.php:7
|
3038 |
-
msgid "MailChimp API 3.0"
|
3039 |
-
msgstr ""
|
3040 |
-
|
3041 |
-
#: admin/partials/welcome-page/welcome-sections/whats-new-section.php:9
|
3042 |
-
msgid ""
|
3043 |
-
"In version 6.3 of Easy Forms for MailChimp we've upgraded to version 3 of "
|
3044 |
-
"the MailChimp API."
|
3045 |
-
msgstr ""
|
3046 |
-
|
3047 |
-
#: admin/partials/welcome-page/welcome-sections/whats-new-section.php:11
|
3048 |
-
msgid ""
|
3049 |
-
"Upgrading to version 3 will allow us to build bigger and better features for "
|
3050 |
-
"the plugin well into the future!"
|
3051 |
-
msgstr ""
|
3052 |
-
|
3053 |
-
#: admin/partials/welcome-page/welcome.php:15
|
3054 |
-
msgid "Getting Started"
|
3055 |
-
msgstr ""
|
3056 |
-
|
3057 |
-
#: admin/partials/welcome-page/welcome.php:18
|
3058 |
-
msgid "What's New"
|
3059 |
-
msgstr ""
|
3060 |
-
|
3061 |
-
#: admin/partials/welcome-page/welcome.php:50
|
3062 |
-
msgid "MailChimp Done Right"
|
3063 |
-
msgstr ""
|
3064 |
-
|
3065 |
-
#: admin/partials/welcome-page/welcome.php:57
|
3066 |
-
#, php-format
|
3067 |
-
msgid ""
|
3068 |
-
"Welcome to the most powerful MailChimp integration for WordPress. Easy Forms "
|
3069 |
-
"for MailChimp v%s is ready to help take your mailing lists to the next level!"
|
3070 |
-
msgstr ""
|
3071 |
-
|
3072 |
-
#: admin/partials/welcome-page/welcome.php:60
|
3073 |
-
#, php-format
|
3074 |
-
msgid ""
|
3075 |
-
"Thank you for updating to the latest version! Easy Forms for MailChimp v%s "
|
3076 |
-
"is ready to help take your mailing lists to the next level!"
|
3077 |
-
msgstr ""
|
3078 |
-
|
3079 |
#: includes/add_ons/customizer.php:9
|
3080 |
msgid "Form Customizer for Easy Forms for MailChimp"
|
3081 |
msgstr ""
|
@@ -3144,53 +2918,58 @@ msgstr ""
|
|
3144 |
msgid "%s requests require a body as one of the parameters."
|
3145 |
msgstr ""
|
3146 |
|
3147 |
-
#: includes/
|
|
|
|
|
|
|
|
|
|
|
3148 |
msgid "Admin"
|
3149 |
msgstr ""
|
3150 |
|
3151 |
-
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:
|
3152 |
msgid "Front End"
|
3153 |
msgstr ""
|
3154 |
|
3155 |
-
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:
|
3156 |
msgid "Page:"
|
3157 |
msgstr ""
|
3158 |
|
3159 |
-
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:
|
3160 |
msgid "Type:"
|
3161 |
msgstr ""
|
3162 |
|
3163 |
-
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:
|
3164 |
msgid "Time:"
|
3165 |
msgstr ""
|
3166 |
|
3167 |
-
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:
|
3168 |
msgid "File get contents not available"
|
3169 |
msgstr ""
|
3170 |
|
3171 |
-
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:
|
3172 |
msgid "No errors logged."
|
3173 |
msgstr ""
|
3174 |
|
3175 |
-
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:
|
3176 |
msgid "To start logging errors toggle on the 'Enable Debugging' option above."
|
3177 |
msgstr ""
|
3178 |
|
3179 |
-
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:
|
3180 |
msgid "Error Log Missing"
|
3181 |
msgstr ""
|
3182 |
|
3183 |
-
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:
|
3184 |
msgid ""
|
3185 |
"It looks like your error log file is missing. You can attempt to create one "
|
3186 |
"by clicking the button below."
|
3187 |
msgstr ""
|
3188 |
|
3189 |
-
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:
|
3190 |
msgid "Attempt to Create Error Log"
|
3191 |
msgstr ""
|
3192 |
|
3193 |
-
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:
|
3194 |
msgid ""
|
3195 |
"It looks like the function file_get_contents() is disabled on your server. "
|
3196 |
"We cannot retrieve the contents of the error log."
|
@@ -3215,23 +2994,23 @@ msgid ""
|
|
3215 |
"uploads."
|
3216 |
msgstr ""
|
3217 |
|
3218 |
-
#: includes/third-party-integrations/visual-composer/visual-composer.php:
|
3219 |
msgid "Display a MailChimp Opt-In form"
|
3220 |
msgstr ""
|
3221 |
|
3222 |
-
#: includes/third-party-integrations/visual-composer/visual-composer.php:
|
3223 |
msgid "Select which form to display."
|
3224 |
msgstr ""
|
3225 |
|
3226 |
-
#: includes/third-party-integrations/visual-composer/visual-composer.php:
|
3227 |
msgid "Should this form display the title."
|
3228 |
msgstr ""
|
3229 |
|
3230 |
-
#: includes/third-party-integrations/visual-composer/visual-composer.php:
|
3231 |
msgid "Should this form display the description."
|
3232 |
msgstr ""
|
3233 |
|
3234 |
-
#: includes/third-party-integrations/visual-composer/visual-composer.php:
|
3235 |
msgid "Enter a title to display"
|
3236 |
msgstr ""
|
3237 |
|
@@ -3286,19 +3065,19 @@ msgstr ""
|
|
3286 |
msgid "Whoops, you shouldn't be accessing this file directly. Abort!"
|
3287 |
msgstr ""
|
3288 |
|
3289 |
-
#: public/classes/checkbox-integrations.php:
|
3290 |
msgid "Sign me up for your mailing list."
|
3291 |
msgstr ""
|
3292 |
|
3293 |
-
#: public/classes/checkbox-integrations.php:
|
3294 |
msgid "Checkbox Integration Subscribe User"
|
3295 |
msgstr ""
|
3296 |
|
3297 |
-
#: public/classes/checkbox-integrations.php:
|
3298 |
msgid "Note"
|
3299 |
msgstr ""
|
3300 |
|
3301 |
-
#: public/classes/checkbox-integrations/class.registration_form-checkbox.php:
|
3302 |
#, php-format
|
3303 |
msgid ""
|
3304 |
"You have not been subscribed to our mailing list. %s is already subscribed "
|
@@ -3378,37 +3157,16 @@ msgid "Send Update Profile Email - Get Account Lists"
|
|
3378 |
msgstr ""
|
3379 |
|
3380 |
#: public/partials/ajax/class.public_ajax.php:88
|
3381 |
-
msgid "Send Update Profile Email - Get Account Details"
|
3382 |
-
msgstr ""
|
3383 |
-
|
3384 |
-
#: public/partials/ajax/class.public_ajax.php:97
|
3385 |
msgid "Send Update Profile Email - Get Member Info."
|
3386 |
msgstr ""
|
3387 |
|
3388 |
-
#: public/partials/ajax/class.public_ajax.php:
|
3389 |
#, php-format
|
3390 |
msgid ""
|
3391 |
"Error sending update profile email. <strong>Error(s): %s</strong>. Please "
|
3392 |
"contact the site administrator."
|
3393 |
msgstr ""
|
3394 |
|
3395 |
-
#: public/partials/ajax/class.public_ajax.php:167
|
3396 |
-
#, php-format
|
3397 |
-
msgid ""
|
3398 |
-
"%s Update email successfully sent. Please check your inbox for the message."
|
3399 |
-
msgstr ""
|
3400 |
-
|
3401 |
-
#: public/partials/ajax/class.public_ajax.php:173
|
3402 |
-
#, php-format
|
3403 |
-
msgid "%s Email failed to send. Please contact the site administrator."
|
3404 |
-
msgstr ""
|
3405 |
-
|
3406 |
-
#: public/partials/shortcodes/process_form_shortcode_depracated.php:21
|
3407 |
-
msgid ""
|
3408 |
-
"This MailChimp shortcode is now deprecated. Please insert the new shortcode "
|
3409 |
-
"to display this form."
|
3410 |
-
msgstr ""
|
3411 |
-
|
3412 |
#: public/partials/shortcodes/process_form_shortcode.php:34
|
3413 |
msgid ""
|
3414 |
"Whoops, you're not connected to MailChimp. You need to enter a valid "
|
@@ -3443,39 +3201,39 @@ msgid ""
|
|
3443 |
"reCAPTCHA secret key!"
|
3444 |
msgstr ""
|
3445 |
|
3446 |
-
#: public/partials/shortcodes/process_form_shortcode.php:
|
3447 |
msgid ""
|
3448 |
"An email field is required for all MailChimp forms. Please add an email "
|
3449 |
"field to this form."
|
3450 |
msgstr ""
|
3451 |
|
3452 |
-
#: public/partials/shortcodes/process_form_shortcode.php:
|
3453 |
msgid "Whoops, it looks like you forgot to assign fields to this form."
|
3454 |
msgstr ""
|
3455 |
|
3456 |
-
#: public/partials/shortcodes/process_form_shortcode.php:
|
3457 |
-
#: public/partials/shortcodes/process_form_shortcode.php:
|
3458 |
msgid "This field is required."
|
3459 |
msgstr ""
|
3460 |
|
3461 |
-
#: public/partials/shortcodes/process_form_shortcode.php:
|
3462 |
msgid "Please enter a valid URL to the website."
|
3463 |
msgstr ""
|
3464 |
|
3465 |
-
#: public/partials/shortcodes/process_form_shortcode.php:
|
3466 |
msgid "Please enter a valid URL to the image."
|
3467 |
msgstr ""
|
3468 |
|
3469 |
-
#: public/partials/shortcodes/process_form_shortcode.php:
|
3470 |
msgid "International Phone Number"
|
3471 |
msgstr ""
|
3472 |
|
3473 |
-
#: public/partials/shortcodes/process_form_shortcode.php:
|
3474 |
msgid "US Phone Number (###) ### - ####"
|
3475 |
msgstr ""
|
3476 |
|
3477 |
-
#: public/partials/shortcodes/process_form_shortcode.php:
|
3478 |
-
#: public/partials/shortcodes/process_form_shortcode.php:
|
3479 |
msgid "5 digit zip code, numbers only"
|
3480 |
msgstr ""
|
3481 |
|
6 |
#, fuzzy
|
7 |
msgid ""
|
8 |
msgstr ""
|
9 |
+
"Project-Id-Version: yikes-inc-easy-mailchimp-extender 6.4.0\n"
|
10 |
"Report-Msgid-Bugs-To: \n"
|
11 |
+
"POT-Creation-Date: 2018-05-01 13:20+0000\n"
|
12 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
18 |
"Content-Transfer-Encoding: 8bit\n"
|
19 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
20 |
|
21 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:280
|
22 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:939
|
23 |
msgid "Settings"
|
24 |
msgstr ""
|
25 |
|
26 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:281
|
27 |
msgid "More plugins by YIKES, Inc."
|
28 |
msgstr ""
|
29 |
|
30 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:299
|
31 |
msgid ""
|
32 |
"Disclaimer: <strong>Easy Forms for MailChimp</strong> is in no way endorsed, "
|
33 |
"affiliated or backed by MailChimp, or its parent company Rocket Science "
|
34 |
"Group."
|
35 |
msgstr ""
|
36 |
|
37 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:299
|
38 |
msgid "Thanks :)"
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:387
|
42 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:409
|
43 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:429
|
44 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2561
|
45 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2596
|
46 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2616
|
47 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2649
|
48 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2683
|
49 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2824
|
50 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2846
|
51 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2870
|
52 |
msgid ""
|
53 |
"We've run into an error. The security check didn't pass. Please try again."
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:387
|
57 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:409
|
58 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:429
|
59 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2596
|
60 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2616
|
61 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2649
|
62 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2684
|
63 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2824
|
64 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2846
|
65 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2870
|
66 |
msgid "Failed nonce validation"
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:451
|
70 |
msgid "We encountered an error. Please contact the YIKES Inc. support team."
|
71 |
msgstr ""
|
72 |
|
73 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:600
|
74 |
#, php-format
|
75 |
msgid ""
|
76 |
"It looks like you've been using %1$s for 2 weeks now. We hope you're "
|
81 |
"really awesome features and premium support."
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:602
|
85 |
msgid "Leave A Review"
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:604
|
89 |
msgid "View Addons"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:606
|
93 |
msgid "Dismiss"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:632
|
97 |
msgid ""
|
98 |
"Easy Forms for MailChimp requires a minimum of PHP 5.3. The plugin will not "
|
99 |
"function properly until you update. Please reach out to your host provider "
|
100 |
"for assistance."
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:689
|
104 |
+
#: includes/third-party-integrations/visual-composer/visual-composer.php:121
|
105 |
msgid "Please Import Some MailChimp Lists"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:697
|
109 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:698
|
110 |
+
#: includes/third-party-integrations/visual-composer/visual-composer.php:36
|
111 |
+
#: includes/third-party-integrations/visual-composer/visual-composer.php:102
|
112 |
msgid "Easy Forms for MailChimp"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:699
|
116 |
+
#: includes/third-party-integrations/visual-composer/visual-composer.php:55
|
117 |
msgid "MailChimp Opt-In Form"
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:700
|
121 |
+
#: includes/third-party-integrations/visual-composer/visual-composer.php:65
|
122 |
msgid "Display Form Title"
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:701
|
126 |
+
#: includes/third-party-integrations/visual-composer/visual-composer.php:76
|
127 |
msgid "Display Form Description"
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:702
|
131 |
msgid "Custom Submit Button Text"
|
132 |
msgstr ""
|
133 |
|
134 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:703
|
135 |
msgid "If left empty, the button will use the default submit button text ."
|
136 |
msgstr ""
|
137 |
|
138 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:704
|
139 |
#, php-format
|
140 |
msgid ""
|
141 |
"You need to <a href=%s title=\"%s\">create a form</a> before you can add one "
|
142 |
"to a page or post."
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:704
|
146 |
+
#: admin/partials/front-end-widgets/front-end-widget-form.php:86
|
147 |
msgid "Create a form"
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:758
|
151 |
msgid "Locating Interest Groups"
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:781
|
155 |
msgid ""
|
156 |
"No fields assigned to this form. Select some fields to add to this form from "
|
157 |
"the right hand column."
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:782
|
161 |
msgid ""
|
162 |
"Are you sure you want to delete all of the fields assigned to this form?"
|
163 |
msgstr ""
|
164 |
|
165 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:783
|
166 |
msgid "Done"
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:784
|
170 |
msgid "Today"
|
171 |
msgstr ""
|
172 |
|
173 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:787
|
174 |
msgid "Show a different month"
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:800
|
178 |
msgid ""
|
179 |
"Error: The start date and time cannot occur after the end date and time. "
|
180 |
"Chosen date reverted to previous selection."
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:803
|
184 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1810
|
185 |
msgid "Click to edit the label"
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:804
|
189 |
msgid "Click to cancel editing. Your changes will not be saved."
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:895
|
193 |
msgid "Easy Forms"
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:911
|
197 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:912
|
198 |
msgid "Opt-in Forms"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:921
|
202 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:922
|
203 |
msgid "Mailing Lists"
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:938
|
|
|
|
|
|
|
|
|
|
|
207 |
msgid "Settings."
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:948
|
211 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:949
|
212 |
#: admin/partials/menu/support.php:14
|
213 |
msgid "Support"
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:958
|
217 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:959
|
218 |
#: admin/partials/menu/add-ons.php:12
|
|
|
219 |
msgid "Add-Ons"
|
220 |
msgstr ""
|
221 |
|
222 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:970
|
223 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:971
|
224 |
+
#: public/partials/shortcodes/process_form_shortcode.php:202
|
225 |
msgid "Edit Form"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:980
|
229 |
msgid "Us Easy Forms for MailChimp Upgrade Options Structure"
|
230 |
msgstr ""
|
231 |
|
232 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:990
|
233 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:991
|
234 |
+
#: admin/partials/edit-form.php:735 admin/partials/view-user.php:119
|
|
|
|
|
|
|
|
|
|
|
235 |
msgid "View List"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1000
|
239 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1001
|
240 |
msgid "View User"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1097
|
244 |
msgid "API Connection"
|
245 |
msgstr ""
|
246 |
|
247 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1106
|
248 |
#: admin/partials/menu/options-sections/general-settings.php:26
|
249 |
#: admin/partials/menu/options-sections/general-settings.php:28
|
250 |
msgid "MailChimp API Key"
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1127
|
254 |
msgid "Select Checkboxes to Generate"
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1149
|
258 |
msgid "Enter reCAPTCHA Site Key"
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1156
|
262 |
msgid "Enter reCAPTCHA Secret Key"
|
263 |
msgstr ""
|
264 |
|
265 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1163
|
266 |
msgid "Enable ReCaptcha"
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1183
|
270 |
#: admin/partials/menu/options-sections/debug-settings.php:16
|
271 |
msgid "Enable Debugging"
|
272 |
msgstr ""
|
273 |
|
274 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1209
|
275 |
msgid "Your API key appears to be invalid."
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1221
|
279 |
msgid "Connecting to MailChimp"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1221
|
283 |
msgid "Settings Page/General Settings"
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1319
|
287 |
#, php-format
|
288 |
msgid ""
|
289 |
"The previously stored options for %s have been cleared from the database. "
|
293 |
"previously set-up."
|
294 |
msgstr ""
|
295 |
|
296 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1325
|
297 |
#, php-format
|
298 |
msgid "It looks like you're upgrading from a previous version of %s."
|
299 |
msgstr ""
|
300 |
|
301 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1325
|
302 |
#, php-format
|
303 |
msgid ""
|
304 |
"In the newest version of %s, the options data structure has changed. We've "
|
307 |
"assign them to the same mailing list."
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1326
|
311 |
msgid ""
|
312 |
"Before you continue, it's strongly recommended you the perform the migration "
|
313 |
"to ensure the plugin continues to function properly."
|
314 |
msgstr ""
|
315 |
|
316 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1327
|
317 |
msgid "It's also strongly recommended that you take a backup of your database."
|
318 |
msgstr ""
|
319 |
|
320 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1332
|
321 |
msgid "Perform Migration"
|
322 |
msgstr ""
|
323 |
|
324 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1336
|
325 |
msgid "Dismiss Notice"
|
326 |
msgstr ""
|
327 |
|
328 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1443
|
329 |
msgid "Additional Settings"
|
330 |
msgstr ""
|
331 |
|
332 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1446
|
333 |
#: admin/partials/menu/options-sections/general-settings.php:11
|
334 |
#: admin/partials/menu/options-sections/integration-settings.php:98
|
335 |
#: admin/partials/menu/options.php:37
|
336 |
msgid "General Settings"
|
337 |
msgstr ""
|
338 |
|
339 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1447
|
340 |
#: admin/partials/menu/options-sections/integration-settings.php:79
|
341 |
msgid "Integration Settings"
|
342 |
msgstr ""
|
343 |
|
344 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1448
|
345 |
#: public/partials/shortcodes/process_form_shortcode.php:60
|
346 |
#: public/partials/shortcodes/process_form_shortcode.php:63
|
347 |
msgid "ReCaptcha Settings"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1449
|
351 |
#: admin/partials/menu/options-sections/api-cache-settings.php:6
|
352 |
msgid "API Cache Settings"
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1450
|
356 |
#: admin/partials/menu/options-sections/debug-settings.php:7
|
357 |
msgid "Debug Settings"
|
358 |
msgstr ""
|
359 |
|
360 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1451
|
361 |
msgid "Import/Export"
|
362 |
msgstr ""
|
363 |
|
364 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1458
|
365 |
msgid "Addon Settings"
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1492
|
369 |
msgid "Create a New Signup Form"
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1496
|
373 |
msgid ""
|
374 |
"Give your form a name, select a MailChimp list to assign users to, then "
|
375 |
"click 'Create'."
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1501
|
379 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1502
|
380 |
#: admin/partials/edit-form.php:157 admin/partials/menu/manage-forms.php:103
|
381 |
#: admin/partials/menu/manage-forms.php:118
|
382 |
msgid "Form Name"
|
383 |
msgstr ""
|
384 |
|
385 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1505
|
386 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1506
|
387 |
#: admin/partials/edit-form.php:163 admin/partials/menu/manage-forms.php:104
|
388 |
#: admin/partials/menu/manage-forms.php:119
|
389 |
msgid "Form Description"
|
390 |
msgstr ""
|
391 |
|
392 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1509
|
393 |
+
#: admin/partials/edit-form.php:717
|
|
|
394 |
msgid "Associated List"
|
395 |
msgstr ""
|
396 |
|
397 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1521
|
398 |
msgid "Please enter a valid API key."
|
399 |
msgstr ""
|
400 |
|
401 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1525
|
402 |
msgid "No lists were found on the account."
|
403 |
msgstr ""
|
404 |
|
405 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1538
|
406 |
msgid "MailChimp list data has been succesfully refreshed."
|
407 |
msgstr ""
|
408 |
|
409 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1548
|
410 |
#, php-format
|
411 |
msgid ""
|
412 |
"Head over to <a href=\"http://www.MailChimp.com\" title=\"%s\">MailChimp</a> "
|
413 |
"to create a new list."
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1548
|
417 |
msgid "Create a list"
|
418 |
msgstr ""
|
419 |
|
420 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1557
|
421 |
msgid "Create"
|
422 |
msgstr ""
|
423 |
|
424 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1559
|
425 |
msgid "Please enter a valid MailChimp API key to get started."
|
426 |
msgstr ""
|
427 |
|
428 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1561
|
429 |
msgid "general settings"
|
430 |
msgstr ""
|
431 |
|
432 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1572
|
433 |
msgid "Refresh Lists"
|
434 |
msgstr ""
|
435 |
|
436 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1589
|
437 |
msgid "Select A Page or Post"
|
438 |
msgstr ""
|
439 |
|
440 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1639
|
441 |
msgid "Custom URL"
|
442 |
msgstr ""
|
443 |
|
444 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1644
|
445 |
msgid "Enter Custom URL"
|
446 |
msgstr ""
|
447 |
|
448 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1679
|
449 |
msgid "About YIKES, Inc."
|
450 |
msgstr ""
|
451 |
|
452 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1679
|
453 |
msgid "Show Us Some Love"
|
454 |
msgstr ""
|
455 |
|
456 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1683
|
457 |
msgid "Leave a review"
|
458 |
msgstr ""
|
459 |
|
460 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1695
|
461 |
msgid "Tweet about it"
|
462 |
msgstr ""
|
463 |
|
464 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1701
|
465 |
msgid "Vote that the plugin works"
|
466 |
msgstr ""
|
467 |
|
468 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1704
|
469 |
msgid "Vote for Compatibility"
|
470 |
msgstr ""
|
471 |
|
472 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1709
|
473 |
#, php-format
|
474 |
msgid "This plugin made with %s by %s"
|
475 |
msgstr ""
|
476 |
|
477 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1715
|
478 |
msgid ""
|
479 |
"is a web design and development company located in Philadelphia, "
|
480 |
"Pennsylvania, US. YIKES specializes in custom WordPress theme and plugin "
|
482 |
"applications and more."
|
483 |
msgstr ""
|
484 |
|
485 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1718
|
486 |
msgid "Show YIKES Some Love"
|
487 |
msgstr ""
|
488 |
|
489 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1718
|
490 |
msgid "About YIKES"
|
491 |
msgstr ""
|
492 |
|
493 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1725
|
494 |
msgid "Easy Forms for MailChimp Add-Ons"
|
495 |
msgstr ""
|
496 |
|
497 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1727
|
498 |
msgid "Check out available add-ons for some seriously enhanced features."
|
499 |
msgstr ""
|
500 |
|
501 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1728
|
502 |
msgid "View Add-Ons"
|
503 |
msgstr ""
|
504 |
|
505 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1754
|
506 |
msgid "We've encountered an error. No list ID was sent."
|
507 |
msgstr ""
|
508 |
|
509 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1758
|
510 |
msgid ""
|
511 |
"We've encountered an error. Reload the page and try again. If the error "
|
512 |
"persists, please reach out to support."
|
513 |
msgstr ""
|
514 |
|
515 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1806
|
516 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2146
|
517 |
msgid "Field no longer exists."
|
518 |
msgstr ""
|
519 |
|
520 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1809
|
521 |
msgid "Click to save changes."
|
522 |
msgstr ""
|
523 |
|
524 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1812
|
525 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2148
|
526 |
#: admin/partials/ajax/add_field_to_form.php:41
|
527 |
#: admin/partials/ajax/add_interest_group_to_form.php:65
|
528 |
msgid "type"
|
529 |
msgstr ""
|
530 |
|
531 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1818
|
532 |
msgid ""
|
533 |
"This field no longer exists in this list. Delete this field from the form to "
|
534 |
"prevent issues on your website."
|
535 |
msgstr ""
|
536 |
|
537 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1845
|
538 |
#: admin/partials/ajax/add_field_to_form.php:65
|
539 |
msgid "Merge Tag"
|
540 |
msgstr ""
|
541 |
|
542 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1869
|
543 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1886
|
544 |
#: admin/partials/ajax/add_field_to_form.php:90
|
545 |
#: admin/partials/ajax/add_field_to_form.php:136
|
546 |
msgid "Placeholder"
|
547 |
msgstr ""
|
548 |
|
549 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1874
|
550 |
#: admin/partials/ajax/add_field_to_form.php:95
|
551 |
msgid "Assign a placeholder value to this field."
|
552 |
msgstr ""
|
553 |
|
554 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1891
|
555 |
#: admin/partials/ajax/add_field_to_form.php:141
|
556 |
msgid ""
|
557 |
"Use placeholders for this field (these will be automatically filled in with "
|
558 |
"field names)."
|
559 |
msgstr ""
|
560 |
|
561 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1910
|
562 |
#: admin/partials/ajax/add_field_to_form.php:159
|
563 |
msgid "Default Value"
|
564 |
msgstr ""
|
565 |
|
566 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1915
|
567 |
#: admin/partials/ajax/add_field_to_form.php:164
|
568 |
msgid ""
|
569 |
"Assign a default value to populate this field with on initial page load."
|
570 |
msgstr ""
|
571 |
|
572 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1920
|
573 |
#: admin/partials/ajax/add_field_to_form.php:169
|
574 |
msgid "View Pre-Defined Tags"
|
575 |
msgstr ""
|
576 |
|
577 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1934
|
578 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1964
|
579 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2177
|
580 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2237
|
581 |
#: admin/partials/ajax/add_field_to_form.php:183
|
582 |
#: admin/partials/ajax/add_field_to_form.php:209
|
583 |
#: admin/partials/ajax/add_interest_group_to_form.php:90
|
586 |
msgid "Default Selection"
|
587 |
msgstr ""
|
588 |
|
589 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1952
|
590 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2225
|
591 |
#: admin/partials/ajax/add_field_to_form.php:197
|
592 |
#: admin/partials/ajax/add_interest_group_to_form.php:103
|
593 |
#: admin/partials/ajax/add_interest_group_to_form.php:127
|
594 |
msgid "Select the option that should be selected by default."
|
595 |
msgstr ""
|
596 |
|
597 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1973
|
598 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2246
|
599 |
#: admin/partials/ajax/add_field_to_form.php:220
|
600 |
#: admin/partials/ajax/add_interest_group_to_form.php:152
|
601 |
msgid "Which option should be selected by default?"
|
602 |
msgstr ""
|
603 |
|
604 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1991
|
605 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2260
|
606 |
#: admin/partials/ajax/add_field_to_form.php:233
|
607 |
#: admin/partials/ajax/add_interest_group_to_form.php:164
|
608 |
msgid "Description"
|
609 |
msgstr ""
|
610 |
|
611 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:1996
|
612 |
msgid ""
|
613 |
"Enter the description for the form field. This will be displayed to the user "
|
614 |
"and will provide some direction on how the field should be filled out or "
|
615 |
"selected."
|
616 |
msgstr ""
|
617 |
|
618 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2003
|
619 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2273
|
620 |
#: admin/partials/ajax/add_field_to_form.php:245
|
621 |
#: admin/partials/ajax/add_interest_group_to_form.php:177
|
622 |
msgid "Description Above Field"
|
623 |
msgstr ""
|
624 |
|
625 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2008
|
626 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2278
|
627 |
#: admin/partials/ajax/add_field_to_form.php:250
|
628 |
#: admin/partials/ajax/add_interest_group_to_form.php:182
|
629 |
msgid ""
|
631 |
"if you'd like the description to appear above the field."
|
632 |
msgstr ""
|
633 |
|
634 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2015
|
635 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2286
|
636 |
#: admin/partials/ajax/add_field_to_form.php:257
|
637 |
#: admin/partials/ajax/add_interest_group_to_form.php:190
|
638 |
msgid "Additional Classes"
|
639 |
msgstr ""
|
640 |
|
641 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2020
|
642 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2291
|
643 |
#: admin/partials/ajax/add_field_to_form.php:262
|
644 |
#: admin/partials/ajax/add_interest_group_to_form.php:195
|
645 |
#, php-format
|
646 |
msgid "Assign additional classes to this field. %s."
|
647 |
msgstr ""
|
648 |
|
649 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2020
|
650 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2291
|
651 |
#: admin/partials/ajax/add_field_to_form.php:262
|
652 |
#: admin/partials/ajax/add_interest_group_to_form.php:195
|
653 |
msgid "View bundled classes"
|
654 |
msgstr ""
|
655 |
|
656 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2027
|
657 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2298
|
658 |
#: admin/partials/ajax/add_field_to_form.php:269
|
659 |
#: admin/partials/ajax/add_interest_group_to_form.php:202
|
660 |
msgid "Field Required?"
|
661 |
msgstr ""
|
662 |
|
663 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2032
|
664 |
#: admin/partials/ajax/add_field_to_form.php:273
|
665 |
msgid "Email is a required field."
|
666 |
msgstr ""
|
667 |
|
668 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2033
|
669 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2304
|
670 |
#: admin/partials/ajax/add_field_to_form.php:274
|
671 |
#: admin/partials/ajax/add_interest_group_to_form.php:207
|
672 |
msgid "Require this field to be filled in before the form can be submitted."
|
673 |
msgstr ""
|
674 |
|
675 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2040
|
676 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2311
|
677 |
#: admin/partials/ajax/add_field_to_form.php:281
|
678 |
#: admin/partials/ajax/add_interest_group_to_form.php:214
|
679 |
msgid "Hide Field"
|
680 |
msgstr ""
|
681 |
|
682 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2045
|
683 |
#: admin/partials/ajax/add_field_to_form.php:285
|
684 |
msgid "Cannot toggle email field visibility."
|
685 |
msgstr ""
|
686 |
|
687 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2046
|
688 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2317
|
689 |
#: admin/partials/ajax/add_field_to_form.php:286
|
690 |
#: admin/partials/ajax/add_interest_group_to_form.php:219
|
691 |
msgid "Hide this field from being displayed on the front end."
|
692 |
msgstr ""
|
693 |
|
694 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2053
|
695 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2324
|
696 |
#: admin/partials/ajax/add_field_to_form.php:293
|
697 |
#: admin/partials/ajax/add_interest_group_to_form.php:226
|
698 |
msgid "Hide Label"
|
699 |
msgstr ""
|
700 |
|
701 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2059
|
702 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2330
|
703 |
#: admin/partials/ajax/add_field_to_form.php:298
|
704 |
#: admin/partials/ajax/add_interest_group_to_form.php:231
|
705 |
msgid "Toggle field label visibility."
|
706 |
msgstr ""
|
707 |
|
708 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2078
|
709 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2084
|
710 |
#: admin/partials/ajax/add_field_to_form.php:317
|
711 |
#: admin/partials/ajax/add_field_to_form.php:323
|
712 |
msgid "Date Format"
|
713 |
msgstr ""
|
714 |
|
715 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2090
|
716 |
#: admin/partials/ajax/add_field_to_form.php:329
|
717 |
msgid "Phone Format"
|
718 |
msgstr ""
|
719 |
|
720 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2091
|
721 |
#: admin/partials/ajax/add_field_to_form.php:330
|
722 |
msgid "International"
|
723 |
msgstr ""
|
724 |
|
725 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2103
|
726 |
#: admin/partials/ajax/add_field_to_form.php:342
|
727 |
#, php-format
|
728 |
msgid ""
|
731 |
"import this field."
|
732 |
msgstr ""
|
733 |
|
734 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2122
|
735 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2340
|
736 |
#: admin/partials/ajax/add_field_to_form.php:361
|
737 |
#: admin/partials/ajax/add_interest_group_to_form.php:241
|
738 |
msgid "Close"
|
739 |
msgstr ""
|
740 |
|
741 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2123
|
742 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2341
|
743 |
#: admin/partials/ajax/add_field_to_form.php:362
|
744 |
#: admin/partials/ajax/add_interest_group_to_form.php:242
|
745 |
msgid "Remove Field"
|
746 |
msgstr ""
|
747 |
|
748 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2155
|
749 |
msgid ""
|
750 |
"This field no longer exists in this list. Delete this field from the form to "
|
751 |
"prevent issues on the front end."
|
752 |
msgstr ""
|
753 |
|
754 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2265
|
755 |
#: admin/partials/ajax/add_field_to_form.php:238
|
756 |
#: admin/partials/ajax/add_interest_group_to_form.php:169
|
757 |
msgid ""
|
759 |
"and provide some direction on how the field should be filled out or selected."
|
760 |
msgstr ""
|
761 |
|
762 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2355
|
763 |
msgid ""
|
764 |
"No fields are assigned to this form. Select fields from the right hand "
|
765 |
"column to add to this form."
|
766 |
msgstr ""
|
767 |
|
768 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2366
|
769 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2367
|
770 |
msgid "Page Title"
|
771 |
msgstr ""
|
772 |
|
773 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2366
|
774 |
msgid ""
|
775 |
"Pre-populate the field with the current page or post title that the user is "
|
776 |
"on when opting in to your mailing list."
|
777 |
msgstr ""
|
778 |
|
779 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2371
|
780 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2372
|
781 |
msgid "Page ID"
|
782 |
msgstr ""
|
783 |
|
784 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2371
|
785 |
msgid ""
|
786 |
"Pre-populate the field with the current page or post ID that the user is on "
|
787 |
"when opting in to your mailing list."
|
788 |
msgstr ""
|
789 |
|
790 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2376
|
791 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2377
|
792 |
msgid "Page URL"
|
793 |
msgstr ""
|
794 |
|
795 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2376
|
796 |
msgid ""
|
797 |
"Pre-populate the field with the current page URL that the user is on when "
|
798 |
"opting in to your mailing list."
|
799 |
msgstr ""
|
800 |
|
801 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2381
|
802 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2382
|
803 |
msgid "Blog Name"
|
804 |
msgstr ""
|
805 |
|
806 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2381
|
807 |
msgid ""
|
808 |
"Pre-populate the field with the current blog name that the user is on when "
|
809 |
"opting in to your mailing list. This is especially helpful for multi-site "
|
810 |
"networks."
|
811 |
msgstr ""
|
812 |
|
813 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2386
|
814 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2387
|
815 |
msgid "User Logged In"
|
816 |
msgstr ""
|
817 |
|
818 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2386
|
819 |
msgid ""
|
820 |
"Detects if a user is logged in and pre-populates the field with an "
|
821 |
"appropriate value."
|
822 |
msgstr ""
|
823 |
|
824 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2414
|
825 |
msgid "Pre Defined Tags"
|
826 |
msgstr ""
|
827 |
|
828 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2415
|
829 |
msgid ""
|
830 |
"You can use any of the following tags to populate a MailChimp text field "
|
831 |
"with dynamic content. This can be used to determine which page the user "
|
832 |
"signed up on, if the user was logged in and more."
|
833 |
msgstr ""
|
834 |
|
835 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2459
|
836 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2521
|
837 |
msgid "Already assigned to your form"
|
838 |
msgstr ""
|
839 |
|
840 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2463
|
841 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2477
|
842 |
msgid "required field"
|
843 |
msgstr ""
|
844 |
|
845 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2487
|
846 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2545
|
847 |
msgid "Add to Form Builder"
|
848 |
msgstr ""
|
849 |
|
850 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2575
|
851 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2576
|
852 |
msgid "Error creating a new form"
|
853 |
msgstr ""
|
854 |
|
855 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2575
|
856 |
msgid "Creating a new form"
|
857 |
msgstr ""
|
858 |
|
859 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2575
|
|
|
860 |
msgid "Forms"
|
861 |
msgstr ""
|
862 |
|
863 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2795
|
864 |
msgid "Greetings,"
|
865 |
msgstr ""
|
866 |
|
867 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2798
|
868 |
msgid ""
|
869 |
"A request has been made to update your MailChimp account profile information."
|
870 |
msgstr ""
|
871 |
|
872 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2799
|
873 |
msgid " To do so please use the following link: "
|
874 |
msgstr ""
|
875 |
|
876 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2801
|
877 |
msgid "Update MailChimp Profile Info"
|
878 |
msgstr ""
|
879 |
|
880 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2805
|
881 |
msgid "If you did not request this update, please disregard this email."
|
882 |
msgstr ""
|
883 |
|
884 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2808
|
885 |
#, php-format
|
886 |
msgid "This email was sent from: %s"
|
887 |
msgstr ""
|
888 |
|
889 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2832
|
890 |
msgid "Unsubscribe User"
|
891 |
msgstr ""
|
892 |
|
893 |
+
#: admin/class-yikes-inc-easy-mailchimp-extender-admin.php:2833
|
894 |
msgid "Manage List Page"
|
895 |
msgstr ""
|
896 |
|
940 |
#: admin/partials/ajax/class.ajax.php:55
|
941 |
#: admin/partials/dashboard-widgets/class.list-activity-widget.php:73
|
942 |
#: admin/partials/edit-form.php:82 admin/partials/menu/manage-forms.php:15
|
943 |
+
#: admin/partials/menu/manage-lists.php:19
|
944 |
#: admin/partials/menu/options-sections/integration-settings.php:90
|
945 |
#: admin/partials/view-list.php:17 admin/partials/view-user.php:55
|
946 |
#: public/partials/shortcodes/yikes-mailchimp-subscriber-count.php:68
|
963 |
msgid "Could not update the field label: API request failed."
|
964 |
msgstr ""
|
965 |
|
966 |
+
#: admin/partials/dashboard-widgets/class.list-activity-widget.php:35
|
967 |
msgid "Preloader"
|
968 |
msgstr ""
|
969 |
|
|
|
|
|
|
|
|
|
970 |
#: admin/partials/dashboard-widgets/class.list-activity-widget.php:58
|
971 |
+
msgid "MailChimp List Stats"
|
972 |
msgstr ""
|
973 |
|
974 |
#: admin/partials/dashboard-widgets/class.list-activity-widget.php:81
|
987 |
"lists."
|
988 |
msgstr ""
|
989 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
990 |
#: admin/partials/dashboard-widgets/templates/stats-list-template.php:34
|
991 |
msgid "view List"
|
992 |
msgstr ""
|
1075 |
#: admin/partials/edit-form.php:56 admin/partials/edit-form.php:365
|
1076 |
#: admin/partials/edit-form.php:366
|
1077 |
#: admin/partials/front-end-widgets/front-end-widget-form.php:45
|
1078 |
+
#: admin/partials/front-end-widgets/front-end-widget-form.php:110
|
1079 |
#: includes/class-yikes-inc-easy-mailchimp-extender-forms-abstract.php:43
|
1080 |
+
#: includes/third-party-integrations/visual-composer/visual-composer.php:89
|
1081 |
+
#: public/partials/shortcodes/process_form_shortcode.php:106
|
1082 |
msgid "Submit"
|
1083 |
msgstr ""
|
1084 |
|
1098 |
msgstr ""
|
1099 |
|
1100 |
#: admin/partials/edit-form.php:67
|
|
|
1101 |
#, php-format
|
1102 |
+
msgid "The signup period for this form ended on %s."
|
1103 |
msgstr ""
|
1104 |
|
1105 |
#: admin/partials/edit-form.php:69
|
1107 |
msgid "You need to be logged in to sign up for this mailing list."
|
1108 |
msgstr ""
|
1109 |
|
1110 |
+
#: admin/partials/edit-form.php:125 admin/partials/menu/add-ons.php:10
|
1111 |
+
#: admin/partials/menu/manage-forms.php:26
|
1112 |
+
#: admin/partials/menu/manage-lists.php:30 admin/partials/menu/options.php:35
|
1113 |
#: admin/partials/menu/support.php:12 admin/partials/view-list.php:93
|
1114 |
#: admin/partials/view-user.php:111
|
1115 |
msgid "Freddie - MailChimp Mascot"
|
1116 |
msgstr ""
|
1117 |
|
1118 |
#: admin/partials/edit-form.php:127 admin/partials/menu/manage-forms.php:144
|
1119 |
+
#: public/partials/shortcodes/process_form_shortcode.php:202
|
1120 |
msgid "Edit"
|
1121 |
msgstr ""
|
1122 |
|
1153 |
msgid "Form Builder"
|
1154 |
msgstr ""
|
1155 |
|
1156 |
+
#: admin/partials/edit-form.php:185 admin/partials/edit-form.php:690
|
1157 |
msgid "Form Settings"
|
1158 |
msgstr ""
|
1159 |
|
1176 |
msgid "Clear Form Fields"
|
1177 |
msgstr ""
|
1178 |
|
1179 |
+
#: admin/partials/edit-form.php:226 admin/partials/edit-form.php:902
|
1180 |
msgid "Update Form"
|
1181 |
msgstr ""
|
1182 |
|
1282 |
msgstr ""
|
1283 |
|
1284 |
#: admin/partials/edit-form.php:364
|
1285 |
+
#: includes/third-party-integrations/visual-composer/visual-composer.php:87
|
1286 |
msgid "Submit Button Text"
|
1287 |
msgstr ""
|
1288 |
|
1481 |
|
1482 |
#: admin/partials/edit-form.php:551
|
1483 |
#: admin/partials/upgrade-helpers/upgrade-migrate-options.php:25
|
1484 |
+
#: public/partials/ajax/class.public_ajax.php:141
|
1485 |
msgid "MailChimp Profile Update"
|
1486 |
msgstr ""
|
1487 |
|
1488 |
+
#: admin/partials/edit-form.php:552
|
1489 |
+
#: public/partials/ajax/class.public_ajax.php:152
|
1490 |
+
#, php-format
|
1491 |
+
msgid ""
|
1492 |
+
"%s Update email successfully sent. Please check your inbox for the message."
|
1493 |
+
msgstr ""
|
1494 |
+
|
1495 |
+
#: admin/partials/edit-form.php:553
|
1496 |
+
#: public/partials/ajax/class.public_ajax.php:156
|
1497 |
+
#, php-format
|
1498 |
+
msgid "%s Email failed to send. Please contact the site administrator."
|
1499 |
+
msgstr ""
|
1500 |
+
|
1501 |
+
#: admin/partials/edit-form.php:558
|
1502 |
msgid ""
|
1503 |
"Customize the response messages for this form. Leave the field blank to use "
|
1504 |
"the default message. The messages shown below depend on the Opt-in Settings "
|
1505 |
"chosen."
|
1506 |
msgstr ""
|
1507 |
|
1508 |
+
#: admin/partials/edit-form.php:561 admin/partials/edit-form.php:631
|
1509 |
msgid "Success: Double opt-in"
|
1510 |
msgstr ""
|
1511 |
|
1512 |
+
#: admin/partials/edit-form.php:565
|
1513 |
msgid "Success: Single opt-in"
|
1514 |
msgstr ""
|
1515 |
|
1516 |
+
#: admin/partials/edit-form.php:569 admin/partials/edit-form.php:633
|
1517 |
msgid "Success: Re-subscriber"
|
1518 |
msgstr ""
|
1519 |
|
1520 |
+
#: admin/partials/edit-form.php:574 admin/partials/edit-form.php:634
|
1521 |
msgid "Success: Re-subscriber with link to email profile update message"
|
1522 |
msgstr ""
|
1523 |
|
1524 |
+
#: admin/partials/edit-form.php:579 admin/partials/edit-form.php:637
|
1525 |
msgid "Error: Re-subscribers not permitted"
|
1526 |
msgstr ""
|
1527 |
|
1528 |
+
#: admin/partials/edit-form.php:584 admin/partials/edit-form.php:635
|
1529 |
+
msgid "Success: Update email successfully sent"
|
1530 |
+
msgstr ""
|
1531 |
+
|
1532 |
+
#: admin/partials/edit-form.php:589 admin/partials/edit-form.php:636
|
1533 |
+
msgid "Error: Update email failed to send"
|
1534 |
+
msgstr ""
|
1535 |
+
|
1536 |
+
#: admin/partials/edit-form.php:594 admin/partials/edit-form.php:638
|
1537 |
msgid "Error: General"
|
1538 |
msgstr ""
|
1539 |
|
1540 |
+
#: admin/partials/edit-form.php:602
|
1541 |
msgid ""
|
1542 |
"Customize the profile verification email sent to re-subscribers. Leave the "
|
1543 |
"text unedited to use the default message."
|
1544 |
msgstr ""
|
1545 |
|
1546 |
+
#: admin/partials/edit-form.php:604 admin/partials/edit-form.php:650
|
1547 |
msgid "Email Subject"
|
1548 |
msgstr ""
|
1549 |
|
1550 |
+
#: admin/partials/edit-form.php:608 admin/partials/edit-form.php:651
|
1551 |
msgid "Email Body"
|
1552 |
msgstr ""
|
1553 |
|
1554 |
+
#: admin/partials/edit-form.php:628
|
1555 |
msgid "Custom Message Help"
|
1556 |
msgstr ""
|
1557 |
|
1558 |
+
#: admin/partials/edit-form.php:631
|
1559 |
msgid "The message displayed after a double opt-in form has been submitted."
|
1560 |
msgstr ""
|
1561 |
|
1562 |
+
#: admin/partials/edit-form.php:632
|
1563 |
msgid "Success Message: Single opt-in"
|
1564 |
msgstr ""
|
1565 |
|
1566 |
+
#: admin/partials/edit-form.php:632
|
1567 |
msgid "The message displayed after a single opt-in form has been submitted."
|
1568 |
msgstr ""
|
1569 |
|
1570 |
+
#: admin/partials/edit-form.php:633
|
1571 |
msgid ""
|
1572 |
"The message displayed after a subscriber submits a form for a list they are "
|
1573 |
"already subscribed to."
|
1574 |
msgstr ""
|
1575 |
|
1576 |
+
#: admin/partials/edit-form.php:634
|
1577 |
msgid ""
|
1578 |
"The message displayed after a subscriber submits a form for a list they are "
|
1579 |
"already subscribed to. Wrap the text you want to be the link in <code>[link]"
|
1580 |
"[/link]</code> tags."
|
1581 |
msgstr ""
|
1582 |
|
1583 |
+
#: admin/partials/edit-form.php:635
|
1584 |
+
msgid ""
|
1585 |
+
"The message displayed after an update profile email is successfully sent."
|
1586 |
+
msgstr ""
|
1587 |
+
|
1588 |
+
#: admin/partials/edit-form.php:636
|
1589 |
+
msgid "The message displayed after an update profile email failed to send."
|
1590 |
+
msgstr ""
|
1591 |
+
|
1592 |
+
#: admin/partials/edit-form.php:637
|
1593 |
msgid ""
|
1594 |
"The message displayed after a subscriber tries to join a list they are "
|
1595 |
"already subscribed to. You can display the user's email in the message "
|
1596 |
"using an <code>[email]</code> tag."
|
1597 |
msgstr ""
|
1598 |
|
1599 |
+
#: admin/partials/edit-form.php:638
|
1600 |
msgid "The message displayed if a form error has occurred."
|
1601 |
msgstr ""
|
1602 |
|
1603 |
+
#: admin/partials/edit-form.php:646
|
1604 |
msgid "Email Message Help"
|
1605 |
msgstr ""
|
1606 |
|
1607 |
+
#: admin/partials/edit-form.php:650
|
1608 |
msgid "The subject of the email sent to the user."
|
1609 |
msgstr ""
|
1610 |
|
1611 |
+
#: admin/partials/edit-form.php:651
|
1612 |
#, php-format
|
1613 |
msgid ""
|
1614 |
"The text in the profile update verification email sent to the subscriber. "
|
1617 |
"can also use <code>[url]</code> tag to display your website's URL (e.g. %s)."
|
1618 |
msgstr ""
|
1619 |
|
1620 |
+
#: admin/partials/edit-form.php:694
|
1621 |
msgid "Edit Another Form"
|
1622 |
msgstr ""
|
1623 |
|
1624 |
+
#: admin/partials/edit-form.php:704 admin/partials/menu/manage-forms.php:147
|
1625 |
msgid "Shortcode"
|
1626 |
msgstr ""
|
1627 |
|
1628 |
+
#: admin/partials/edit-form.php:711
|
1629 |
msgid "Associated List Settings"
|
1630 |
msgstr ""
|
1631 |
|
1632 |
+
#: admin/partials/edit-form.php:728
|
1633 |
msgid "No Lists Found"
|
1634 |
msgstr ""
|
1635 |
|
1636 |
+
#: admin/partials/edit-form.php:738
|
1637 |
msgid ""
|
1638 |
"Users who sign up via this form will be added to the list selected above."
|
1639 |
msgstr ""
|
1640 |
|
1641 |
+
#: admin/partials/edit-form.php:742
|
1642 |
msgid ""
|
1643 |
"It looks like you first need to create a list to assign this form to. Head "
|
1644 |
"over to"
|
1645 |
msgstr ""
|
1646 |
|
1647 |
+
#: admin/partials/edit-form.php:742
|
1648 |
msgid "Create a new list"
|
1649 |
msgstr ""
|
1650 |
|
1651 |
+
#: admin/partials/edit-form.php:742
|
1652 |
msgid "to create your first list"
|
1653 |
msgstr ""
|
1654 |
|
1655 |
+
#: admin/partials/edit-form.php:748
|
1656 |
#: admin/partials/menu/options-sections/api-cache-settings.php:15
|
1657 |
msgid "No MailChimp data found in temporary cache storage."
|
1658 |
msgstr ""
|
1659 |
|
1660 |
+
#: admin/partials/edit-form.php:748 admin/partials/edit-form.php:750
|
1661 |
#: admin/partials/menu/options-sections/api-cache-settings.php:15
|
1662 |
#: admin/partials/menu/options-sections/api-cache-settings.php:17
|
1663 |
msgid "Clear MailChimp API Cache"
|
1664 |
msgstr ""
|
1665 |
|
1666 |
+
#: admin/partials/edit-form.php:757
|
1667 |
msgid "Opt-in Settings"
|
1668 |
msgstr ""
|
1669 |
|
1670 |
+
#: admin/partials/edit-form.php:767
|
1671 |
msgid "Single or Double Opt-in"
|
1672 |
msgstr ""
|
1673 |
|
1674 |
+
#: admin/partials/edit-form.php:769
|
1675 |
msgid "Single"
|
1676 |
msgstr ""
|
1677 |
|
1678 |
+
#: admin/partials/edit-form.php:770
|
1679 |
msgid "Double"
|
1680 |
msgstr ""
|
1681 |
|
1682 |
+
#: admin/partials/edit-form.php:772
|
1683 |
msgid ""
|
1684 |
"Double opt-in requires users to confirm their email address before being "
|
1685 |
"added to a list (recommended)"
|
1686 |
msgstr ""
|
1687 |
|
1688 |
+
#: admin/partials/edit-form.php:781
|
1689 |
msgid "Update Existing Subscriber"
|
1690 |
msgstr ""
|
1691 |
|
1692 |
+
#: admin/partials/edit-form.php:783 admin/partials/edit-form.php:799
|
1693 |
+
#: admin/partials/edit-form.php:819 admin/partials/edit-form.php:834
|
1694 |
+
#: admin/partials/edit-form.php:851 admin/partials/edit-form.php:868
|
1695 |
+
#: admin/partials/menu/options-sections/integration-settings.php:188
|
1696 |
+
#: includes/third-party-integrations/visual-composer/visual-composer.php:68
|
1697 |
+
#: includes/third-party-integrations/visual-composer/visual-composer.php:79
|
1698 |
#: public/classes/checkbox-integrations/class.contact_form_7-checkbox.php:54
|
1699 |
msgid "Yes"
|
1700 |
msgstr ""
|
1701 |
|
1702 |
+
#: admin/partials/edit-form.php:784 admin/partials/edit-form.php:800
|
1703 |
+
#: admin/partials/edit-form.php:820 admin/partials/edit-form.php:835
|
1704 |
+
#: admin/partials/edit-form.php:855 admin/partials/edit-form.php:869
|
1705 |
+
#: admin/partials/menu/options-sections/integration-settings.php:189
|
1706 |
#: public/classes/checkbox-integrations/class.contact_form_7-checkbox.php:54
|
1707 |
msgid "No"
|
1708 |
msgstr ""
|
1709 |
|
1710 |
+
#: admin/partials/edit-form.php:786
|
1711 |
#, php-format
|
1712 |
msgid ""
|
1713 |
"Update an existing subscriber's profile information instead of displaying a "
|
1714 |
"%s message."
|
1715 |
msgstr ""
|
1716 |
|
1717 |
+
#: admin/partials/edit-form.php:786 admin/partials/edit-form.php:802
|
1718 |
msgid "\"user already subscribed\""
|
1719 |
msgstr ""
|
1720 |
|
1721 |
+
#: admin/partials/edit-form.php:797
|
1722 |
msgid "Send Update Email"
|
1723 |
msgstr ""
|
1724 |
|
1725 |
+
#: admin/partials/edit-form.php:802
|
1726 |
msgid ""
|
1727 |
"Send an email to the user granting their permission to update their profile "
|
1728 |
"information. Otherwise, an existing subscriber filling out this form, will "
|
1729 |
"have their profile information updated without any further interaction."
|
1730 |
msgstr ""
|
1731 |
|
1732 |
+
#: admin/partials/edit-form.php:808
|
1733 |
msgid "Submission Settings"
|
1734 |
msgstr ""
|
1735 |
|
1736 |
+
#: admin/partials/edit-form.php:817
|
1737 |
msgid "Enable AJAX Submission"
|
1738 |
msgstr ""
|
1739 |
|
1740 |
+
#: admin/partials/edit-form.php:822
|
1741 |
msgid ""
|
1742 |
"AJAX form submissions transmit data without requiring the page to refresh."
|
1743 |
msgstr ""
|
1744 |
|
1745 |
+
#: admin/partials/edit-form.php:832
|
1746 |
msgid "Redirect On Submission"
|
1747 |
msgstr ""
|
1748 |
|
1749 |
+
#: admin/partials/edit-form.php:838
|
1750 |
msgid "When the user signs up would you like to redirect them to another page?"
|
1751 |
msgstr ""
|
1752 |
|
1753 |
+
#: admin/partials/edit-form.php:849
|
1754 |
msgid "Open Redirect URL in a New Window"
|
1755 |
msgstr ""
|
1756 |
|
1757 |
+
#: admin/partials/edit-form.php:857
|
1758 |
msgid "Should the redirect URL open in a new window/tab?"
|
1759 |
msgstr ""
|
1760 |
|
1761 |
+
#: admin/partials/edit-form.php:866
|
1762 |
msgid "Hide Form After Sign Up"
|
1763 |
msgstr ""
|
1764 |
|
1765 |
+
#: admin/partials/edit-form.php:871
|
1766 |
msgid "Should the form be hidden after the user successfully signs up?"
|
1767 |
msgstr ""
|
1768 |
|
1769 |
+
#: admin/partials/edit-form.php:880
|
1770 |
msgid "Existing Interest Groups"
|
1771 |
msgstr ""
|
1772 |
|
1773 |
+
#: admin/partials/edit-form.php:882
|
1774 |
msgid "Replace"
|
1775 |
msgstr ""
|
1776 |
|
1777 |
+
#: admin/partials/edit-form.php:883
|
1778 |
msgid "Update"
|
1779 |
msgstr ""
|
1780 |
|
1781 |
+
#: admin/partials/edit-form.php:886
|
1782 |
msgid ""
|
1783 |
"<strong>Replace</strong>: Replace all interest groups with the new ones "
|
1784 |
"submitted."
|
1785 |
msgstr ""
|
1786 |
|
1787 |
+
#: admin/partials/edit-form.php:889
|
1788 |
msgid ""
|
1789 |
"<strong>Update</strong>: Update <em>only</em> the ones submitted. Leave "
|
1790 |
"existing interest groups as is."
|
1791 |
msgstr ""
|
1792 |
|
1793 |
+
#: admin/partials/edit-form.php:904
|
1794 |
msgid "Are you sure you want to delete this form? This cannot be undone."
|
1795 |
msgstr ""
|
1796 |
|
1797 |
+
#: admin/partials/edit-form.php:904
|
1798 |
msgid "Delete Form"
|
1799 |
msgstr ""
|
1800 |
|
1807 |
msgstr ""
|
1808 |
|
1809 |
#: admin/partials/front-end-widgets/front-end-widget-form.php:42
|
1810 |
+
#: admin/partials/front-end-widgets/front-end-widget-form.php:96
|
1811 |
msgid "MailChimp Signup Form"
|
1812 |
msgstr ""
|
1813 |
|
1814 |
+
#: admin/partials/front-end-widgets/front-end-widget-form.php:86
|
1815 |
#, php-format
|
1816 |
msgid ""
|
1817 |
"No forms found. It looks like you need to <a href=\"%s\" title=\"%s\">%s</a>."
|
1818 |
msgstr ""
|
1819 |
|
1820 |
+
#: admin/partials/front-end-widgets/front-end-widget-form.php:86
|
1821 |
msgid "create a form"
|
1822 |
msgstr ""
|
1823 |
|
1824 |
+
#: admin/partials/front-end-widgets/front-end-widget-form.php:115
|
1825 |
msgid ""
|
1826 |
"Please enter a valid MailChimp API key to connect your site to MailChimp."
|
1827 |
msgstr ""
|
1828 |
|
1829 |
+
#: admin/partials/front-end-widgets/front-end-widget-form.php:123
|
1830 |
msgid "Title:"
|
1831 |
msgstr ""
|
1832 |
|
1833 |
+
#: admin/partials/front-end-widgets/front-end-widget-form.php:128
|
1834 |
msgid "Form:"
|
1835 |
msgstr ""
|
1836 |
|
1837 |
+
#: admin/partials/front-end-widgets/front-end-widget-form.php:142
|
1838 |
msgid "Display Form Description:"
|
1839 |
msgstr ""
|
1840 |
|
1841 |
+
#: admin/partials/front-end-widgets/front-end-widget-form.php:147
|
1842 |
msgid "Submit Button Text:"
|
1843 |
msgstr ""
|
1844 |
|
1978 |
"we make initial contact you can attach any screenshots necessary."
|
1979 |
msgstr ""
|
1980 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1981 |
#: admin/partials/menu/add-ons.php:12
|
1982 |
msgid "View All Add-Ons"
|
1983 |
msgstr ""
|
1989 |
msgstr ""
|
1990 |
|
1991 |
#: admin/partials/menu/manage-forms.php:28
|
|
|
1992 |
msgid "Manage Forms"
|
1993 |
msgstr ""
|
1994 |
|
2087 |
"No MailChimp forms found. Use the form to the right to create a new one."
|
2088 |
msgstr ""
|
2089 |
|
2090 |
+
#: admin/partials/menu/manage-lists.php:5
|
2091 |
+
msgid ""
|
2092 |
+
"It looks like you need to re-validate your MailChimp API key before you can "
|
2093 |
+
"continue."
|
2094 |
+
msgstr ""
|
2095 |
+
|
2096 |
+
#: admin/partials/menu/manage-lists.php:32
|
2097 |
msgid "Manage Mailing Lists"
|
2098 |
msgstr ""
|
2099 |
|
2100 |
+
#: admin/partials/menu/manage-lists.php:35
|
2101 |
msgid "Make edits to your MailChimp lists."
|
2102 |
msgstr ""
|
2103 |
|
2104 |
+
#: admin/partials/menu/manage-lists.php:42
|
2105 |
#, php-format
|
2106 |
msgid ""
|
2107 |
"You need to connect to MailChimp before you can start creating forms. Head "
|
2108 |
"over to the %s and enter your API key."
|
2109 |
msgstr ""
|
2110 |
|
2111 |
+
#: admin/partials/menu/manage-lists.php:44
|
2112 |
msgid "Settings Page"
|
2113 |
msgstr ""
|
2114 |
|
2115 |
+
#: admin/partials/menu/manage-lists.php:75
|
2116 |
+
#: admin/partials/menu/manage-lists.php:84
|
2117 |
msgid "List Name"
|
2118 |
msgstr ""
|
2119 |
|
2120 |
+
#: admin/partials/menu/manage-lists.php:76
|
2121 |
+
#: admin/partials/menu/manage-lists.php:85 admin/partials/view-list.php:258
|
2122 |
msgid "Subscriber Count"
|
2123 |
msgstr ""
|
2124 |
|
2125 |
+
#: admin/partials/menu/manage-lists.php:102
|
2126 |
msgid "View"
|
2127 |
msgstr ""
|
2128 |
|
2129 |
+
#: admin/partials/menu/manage-lists.php:120
|
2130 |
#, php-format
|
2131 |
msgid ""
|
2132 |
"No MailChimp lists found. Head over to <a href=\"%s\" title=\"MailChimp.com"
|
2134 |
"can head back here to customize it!"
|
2135 |
msgstr ""
|
2136 |
|
2137 |
+
#: admin/partials/menu/manage-lists.php:140
|
2138 |
+
#: admin/partials/menu/manage-lists.php:141
|
2139 |
+
msgid "MailChimp Site"
|
2140 |
+
msgstr ""
|
2141 |
+
|
2142 |
+
#: admin/partials/menu/manage-lists.php:153
|
2143 |
+
msgid "MailChimp avatar"
|
2144 |
+
msgstr ""
|
2145 |
+
|
2146 |
+
#: admin/partials/menu/manage-lists.php:159
|
2147 |
+
msgid "Company"
|
2148 |
+
msgstr ""
|
2149 |
+
|
2150 |
+
#: admin/partials/menu/manage-lists.php:167
|
2151 |
+
msgid "Industry"
|
2152 |
+
msgstr ""
|
2153 |
+
|
2154 |
+
#: admin/partials/menu/manage-lists.php:175
|
2155 |
+
msgid "Member Since"
|
2156 |
+
msgstr ""
|
2157 |
+
|
2158 |
+
#: admin/partials/menu/manage-lists.php:183
|
2159 |
+
msgid "Plan Type"
|
2160 |
+
msgstr ""
|
2161 |
+
|
2162 |
#: admin/partials/menu/options-sections/api-cache-settings.php:12
|
2163 |
msgid ""
|
2164 |
"Delete all MailChimp data stored in your sites cache. Most data is stored in "
|
2367 |
|
2368 |
#: admin/partials/menu/options-sections/integration-settings.php:109
|
2369 |
msgid ""
|
2370 |
+
"An opt-in checkbox will be added to the forms generated by the checked off "
|
2371 |
+
"items below. For example, checking off \"WordPress Comment Form\" will "
|
2372 |
+
"generate a checkbox below the WordPress comment form to add new commenters "
|
2373 |
+
"to a pre-determined MailChimp mailing list."
|
|
|
2374 |
msgstr ""
|
2375 |
|
2376 |
+
#: admin/partials/menu/options-sections/integration-settings.php:141
|
2377 |
#, php-format
|
2378 |
msgid "Use %s in Contact Form 7 to display the checkbox."
|
2379 |
msgstr ""
|
2380 |
|
2381 |
+
#: admin/partials/menu/options-sections/integration-settings.php:146
|
2382 |
+
msgid "Choose Lists: "
|
2383 |
msgstr ""
|
2384 |
|
2385 |
+
#: admin/partials/menu/options-sections/integration-settings.php:174
|
2386 |
msgid ""
|
2387 |
+
"You have not setup any lists. Head over to MailChimp and setup your first "
|
2388 |
+
"list."
|
2389 |
msgstr ""
|
2390 |
|
2391 |
+
#: admin/partials/menu/options-sections/integration-settings.php:181
|
2392 |
+
msgid "Opt-in Checkbox Label:"
|
2393 |
msgstr ""
|
2394 |
|
2395 |
+
#: admin/partials/menu/options-sections/integration-settings.php:186
|
2396 |
+
msgid "Precheck Checkbox?"
|
2397 |
msgstr ""
|
2398 |
|
2399 |
+
#: admin/partials/menu/options-sections/integration-settings.php:199
|
2400 |
msgid "Nothing is active."
|
2401 |
msgstr ""
|
2402 |
|
2440 |
msgid "reCAPTCHA Preview"
|
2441 |
msgstr ""
|
2442 |
|
2443 |
+
#: admin/partials/menu/options-sections/templates/integration-interest-groups.php:22
|
|
|
|
|
|
|
|
|
|
|
|
|
2444 |
msgid ""
|
2445 |
+
"Select the interest groups users will be automatically added to. These will "
|
2446 |
+
"not be displayed on the form."
|
2447 |
msgstr ""
|
2448 |
|
2449 |
#: admin/partials/menu/options.php:9
|
2540 |
msgstr ""
|
2541 |
|
2542 |
#: admin/partials/menu/support.php:26
|
|
|
|
|
2543 |
msgid "Knowledge Base"
|
2544 |
msgstr ""
|
2545 |
|
2774 |
msgid "To edit this lists segments, head over to"
|
2775 |
msgstr ""
|
2776 |
|
2777 |
+
#: admin/partials/view-user.php:24 public/classes/checkbox-integrations.php:93
|
2778 |
msgid "Get Member Info"
|
2779 |
msgstr ""
|
2780 |
|
2850 |
msgid "View Google Map"
|
2851 |
msgstr ""
|
2852 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2853 |
#: includes/add_ons/customizer.php:9
|
2854 |
msgid "Form Customizer for Easy Forms for MailChimp"
|
2855 |
msgstr ""
|
2918 |
msgid "%s requests require a body as one of the parameters."
|
2919 |
msgstr ""
|
2920 |
|
2921 |
+
#: includes/class-yikes-inc-easy-mailchimp-extender-forms-abstract.php:50
|
2922 |
+
#, php-format
|
2923 |
+
msgid "This signup for this form ended on %s."
|
2924 |
+
msgstr ""
|
2925 |
+
|
2926 |
+
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:138
|
2927 |
msgid "Admin"
|
2928 |
msgstr ""
|
2929 |
|
2930 |
+
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:138
|
2931 |
msgid "Front End"
|
2932 |
msgstr ""
|
2933 |
|
2934 |
+
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:150
|
2935 |
msgid "Page:"
|
2936 |
msgstr ""
|
2937 |
|
2938 |
+
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:151
|
2939 |
msgid "Type:"
|
2940 |
msgstr ""
|
2941 |
|
2942 |
+
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:152
|
2943 |
msgid "Time:"
|
2944 |
msgstr ""
|
2945 |
|
2946 |
+
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:179
|
2947 |
msgid "File get contents not available"
|
2948 |
msgstr ""
|
2949 |
|
2950 |
+
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:189
|
2951 |
msgid "No errors logged."
|
2952 |
msgstr ""
|
2953 |
|
2954 |
+
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:192
|
2955 |
msgid "To start logging errors toggle on the 'Enable Debugging' option above."
|
2956 |
msgstr ""
|
2957 |
|
2958 |
+
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:203
|
2959 |
msgid "Error Log Missing"
|
2960 |
msgstr ""
|
2961 |
|
2962 |
+
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:205
|
2963 |
msgid ""
|
2964 |
"It looks like your error log file is missing. You can attempt to create one "
|
2965 |
"by clicking the button below."
|
2966 |
msgstr ""
|
2967 |
|
2968 |
+
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:218
|
2969 |
msgid "Attempt to Create Error Log"
|
2970 |
msgstr ""
|
2971 |
|
2972 |
+
#: includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php:231
|
2973 |
msgid ""
|
2974 |
"It looks like the function file_get_contents() is disabled on your server. "
|
2975 |
"We cannot retrieve the contents of the error log."
|
2994 |
"uploads."
|
2995 |
msgstr ""
|
2996 |
|
2997 |
+
#: includes/third-party-integrations/visual-composer/visual-composer.php:40
|
2998 |
msgid "Display a MailChimp Opt-In form"
|
2999 |
msgstr ""
|
3000 |
|
3001 |
+
#: includes/third-party-integrations/visual-composer/visual-composer.php:58
|
3002 |
msgid "Select which form to display."
|
3003 |
msgstr ""
|
3004 |
|
3005 |
+
#: includes/third-party-integrations/visual-composer/visual-composer.php:70
|
3006 |
msgid "Should this form display the title."
|
3007 |
msgstr ""
|
3008 |
|
3009 |
+
#: includes/third-party-integrations/visual-composer/visual-composer.php:81
|
3010 |
msgid "Should this form display the description."
|
3011 |
msgstr ""
|
3012 |
|
3013 |
+
#: includes/third-party-integrations/visual-composer/visual-composer.php:90
|
3014 |
msgid "Enter a title to display"
|
3015 |
msgstr ""
|
3016 |
|
3065 |
msgid "Whoops, you shouldn't be accessing this file directly. Abort!"
|
3066 |
msgstr ""
|
3067 |
|
3068 |
+
#: public/classes/checkbox-integrations.php:134
|
3069 |
msgid "Sign me up for your mailing list."
|
3070 |
msgstr ""
|
3071 |
|
3072 |
+
#: public/classes/checkbox-integrations.php:235
|
3073 |
msgid "Checkbox Integration Subscribe User"
|
3074 |
msgstr ""
|
3075 |
|
3076 |
+
#: public/classes/checkbox-integrations.php:303
|
3077 |
msgid "Note"
|
3078 |
msgstr ""
|
3079 |
|
3080 |
+
#: public/classes/checkbox-integrations/class.registration_form-checkbox.php:57
|
3081 |
#, php-format
|
3082 |
msgid ""
|
3083 |
"You have not been subscribed to our mailing list. %s is already subscribed "
|
3157 |
msgstr ""
|
3158 |
|
3159 |
#: public/partials/ajax/class.public_ajax.php:88
|
|
|
|
|
|
|
|
|
3160 |
msgid "Send Update Profile Email - Get Member Info."
|
3161 |
msgstr ""
|
3162 |
|
3163 |
+
#: public/partials/ajax/class.public_ajax.php:122
|
3164 |
#, php-format
|
3165 |
msgid ""
|
3166 |
"Error sending update profile email. <strong>Error(s): %s</strong>. Please "
|
3167 |
"contact the site administrator."
|
3168 |
msgstr ""
|
3169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3170 |
#: public/partials/shortcodes/process_form_shortcode.php:34
|
3171 |
msgid ""
|
3172 |
"Whoops, you're not connected to MailChimp. You need to enter a valid "
|
3201 |
"reCAPTCHA secret key!"
|
3202 |
msgstr ""
|
3203 |
|
3204 |
+
#: public/partials/shortcodes/process_form_shortcode.php:218
|
3205 |
msgid ""
|
3206 |
"An email field is required for all MailChimp forms. Please add an email "
|
3207 |
"field to this form."
|
3208 |
msgstr ""
|
3209 |
|
3210 |
+
#: public/partials/shortcodes/process_form_shortcode.php:221
|
3211 |
msgid "Whoops, it looks like you forgot to assign fields to this form."
|
3212 |
msgstr ""
|
3213 |
|
3214 |
+
#: public/partials/shortcodes/process_form_shortcode.php:346
|
3215 |
+
#: public/partials/shortcodes/process_form_shortcode.php:1062
|
3216 |
msgid "This field is required."
|
3217 |
msgstr ""
|
3218 |
|
3219 |
+
#: public/partials/shortcodes/process_form_shortcode.php:573
|
3220 |
msgid "Please enter a valid URL to the website."
|
3221 |
msgstr ""
|
3222 |
|
3223 |
+
#: public/partials/shortcodes/process_form_shortcode.php:573
|
3224 |
msgid "Please enter a valid URL to the image."
|
3225 |
msgstr ""
|
3226 |
|
3227 |
+
#: public/partials/shortcodes/process_form_shortcode.php:601
|
3228 |
msgid "International Phone Number"
|
3229 |
msgstr ""
|
3230 |
|
3231 |
+
#: public/partials/shortcodes/process_form_shortcode.php:601
|
3232 |
msgid "US Phone Number (###) ### - ####"
|
3233 |
msgstr ""
|
3234 |
|
3235 |
+
#: public/partials/shortcodes/process_form_shortcode.php:627
|
3236 |
+
#: public/partials/shortcodes/process_form_shortcode.php:782
|
3237 |
msgid "5 digit zip code, numbers only"
|
3238 |
msgstr ""
|
3239 |
|
public/class-yikes-inc-easy-mailchimp-extender-public.php
CHANGED
@@ -49,7 +49,6 @@ class Yikes_Inc_Easy_Mailchimp_Extender_Public {
|
|
49 |
|
50 |
// Include our Shortcode & Processing functions (public folder)
|
51 |
include_once( YIKES_MC_PATH . 'public/partials/shortcodes/process_form_shortcode.php' );
|
52 |
-
include_once( YIKES_MC_PATH . 'public/partials/shortcodes/process_form_shortcode_depracated.php' );
|
53 |
include_once( YIKES_MC_PATH . 'public/partials/shortcodes/yikes-mailchimp-subscriber-count.php' );
|
54 |
|
55 |
// include our ajax processing class
|
49 |
|
50 |
// Include our Shortcode & Processing functions (public folder)
|
51 |
include_once( YIKES_MC_PATH . 'public/partials/shortcodes/process_form_shortcode.php' );
|
|
|
52 |
include_once( YIKES_MC_PATH . 'public/partials/shortcodes/yikes-mailchimp-subscriber-count.php' );
|
53 |
|
54 |
// include our ajax processing class
|
public/classes/checkbox-integrations.php
CHANGED
@@ -11,14 +11,11 @@
|
|
11 |
|
12 |
// declare our integration type
|
13 |
protected $type = 'integration';
|
14 |
-
private $text_domain = 'yikes-inc-easy-mailchimp-extender';
|
15 |
|
16 |
-
public function __construct() {
|
17 |
-
|
18 |
-
}
|
19 |
|
20 |
/**
|
21 |
-
* Determine whether the current user is
|
22 |
*
|
23 |
* @author Jeremy Pry
|
24 |
*
|
@@ -52,7 +49,19 @@
|
|
52 |
return false;
|
53 |
}
|
54 |
|
55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
}
|
57 |
|
58 |
/**
|
@@ -91,7 +100,7 @@
|
|
91 |
}
|
92 |
|
93 |
// Look at the status from the API
|
94 |
-
$subscribed = 'subscribed'
|
95 |
|
96 |
return apply_filters( 'yikes-mailchimp-integration-is-user-subscribed', $subscribed, $type );
|
97 |
}
|
@@ -102,11 +111,18 @@
|
|
102 |
* @since 6.0.0
|
103 |
*/
|
104 |
public function yikes_get_checkbox() {
|
105 |
-
|
|
|
106 |
wp_enqueue_style( 'yikes-easy-mailchimp-checkbox-integration-styles', plugin_dir_url( __FILE__ ) . '../css/yikes-inc-easy-mailchimp-checkbox-integration.min.css' );
|
107 |
-
|
|
|
108 |
$checkbox_options = get_option( 'optin-checkbox-init' , '' );
|
109 |
-
|
|
|
|
|
|
|
|
|
|
|
110 |
$checked = ( $checkbox_options[$this->type]['precheck'] == 'true' ) ? 'checked' : '';
|
111 |
// before checkbox HTML (comment, ...)
|
112 |
$before = '<!-- Easy Forms for MailChimp - https://www.yikesplugins.com/ -->';
|
@@ -151,8 +167,11 @@
|
|
151 |
}
|
152 |
|
153 |
// Build our data
|
154 |
-
$
|
155 |
-
$
|
|
|
|
|
|
|
156 |
$id = md5( $email );
|
157 |
$data = array(
|
158 |
'email_address' => sanitize_email( $email ),
|
@@ -162,42 +181,61 @@
|
|
162 |
'ip_signup' => $user_ip,
|
163 |
);
|
164 |
|
165 |
-
|
166 |
-
if ( ! empty( $interests ) ) {
|
167 |
|
168 |
-
$
|
|
|
169 |
|
170 |
-
//
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
}
|
176 |
}
|
177 |
-
}
|
178 |
|
179 |
-
|
180 |
-
|
181 |
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
}
|
202 |
|
203 |
return;
|
@@ -208,20 +246,23 @@
|
|
208 |
* @since 6.0.0
|
209 |
*/
|
210 |
public function user_merge_vars( WP_User $user ) {
|
211 |
-
|
|
|
212 |
$merge_vars = array(
|
213 |
'NAME' => $user->user_login,
|
214 |
);
|
215 |
-
|
|
|
216 |
$merge_vars['NAME'] = $user->first_name;
|
217 |
$merge_vars['FNAME'] = $user->first_name;
|
218 |
}
|
219 |
-
if(
|
220 |
$merge_vars['LNAME'] = $user->last_name;
|
221 |
}
|
222 |
-
if(
|
223 |
$merge_vars['NAME'] = sprintf( '%s %s', $user->first_name, $user->last_name );
|
224 |
}
|
|
|
225 |
/**
|
226 |
* @filter `yikes-mailchimp-user-merge-vars`
|
227 |
* @expects array
|
@@ -231,6 +272,7 @@
|
|
231 |
* Use this to filter the merge vars of a user
|
232 |
*/
|
233 |
$merge_vars = (array) apply_filters( 'yikes-mailchimp-user-merge-vars', $merge_vars, $user );
|
|
|
234 |
return $merge_vars;
|
235 |
}
|
236 |
|
@@ -240,7 +282,6 @@
|
|
240 |
* @since 6.0.0
|
241 |
*/
|
242 |
public function was_checkbox_checked( $type ) {
|
243 |
-
// was sign-up checkbox checked - return the value
|
244 |
return ( isset( $_POST[ 'yikes_mailchimp_checkbox_'.$type ] ) && $_POST[ 'yikes_mailchimp_checkbox_'.$type ] == 1 );
|
245 |
}
|
246 |
|
11 |
|
12 |
// declare our integration type
|
13 |
protected $type = 'integration';
|
|
|
14 |
|
15 |
+
// public function __construct() {}
|
|
|
|
|
16 |
|
17 |
/**
|
18 |
+
* Determine whether the current user is subscribed to all of the lists.
|
19 |
*
|
20 |
* @author Jeremy Pry
|
21 |
*
|
49 |
return false;
|
50 |
}
|
51 |
|
52 |
+
$list_ids = $checkbox_options[ $type ]['associated-list'];
|
53 |
+
$list_ids = is_array( $list_ids ) ? $list_ids : array( $list_ids );
|
54 |
+
|
55 |
+
// Go through each list...
|
56 |
+
foreach ( $list_ids as $list_id ) {
|
57 |
+
|
58 |
+
if ( ! $this->is_user_subscribed( $email, $list_id, $type ) ) {
|
59 |
+
return false;
|
60 |
+
}
|
61 |
+
|
62 |
+
}
|
63 |
+
|
64 |
+
return true;
|
65 |
}
|
66 |
|
67 |
/**
|
100 |
}
|
101 |
|
102 |
// Look at the status from the API
|
103 |
+
$subscribed = 'subscribed' === $response['status'];
|
104 |
|
105 |
return apply_filters( 'yikes-mailchimp-integration-is-user-subscribed', $subscribed, $type );
|
106 |
}
|
111 |
* @since 6.0.0
|
112 |
*/
|
113 |
public function yikes_get_checkbox() {
|
114 |
+
|
115 |
+
// Enqueue our checkbox styles whenever the checkbox is displayed
|
116 |
wp_enqueue_style( 'yikes-easy-mailchimp-checkbox-integration-styles', plugin_dir_url( __FILE__ ) . '../css/yikes-inc-easy-mailchimp-checkbox-integration.min.css' );
|
117 |
+
|
118 |
+
// Get our options
|
119 |
$checkbox_options = get_option( 'optin-checkbox-init' , '' );
|
120 |
+
$has_list_ids = isset( $checkbox_options[$this->type]['associated-list'] ) && $checkbox_options[$this->type]['associated-list'] != '-';
|
121 |
+
$has_list_ids = $has_list_ids && ! in_array( '-', $checkbox_options[$this->type]['associated-list'] );
|
122 |
+
|
123 |
+
// We need to make sure we have a legit list ID right here. I don't think it will ever equal '-'
|
124 |
+
|
125 |
+
if ( $has_list_ids ) {
|
126 |
$checked = ( $checkbox_options[$this->type]['precheck'] == 'true' ) ? 'checked' : '';
|
127 |
// before checkbox HTML (comment, ...)
|
128 |
$before = '<!-- Easy Forms for MailChimp - https://www.yikesplugins.com/ -->';
|
167 |
}
|
168 |
|
169 |
// Build our data
|
170 |
+
$list_ids = $options[ $type ]['associated-list'];
|
171 |
+
$list_ids = is_array( $options[ $type ]['associated-list'] ) ? $options[ $type ]['associated-list'] : array( $options[ $type ]['associated-list'] );
|
172 |
+
|
173 |
+
// $interests =
|
174 |
+
|
175 |
$id = md5( $email );
|
176 |
$data = array(
|
177 |
'email_address' => sanitize_email( $email ),
|
181 |
'ip_signup' => $user_ip,
|
182 |
);
|
183 |
|
184 |
+
foreach ( $list_ids as $list_id ) {
|
|
|
185 |
|
186 |
+
$interests = isset( $options[ $type ]['interest-groups'] ) ? $options[ $type ]['interest-groups'] : array();
|
187 |
+
$interests = isset( $interests[$list_id] ) ? $interests[$list_id] : $interests;
|
188 |
|
189 |
+
// Only re-format and add interest groups if not empty
|
190 |
+
if ( ! empty( $interests ) ) {
|
191 |
+
|
192 |
+
$groups = array();
|
193 |
+
|
194 |
+
// Need to reformat interest groups array as $interest_group_ID => true
|
195 |
+
foreach( $interests as $interest ) {
|
196 |
+
if ( is_array( $interest ) ) {
|
197 |
+
foreach( $interest as $group_id ) {
|
198 |
+
$groups[ $group_id ] = true;
|
199 |
+
}
|
200 |
}
|
201 |
}
|
|
|
202 |
|
203 |
+
$data['interests'] = $groups;
|
204 |
+
}
|
205 |
|
206 |
+
/**
|
207 |
+
* 'yikes-mailchimp-checkbox-integration-body'
|
208 |
+
*
|
209 |
+
* Filter the request body for a MailChimp subscription via the checkbox integrations
|
210 |
+
*
|
211 |
+
* @param array | $data | The request body
|
212 |
+
* @param string | $type | The integration type, e.g. 'contact_form_7'
|
213 |
+
* @param string | $list_id | The list ID
|
214 |
+
*/
|
215 |
+
$data = apply_filters( 'yikes-mailchimp-checkbox-integration-body', $data, $type, $list_id );
|
216 |
+
|
217 |
+
/**
|
218 |
+
* 'yikes-mailchimp-checkbox-integration-list-id'
|
219 |
+
*
|
220 |
+
* Filter the list ID for a MailChimp subscription via the checkbox integrations
|
221 |
+
*
|
222 |
+
* @param string | $list_id | The list ID
|
223 |
+
* @param array | $data | The request body
|
224 |
+
* @param string | $type | The integration type, e.g. 'contact_form_7'
|
225 |
+
*/
|
226 |
+
$list_id = apply_filters( 'yikes-mailchimp-checkbox-integration-list-id', $list_id, $data, $type );
|
227 |
+
|
228 |
+
|
229 |
+
// Subscribe the user to the list via the API.
|
230 |
+
$response = yikes_get_mc_api_manager()->get_list_handler()->member_subscribe( $list_id, $id, $data );
|
231 |
+
if ( is_wp_error( $response ) ) {
|
232 |
+
$error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging();
|
233 |
+
$error_logging->maybe_write_to_log(
|
234 |
+
$response->get_error_code(),
|
235 |
+
__( "Checkbox Integration Subscribe User", 'yikes-inc-easy-mailchimp-extender' ),
|
236 |
+
"Checkbox Integrations"
|
237 |
+
);
|
238 |
+
}
|
239 |
}
|
240 |
|
241 |
return;
|
246 |
* @since 6.0.0
|
247 |
*/
|
248 |
public function user_merge_vars( WP_User $user ) {
|
249 |
+
|
250 |
+
// Start with user_login as name, since that's always known
|
251 |
$merge_vars = array(
|
252 |
'NAME' => $user->user_login,
|
253 |
);
|
254 |
+
|
255 |
+
if ( ! empty( $user->first_name ) ) {
|
256 |
$merge_vars['NAME'] = $user->first_name;
|
257 |
$merge_vars['FNAME'] = $user->first_name;
|
258 |
}
|
259 |
+
if ( ! empty( $user->last_name ) ) {
|
260 |
$merge_vars['LNAME'] = $user->last_name;
|
261 |
}
|
262 |
+
if ( ! empty( $user->first_name ) && ! empty( $user->last_name ) ) {
|
263 |
$merge_vars['NAME'] = sprintf( '%s %s', $user->first_name, $user->last_name );
|
264 |
}
|
265 |
+
|
266 |
/**
|
267 |
* @filter `yikes-mailchimp-user-merge-vars`
|
268 |
* @expects array
|
272 |
* Use this to filter the merge vars of a user
|
273 |
*/
|
274 |
$merge_vars = (array) apply_filters( 'yikes-mailchimp-user-merge-vars', $merge_vars, $user );
|
275 |
+
|
276 |
return $merge_vars;
|
277 |
}
|
278 |
|
282 |
* @since 6.0.0
|
283 |
*/
|
284 |
public function was_checkbox_checked( $type ) {
|
|
|
285 |
return ( isset( $_POST[ 'yikes_mailchimp_checkbox_'.$type ] ) && $_POST[ 'yikes_mailchimp_checkbox_'.$type ] == 1 );
|
286 |
}
|
287 |
|
public/classes/checkbox-integrations/class.registration_form-checkbox.php
CHANGED
@@ -16,7 +16,6 @@ class Yikes_Easy_MC_Registration_Checkbox_Class extends Yikes_Easy_MC_Checkbox_I
|
|
16 |
protected $type = 'registration_form';
|
17 |
|
18 |
public function __construct() {
|
19 |
-
parent::__construct();
|
20 |
add_action( 'register_form', array( $this, 'output_checkbox' ), 20 );
|
21 |
add_action( 'user_register', array( $this, 'subscribe_from_registration' ), 90, 1 );
|
22 |
// alter the error message, if there was an error with the users email address
|
16 |
protected $type = 'registration_form';
|
17 |
|
18 |
public function __construct() {
|
|
|
19 |
add_action( 'register_form', array( $this, 'output_checkbox' ), 20 );
|
20 |
add_action( 'user_register', array( $this, 'subscribe_from_registration' ), 90, 1 );
|
21 |
// alter the error message, if there was an error with the users email address
|
public/classes/checkbox-integrations/class.woocommerce_checkout_form-checkbox.php
CHANGED
@@ -27,14 +27,6 @@ class Yikes_Easy_MC_WooCommerce_Checkbox_Class extends Yikes_Easy_MC_Checkbox_In
|
|
27 |
add_action( 'woocommerce_checkout_order_processed', array( $this, 'subscribe_from_woocommerce_checkout' ) );
|
28 |
}
|
29 |
|
30 |
-
/**
|
31 |
-
* @return string
|
32 |
-
*/
|
33 |
-
public function get_position() {
|
34 |
-
$opts = $this->get_options();
|
35 |
-
return $opts['woocommerce_position'];
|
36 |
-
}
|
37 |
-
|
38 |
/**
|
39 |
* @param $fields
|
40 |
*
|
@@ -46,15 +38,13 @@ class Yikes_Easy_MC_WooCommerce_Checkbox_Class extends Yikes_Easy_MC_Checkbox_In
|
|
46 |
$checkbox_options = get_option( 'optin-checkbox-init' , array() );
|
47 |
|
48 |
// only display the field if a list is set
|
49 |
-
if( isset( $checkbox_options[$this->type] ) && isset( $checkbox_options[$this->type]['associated-list'] ) && $checkbox_options[$this->type]['associated-list'] != '-' ) {
|
50 |
-
|
|
|
51 |
return $fields;
|
52 |
}
|
53 |
-
|
54 |
-
|
55 |
-
} else {
|
56 |
-
$precheck = '0';
|
57 |
-
}
|
58 |
|
59 |
/**
|
60 |
* Filter where the checkbox goes.
|
@@ -65,7 +55,7 @@ class Yikes_Easy_MC_WooCommerce_Checkbox_Class extends Yikes_Easy_MC_Checkbox_In
|
|
65 |
*/
|
66 |
$field_placement = apply_filters( 'yikes-mailchimp-wooco-integration-checkbox-placement', 'billing' );
|
67 |
|
68 |
-
$fields[ $field_placement ][
|
69 |
'id' => 'yikes_mailchimp_checkbox_'.$this->type,
|
70 |
'type' => 'checkbox',
|
71 |
'class' => apply_filters( 'yikes-mailchimp-wooco-integration-checkbox-classes', array( 'form-row-wide' ) ),
|
@@ -81,6 +71,7 @@ class Yikes_Easy_MC_WooCommerce_Checkbox_Class extends Yikes_Easy_MC_Checkbox_In
|
|
81 |
* @param int $order_id
|
82 |
*/
|
83 |
public function save_woocommerce_checkout_checkbox_value( $order_id ) {
|
|
|
84 |
// update the order post meta
|
85 |
update_post_meta( $order_id, 'yikes_easy_mailchimp_optin', $this->was_checkbox_checked( $this->type ) );
|
86 |
}
|
@@ -91,14 +82,16 @@ class Yikes_Easy_MC_WooCommerce_Checkbox_Class extends Yikes_Easy_MC_Checkbox_In
|
|
91 |
*/
|
92 |
public function subscribe_from_woocommerce_checkout( $order_id ) {
|
93 |
$do_optin = get_post_meta( $order_id, 'yikes_easy_mailchimp_optin', true );
|
94 |
-
|
|
|
95 |
$order = new WC_Order( $order_id );
|
96 |
$email = $order->billing_email;
|
97 |
$merge_vars = array(
|
98 |
-
'NAME'
|
99 |
'FNAME' => $order->billing_first_name,
|
100 |
'LNAME' => $order->billing_last_name,
|
101 |
);
|
|
|
102 |
// subscribe the user
|
103 |
$this->subscribe_user_integration( sanitize_email( $email ) , $this->type , $merge_vars );
|
104 |
}
|
27 |
add_action( 'woocommerce_checkout_order_processed', array( $this, 'subscribe_from_woocommerce_checkout' ) );
|
28 |
}
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
/**
|
31 |
* @param $fields
|
32 |
*
|
38 |
$checkbox_options = get_option( 'optin-checkbox-init' , array() );
|
39 |
|
40 |
// only display the field if a list is set
|
41 |
+
if ( isset( $checkbox_options[$this->type] ) && isset( $checkbox_options[$this->type]['associated-list'] ) && $checkbox_options[$this->type]['associated-list'] != '-' ) {
|
42 |
+
|
43 |
+
if ( $this->is_user_already_subscribed( $this->type ) ) {
|
44 |
return $fields;
|
45 |
}
|
46 |
+
|
47 |
+
$precheck = isset( $checkbox_options[$this->type]['precheck'] ) && $checkbox_options[$this->type]['precheck'] == 'true' ? '1' : '0';
|
|
|
|
|
|
|
48 |
|
49 |
/**
|
50 |
* Filter where the checkbox goes.
|
55 |
*/
|
56 |
$field_placement = apply_filters( 'yikes-mailchimp-wooco-integration-checkbox-placement', 'billing' );
|
57 |
|
58 |
+
$fields[ $field_placement ]['yikes_mailchimp_checkbox_'.$this->type] = array(
|
59 |
'id' => 'yikes_mailchimp_checkbox_'.$this->type,
|
60 |
'type' => 'checkbox',
|
61 |
'class' => apply_filters( 'yikes-mailchimp-wooco-integration-checkbox-classes', array( 'form-row-wide' ) ),
|
71 |
* @param int $order_id
|
72 |
*/
|
73 |
public function save_woocommerce_checkout_checkbox_value( $order_id ) {
|
74 |
+
|
75 |
// update the order post meta
|
76 |
update_post_meta( $order_id, 'yikes_easy_mailchimp_optin', $this->was_checkbox_checked( $this->type ) );
|
77 |
}
|
82 |
*/
|
83 |
public function subscribe_from_woocommerce_checkout( $order_id ) {
|
84 |
$do_optin = get_post_meta( $order_id, 'yikes_easy_mailchimp_optin', true );
|
85 |
+
|
86 |
+
if ( $do_optin == '1' ) {
|
87 |
$order = new WC_Order( $order_id );
|
88 |
$email = $order->billing_email;
|
89 |
$merge_vars = array(
|
90 |
+
'NAME' => "{$order->billing_first_name} {$order->billing_last_name}",
|
91 |
'FNAME' => $order->billing_first_name,
|
92 |
'LNAME' => $order->billing_last_name,
|
93 |
);
|
94 |
+
|
95 |
// subscribe the user
|
96 |
$this->subscribe_user_integration( sanitize_email( $email ) , $this->type , $merge_vars );
|
97 |
}
|
public/js/form-submission-helpers.js
CHANGED
@@ -35,6 +35,10 @@ jQuery( document ).ready( function() {
|
|
35 |
});
|
36 |
return false;
|
37 |
});
|
|
|
|
|
|
|
|
|
38 |
});
|
39 |
|
40 |
/**
|
@@ -111,4 +115,41 @@ function yikes_mc_does_country_have_states( clicked_element, country_value ) {
|
|
111 |
}
|
112 |
});
|
113 |
return country_has_states;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
}
|
35 |
});
|
36 |
return false;
|
37 |
});
|
38 |
+
|
39 |
+
jQuery( '.yikes-easy-mc-url' ).blur( yikes_mc_format_url_field );
|
40 |
+
|
41 |
+
jQuery( '.yikes-easy-mc-phone[data-phone-type="us"]' ).blur( yikes_mc_format_us_phone_number_field );
|
42 |
});
|
43 |
|
44 |
/**
|
115 |
}
|
116 |
});
|
117 |
return country_has_states;
|
118 |
+
}
|
119 |
+
|
120 |
+
function yikes_mc_format_url_field() {
|
121 |
+
var url_value = jQuery( this ).val();
|
122 |
+
|
123 |
+
if ( typeof url_value.length === 'number' && url_value.length > 0 && url_value.indexOf( "http://" ) === -1 && url_value.indexOf( "https://" ) === -1 ) {
|
124 |
+
jQuery( this ).val( 'http://' + url_value );
|
125 |
+
}
|
126 |
+
}
|
127 |
+
|
128 |
+
function yikes_mc_format_us_phone_number_field() {
|
129 |
+
var phone_number = this.value;
|
130 |
+
var new_phone_number = phone_number.replace(/\(|\)/g, "").replace(/-/g, "").trim(); // replace all '-,' '(' and ')'
|
131 |
+
formatted_us_number = new_phone_number.substring( 0, 10 ); // strip all characters after 10th number (10 = length of US numbers 215-555-5555
|
132 |
+
formatted_us_number = formatted_us_number.replace(/(\d\d\d)(\d\d\d)(\d\d\d\d)/, "$1-$2-$3"); // split the string into the proper format
|
133 |
+
jQuery( this ).val( formatted_us_number );
|
134 |
+
}
|
135 |
+
|
136 |
+
function renderReCaptchaCallback() {
|
137 |
+
var x = 1;
|
138 |
+
jQuery( '.g-recaptcha' ).each( function() {
|
139 |
+
|
140 |
+
jQuery( this ).attr( 'id', 'recaptcha-' + x );
|
141 |
+
|
142 |
+
var recaptcha_parameters = {
|
143 |
+
'sitekey' : jQuery( this ).data( 'sitekey' ),
|
144 |
+
'type' : jQuery( this ).data( 'type' ),
|
145 |
+
'theme' : jQuery( this ).data( 'theme' ),
|
146 |
+
'size' : jQuery( this ).data( 'size' ),
|
147 |
+
'callback' : jQuery( this ).data( 'callback' ),
|
148 |
+
'expired-callback' : jQuery( this ).data( 'expired-callback' ),
|
149 |
+
};
|
150 |
+
|
151 |
+
grecaptcha.render( 'recaptcha-' + x, recaptcha_parameters );
|
152 |
+
|
153 |
+
x++;
|
154 |
+
});
|
155 |
}
|
public/js/form-submission-helpers.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function yikes_mc_toggle_zip_field_visibility(
|
1 |
+
function yikes_mc_toggle_zip_field_visibility(e,t){void 0!==form_submission_helpers.countries_with_zip[t]?jQuery(e).parents(".yikes-mailchimp-container").find(jQuery('label[data-attr-name="zip-input"]')).fadeIn():jQuery(e).parents(".yikes-mailchimp-container").find(jQuery('label[data-attr-name="zip-input"]')).fadeOut()}function yikes_mc_toggle_state_field_visibility(e,t){!0===yikes_mc_does_country_have_states(e,t)?jQuery(e).parents(".yikes-mailchimp-container").find(jQuery('label[data-attr-name="state-dropdown"]')).fadeIn():jQuery(e).parents(".yikes-mailchimp-container").find(jQuery('label[data-attr-name="state-dropdown"]')).fadeOut()}function yikes_mc_toggle_state_fields_dropdown(e,t){jQuery(e).parents(".yikes-mailchimp-container").find(jQuery('label[data-attr-name="state-dropdown"]')).children("select").children("option").each(function(){jQuery(this).data("country")===t?jQuery(this).show():jQuery(this).hide()})}function yikes_mc_does_country_have_states(e,t){var a=!1;return jQuery(e).parents(".yikes-mailchimp-container").find(jQuery('label[data-attr-name="state-dropdown"]')).children("select").children("option").each(function(){if(jQuery(this).data("country")===t)return!(a=!0)}),a}function yikes_mc_format_url_field(){var e=jQuery(this).val();"number"==typeof e.length&&0<e.length&&-1===e.indexOf("http://")&&-1===e.indexOf("https://")&&jQuery(this).val("http://"+e)}function yikes_mc_format_us_phone_number_field(){var e=this.value.replace(/\(|\)/g,"").replace(/-/g,"").trim();formatted_us_number=e.substring(0,10),formatted_us_number=formatted_us_number.replace(/(\d\d\d)(\d\d\d)(\d\d\d\d)/,"$1-$2-$3"),jQuery(this).val(formatted_us_number)}function renderReCaptchaCallback(){var t=1;jQuery(".g-recaptcha").each(function(){jQuery(this).attr("id","recaptcha-"+t);var e={sitekey:jQuery(this).data("sitekey"),type:jQuery(this).data("type"),theme:jQuery(this).data("theme"),size:jQuery(this).data("size"),callback:jQuery(this).data("callback"),"expired-callback":jQuery(this).data("expired-callback")};grecaptcha.render("recaptcha-"+t,e),t++})}jQuery(document).ready(function(){jQuery('select[data-country="true"]').change(function(){var e=jQuery(this).val();yikes_mc_toggle_state_fields_dropdown(this,e),yikes_mc_toggle_zip_field_visibility(this,e),yikes_mc_toggle_state_field_visibility(this,e)}),jQuery('select[data-country="true"]').trigger("change"),jQuery("body").on("click",".send-update-email",function(){var e={action:"easy_forms_send_email",user_email:jQuery(this).attr("data-user-email"),list_id:jQuery(this).attr("data-list-id"),form_id:jQuery(this).attr("data-form-id")};return jQuery(this).parent("p").fadeTo("fast",.75).append('<img src="'+form_submission_helpers.preloader_url+'" class="update-email-preloader" />'),jQuery.post(form_submission_helpers.ajax_url,e,function(e){e.success?jQuery(".yikes-easy-mc-error-message").removeClass("yikes-easy-mc-error-message").addClass("yikes-easy-mc-success-message").html(e.data.response_text):jQuery(".yikes-easy-mc-error-message").fadeTo("fast",1).html(e.data.response_text)}),!1}),jQuery(".yikes-easy-mc-url").blur(yikes_mc_format_url_field),jQuery('.yikes-easy-mc-phone[data-phone-type="us"]').blur(yikes_mc_format_us_phone_number_field)});
|
public/partials/ajax/class.public_ajax.php
CHANGED
@@ -81,15 +81,6 @@ class YIKES_Inc_Easy_MailChimp_Public_Ajax {
|
|
81 |
$errors[] = $list_details->get_error_message();
|
82 |
}
|
83 |
|
84 |
-
// Account details API call
|
85 |
-
$account_details = $manager->get_account_handler()->get_account( false );
|
86 |
-
if ( is_wp_error( $account_details ) ) {
|
87 |
-
$error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging();
|
88 |
-
$error_logging->maybe_write_to_log( $account_details->get_error_code(), __( "Send Update Profile Email - Get Account Details", 'yikes-inc-easy-mailchimp-extender' ), "class.public_ajax.php" );
|
89 |
-
$is_error = true;
|
90 |
-
$errors[] = $account_details->get_error_message();
|
91 |
-
}
|
92 |
-
|
93 |
// Subscriber details API call
|
94 |
$subscriber_account_details = $manager->get_list_handler()->get_member( $list_id, $user_id );
|
95 |
if ( is_wp_error( $subscriber_account_details ) ) {
|
@@ -105,12 +96,22 @@ class YIKES_Inc_Easy_MailChimp_Public_Ajax {
|
|
105 |
$form_data = $interface->get_form( $form_id );
|
106 |
if ( ! empty( $form_data ) ) {
|
107 |
if ( isset( $form_data['error_messages'] ) ) {
|
|
|
108 |
if ( isset( $form_data['error_messages']['email-body'] ) && ! empty( $form_data['error_messages']['email-body'] ) ) {
|
109 |
$email_body = apply_filters( 'the_content', $form_data['error_messages']['email-body'] );
|
110 |
}
|
|
|
111 |
if ( isset( $form_data['error_messages']['email-subject'] ) && ! empty( $form_data['error_messages']['email-subject'] ) ) {
|
112 |
$email_subject = $form_data['error_messages']['email-subject'];
|
113 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
}
|
115 |
}
|
116 |
}
|
@@ -147,6 +148,14 @@ class YIKES_Inc_Easy_MailChimp_Public_Ajax {
|
|
147 |
$email_body = Yikes_Inc_Easy_Mailchimp_Forms_Admin::generate_default_email_body();
|
148 |
}
|
149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
// Run our replacement strings for the email body
|
151 |
|
152 |
// We let the user use [link] text [/link] for the update profile link
|
@@ -162,15 +171,21 @@ class YIKES_Inc_Easy_MailChimp_Public_Ajax {
|
|
162 |
|
163 |
/* Confirm that the email was sent */
|
164 |
if ( wp_mail( $user_email, apply_filters( 'yikes-mailchimp-update-email-subject', $email_subject ), apply_filters( 'yikes-mailchimp-update-email-content', $email_body, $update_link_href ), $headers ) ) {
|
|
|
|
|
|
|
165 |
wp_send_json_success(
|
166 |
array(
|
167 |
-
'response_text' => '<div class="yikes-easy-mc-success-message">' .
|
168 |
)
|
169 |
);
|
170 |
} else {
|
|
|
|
|
|
|
171 |
wp_send_json_error(
|
172 |
array(
|
173 |
-
'response_text' => '<div class="yikes-easy-mc-error-message">' .
|
174 |
)
|
175 |
);
|
176 |
}
|
81 |
$errors[] = $list_details->get_error_message();
|
82 |
}
|
83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
// Subscriber details API call
|
85 |
$subscriber_account_details = $manager->get_list_handler()->get_member( $list_id, $user_id );
|
86 |
if ( is_wp_error( $subscriber_account_details ) ) {
|
96 |
$form_data = $interface->get_form( $form_id );
|
97 |
if ( ! empty( $form_data ) ) {
|
98 |
if ( isset( $form_data['error_messages'] ) ) {
|
99 |
+
|
100 |
if ( isset( $form_data['error_messages']['email-body'] ) && ! empty( $form_data['error_messages']['email-body'] ) ) {
|
101 |
$email_body = apply_filters( 'the_content', $form_data['error_messages']['email-body'] );
|
102 |
}
|
103 |
+
|
104 |
if ( isset( $form_data['error_messages']['email-subject'] ) && ! empty( $form_data['error_messages']['email-subject'] ) ) {
|
105 |
$email_subject = $form_data['error_messages']['email-subject'];
|
106 |
}
|
107 |
+
|
108 |
+
if ( isset( $form_data['error_messages']['update-email-success'] ) && ! empty( $form_data['error_messages']['update-email-success'] ) ) {
|
109 |
+
$update_email_success_message = $form_data['error_messages']['update-email-success'];
|
110 |
+
}
|
111 |
+
|
112 |
+
if ( isset( $form_data['error_messages']['update-email-failure'] ) && ! empty( $form_data['error_messages']['update-email-failure'] ) ) {
|
113 |
+
$update_email_failed_message = $form_data['error_messages']['update-email-failure'];
|
114 |
+
}
|
115 |
}
|
116 |
}
|
117 |
}
|
148 |
$email_body = Yikes_Inc_Easy_Mailchimp_Forms_Admin::generate_default_email_body();
|
149 |
}
|
150 |
|
151 |
+
if ( ! isset( $update_email_success_message ) ) {
|
152 |
+
$update_email_success_message = sprintf( __( '%s Update email successfully sent. Please check your inbox for the message.', 'yikes-inc-easy-mailchimp-extender' ), '✔' );
|
153 |
+
}
|
154 |
+
|
155 |
+
if ( ! isset( $update_email_failed_message ) ) {
|
156 |
+
$update_email_failed_message = sprintf( __( '%s Email failed to send. Please contact the site administrator.', 'yikes-inc-easy-mailchimp-extender' ), '✕' );
|
157 |
+
}
|
158 |
+
|
159 |
// Run our replacement strings for the email body
|
160 |
|
161 |
// We let the user use [link] text [/link] for the update profile link
|
171 |
|
172 |
/* Confirm that the email was sent */
|
173 |
if ( wp_mail( $user_email, apply_filters( 'yikes-mailchimp-update-email-subject', $email_subject ), apply_filters( 'yikes-mailchimp-update-email-content', $email_body, $update_link_href ), $headers ) ) {
|
174 |
+
|
175 |
+
$update_email_success_message = apply_filters( 'yikes-mailchimp-update-email-success-message', $update_email_success_message, $form_id, $user_email );
|
176 |
+
|
177 |
wp_send_json_success(
|
178 |
array(
|
179 |
+
'response_text' => '<div class="yikes-easy-mc-success-message">' . $update_email_success_message . '</div>',
|
180 |
)
|
181 |
);
|
182 |
} else {
|
183 |
+
|
184 |
+
$update_email_failed_message = apply_filters( 'yikes-mailchimp-update-email-failed-message', $update_email_failed_message, $form_id, $user_email );
|
185 |
+
|
186 |
wp_send_json_error(
|
187 |
array(
|
188 |
+
'response_text' => '<div class="yikes-easy-mc-error-message">' . $update_email_failed_message . '</div>',
|
189 |
)
|
190 |
);
|
191 |
}
|
public/partials/shortcodes/process/process_form_submission_ajax.php
CHANGED
@@ -54,11 +54,16 @@ $notifications = isset( $form_data['custom_notifications'] ) ? $form_data[
|
|
54 |
$submission_handler->set_error_messages( $error_messages );
|
55 |
|
56 |
// Some other variables we'll need.
|
57 |
-
$page_data = $_POST['page_data'];
|
58 |
$merge_variables = array();
|
59 |
$error = 0;
|
60 |
$list_handler = yikes_get_mc_api_manager()->get_list_handler();
|
61 |
|
|
|
|
|
|
|
|
|
|
|
62 |
// Send an error if for some reason we can't find the list_handler
|
63 |
$submission_handler->handle_empty_list_handler( $list_handler );
|
64 |
|
@@ -182,7 +187,7 @@ if ( is_wp_error( $member_exists ) || $double_optin_resubscribe === true ) {
|
|
182 |
$submission_handler->handle_updating_existing_user();
|
183 |
}
|
184 |
|
185 |
-
// If $send_update_email is false (we don't send the email) then simply continue (we allow them to update their profile via
|
186 |
}
|
187 |
|
188 |
/**
|
54 |
$submission_handler->set_error_messages( $error_messages );
|
55 |
|
56 |
// Some other variables we'll need.
|
57 |
+
$page_data = isset( $_POST['page_data'] ) ? $_POST['page_data'] : '';
|
58 |
$merge_variables = array();
|
59 |
$error = 0;
|
60 |
$list_handler = yikes_get_mc_api_manager()->get_list_handler();
|
61 |
|
62 |
+
// As of 6.4 we no longer pass the post object, only the ID.
|
63 |
+
// For any users relying on the $post object for their `yikes-mailchimp-redirect-url` filter we'll grab the post object here.
|
64 |
+
// Eventually we should just pass the $post_id into the filter instead of the whole object.
|
65 |
+
$page_data = ! empty( $page_data ) ? get_post( $page_data ) : '';
|
66 |
+
|
67 |
// Send an error if for some reason we can't find the list_handler
|
68 |
$submission_handler->handle_empty_list_handler( $list_handler );
|
69 |
|
187 |
$submission_handler->handle_updating_existing_user();
|
188 |
}
|
189 |
|
190 |
+
// If $send_update_email is false (we don't send the email) then simply continue (we allow them to update their profile via the form using their email address)
|
191 |
}
|
192 |
|
193 |
/**
|
public/partials/shortcodes/process_form_shortcode.php
CHANGED
@@ -87,33 +87,12 @@ function process_mailchimp_shortcode( $atts ) {
|
|
87 |
'success_callback' => $data_callback,
|
88 |
'expired_callback' => $expired_callback,
|
89 |
), $atts['form'] );
|
|
|
90 |
// enqueue Google recaptcha JS
|
91 |
-
wp_register_script( 'google-recaptcha-js' , 'https://www.google.com/recaptcha/api.js?hl=' . $recaptcha_shortcode_params['language'] . '&onload=renderReCaptchaCallback&render=explicit', array( 'jquery' ) , 'all' );
|
92 |
wp_enqueue_script( 'google-recaptcha-js' );
|
93 |
$recaptcha_site_key = get_option( 'yikes-mc-recaptcha-site-key' , '' );
|
94 |
-
$recaptcha_box = '<div class="g-recaptcha" data-sitekey="' . $recaptcha_site_key . '" data-theme="' . $recaptcha_shortcode_params['theme'] . '" data-type="' . $recaptcha_shortcode_params['type'] . '" data-size="' . $recaptcha_shortcode_params['size'] . '" data-callback="' . $recaptcha_shortcode_params['success_callback'] . '" data-expired-callback="' . $recaptcha_shortcode_params['expired_callback'] . '"></div>';
|
95 |
-
?>
|
96 |
-
<script type="text/javascript">
|
97 |
-
/* Script Callback to init. multiple recaptchas on a single page */
|
98 |
-
function renderReCaptchaCallback() {
|
99 |
-
var x = 1;
|
100 |
-
jQuery( '.g-recaptcha' ).each( function() {
|
101 |
-
jQuery( this ).attr( 'id', 'recaptcha-' + x );
|
102 |
-
recaptcha_paramaters = {
|
103 |
-
'sitekey' : '<?php echo $recaptcha_site_key; ?>',
|
104 |
-
'lang' : '<?php echo $lang; ?>',
|
105 |
-
'type' : '<?php echo $type; ?>',
|
106 |
-
'theme' : '<?php echo $theme; ?>',
|
107 |
-
'size' : '<?php echo $size; ?>',
|
108 |
-
'data_callback' : '<?php echo $data_callback; ?>',
|
109 |
-
'expired_callback' : '<?php echo $expired_callback; ?>'
|
110 |
-
};
|
111 |
-
grecaptcha.render( 'recaptcha-' + x, recaptcha_paramaters );
|
112 |
-
x++;
|
113 |
-
});
|
114 |
-
}
|
115 |
-
</script>
|
116 |
-
<?php
|
117 |
}
|
118 |
}
|
119 |
|
@@ -180,14 +159,14 @@ function process_mailchimp_shortcode( $atts ) {
|
|
180 |
|
181 |
// the the current date is less than the form scheduled start date
|
182 |
if( $current_date < $form_schedule_start ) {
|
183 |
-
echo apply_filters( 'yikes-mailchimp-frontend-content', $form_pending_message );
|
184 |
return;
|
185 |
// abort
|
186 |
}
|
187 |
|
188 |
// The current date is past or equal to the end date, aka form has now expired
|
189 |
if( $current_date >= $form_schedule_end ) {
|
190 |
-
echo apply_filters( 'yikes-mailchimp-frontend-content', $form_expired_message );
|
191 |
return;
|
192 |
// abort
|
193 |
}
|
@@ -197,15 +176,6 @@ function process_mailchimp_shortcode( $atts ) {
|
|
197 |
// shortcode parameter takes precedence over option
|
198 |
$submit = ( ! empty( $atts['submit'] ) ) ? $atts['submit'] : $submit_button_text;
|
199 |
|
200 |
-
// used in yikes-mailchimp-redirect-url filter
|
201 |
-
global $post;
|
202 |
-
$page_data = $post;
|
203 |
-
|
204 |
-
// Remove the post_password from this for security
|
205 |
-
if( isset( $page_data->post_password ) ) {
|
206 |
-
unset( $page_data->post_password );
|
207 |
-
}
|
208 |
-
|
209 |
/*
|
210 |
* Check for the constant to prevent styles from loading
|
211 |
* to exclude styles from loading, add `define( 'YIKES_MAILCHIMP_EXCLUDE_STYLES', true );` to functions.php
|
@@ -259,8 +229,13 @@ function process_mailchimp_shortcode( $atts ) {
|
|
259 |
}
|
260 |
|
261 |
if( $form_inline ) {
|
262 |
-
$field_width
|
263 |
-
$submit_button_width
|
|
|
|
|
|
|
|
|
|
|
264 |
/*
|
265 |
* Add inline styles after calculating the percentage etc.
|
266 |
* @since 6.0.3.8
|
@@ -268,8 +243,9 @@ function process_mailchimp_shortcode( $atts ) {
|
|
268 |
$inline_label_css = "
|
269 |
.yikes-easy-mc-form label.label-inline {
|
270 |
float: left;
|
271 |
-
width:
|
272 |
-
padding-right:
|
|
|
273 |
}
|
274 |
";
|
275 |
wp_add_inline_style( 'yikes-inc-easy-mailchimp-public-styles', $inline_label_css );
|
@@ -355,6 +331,12 @@ function process_mailchimp_shortcode( $atts ) {
|
|
355 |
|
356 |
// Check for AJAX
|
357 |
if( ( ! empty( $atts['ajax'] ) && $atts['ajax'] == 1 ) || $form_data['submission_settings']['ajax'] == 1 ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
// enqueue our ajax script
|
359 |
$min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
360 |
wp_enqueue_script( 'yikes-easy-mc-ajax' , YIKES_MC_URL . "public/js/yikes-mc-ajax-forms{$min}.js" , array( 'jquery' ), YIKES_MC_VERSION, false );
|
@@ -576,18 +558,6 @@ function process_mailchimp_shortcode( $atts ) {
|
|
576 |
$default_value = apply_filters( 'yikes-mailchimp-' . $field['merge'] . '-default-value', $default_value, $field, $form_id );
|
577 |
?>
|
578 |
|
579 |
-
<script type="text/javascript">
|
580 |
-
function properlyFormatURLField( e ) {
|
581 |
-
var url_value = jQuery( e ).val();
|
582 |
-
|
583 |
-
if ( url_value.indexOf( "http://" ) === -1 && url_value.indexOf( "https://" ) === -1 ) {
|
584 |
-
|
585 |
-
jQuery( e ).val( 'http://' + url_value );
|
586 |
-
|
587 |
-
}
|
588 |
-
}
|
589 |
-
</script>
|
590 |
-
|
591 |
<label for="<?php echo esc_attr( $field_id_string ); ?>" <?php echo implode( ' ' , $label_array ); ?>>
|
592 |
|
593 |
<!-- dictate label visibility -->
|
@@ -600,7 +570,7 @@ function process_mailchimp_shortcode( $atts ) {
|
|
600 |
<!-- Description Above -->
|
601 |
<?php if ( $show_description === true && $description_above === true ) { echo $description; } ?>
|
602 |
|
603 |
-
<input <?php echo implode( ' ' , $field_array ); ?> type="url" <?php if( $field['type'] == 'url' ) { ?> title="<?php _e( 'Please enter a valid URL to the website.' , 'yikes-inc-easy-mailchimp-extender' ); ?>" <?php } else { ?> title="<?php _e( 'Please enter a valid URL to the image.' , 'yikes-inc-easy-mailchimp-extender' ); ?>" <?php } ?> value="<?php if( isset( $_POST[$field['merge']] ) && $form_submitted != 1 ) { echo esc_attr( $_POST[$field['merge']] ); } else { echo esc_attr( $default_value ); } ?>"
|
604 |
|
605 |
<!-- Description Below -->
|
606 |
<?php if ( $show_description === true && $description_above === false ) { echo $description; } ?>
|
@@ -615,16 +585,6 @@ function process_mailchimp_shortcode( $atts ) {
|
|
615 |
$default_value = apply_filters( 'yikes-mailchimp-' . $field['merge'] . '-default-value', $default_value, $field, $form_id );
|
616 |
$phone_format = $field['phone_format'];
|
617 |
?>
|
618 |
-
<script type="text/javascript">
|
619 |
-
/* Replace incorrect values and format it correctly for MailChimp API */
|
620 |
-
function formatUSPhoneNumber( e ) {
|
621 |
-
var phone_number = e.value;
|
622 |
-
var new_phone_number = phone_number.replace(/\(|\)/g, "").replace(/-/g, "").trim(); // replace all '-,' '(' and ')'
|
623 |
-
formatted_us_number = new_phone_number.substring( 0, 10 ); // strip all characters after 10th number (10 = length of US numbers 215-555-5555
|
624 |
-
formatted_us_number = formatted_us_number.replace(/(\d\d\d)(\d\d\d)(\d\d\d\d)/, "$1-$2-$3"); // split the string into the proper format
|
625 |
-
jQuery( e ).val( formatted_us_number );
|
626 |
-
}
|
627 |
-
</script>
|
628 |
|
629 |
<label for="<?php echo esc_attr( $field_id_string ) ?>" <?php echo implode( ' ' , $label_array ); ?>>
|
630 |
|
@@ -638,7 +598,7 @@ function process_mailchimp_shortcode( $atts ) {
|
|
638 |
<!-- Description Above -->
|
639 |
<?php if ( $show_description === true && $description_above === true ) { echo $description; } ?>
|
640 |
|
641 |
-
<input <?php echo implode( ' ' , $field_array ); ?> type="text" <?php if( $phone_format != 'US' ) { ?>
|
642 |
|
643 |
<!-- Description Below -->
|
644 |
<?php if ( $show_description === true && $description_above === false ) { echo $description; } ?>
|
87 |
'success_callback' => $data_callback,
|
88 |
'expired_callback' => $expired_callback,
|
89 |
), $atts['form'] );
|
90 |
+
|
91 |
// enqueue Google recaptcha JS
|
92 |
+
wp_register_script( 'google-recaptcha-js' , 'https://www.google.com/recaptcha/api.js?hl=' . $recaptcha_shortcode_params['language'] . '&onload=renderReCaptchaCallback&render=explicit', array( 'jquery', 'form-submission-helpers' ) , 'all' );
|
93 |
wp_enqueue_script( 'google-recaptcha-js' );
|
94 |
$recaptcha_site_key = get_option( 'yikes-mc-recaptcha-site-key' , '' );
|
95 |
+
$recaptcha_box = '<div class="g-recaptcha" data-sitekey="' . esc_attr( $recaptcha_site_key ) . '" data-theme="' . esc_attr( $recaptcha_shortcode_params['theme'] ) . '" data-type="' . esc_attr( $recaptcha_shortcode_params['type'] ) . '" data-size="' . esc_attr( $recaptcha_shortcode_params['size'] ) . '" data-callback="' . esc_attr( $recaptcha_shortcode_params['success_callback'] ) . '" data-expired-callback="' . esc_attr( $recaptcha_shortcode_params['expired_callback'] ) . '"></div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
}
|
97 |
}
|
98 |
|
159 |
|
160 |
// the the current date is less than the form scheduled start date
|
161 |
if( $current_date < $form_schedule_start ) {
|
162 |
+
echo apply_filters( 'yikes-mailchimp-frontend-content', $form_pending_message, $form_id, $form_schedule_start );
|
163 |
return;
|
164 |
// abort
|
165 |
}
|
166 |
|
167 |
// The current date is past or equal to the end date, aka form has now expired
|
168 |
if( $current_date >= $form_schedule_end ) {
|
169 |
+
echo apply_filters( 'yikes-mailchimp-frontend-content', $form_expired_message, $form_id, $form_schedule_end );
|
170 |
return;
|
171 |
// abort
|
172 |
}
|
176 |
// shortcode parameter takes precedence over option
|
177 |
$submit = ( ! empty( $atts['submit'] ) ) ? $atts['submit'] : $submit_button_text;
|
178 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
/*
|
180 |
* Check for the constant to prevent styles from loading
|
181 |
* to exclude styles from loading, add `define( 'YIKES_MAILCHIMP_EXCLUDE_STYLES', true );` to functions.php
|
229 |
}
|
230 |
|
231 |
if( $form_inline ) {
|
232 |
+
$field_width = (float) ( 100 / $field_count );
|
233 |
+
$submit_button_width = (float) ( 20 / $field_count );
|
234 |
+
$inline_offset = apply_filters( 'yikes-mailchimp-inline-offset', 1.0, $form_id );
|
235 |
+
$total_inline_offset = (float) $submit_button_width + $inline_offset;
|
236 |
+
$inline_padding_right = apply_filters( 'yikes-mailchimp-inline-padding-right', '10px', $form_id );
|
237 |
+
$inline_field_width = apply_filters( 'yikes-mailchimp-inline-field-width', $field_width - $total_inline_offset, $form_id );
|
238 |
+
$custom_inline_styles = apply_filters( 'yikes-mailchimp-custom-inline-styles', '', $form_id );
|
239 |
/*
|
240 |
* Add inline styles after calculating the percentage etc.
|
241 |
* @since 6.0.3.8
|
243 |
$inline_label_css = "
|
244 |
.yikes-easy-mc-form label.label-inline {
|
245 |
float: left;
|
246 |
+
width: {$inline_field_width}%;
|
247 |
+
padding-right: {$inline_padding_right};
|
248 |
+
{$custom_inline_styles}
|
249 |
}
|
250 |
";
|
251 |
wp_add_inline_style( 'yikes-inc-easy-mailchimp-public-styles', $inline_label_css );
|
331 |
|
332 |
// Check for AJAX
|
333 |
if( ( ! empty( $atts['ajax'] ) && $atts['ajax'] == 1 ) || $form_data['submission_settings']['ajax'] == 1 ) {
|
334 |
+
|
335 |
+
// Used in `yikes-mailchimp-redirect-url` filter
|
336 |
+
// Note: as of 6.4, this is now just the post ID - not the entire post object.
|
337 |
+
global $post;
|
338 |
+
$page_data = isset( $post->ID ) ? $post->ID : 0;
|
339 |
+
|
340 |
// enqueue our ajax script
|
341 |
$min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
342 |
wp_enqueue_script( 'yikes-easy-mc-ajax' , YIKES_MC_URL . "public/js/yikes-mc-ajax-forms{$min}.js" , array( 'jquery' ), YIKES_MC_VERSION, false );
|
558 |
$default_value = apply_filters( 'yikes-mailchimp-' . $field['merge'] . '-default-value', $default_value, $field, $form_id );
|
559 |
?>
|
560 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
561 |
<label for="<?php echo esc_attr( $field_id_string ); ?>" <?php echo implode( ' ' , $label_array ); ?>>
|
562 |
|
563 |
<!-- dictate label visibility -->
|
570 |
<!-- Description Above -->
|
571 |
<?php if ( $show_description === true && $description_above === true ) { echo $description; } ?>
|
572 |
|
573 |
+
<input <?php echo implode( ' ' , $field_array ); ?> type="url" <?php if( $field['type'] == 'url' ) { ?> title="<?php _e( 'Please enter a valid URL to the website.' , 'yikes-inc-easy-mailchimp-extender' ); ?>" <?php } else { ?> title="<?php _e( 'Please enter a valid URL to the image.' , 'yikes-inc-easy-mailchimp-extender' ); ?>" <?php } ?> value="<?php if( isset( $_POST[$field['merge']] ) && $form_submitted != 1 ) { echo esc_attr( $_POST[$field['merge']] ); } else { echo esc_attr( $default_value ); } ?>" >
|
574 |
|
575 |
<!-- Description Below -->
|
576 |
<?php if ( $show_description === true && $description_above === false ) { echo $description; } ?>
|
585 |
$default_value = apply_filters( 'yikes-mailchimp-' . $field['merge'] . '-default-value', $default_value, $field, $form_id );
|
586 |
$phone_format = $field['phone_format'];
|
587 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
588 |
|
589 |
<label for="<?php echo esc_attr( $field_id_string ) ?>" <?php echo implode( ' ' , $label_array ); ?>>
|
590 |
|
598 |
<!-- Description Above -->
|
599 |
<?php if ( $show_description === true && $description_above === true ) { echo $description; } ?>
|
600 |
|
601 |
+
<input <?php echo implode( ' ' , $field_array ); ?> type="text" <?php if( $phone_format != 'US' ) { ?> data-phone-type="international" title="<?php _e( 'International Phone Number' , 'yikes-inc-easy-mailchimp-extender' ); ?>" pattern="<?php echo apply_filters( 'yikes-mailchimp-international-phone-pattern' , '[0-9,-,+]{1,}' ); ?>" <?php } else { ?> title="<?php _e( 'US Phone Number (###) ### - ####' , 'yikes-inc-easy-mailchimp-extender' ); ?>" data-phone-type="us" pattern="<?php echo apply_filters( 'yikes-mailchimp-us-phone-pattern' , '^(\([0-9]{3}\)|[0-9]{3}-)[0-9]{3}-[0-9]{4}$' ); ?>" <?php } ?> value="<?php if( isset( $_POST[$field['merge']] ) && $form_submitted != 1 ) { echo esc_attr( $_POST[$field['merge']] ); } else { echo esc_attr( $default_value ); } ?>">
|
602 |
|
603 |
<!-- Description Below -->
|
604 |
<?php if ( $show_description === true && $description_above === false ) { echo $description; } ?>
|
public/partials/shortcodes/process_form_shortcode_depracated.php
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Process the old shortcode
|
4 |
-
* this is included for users who upgrade and don't switch over
|
5 |
-
* to the new shortcode. This is to maintain backwards compatability.
|
6 |
-
*/
|
7 |
-
// Add Shortcode ( [yikes-mailchimp] )
|
8 |
-
function process_depracated_mailchimp_shortcode( $atts ) {
|
9 |
-
|
10 |
-
// Attributes
|
11 |
-
extract( shortcode_atts(
|
12 |
-
array(
|
13 |
-
'form' => '',
|
14 |
-
'submit' => 'Submit',
|
15 |
-
'title' => '0',
|
16 |
-
'description' => '0',
|
17 |
-
'ajax' => '',
|
18 |
-
), $atts )
|
19 |
-
);
|
20 |
-
|
21 |
-
return '<p><em>' . __( 'This MailChimp shortcode is now deprecated. Please insert the new shortcode to display this form.' , 'yikes-inc-easy-mailchimp-extender' ) . '</em></p>';
|
22 |
-
|
23 |
-
}
|
24 |
-
add_shortcode( 'yks-mailchimp-list', 'process_depracated_mailchimp_shortcode' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://yikesplugins.com/?utm_source=wp_plugin_repo&utm_medium=dona
|
|
4 |
Tags: MailChimp, MailChimp forms, MailChimp lists, opt-in forms, sign up form, MailChimp, email, forms, mailing lists, marketing, newsletter, sign up
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.9.4
|
7 |
-
Stable tag: 6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -167,1190 +167,19 @@ Alongside the default functionality of the plugin we've included a number of hoo
|
|
167 |
|
168 |
For information and code examples on how to implement the hooks and filters provided by our plugin, please see our [Developer Documentation in the Knowledge Base](https://yikesplugins.com/support/knowledge-base/product/developer-documentation/?utm_source=wp_plugin_repo&utm_medium=link&utm_campaign=easy_forms_for_mailchimp).
|
169 |
|
170 |
-
Below you'll find a complete list of the hooks and filters available.
|
171 |
-
|
172 |
-
**Filters**
|
173 |
-
|
174 |
-
* `yikes-mailchimp-form-title` - Alter the output of the form title of the specified form. @params: $title, $form_id
|
175 |
-
* `yikes-mailchimp-form-description` - Alter the output of the form description of the specified form. @params: $description, $form_id
|
176 |
-
* `yikes-mailchimp-redirect-timer` - Alter the amount of time in *milliseconds* the user sees the success message before being redirected. Default: `1500` - @params: $time, $form_id
|
177 |
-
* `yikes-mailchimp-redirect-url` - Alter the URL of the page that the user will be redirected to on a successful submission. @params: $url, $form_id, $page_data
|
178 |
-
* `yikes-mailchimp-filter-before-submission` and `yikes-mailchimp-filter-before-submission-{$form_id}` - Catch the merge variables before they get sent over to MailChimp. @params: $merge_variables
|
179 |
-
* `yikes-mailchimp-after-submission` and `yikes-mailchimp-after-submission-{$form_id}` - Catch the merge variables after they get sent over to MailChimp. @params: $merge_variables
|
180 |
-
* `yikes-mailchimp-user-role-access` - Alter who can access this plugin page by capability. Default: `manage_options` - @params: $capability
|
181 |
-
* `yikes-mailchimp-international-phone-pattern` - Alter the regex pattern for acceptable international phone number formats. Default: `'[0-9,-,+]{1,}'` - @params: $regex_pattern
|
182 |
-
* `yikes-mailchimp-us-phone-pattern` - Alter the regex pattern for acceptable US phone number formats. Default: `^(\([0-9]{3}\)|[0-9]{3}-)[0-9]{3}-[0-9]{4}$` - @params: $regex_pattern
|
183 |
-
* `yikes-mailchimp-zip-pattern` - Alter the zip code regex pattern. Default: `\d{5,5}(-\d{4,4})?` - @params: $regex_pattern, $form_id
|
184 |
-
* `yikes-mailchimp-process-default-tag` - Alter the default form field value for text fields. @params: $default_value
|
185 |
-
* `yikes-mailchimp-{$merge_tag}-label` - Alter the specified form field's or interest group's label text. @params: $label
|
186 |
-
* `yikes-mailchimp-{$merge_tag}-description` - Alter the specified form field's or interest group's description text (note: if targeting an interest group, it will be the group_id instead of the merge tag). @params: $description_content, $form_id.
|
187 |
-
* `yikes-mailchimp-address-{$type}-label` - Alter the field sub-label text for a specific address field (e.g. addr1). @params: $label, $form_id
|
188 |
-
* `yikes-mailchimp-form-submit-button` - Alter the submit button to your liking. @params: $submit_button, $form_id
|
189 |
-
* `yikes-mailchimp-form-submit-button-text` - Alter the submit button text. Default: `submit` - @params: $submit_button_text, $form_id
|
190 |
-
* `yikes-mailchimp-form-submit-button-classes` - Add additional classes to the submit button for further styling. @params: $classes, $form_id
|
191 |
-
* `yikes-mailchimp-form-container-class` - Add additional classes to the `<section>` element container that wraps the form. @params: $class_name, $form_id
|
192 |
-
* `yikes-mailchimp-form-class` - Add additional classes to `<form>` element of your opt-in form. @params: $class_name, $form_id
|
193 |
-
* `yikes-mailchimp-front-end-form-action-links` - Add custom front end action links alongside Edit Form, Customize Form etc. @params: $form_action_links, $form_id, $form_name
|
194 |
-
* `yikes-mailchimp-custom-default-value-tags` - Define your own custom pre-defined tags to populate the default value fields with - these tags appear in the modal. @params: $pre_defined_tags_array
|
195 |
-
* `yikes-mailchimp-parse-custom-default-value` - Process your custom default merge tag into a custom value to populate the form field with (note: Goes hand in hand with `yikes-mailchimp-custom-default-value-tags` filter). @params: $default_tag
|
196 |
-
* `yikes-mailchimp-field-data` - Filter form field data such as placeholder, label, etc. @params: $field_array, $field, $form_id
|
197 |
-
* `yikes-mailchimp-subscriber-count-value` - Alter the returned value for the total subscriber count of a given list. @params: $subscriber_count
|
198 |
-
* `yikes-mailchimp-frontend-content` - Custom content filter for this plugin to prevent others from hooking in where not wanted.
|
199 |
-
* `yikes-mailchimp-recaptcha-parameters` - Alter any of the possible reCAPTCHA shortcode parameters. @params: $recaptcha_parameter_array, $form_id
|
200 |
-
* `yikes-mailchimp-preloader` - Add a custom preloader image. Default: WordPress's wpspin_light.gif. @params: $url_to_spinner_gif
|
201 |
-
* `yikes-mailchimp-update-email-subject` - Filter the subject line for the email that is generated and sent when a user needs to update their subscription info. @params: $email_subject
|
202 |
-
* `yikes-mailchimp-update-email-content` - Filter the content of the email that is generated and sent when a user needs to update their subscription info. @params: $email_body
|
203 |
-
* `yikes-mailchimp-success-response` - Alter *any* success response text. @params: $response_text, $form_id, $submitted_form_variables
|
204 |
-
* `yikes-mailchimp-default-country-value` - Alter the default country selected in the country dropdown. Default: `US` - @params: $country_slug, $form_id
|
205 |
-
* `yikes-mailchimp-recaptcha-required-error` - Filter the error displayed back to the user when an error occurs during the reCAPTCHA submission process. @params: $error_text, $form_id
|
206 |
-
* `yikes-mailchimp-sslverify` - Toggle sslverify on/off when attempting to validate your API key with the MailChimp API servers. Default: `true` (on) - @params: $use_ssl
|
207 |
-
* `yikes_admin_list_subscriber_limit` - Filter the number of subscribers per page when viewing a list's subscribers. Default: `20` - @params: $limit
|
208 |
-
* Version 6.3.0:
|
209 |
-
* `yikes-mailchimp-success-double-optin-response` - Filter the "Success: Double opt-in" custom message. @params: $message, $form_id
|
210 |
-
* `yikes-mailchimp-success-single-optin-response` - Filter the "Success: Single opt-in" custom message. @params: $message, $form_id
|
211 |
-
* `yikes-mailchimp-success-resubscribed-response` - Filter the "Success: Re-subscriber" custom message. @params: $message, $form_id
|
212 |
-
* `yikes-mailchimp-user-already-subscribed-link-text` - Filter the "Success: Re-subscriber with link to email profile update message" custom message. @params: $message, $form_id
|
213 |
-
* `yikes-mailchimp-general-error-response` - Filter the "Error: General" custom message. @params: $message, $form_id
|
214 |
-
* `yikes-mailchimp-user-already-subscribed-text` - Filter the "Error: Re-subscribers not permitted" custom message (note: this replaced `yikes-mailchimp-user-already-subscribed-error`). @params: $message, $form_id
|
215 |
-
* `yikes-mailchimp-filter-groups-before-submission` and `yikes-mailchimp-filter-groups-before-submission-{$form_id}` - Filter the interest groups before they're submitted. @params: $groups, $form_id
|
216 |
-
* `yikes-mailchimp-address-2-required` - Change the address 2 field's `required` value. Default: `''` (it is never required) - @params: $required, $form_id
|
217 |
-
* `yikes-mailchimp-filter-subscribe-request` and `yikes-mailchimp-filter-subscribe-request-{$form_id}` - Filter all of the fields sent over to the MailChimp API (not just the form fields). @params: $subscribe_body, $form_id
|
218 |
-
* `yikesinc_eme_default_api_version` - Filter the API version. Default: `3.0` - @params: $version
|
219 |
-
* `yikesinc_eme_api_url` - Filter the URL used for a request to the API. @params: $full_path, $path
|
220 |
-
* `yikesinc_eme_api_user_agent` - Filter the user agent used in API request. @params: $user_agent
|
221 |
-
* `yikesinc_eme_api_auth_headers` - Filter the authentication headers used in the API request. @params: $auth_headers, $api_version
|
222 |
-
* `yikesinc_eme_api_headers` - Filter the headers used for a request to the API. @params: $headers, $path, $method, $params
|
223 |
-
* `yikesinc_eme_api_timeout` - Filter the timeout (in *seconds*) used when sending an API request. Default: `15` @params: $timeout
|
224 |
-
* `yikesinc_eme_api_args` - Filter the arguments used for a request to the API. @params: $args, $path, $method, $params
|
225 |
-
* Version 6.3.5:
|
226 |
-
* `yikes-mailchimp-default-zip-code` - Filter to set the default zip code value. Default: `''` - @params $default_zip_code_value, $form_id
|
227 |
-
* Version 6.3.6:
|
228 |
-
* `yikes-mailchimp-excluded-redirect-post-types` - Filter which post types will *not* be included in the dropdown of pages that you can redirect to. Some post types will never need to be redirected to, and for convenience (e.g. a smaller and easier to navigate dropdown) these can be added to the excluded post types array. Default: `array( 'attachment' , 'revision' , 'nav_menu_item', 'shop_order', 'shop_order_refund', 'custom_css', 'customize_changeset' );` - @params: $excluded_post_types (the default array)
|
229 |
-
* Version 6.3.10:
|
230 |
-
* `yikes-mailchimp-countries-with-zip` - Control which countries the zip field displays for. If the chosen country is not in this array, the zip field will fade out. @params: $countries_with_zip, $form_id
|
231 |
-
* `yikes-mailchimp-state-province-list` - Add or remove options from the states dropdown list. Default: All U.S. States and Canadian Provinces - @params: $state_and_province_list, $form_id
|
232 |
-
* Version 6.3.13:
|
233 |
-
* `yikes-mailchimp-use-nonce-verification` - Control whether we verify the nonce on form submissions. Default: `true` (by default, we check the nonce). @params: $use_nonce, $form_id
|
234 |
-
* `yikes-mailchimp-wp-comment-integration-placement` - Control the placement of the subscription checkbox for the WP Comment Form integration. Default: `comment_form_field_comment` (after the comment textarea box) - @params: $comment_form_field. This filter allows you to choose which WP Comment Form filter to use, and for the full list of WP Comment Form filters, check the documentation: https://codex.wordpress.org/Function_Reference/comment_form.
|
235 |
-
* 6.3.14:
|
236 |
-
* `yikes-mailchimp-wooco-integration-checkbox-classes` - Control the classes that are added to the checkbox for the WooCommerce Checkout Integration. Default: 'form-row-wide' - @params: $classes
|
237 |
-
* 6.3.15:
|
238 |
-
* `yikes-mailchimp-{$merge_tag}-description-html` - Filter the full block of HTML that will be used for the form field's description. @params: $description_full, $description_text, $form_id
|
239 |
-
* `yikes-mailchimp-{$interest_group_id}-description-html` - Filter the full block of HTML that will be used for the interest group field's description. @params: $description_full, $description_text, $form_id
|
240 |
-
* 6.3.18:
|
241 |
-
* `yikes-mailchimp-checkbox-integration-body` - Filter the full request body of a checkbox integration subscribe API call. @params: $data, $type
|
242 |
-
* `yikes-mailchimp-ignore-required-array-field` - For server side validation, filter the required/unrequired fields. Due to the way MailChimp requires addresses, this is only useful for address 2 at the moment. @params: $non_required_fields, $form_id
|
243 |
-
* 6.3.19:
|
244 |
-
* `yikes-mailchimp-save-form-filter - Filter all of a form's data before it gets saved. @params: $form_updates, $form_id
|
245 |
-
* `yikes-mailchimp-datepicker-options` - Filter all of the options for the jQuery datepicker. @params: $datepicker_options, $form_id
|
246 |
-
* 6.3.20:
|
247 |
-
* `yikes-mailchimp-integration-is-user-subscribed` - Override the integration checkbox for already subscribed users. @params: $subscribed, $integration_type.
|
248 |
-
* 6.3.26:
|
249 |
-
* `yikes-mailchimp-{$merge_tag}-default-value` - Set the default value for a field based on its merge tag. @params: $default_value, $field, $form_id
|
250 |
-
* `yikes-mailchimp-wooco-integration-checkbox-placement` - Filter where the subscribe checkbox is placed for the WooCommerce integration. @params: $placement
|
251 |
-
* 6.3.27:
|
252 |
-
* `yikes-mailchimp-address-{$addr_type}-placeholder` - Filter the placeholder values for the address fields. Available values for $addr_type are 'address', 'address2', 'city', 'zip'. @params: $placeholder_value
|
253 |
-
* 6.3.29:
|
254 |
-
* `yikes-mailchimp-page-data` - Filter the page data being passed to the JS during a subscription request. @params: $page_data, $form_id
|
255 |
-
* 6.3.30:
|
256 |
-
* `yikes-easy-mailchimp-email-address-field` - Filter the email field. You can use this field to change the email field's label. @params: $email_field, $list_id.
|
257 |
-
* `yikes_mailchimp_widget_shortcode_attributes` - Filter the shortcode attributes for the Easy Forms widget. @params: $shortcode_attributes, $instance
|
258 |
-
|
259 |
-
**Actions**
|
260 |
-
|
261 |
-
* `yikes-mailchimp-form-submission` and `yikes-mailchimp-form-submission-{$form_id}` - Do something with the user email + form data on form submission. @params: $email, $merge_variables, $form_id, $notifications
|
262 |
-
* `yikes-mailchimp-after-submission` and `yikes-mailchimp-after-submission-{$form_id}` - Do something with only the $merge_variables (note: these actions are fired off directly after `yikes-mailchimp-form-submission`).
|
263 |
-
* `yikes-mailchimp-before-submission` and `yikes-mailchimp-before-submission-{$form_id}` - Do something with the $merge_variables before the API request. @params: $merge_variables
|
264 |
-
* `yikes-mailchimp-after-form` - Do something after a form has been loaded. @params: $form_id
|
265 |
-
* `yikes-mailchimp-before-checkbox` - Do something (e.g. output custom content) before the opt-in checkbox for all integrations.
|
266 |
-
* `yikes-mailchimp-after-checkbox` - Do something (e.g. output custom content) after the opt-in checkbox for all integrations
|
267 |
-
* `yikes-mailchimp-support-page` - Do something (e.g. output custom content) on the support page (note: we use this to add our support form for premium users).
|
268 |
-
* `yikes-mailchimp-edit-form-section-links` - Add additional links to the edit form page next to 'Custom Messages'.
|
269 |
-
* `yikes-mailchimp-edit-form-sections` - Add custom section to the edit form page.
|
270 |
-
* `yikes-mailchimp-edit-form-notice` - Hook to display a custom notice on the edit form page.
|
271 |
-
* `yikes-mailchimp-shortcode-enqueue-scripts-styles` - Hook to enqueue custom scripts & styles wherever the shortcode is being used. @params: $form_id
|
272 |
-
* `yikes-mailchimp-additional-form-fields` - Define additional fields to add below all forms. @params: $form_data
|
273 |
-
* `yikes-mailchimp-custom-form-actions` - Add custom action links on the manage forms page (alongside Edit, Duplicate, Shortcode, Delete). @params: $form_id
|
274 |
-
* `yikes-mailchimp-list-form-fields-metabox` - Add additional content to the 'Form Fields' metabox on the view list page.
|
275 |
-
* `yikes-mailchimp-list-interest-groups-metabox` - Add additional content inside of the interest groups metabox on the view list page.
|
276 |
-
* 6.3.15:
|
277 |
-
* `yikes-mailchimp-google-analytics` - Add Google Analytics JS functions. Check our Knowledge Base for instructions.
|
278 |
-
|
279 |
== Changelog ==
|
280 |
|
281 |
-
= 6.3.30 - February 15th, 2018 =
|
282 |
-
* Added a new filter: `yikes_mailchimp_widget_shortcode_attributes`. You can use this filter to customize the shortcode arguments for your Easy Forms widget. For example, you can remove the recaptcha from a widget.
|
283 |
-
* Added a new filter: `yikes-easy-mailchimp-email-address-field`. You can use this filter to customize the email merge field. For example, you can rename the field to something other than "Email Address."
|
284 |
-
* Fixed the way the loading SVGs were added in JavaScript. You can now use the existing filters to safely remove them.
|
285 |
-
* Removed the dependency from the Public CSS file.
|
286 |
-
|
287 |
-
= 6.3.29 - November 8th, 2017 =
|
288 |
-
* Refactored the way the support form works and integrates with add-ons
|
289 |
-
* Refactored the way the transients are deleted when the API key is cleared - adding a new API key should now properly clear all cached data
|
290 |
-
* Added a filter - `yikes-mailchimp-page-data` - that can be used to prevent page data from being POSTed with a subscription request
|
291 |
-
|
292 |
-
= 6.3.28 - October 21st, 2017 =
|
293 |
-
* Fixing bug with 6.3.27's single optin resubscribe
|
294 |
-
|
295 |
-
= 6.3.27 - October 20th, 2017 =
|
296 |
-
* Replaced the current loading gifs with SVGs
|
297 |
-
* Added support for address field placeholder values. You can filter these values with the filter `yikes-mailchimp-address-{$addr_type}-placeholder`.
|
298 |
-
* Added support for single opt-in unsubscribed users to re-subscribe. Shout out to @jasonhildebrand for adding this functionality.
|
299 |
-
* Fixed an issue with interest groups. This should fix the "Invalid Interest Group: 0" error some users saw. Another really big shoutout to @jasonhildebrand for fixing this directly.
|
300 |
-
* Fixed up some PHP warnings - thanks to @szepeviktor on GitHub for reporting these.
|
301 |
-
|
302 |
-
= 6.3.26 - October 4th, 2017 =
|
303 |
-
* Added two new filters: `yikes-mailchimp-{$merge_tag}-default-value` and `yikes-mailchimp-wooco-integration-checkbox-placement`.
|
304 |
-
|
305 |
-
= 6.3.25 - September 11th, 2017 =
|
306 |
-
* Fixing some HTML validation/markup errors related to labels. Thanks to @upekshapriya for bringing these to our attention.
|
307 |
-
|
308 |
-
= 6.3.24 - August 28th, 2017 =
|
309 |
-
* If a subscriber has unsubscribed, the signup form will re-send them a confirmation email (double opt-in only)
|
310 |
-
* If a subscriber received the double confirmation email but never subscribed (pending status), the signup form will re-send them a confirmation email (double opt-in only)
|
311 |
-
|
312 |
-
= 6.3.23 - August 14th, 2017 =
|
313 |
-
* Removed an additional `esc_url` call on the redirect URL. Redirect URLs should now be able to accept characters like ampersands without encoding them.
|
314 |
-
* Fixed the way the `yikes-mailchimp-general-error-response` filter works. You can now use the original response as the first argument in the function. This should allow you to change a MailChimp response w/ str parsing.
|
315 |
-
* Some minor code cleanup
|
316 |
-
|
317 |
-
= 6.3.22 - June 23rd, 2017 =
|
318 |
-
* Fixed an issue with comment integration subscriptions - comments will now be spam checked correctly
|
319 |
-
|
320 |
-
= 6.3.21 - June 22nd, 2017 =
|
321 |
-
* Cleaned up some HTML on the form
|
322 |
-
* Fixed an issue with comment integration subscriptions - the commenter's name will now populate the First Name field in your MailChimp list.
|
323 |
-
|
324 |
-
= 6.3.20 - May 31st, 2017 =
|
325 |
-
* Added a filter - `yikes-mailchimp-integration-is-user-subscribed` - for the integration checkbox. You can override whether the checkbox will display for already subscribed users (by default, the checkbox will not display).
|
326 |
-
* Updated the way we're logging errors for the homepage dashboard widgets - an error should no longer break your dashboard!
|
327 |
-
* Added some default excluded post types for our post query on the form builder (CPTS are forum, topic, and reply). This should help people who use bbPress and are experiencing timeout issues. (These can be filtered with the `yikes-mailchimp-excluded-redirect-post-types`).
|
328 |
-
|
329 |
-
= 6.3.19 - May 16th, 2017 =
|
330 |
-
* Fixed a bug where hidden form fields were being counted as visible.
|
331 |
-
* Added a new filter - yikes-mailchimp-save-form-filter - that allows you to filter all of a form's data before it gets saved.
|
332 |
-
* Replaced the current datepicker with the standard jQuery core datepicker. Added styles and custom code to support this.
|
333 |
-
* Added a new filter - yikes-mailchimp-datepicker-options - that allows you to filter the datepicker options.
|
334 |
-
|
335 |
-
= 6.3.18 - May 3rd, 2017 =
|
336 |
-
* Added a filter, `yikes-mailchimp-checkbox-integration-body`, for the checkbox integrations. You can now filter the entire request body before it's sent to MailChimp.
|
337 |
-
* Fixed up the code that was requiring address 2. By default, the address 2 field will never be required (can be changed with filters `yikes-mailchimp-address-2-required` and `yikes-mailchimp-ignore-required-array-field`).
|
338 |
-
|
339 |
-
= 6.3.17 - May 1st, 2017 =
|
340 |
-
* Added a quick fix for the Addon Settings list
|
341 |
-
|
342 |
-
= 6.3.16 - April 26th, 2017 =
|
343 |
-
* Quick fix to 6.3.15 - forgot to add a couple of files that handle the "Description Above Field" when a form field/interest group is initially added to the form.
|
344 |
-
|
345 |
-
= 6.3.15 - April 26th, 2017 =
|
346 |
-
* Google Analytics Event Tracking is here! We've added an action - `yikes-mailchimp-google-analytics` - where you can add Google Analytics JavaScript. Check out our knowledge base article (https://yikesplugins.com/support/knowledge-base/add-google-analytics-event-tracking/) for more instructions.
|
347 |
-
* The form builder field instructions are now hidden when there are no fields added to the form.
|
348 |
-
* Added the Clear API Cache button to the form builder - you can find the button in the Associated List Settings box.
|
349 |
-
* Added a new option to the fields in the form builder: the ability to place the description above the field. This also comes with some minor style changes and a couple new filters: `'yikes-mailchimp-{$interest_group_id}-description-html'` to filter the interest group's description HTML, and `'yikes-mailchimp-{$merge_tag}-description-html'` to filter a form/merge field's description HTML.
|
350 |
-
* Added HTML so that labels will work properly in the form builder. You can now select input fields by clicking on the field's label.
|
351 |
-
|
352 |
-
= 6.3.14 - April 21st, 2017 =
|
353 |
-
* Updating the WooCommerce Checkout integration checkbox with a new class and a filter for the classes (yikes-mailchimp-wooco-integration-checkbox-classes). The checkbox should now align correctly.
|
354 |
-
* Added a new setting to the General Setting page that controls using the nonce validation. The nonce has caused numerous people issues, and the filter is difficult for some people. This new setting will turn off the nonce validation for all forms on the website. The previously added filter, yikes-mailchimp-use-nonce-verification, can still turn off nonce validation on a per-form basis.
|
355 |
-
|
356 |
-
= 6.3.13 - April 17th, 2017 =
|
357 |
-
* Two new filters: `yikes-mailchimp-wp-comment-integration-placement` and `yikes-mailchimp-use-nonce-verification`.
|
358 |
-
* `yikes-mailchimp-use-nonce-verification` - Control whether we verify the nonce on form submissions. Default: `true` (by default, we check the nonce). @params: $use_nonce, $form_id
|
359 |
-
* `yikes-mailchimp-wp-comment-integration-placement` - Control the placement of the subscription checkbox for the WP Comment Form integration. Default: `comment_form_field_comment` (after the comment textarea box) - @params: $comment_form_field. This filter allows you to choose which WP Comment Form filter to use, and for the full list of WP Comment Form filters, check the documentation: https://codex.wordpress.org/Function_Reference/comment_form.
|
360 |
-
|
361 |
-
= 6.3.12 - April 6th, 2017 =
|
362 |
-
* Security vulnerability patched - Discovered with DefenseCode ThunderScan Source Code Security Analyzer by Neven Biruski
|
363 |
-
|
364 |
-
= 6.3.11 - March 23rd, 2017 =
|
365 |
-
* Optimized our query that fetches all posts/pages/CPTs - we now fetch only the IDs - this should prevent issues such as memory overflow or timeout
|
366 |
-
|
367 |
-
= 6.3.10 - March 21st, 2017 =
|
368 |
-
* Added a filter to customize the options in the states' dropdown. You can now add your own states/provinces, or remove the default ones. Use `yikes-mailchimp-state-province-list`
|
369 |
-
* Added a filter to customize the behavior of the zip code field. There are now around 20 different countries that the zip code field will be displayed for. Use the filter `yikes-mailchimp-countries-with-zip` to add/remove.
|
370 |
-
* Fixed an error handling bug that occurred when interest groups were empty for certain integrations
|
371 |
-
|
372 |
-
= 6.3.9.1 - March 14th, 2017 =
|
373 |
-
* Added a new option for AJAX submissions with redirect set: open in new window/tab. (Note: some browsers may detect the redirect as a popup and block it by default)
|
374 |
-
* Refactored the way the redirect logic worked
|
375 |
-
|
376 |
-
= 6.3.9 - March 10th, 2017 =
|
377 |
-
* The dismiss button for the "Please Review Us" box now redirects you to your current page instead of the admin home page.
|
378 |
-
|
379 |
-
= 6.3.8 - March 3rd, 2017 =
|
380 |
-
* Fixed an issue with label classes and refactored the code - there are now spaces in between the classes
|
381 |
-
|
382 |
-
= 6.3.7 - March 3rd, 2017 =
|
383 |
-
* Fixed an issue with the JavaScript helper file that was updated in 6.3.5 - the update profile link should now work as expected (shout out to @manouallouon on GitHub for pointing this out)
|
384 |
-
|
385 |
-
= 6.3.6 - February 27th, 2017 =
|
386 |
-
* Removing the following post types from our dropdown of potential redirect pages: `custom_css`, `customize_changeset`, and WooCommerce's `shop_order` and `shop_order_refund`.
|
387 |
-
* Adding a filter (`yikes-mailchimp-excluded-redirect-post-types`) to allow users to define which CPTs will be excluded from the list of potential redirect pages. See the "Other Notes" section for the default list of excluded post types.
|
388 |
-
|
389 |
-
= 6.3.5 - February 13th, 2017 =
|
390 |
-
* Added Canadian provinces to the state dropdown list. If you choose "Canada" as your country, you will see only the provinces. If you choose U.S. you will see only the states. For all other countries, the dropdown will fade out.
|
391 |
-
* Added the filter: `yikes-mailchimp-default-zip-code` for defaulting the zip code
|
392 |
-
* Added the variable $form_id to the `yikes-mailchimp-default-country-value`, `yikes-mailchimp-address-{$type}-label`, and `yikes-mailchimp-zip-pattern` filters
|
393 |
-
* Fixed an issue with pagination when viewing a list's subscribers. By default, each page jumps ahead 20 subscribers. This can be changed with the filter `yikes_admin_list_subscriber_limit`.
|
394 |
-
* Fixed an issue where using double/single quotes in field names could break the field name.
|
395 |
-
|
396 |
-
= 6.3.4 - February 2nd, 2017 =
|
397 |
-
* CSS update to fix an issue with interest groups displaying in the form builder caused by 6.3.3
|
398 |
-
|
399 |
-
= 6.3.3 - February 1st, 2017 =
|
400 |
-
* Security vulnerability patched - props to @nathan-hermit for bringing this to our attention
|
401 |
-
* New feature: the ability to edit field labels
|
402 |
-
* Generated new .pot file
|
403 |
-
|
404 |
-
= 6.3.2 - January 25th, 2017 =
|
405 |
-
* Custom message visibility is now dictated by your opt-in settings
|
406 |
-
* Fixed an issue with the PHP `array_keys` function that breaks PHP versions < 5.4
|
407 |
-
* Hidden interest groups now work properly and are defined as checkboxes for consistency with MailChimp
|
408 |
-
* Some minor copy changes and a new .pot file
|
409 |
-
|
410 |
-
= 6.3.1 - January 18th, 2017 =
|
411 |
-
* Generated new .pot file for proper i18n/l10n
|
412 |
-
|
413 |
-
= 6.3.0 - January 17th, 2017 =
|
414 |
-
* Version 6.3.0's biggest change is migrating the plugin to use MailChimp's v3 API.
|
415 |
-
* Created API classes to interact with the MailChimp API
|
416 |
-
* Converted all supported v2 endpoints to the corresponding v3 endpoint
|
417 |
-
* Refactored all v2 endpoints that are unsupported in v3 to use the new API classes
|
418 |
-
* Added filters to customize API requests
|
419 |
-
|
420 |
-
* Version 6.3.0 includes a suite of custom message updates:
|
421 |
-
* Removed the "invalid email" custom message (v3 no longer supports error codes to detect things like an invalid email error)
|
422 |
-
* Updated the custom messages descriptions text
|
423 |
-
* Updated the success message - it is now specifically for successful double opt-in subscriptions
|
424 |
-
* Added two new custom success messages: "Success: Single opt-in" for successful single opt-in subscriptions, and "Success: Re-subscriber" for successful re-subscriptions
|
425 |
-
* Added two new custom messages for customizing the "update your profile link" email: "Email Subject" to customize the subject of the email, and "Email body" to customize the body of the email
|
426 |
-
* Added/Updated filters for each custom message type. See the `Filters` section for more details.
|
427 |
-
|
428 |
-
* Version 6.3.0 includes a suite of bug fixes, enhancements, and changes:
|
429 |
-
* Added server-side validation to check for required form fields and required interest groups; this supports browsers like Safari that do not support the HTML 5 `required` attribute, or situations where the JavaScript validation fails
|
430 |
-
* Added the HTML 5 required attribute to radio button and dropdown formatted interest groups
|
431 |
-
* Wrapped the subscription form submit button's text in a span to better support adding custom HTML to the submit button text
|
432 |
-
* Changed the types of values that are wiped out after submission to better support subscribing multiple times without refreshing the page
|
433 |
-
* Added a nonce to the subscription form submission
|
434 |
-
* Multiple interest groups can now be highlighted and added to the form at the same time (instead of one at a time)
|
435 |
-
* Fixed the way default values work for interest groups and checkbox/dropdown/radio form fields
|
436 |
-
* Changed the way the datepicker displays birthdays when the date format is DD/MM
|
437 |
-
* Added error handling and a default error message for fatal server errors ('Error collecting the API response')
|
438 |
-
* Allowing + signs for phone fields using MailChimp's international phone format (supports country codes)
|
439 |
-
* Added transients throughout the application for common requests (e.g. API requests and internal form data requests)
|
440 |
-
* The "Send Welcome Email" option is no longer supported by MailChimp and has been removed
|
441 |
-
* The second address line (addr2) is never required by default (this can be changed using a filter - see `yikes-mailchimp-address-2-required`).
|
442 |
-
|
443 |
-
* Version 6.3.0 includes a lot of new filters, some renamed filters, some new parameters added, and some filters removed. For a complete list of available filters, please see the newly updated filters section. Here are some of the highlights:
|
444 |
-
* Renamed filters `yikes-mailchimp-before-submission` and `yikes-mailchimp-before-submission-{$form_id}` to `yikes-mailchimp-filter-before-submission` and `yikes-mailchimp-filter-before-submission-{$form_id}`. This prevents conflicts between the actions of the same name.
|
445 |
-
* Renamed filter `yikes-mailchimp-user-already-subscribed-error` to `yikes-mailchimp-user-already-subscribed-text`
|
446 |
-
* Added filters `yikes-mailchimp-filter-groups-before-submission` and `yikes-mailchimp-filter-groups-before-submission-{$form_id}` to filter the interest groups before they're submitted
|
447 |
-
* Removed filters `yikes-mailchimp-user-subscribe-api-request`, `yikes-mailchimp-checkbox-integration-subscribe-api-request`
|
448 |
-
* Removed filter `yikes-mailchimp-interest-group-required-top-error` - replaced by `yikes-mailchimp-required-interest-group-missing` - this handles all types of interest group fields, not just checkboxes
|
449 |
-
* Removed filter `yikes-mailchimp-interest-group-checkbox-error` - missing fields are now highlighted
|
450 |
-
|
451 |
-
= 6.2.4 - December 6th, 2016 =
|
452 |
-
* Fixed the way birthday field data was being handled / stored
|
453 |
-
* Added version number to main AJAX JavaScript file - Thanks goes to Viktor Szépe for committing this change
|
454 |
-
* Tested with WordPress version 4.7 (and updated the corresponding 'Tested up to' tag)
|
455 |
-
* Added minor error handling and logic to the forms page
|
456 |
-
|
457 |
-
= 6.2.3 - November 1st, 2016 =
|
458 |
-
* Changed the way HTML field data is retrieved for compatibility with the options DB table and the Incentives Add-on
|
459 |
-
* Fixed the path to the Knowledge Base on the welcome page
|
460 |
-
* Refactored and localized the tinyMCE JS file
|
461 |
-
* Fixed an i18n issue where an incorrect URL was being displayed in an error message
|
462 |
-
* Changed the way the address field is displayed when viewing a mailing list user's info
|
463 |
-
|
464 |
-
= 6.2.2 - October 25th, 2016 =
|
465 |
-
* Minor security patch - Thanks goes to the Tristan Madani for locating and disclosing the issues below.
|
466 |
-
* Fixed a bug where request variable "section" was not sanitize before execution and rendering
|
467 |
-
* Fixed a bug where global constant "YIKES_MC_API_KEY" was not sanitize before execution and rendering
|
468 |
-
* Fixed a bug where WP option "yikes-mc-api-key" was not sanitize before validating and saving
|
469 |
-
|
470 |
-
= 6.2.1 - October 19th, 2016 =
|
471 |
-
* Fixed a bug where the title and description will not display using the shortcode.
|
472 |
-
* Fixed a bug where the `recaptcha` shortcode parameter doesn't work properly.
|
473 |
-
|
474 |
-
= 6.2.0 - October 17th, 2016 =
|
475 |
-
* Fixed a bug where the default for a radio button would not show up if the first item was selected ([#587](https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/587))
|
476 |
-
* Fixed a bug where the form settings would not import properly ([#572](https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/572))
|
477 |
-
* Fixed a bug in our Visual Composer extension ([#514](https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/514))
|
478 |
-
* Fixed a bug where Interest Groups that are in radio format could not be changed when saving ([#584](https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/584))
|
479 |
-
* Fixed a bug where the Phone Format field would continually append # signs ([#562](https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/562))
|
480 |
-
* Fixed a compatibilty issue where our localized script variables were using common names ([#575](https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/575))
|
481 |
-
* Updated the storage of form data to utilize the Options API instead of a custom database table.
|
482 |
-
* Under-the-hood improvements and enhancements
|
483 |
-
|
484 |
-
As noted above, this release modifies this plugin to utilize the Options API instead of a custom database table. After upgrading, a routine will run that will grab all of your forms from the custom database table and convert them into a WordPress Option that the code will use from this point forward. At this point, we're choosing to keep the existing custom database table in place, so you can rest assured that all of your form data will be safe.
|
485 |
-
|
486 |
-
If for some reason you need to revert to using the custom database table, you can add a constant to your `wp-config.php` file:
|
487 |
-
|
488 |
-
`define( 'YIKES_EMCE_CUSTOM_DB', true );`
|
489 |
-
|
490 |
-
If you find that you *need* to do this, please contact us to let us know what you're seeing. In a future release, we will remove the custom database table entirely.
|
491 |
-
|
492 |
-
= 6.1.3 - July 26th, 2016 =
|
493 |
-
* Minor security patch - Thanks goes to the Wordfence Research Team for locating and disclosing the issue.
|
494 |
-
* Cleared API/Account transient data when API key has changed.
|
495 |
-
* Refactored our shortcode function to abort early, when no fields are present (inline or not).
|
496 |
-
* Added `labels-hidden` class to the submit button `<span></span>` element so we can better style inline forms when <strong>all</strong> labels are hidden.
|
497 |
-
|
498 |
-
= 6.1.2 - July 21st, 2016 =
|
499 |
-
* Fixed incorrect date format on date picker for birthday fields (Front end).
|
500 |
-
* Ensure that hidden fields don't become visible when forms are submitted (.fadeTo() bug)
|
501 |
-
* Built in support for defining a constant for your API keys in wp-config.php (`YIKES_MC_API_KEY` see FAQ)
|
502 |
-
|
503 |
-
= 6.1.1 - July 20th, 2016 =
|
504 |
-
* Added helper classes to the address fields to allow for easier targeting (Supports zip lookup extension).
|
505 |
-
|
506 |
-
= 6.1 - July 11th, 2016 =
|
507 |
-
* Sanitized section request on the options page properly.
|
508 |
-
* Fixed the apostraphes converted to tildes.
|
509 |
-
* Added the missing space in the form field classes when labels were hidden.
|
510 |
-
* Added preloaders to the submit button and the form overlay. Lowered opacity during AJAX processing.
|
511 |
-
* Fixed the 'Duplicate' form function.
|
512 |
-
* Repaired phone number validation on the phone form fields.
|
513 |
-
* Properly hide descriptions when they are not set. (Markup should no longer be generated)
|
514 |
-
* Added a 'Clear API Cache' link below the associated list dropdown during form creation.
|
515 |
-
* Swapped out `get_currentuserinfo()` for the correct, newer, functions.
|
516 |
-
* Repaired undefined variable on the 'Birthday/Date' form fields, when no default was set.
|
517 |
-
* Users can now bulk add fields to forms, instead of having to do it one at a time.
|
518 |
-
* Removed any dependency to the RSS feeds served from https://www.yikesplugins.com, which could potentially cause issues if the servers are ever down.
|
519 |
-
* Refactored the database creation function, and swapped out the field types - to support older versions of PHP (<v5.3).
|
520 |
-
* Added new filter to allow users to alter who can view/access the admin dashboard widgets - `yikes-mailchimp-admin-widget-capability`
|
521 |
-
* Added a new filter (`yikes-mailchimp-user-already-subscribed-error`) allowing the 'already subscribed' error message to be filtered.
|
522 |
-
* Added a new template tag (`[email]`) which can be used in the already subscribed response, to display the user entered email back in the response.
|
523 |
-
* Added a new template tag (`[link][/link]`) which can be used to wrap text in the 'update profile' link, allowing users to create a custom response & link.
|
524 |
-
|
525 |
-
= 6.0.5.5 - April 5th, 2016 =
|
526 |
-
* Fixed incompatibility with
|
4 |
Tags: MailChimp, MailChimp forms, MailChimp lists, opt-in forms, sign up form, MailChimp, email, forms, mailing lists, marketing, newsletter, sign up
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.9.4
|
7 |
+
Stable tag: 6.4.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
167 |
|
168 |
For information and code examples on how to implement the hooks and filters provided by our plugin, please see our [Developer Documentation in the Knowledge Base](https://yikesplugins.com/support/knowledge-base/product/developer-documentation/?utm_source=wp_plugin_repo&utm_medium=link&utm_campaign=easy_forms_for_mailchimp).
|
169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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