You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -508,38 +505,34 @@ private function get_store_information_settings() {
508
505
* @return array
509
506
*/
510
507
privatefunctionget_customer_data_settings() {
508
+
509
+
$historical_import_field = new \WebDevStudios\CCForWoo\View\Admin\Field\ImportHistoricalData();
510
+
511
511
$settings = [
512
512
[
513
513
'title' => esc_html__( 'Import your contacts', 'cc-woo' ),
514
514
'id' => 'cc_woo_customer_data_settings',
515
515
'type' => 'title',
516
+
'desc' => wp_kses(
517
+
sprintf(
518
+
__( "Start marketing to your customers right away by importing all your contacts now.\n\nDo you want to import your current contacts? By selecting yes below, you agree you have permission to market to your current contacts. \n\nSee more on Constant Contact's <a href='%s' target='_blank'>anti-spam policy</a>.", 'cc-woo' ),
'desc' => esc_html__( "Start marketing to your customers right away by importing all your contacts now.\n\nDo you want to import your current contacts? By selecting yes below, you agree you have permission to market to your current contacts.", 'cc-woo' ),
531
+
'type' => 'sectionend',
532
+
'id' => 'cc_woo_customer_data_settings',
522
533
],
523
534
];
524
535
525
-
$historical_import_field = new \WebDevStudios\CCForWoo\View\Admin\Field\ImportHistoricalData();
526
-
527
-
$settings[] = array_merge(
528
-
$settings,
529
-
$historical_import_field->get_form_field(),
530
-
[
531
-
[
532
-
'title' => '',
533
-
'type' => 'cc_woo_anti_spam_notice',
534
-
'id' => 'anti-spam-notice',
535
-
],
536
-
[
537
-
'type' => 'sectionend',
538
-
'id' => 'cc_woo_customer_data_settings',
539
-
],
540
-
]
541
-
);
542
-
543
536
return$settings;
544
537
}
545
538
@@ -832,28 +825,6 @@ public function get_woo_country() : string {
832
825
returnwc_get_base_location()['country'] ?? '';
833
826
}
834
827
835
-
/**
836
-
* Display a link to the anti-spam policy.
837
-
*
838
-
* @since 2019-05-17
839
-
* @author Zach Owen <zach@webdevstudios>
840
-
*/
841
-
publicfunctiondisplay_anti_spam_notice() {
842
-
?>
843
-
<tr>
844
-
<td colspan="2">
845
-
<?php
846
-
echosprintf(
847
-
// phpcs:ignore -- output is escaped properly with esc_url.
848
-
__( 'See more on Constant Contact\'s <a href="%s" target="_blank">anti-spam policy</a>.', 'cc-woo' ),
0 commit comments