PluginProbe
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management / 1.6.1
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management v1.6.1
1.6.1 1.6.0 1.5.1 1.5.0 1.4.0 1.3.0 trunk 0.0.1 1.0.0 1.1.0 1.1.1 1.1.2 1.2.0
← All changes | inc/admin/analytics.php +8 -0 1.6.0 → 1.6.1 View file →
@@ -8,8 +8,9 @@
8 8 namespace SureDonation\Inc\Admin;
9 9
10 10 use SureDonation\Inc\Campaign_Templates\Campaign_Templates;
11 11 use SureDonation\Inc\Campaigns\Campaign_Cpt;
12 +use SureDonation\Inc\Emails\Email_Reports;
12 13 use SureDonation\Inc\Helper;
13 14 use SureDonation\Inc\Payments\Offline\Offline_Helper;
14 15 use SureDonation\Inc\Payments\Payment_Helper;
15 16 use SureDonation\Inc\Payments\PayPal\PayPal_Helper;
@@ -309,8 +310,10 @@
309 310 : 'self';
310 311
311 312 $privacy_settings = Privacy_Settings::get_settings();
312 313
314 + $email_reports_settings = Email_Reports::get_settings();
315 +
313 316 // Computed once: the headline total below is derived from the same rows.
314 317 $template_usage = $this->get_campaign_template_usage();
315 318
316 319 $plugin_data = [
@@ -347,8 +350,13 @@
347 350 'ottokit_connected' => Helper::is_suretriggers_ready(),
348 351 'contact_consent_enabled' => ! empty( $privacy_settings['contact_consent_field'] ),
349 352 'privacy_policy_field_enabled' => ! empty( $privacy_settings['privacy_policy_field'] ),
350 353 'terms_field_enabled' => ! empty( $privacy_settings['terms_conditions_field'] ),
354 + // Scheduled sends only go out in live mode, so read this
355 + // against the payment_mode already on the KPI records to tell
356 + // sites actually receiving a report from sites where it is on
357 + // but paused.
358 + 'email_reports_enabled' => ! empty( $email_reports_settings['enabled'] ),
351 359 ],
352 360 'data_retention_period' => isset( $privacy_settings['minimum_data_retention_period'] ) ? Helper::get_string_value( $privacy_settings['minimum_data_retention_period'] ) : 'none',
353 361 'block_usage' => $this->get_block_usage(),
354 362 'campaign_template_usage' => $template_usage,