PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 1.7.0.9 All 211 releases
charitable / includes / admin / views / privacy-compliance / privacy-compliance.php

privacy-compliance.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.13, at includes/admin/views/privacy-compliance/privacy-compliance.php

190 lines 7.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Exit if accessed directly.
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit;
6 }
7
8 /**
9 * Display the main privacy compliance page wrapper.
10 *
11 * @author David Bisset
12 * @package Charitable/Admin View/Tools
13 * @copyright Copyright (c) 2023, WP Charitable LLC
14 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
15 * @since 1.8.8
16 * @version 1.8.9.1
17 * @version 1.8.8.6
18 */
19
20 ob_start();
21
22 $charitable_plugin_name = 'WPConsent';
23 $charitable_lite_plugin = 'wpconsent-cookies-banner-privacy-suite/wpconsent.php';
24 $charitable_lite_wporg_url = 'https://wordpress.org/plugins/wpconsent-cookies-banner-privacy-suite/';
25 $charitable_lite_download_url = 'https://downloads.wordpress.org/plugin/wpconsent-cookies-banner-privacy-suite.zip';
26 $charitable_pro_plugin = 'wpconsent-premium/wpconsent-premium.php';
27
28 ?>
29
30 <div id="charitable-privacy-compliance" class="wrap">
31 <h1 class="screen-reader-text"><?php echo esc_html( get_admin_page_title() ); ?></h1>
32
33 <div class="charitable-intergrations-container intergration-privacy-compliance">
34
35 <img class="charitable-privacy-compliance-logo" src="<?php echo esc_url( charitable()->get_path( 'assets', false ) ) . 'images/integrations/consent.png'; ?>" alt="<?php echo esc_html__( 'Built for transparency. Designed for ease.', 'charitable' ); ?>">
36
37 <h1><?php echo esc_html__( 'Make Your Website Privacy Compliant in Minutes', 'charitable' ); ?></h1>
38
39 <h2><?php echo esc_html__( 'Build trust with clear, compliant privacy practices. WPConsent adds clean, professional banners and handles the technical side for you. Built for transparency. Designed for ease.', 'charitable' ); ?></h2>
40
41 <div class="bullets-thumbnail">
42
43 <div>
44 <div class="charitable-screenshot">
45 <img src="<?php echo esc_url( charitable()->get_path( 'assets', false ) . 'images/integrations/wpconsent-screenshot-thumbnail.png' ); ?>" alt="<?php echo esc_html__( 'Integrate WPConsent Tools Into Charitable For Enhanced Data Protection', 'charitable' ); ?>">
46 <a href="<?php echo esc_url( charitable()->get_path( 'assets', false ) . 'images/integrations/wpconsent-screenshot-full.png' ); ?>" class="hover" data-lity=""></a>
47 </div>
48 </div>
49 <div>
50 <div class="vertical-wrapper">
51 <ul>
52 <li><?php echo esc_html__( 'A professional banner that fits your site.', 'charitable' ); ?></li>
53 <li><?php echo esc_html__( 'Tools like Google Analytics and Facebook Pixel paused until consent.', 'charitable' ); ?></li>
54 <li><?php echo esc_html__( 'Peace of mind knowing you’re aligned with global laws.', 'charitable' ); ?></li>
55 <li><?php echo esc_html__( 'Self-hosted. Your data remains on your site.', 'charitable' ); ?></li>
56 </ul>
57 </div>
58 </div>
59
60 </div>
61
62 <div class="charitable-intergration-steps">
63
64 <?php
65
66 $charitable_plugins_third_party = new Charitable_Admin_Plugins_Third_Party(); // phpcs:ignore
67
68 // determine if the Privacy Compliance plugin is installed and activated.
69 $charitable_is_privacy_compliance_installed = $charitable_plugins_third_party->is_plugin_installed( 'wpconsent' );
70 $charitable_is_privacy_compliance_active = $charitable_plugins_third_party->is_plugin_activated( 'wpconsent' );
71
72 if ( ! $charitable_is_privacy_compliance_installed ) {
73
74 $charitable_install_button_html = $charitable_plugins_third_party->get_install_button_html( 'wpconsent', 'Install WPConsent' );
75
76 ?>
77
78 <div class="charitable-intergration-step charitable-intergration-step-1" data-status="install">
79 <div class="instructions">
80 <h3><?php
81 // translators: %s is the plugin name
82 echo esc_html( sprintf( __( 'Install and Activate %s', 'charitable' ), $charitable_plugin_name ) );
83 ?></h3>
84 <p><?php
85 // translators: %s is the plugin name
86 echo esc_html( sprintf( __( 'Install the %s plugin by clicking this button', 'charitable' ), $charitable_plugin_name ) );
87 ?></p>
88 <?php echo $charitable_install_button_html; // phpcs:ignore ?>
89 </div>
90 <div class="step">
91 <div class="vertical-wrapper">
92 <div class="step-image"><img src="<?php echo esc_url( charitable()->get_path( 'assets', false ) . 'images/reports/analytics/step-1.png' ); ?>" alt="<?php echo esc_html__( 'Step 1', 'charitable' ); ?>" /></div>
93 </div>
94 </div>
95 </div>
96
97 <?php
98 } elseif ( ! $charitable_is_privacy_compliance_active ) {
99
100 $charitable_basename = $charitable_plugins_third_party->get_basename_from_slug( 'wpconsent' );
101
102 if ( $charitable_basename ) :
103
104 $charitable_activate_button_html = $charitable_plugins_third_party->get_activation_button_html( 'wpconsent', 'Activate ' . $charitable_plugin_name );
105
106 ?>
107
108 <div class="charitable-intergration-step charitable-intergration-step-1" data-status="activate">
109 <div class="instructions">
110 <h3><?php
111 // translators: %s is the plugin name
112 echo esc_html( sprintf( __( 'Activate %s', 'charitable' ), $charitable_plugin_name ) );
113 ?></h3>
114 <p><?php
115 // translators: %s is the plugin name
116 echo esc_html( sprintf( __( 'Activate %s by clicking this button:', 'charitable' ), $charitable_plugin_name ) );
117 ?></p>
118 <?php echo $charitable_activate_button_html; // phpcs:ignore ?>
119 </div>
120 <div class="step">
121 <div class="vertical-wrapper">
122 <div class="step-image"><img src="<?php echo esc_url( charitable()->get_path( 'assets', false ) . 'images/reports/analytics/step-1.png' ); ?>" alt="<?php echo esc_html__( 'Step 1', 'charitable' ); ?>" /></div>
123 </div>
124 </div>
125 </div>
126
127 <?php
128
129 endif;
130
131 } else {
132
133 $charitable_setup_url = $charitable_plugins_third_party->get_setup_screen_for_plugin( 'wpconsent' );
134
135 ?>
136
137 <div class="charitable-intergration-step charitable-intergration-step-1" data-status="setup">
138 <div class="instructions">
139 <h3><?php
140 // translators: %s is the plugin name
141 echo esc_html( sprintf( __( 'Setup %s', 'charitable' ), $charitable_plugin_name ) );
142 ?></h3>
143 <p><?php
144 // translators: %s is the plugin name
145 echo esc_html( sprintf( __( 'Setup %s plugin by clicking this button:', 'charitable' ), $charitable_plugin_name ) );
146 ?></p>
147 <a href="<?php echo esc_url( $charitable_setup_url ); ?>" target="_blank" class="charitable-button button-link charitable-button-setup"><?php echo esc_html__( 'Set Up WPConsent', 'charitable' ); ?></a>
148 </div>
149 <div class="step">
150 <div class="vertical-wrapper">
151 <div class="step-image"><img src="<?php echo esc_url( charitable()->get_path( 'assets', false ) . 'images/reports/analytics/step-1.png' ); ?>" alt="<?php echo esc_html__( 'Step 1', 'charitable' ); ?>" /></div>
152 </div>
153 </div>
154 </div>
155
156 <?php } ?>
157
158 <?php if ( ! charitable_is_installed_mi_pro() ) : ?>
159
160 <div class="charitable-intergration-step charitable-intergration-step-1">
161 <div class="instructions">
162 <h3><?php
163 // translators: %s is the plugin name
164 echo esc_html( sprintf( __( 'Upgrade to %s Pro', 'charitable' ), $charitable_plugin_name ) );
165 ?></h3>
166 <p><?php
167 // translators: %s is the plugin name
168 echo esc_html( sprintf( __( 'Unlock addition features by upgrading to %s Pro. Special offer: Get 50%% off your plan!', 'charitable' ), $charitable_plugin_name ) );
169 ?></p>
170 <a href="https://wpconsent.com/?utm_source=charitableplugin&utm_medium=link&utm_campaign=privacy-compliance-page" target="_blank" class="charitable-button button-link"><?php echo esc_html__( 'Upgrade To Pro', 'charitable' ); ?></a>
171 </div>
172 <div class="step">
173 <div class="vertical-wrapper">
174 <div class="step-image"><img src="<?php echo esc_url( charitable()->get_path( 'assets', false ) . 'images/reports/analytics/step-2.png' ); ?>" alt="<?php echo esc_html__( 'Step 2', 'charitable' ); ?>" /></div>
175 </div>
176 </div>
177 </div>
178
179 <?php endif; ?>
180
181 </div> <!-- charitable intergration steps -->
182
183 </div> <!-- charitable integrations container -->
184
185
186 </div>
187
188 <?php
189 echo ob_get_clean(); // phpcs:ignore
190