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
@@ -507,38 +504,34 @@ private function get_store_information_settings() {
507
504
* @return array
508
505
*/
509
506
privatefunctionget_customer_data_settings() {
507
+
508
+
$historical_import_field = new \WebDevStudios\CCForWoo\View\Admin\Field\ImportHistoricalData();
509
+
510
510
$settings = [
511
511
[
512
512
'title' => esc_html__( 'Import your contacts', 'cc-woo' ),
513
513
'id' => 'cc_woo_customer_data_settings',
514
514
'type' => 'title',
515
+
'desc' => wp_kses(
516
+
sprintf(
517
+
__( "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' ),
530
+
'type' => 'sectionend',
531
+
'id' => 'cc_woo_customer_data_settings',
521
532
],
522
533
];
523
534
524
-
$historical_import_field = new \WebDevStudios\CCForWoo\View\Admin\Field\ImportHistoricalData();
525
-
526
-
$settings[] = array_merge(
527
-
$settings,
528
-
$historical_import_field->get_form_field(),
529
-
[
530
-
[
531
-
'title' => '',
532
-
'type' => 'cc_woo_anti_spam_notice',
533
-
'id' => 'anti-spam-notice',
534
-
],
535
-
[
536
-
'type' => 'sectionend',
537
-
'id' => 'cc_woo_customer_data_settings',
538
-
],
539
-
]
540
-
);
541
-
542
535
return$settings;
543
536
}
544
537
@@ -831,28 +824,6 @@ public function get_woo_country() : string {
831
824
returnwc_get_base_location()['country'] ?? '';
832
825
}
833
826
834
-
/**
835
-
* Display a link to the anti-spam policy.
836
-
*
837
-
* @since 2019-05-17
838
-
* @author Zach Owen <zach@webdevstudios>
839
-
*/
840
-
publicfunctiondisplay_anti_spam_notice() {
841
-
?>
842
-
<tr>
843
-
<td colspan="2">
844
-
<?php
845
-
echosprintf(
846
-
// phpcs:ignore -- output is escaped properly with esc_url.
847
-
__( 'See more on Constant Contact\'s <a href="%s" target="_blank">anti-spam policy</a>.', 'cc-woo' ),
0 commit comments