PluginProbe
GDPR / trunk
GDPR vtrunk
trunk 1.4.7 2.0.0 2.0.1 2.0.10 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2
gdpr / admin / partials / settings.php

settings.php in GDPR trunk, at admin/partials/settings.php

431 lines 25.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div class="wrap gdpr">
2 <h1><?php esc_html_e( 'GDPR Settings', 'gdpr' ); ?></h1>
3
4 <?php settings_errors(); ?>
5
6 <form action="options.php" method="post" class="gdpr-settings-form">
7
8 <?php settings_fields( 'gdpr' ); ?>
9
10 <table class="form-table">
11 <tbody>
12 <tr>
13 <th scope="row">
14 <label for="gdpr_email_limit"><?php esc_html_e( 'Outgoing email limit', 'gdpr' ); ?>:</label>
15 <span class="screen-reader-text"><?php esc_attr_e( 'This is the hourly outgoing email limit set by your server.', 'gdpr' ); ?></span>
16 <span data-gdprtooltip="<?php esc_attr_e( 'This is the hourly outgoing email limit set by your server.', 'gdpr' ); ?>">
17 <span class="dashicons dashicons-info"></span>
18 </span>
19 </th>
20 <td>
21 <?php $limit = get_option( 'gdpr_email_limit', 100 ); ?>
22 <input type="number" name="gdpr_email_limit" id="gdpr_email_limit" value="<?php echo esc_attr( $limit ); ?>">
23 <span class="description"><?php esc_html_e( 'Emails/hour', 'gdpr' ); ?></span>
24 </td>
25 </tr>
26 <tr>
27 <th scope="row">
28 <label for="gdpr_deletion_needs_review"><?php esc_html_e( 'User deletion', 'gdpr' ); ?>:</label>
29 <span class="screen-reader-text"><?php esc_attr_e( 'Useful if you need to remove the user from third-party services.', 'gdpr' ); ?></span>
30 <span data-gdprtooltip="<?php esc_attr_e( 'Useful if you need to remove the user from third-party services.', 'gdpr' ); ?>">
31 <span class="dashicons dashicons-info"></span>
32 </span>
33 </th>
34 <td>
35 <?php $needs_review = get_option( 'gdpr_deletion_needs_review', true ); ?>
36 <input type="checkbox" name="gdpr_deletion_needs_review" id="gdpr_deletion_needs_review" value="1" <?php checked( $needs_review, true ); ?>><span class="description"><label for="gdpr_deletion_needs_review"><?php esc_html_e( 'Send all deletion requests to the review table.', 'gdpr' ); ?></label></span>
37 </td>
38 </tr>
39 <tr>
40 <th scope="row">
41 <label for="gdpr_refresh_after_preferences_update"><?php esc_html_e( 'Refresh page after updating preferences', 'gdpr' ); ?>:</label>
42 </th>
43 <td>
44 <?php $refresh_page = get_option( 'gdpr_refresh_after_preferences_update', false ); ?>
45 <input type="checkbox" name="gdpr_refresh_after_preferences_update" id="gdpr_refresh_after_preferences_update" value="1" <?php checked( $refresh_page, true ); ?>>
46 <span class="description"><?php esc_html_e( 'Useful for landing pages or to track a visit with Google Analytics.', 'gdpr' ); ?></span>
47 </td>
48 </tr>
49 <tr>
50 <th scope="row">
51 <label for="gdpr_disable_css"><?php esc_html_e( 'Disable CSS', 'gdpr' ); ?>:</label>
52 </th>
53 <td>
54 <?php $disable_css = get_option( 'gdpr_disable_css', false ); ?>
55 <input type="checkbox" name="gdpr_disable_css" id="gdpr_disable_css" value="1" <?php checked( $disable_css, true ); ?>><label for="gdpr_disable_css"><span class="description"><?php esc_html_e( 'Make sure you know what you are doing before checking this.', 'gdpr' ); ?></span></label>
56 </td>
57 </tr>
58 <tr>
59 <th scope="row">
60 <label for="gdpr_enable_telemetry_tracker"><?php esc_html_e( 'Enable the Telemetry Tracker', 'gdpr' ); ?>:</label>
61 <span class="screen-reader-text"><?php esc_attr_e( 'This tracks data that is being sent to outside servers.', 'gdpr' ); ?></span>
62 <span data-gdprtooltip="<?php esc_attr_e( 'This tracks data that is being sent to outside servers.', 'gdpr' ); ?>">
63 <span class="dashicons dashicons-info"></span>
64 </span>
65 </th>
66 <td>
67 <input type="checkbox" name="gdpr_enable_telemetry_tracker" id="gdpr_enable_telemetry_tracker" value="1" disabled><label for="gdpr_enable_telemetry_tracker"><span class="description"><?php echo sprintf( esc_html( 'The telemetry component has been discontinued. If you liked that feature and wants to use it, I recommend that you install this plugin: %s', 'gdpr' ), '<a href="https://wordpress.org/plugins/snitch/" target="_blank">Snitch</a>' ); ?></span></label>
68 </td>
69 </tr>
70 <tr>
71 <th scope="row">
72 <label for="gdpr_hide_from_bots"><?php esc_html_e( 'Hide plugin content from bots', 'gdpr' ); ?>:</label>
73 <span class="screen-reader-text"><?php esc_attr_e( 'We detect if the user agent is a bot like Googlebot and hide our added content from it. Displaying this content might be harmful for SEO.', 'gdpr' ); ?></span>
74 <span data-gdprtooltip="<?php esc_attr_e( 'We detect if the user agent is a bot like Googlebot and hide our added content from it. Displaying this content might be harmful for SEO.', 'gdpr' ); ?>">
75 <span class="dashicons dashicons-info"></span>
76 </span>
77 </th>
78 <td>
79 <?php $hide_from_bots = get_option( 'gdpr_hide_from_bots', true ); ?>
80 <input type="checkbox" name="gdpr_hide_from_bots" id="gdpr_hide_from_bots" value="1" <?php checked( $hide_from_bots, true ); ?>>
81 </td>
82 </tr>
83 <tr>
84 <th scope="row">
85 <label for="gdpr_reconsent_template"><?php esc_html_e( 'Template to use when asking for re-consent', 'gdpr' ); ?>:</label>
86 <span class="screen-reader-text"><?php esc_attr_e( 'Users can choose between a bar similar to the privacy bar that does not prevent navigation and a modal that displays the new policy content and prevents navigation until accepted.', 'gdpr' ); ?></span>
87 <span data-gdprtooltip="<?php esc_attr_e( 'Users can choose between a bar similar to the privacy bar that does not prevent navigation and a modal that displays the new policy content and prevents navigation until accepted.', 'gdpr' ); ?>">
88 <span class="dashicons dashicons-info"></span>
89 </span>
90 </th>
91 <td>
92 <?php $reconsent_template = get_option( 'gdpr_reconsent_template', 'modal' ); ?>
93 <select name="gdpr_reconsent_template" id="gdpr_reconsent_template">
94 <option value="bar" <?php selected( 'bar', $reconsent_template ); ?>><?php esc_html_e( 'Bar', 'gdpr' ); ?></option>
95 <option value="modal" <?php selected( 'modal', $reconsent_template ); ?>><?php esc_html_e( 'Modal', 'gdpr' ); ?></option>
96 </select>
97 </td>
98 </tr>
99 </tbody>
100 </table>
101 <hr>
102 <h2 class="title"><?php esc_html_e( 'Privacy Center', 'gdpr' ); ?></h2>
103 <p>
104 <?php esc_html_e( 'This section handles the privacy bar and some of the privacy preferences window.', 'gdpr' ); ?><br>
105 <table class="form-table">
106 <tbody>
107 <tr>
108 <th scope="row">
109 <label for="gdpr_enable_privacy_bar"><?php esc_html_e( 'Enable the Privacy Bar', 'gdpr' ); ?>:</label>
110 </th>
111 <td>
112 <?php $enable_privacy_bar = get_option( 'gdpr_enable_privacy_bar', true ); ?>
113 <input type="checkbox" name="gdpr_enable_privacy_bar" id="gdpr_enable_privacy_bar" value="1" <?php checked( $enable_privacy_bar, true ); ?>><label for="gdpr_enable_privacy_bar"><span class="description"><?php esc_html_e( 'Toggles the Privacy Bar On/Off.', 'gdpr' ); ?></span></label>
114 </td>
115 </tr>
116 <tr>
117 <th scope="row">
118 <label for="gdpr_display_cookie_categories_in_bar"><?php esc_html_e( 'Display the cookie categories in the privacy bar', 'gdpr' ); ?>:</label>
119 </th>
120 <td>
121 <?php $display_cookie_cat_checkboxes = get_option( 'gdpr_display_cookie_categories_in_bar', false ); ?>
122 <input type="checkbox" name="gdpr_display_cookie_categories_in_bar" id="gdpr_display_cookie_categories_in_bar" value="1" <?php checked( $display_cookie_cat_checkboxes, true ); ?>><label for="gdpr_display_cookie_categories_in_bar"></label>
123 </td>
124 </tr>
125 <tr>
126 <th scope="row">
127 <label for="gdpr_cookie_banner_content"><?php esc_html_e( 'Privacy Bar Content', 'gdpr' ); ?>:</label>
128 <span class="screen-reader-text"><?php esc_attr_e( 'Add a brief explanation of how your site collects user data. This will show up in the privacy bar.', 'gdpr' ); ?></span>
129 <span data-gdprtooltip="<?php esc_attr_e( 'Add a brief explanation of how your site collects user data. This will show up in the privacy bar.', 'gdpr' ); ?>">
130 <span class="dashicons dashicons-info"></span>
131 </span>
132 </th>
133 <td>
134 <?php $privacy_bar_content = get_option( 'gdpr_cookie_banner_content', '' ); ?>
135 <textarea name="gdpr_cookie_banner_content" id="gdpr_cookie_banner_content" cols="80" rows="6"><?php echo esc_html( $privacy_bar_content ); ?></textarea>
136 </td>
137 </tr>
138 <tr>
139 <th scope="row">
140 <label for="gdpr_cookie_privacy_excerpt"><?php esc_html_e( 'Privacy Excerpt', 'gdpr' ); ?>:</label>
141 <span class="screen-reader-text"><?php esc_attr_e( 'This will show up in the privacy preferences window.', 'gdpr' ); ?></span>
142 <span data-gdprtooltip="<?php esc_attr_e( 'This will show up in the privacy preferences window.', 'gdpr' ); ?>">
143 <span class="dashicons dashicons-info"></span>
144 </span>
145 </th>
146 <td>
147 <?php $privacy_excerpt = get_option( 'gdpr_cookie_privacy_excerpt', '' ); ?>
148 <textarea name="gdpr_cookie_privacy_excerpt" id="gdpr_cookie_privacy_excerpt" cols="80" rows="6"><?php echo esc_html( $privacy_excerpt ); ?></textarea>
149 <p class="description"><?php esc_html_e( 'This will appear in the consent section of the privacy preference window.', 'gdpr' ); ?></p>
150 </td>
151 </tr>
152 </tbody>
153 </table>
154 <hr>
155 <h2 class="title"><?php esc_html_e( 'Request Forms reCAPTCHA', 'gdpr' ); ?></h2>
156 <p><?php esc_html_e( 'To prevent spam attacks, you have the option to enable reCAPTCHA. Configure your keys below to make it work with our request forms.', 'gdpr' ); ?></p>
157 <p>
158 <?php
159 echo sprintf(
160 /* translators: External link with instructions on how to proceed. */
161 esc_html__( 'You can find the necessary information %s.', 'gdpr' ),
162 '<a href="https://www.google.com/recaptcha/admin" target="_blank">' . esc_html__( 'here', 'gdpr' ) . '</a>'
163 )
164 ?>
165 </p>
166 <table class="form-table">
167 <tbody>
168 <tr>
169 <th scope="row">
170 <label for="gdpr_use_recaptcha"><?php esc_html_e( 'Enable reCAPTCHA', 'gdpr' ); ?>:</label>
171 </th>
172 <td>
173 <?php $use_recaptcha = get_option( 'gdpr_use_recaptcha', false ); ?>
174 <input type="checkbox" name="<?php echo esc_attr( 'gdpr_use_recaptcha' ); ?>" id="gdpr_use_recaptcha" value="1" <?php checked( $use_recaptcha, true ); ?>>
175 </td>
176 </tr>
177 <tr>
178 <th scope="row">
179 <label for="gdpr_recaptcha_site_key"><?php esc_html_e( 'Site Key', 'gdpr' ); ?>:</label>
180 </th>
181 <td>
182 <?php $site_key = get_option( 'gdpr_recaptcha_site_key', '' ); ?>
183 <input type="text" name="gdpr_recaptcha_site_key" value="<?php echo esc_attr( $site_key ); ?>" placeholder="">
184 </td>
185 </tr>
186 <tr>
187 <th scope="row">
188 <label for="gdpr_recaptcha_secret_key"><?php esc_html_e( 'Secret Key', 'gdpr' ); ?>:</label>
189 </th>
190 <td>
191 <?php $secret_key = get_option( 'gdpr_recaptcha_secret_key', '' ); ?>
192 <input type="password" name="gdpr_recaptcha_secret_key" value="<?php echo esc_attr( $secret_key ); ?>" placeholder="">
193 </td>
194 </tr>
195 </tbody>
196 </table>
197 <?php if ( class_exists( 'WooCommerce' ) ) : ?>
198 <hr>
199 <h2 class="title"><?php esc_html_e( 'WooCommerce', 'gdpr' ); ?></h2>
200 <table class="form-table">
201 <tbody>
202 <tr>
203 <th scope="row">
204 <label for="gdpr_add_consent_checkboxes_registration"><?php esc_html_e( 'Add consent checkboxes to the registration page', 'gdpr' ); ?>:</label>
205 </th>
206 <td>
207 <?php $add_checkboxes_to_registration = get_option( 'gdpr_add_consent_checkboxes_registration', false ); ?>
208 <input type="checkbox" name="<?php echo esc_attr( 'gdpr_add_consent_checkboxes_registration' ); ?>" id="gdpr_add_consent_checkboxes_registration" value="1" <?php checked( $add_checkboxes_to_registration, true ); ?>>
209 </td>
210 </tr>
211 <tr>
212 <th scope="row">
213 <label for="gdpr_add_consent_checkboxes_checkout"><?php esc_html_e( 'Add consent checkboxes to the checkout registration form', 'gdpr' ); ?>:</label>
214 </th>
215 <td>
216 <?php $add_checkboxes_to_checkout = get_option( 'gdpr_add_consent_checkboxes_checkout', false ); ?>
217 <input type="checkbox" name="<?php echo esc_attr( 'gdpr_add_consent_checkboxes_checkout' ); ?>" id="gdpr_add_consent_checkboxes_checkout" value="1" <?php checked( $add_checkboxes_to_checkout, true ); ?>>
218 </td>
219 </tr>
220 </tbody>
221 </table>
222 <?php endif ?>
223
224 <hr>
225 <h2><?php esc_html_e( 'Cookies', 'gdpr' ); ?></h2>
226 <input type="text" id="cookie-tabs" class="regular-text" placeholder="<?php esc_attr_e( 'Category name', 'gdpr' ); ?>">
227 <button class="button button-primary add-tab"><?php esc_html_e( 'Add cookie category', 'gdpr' ); ?></button>
228 <div id="gdpr-cookie-categories">
229 <?php foreach ( $registered_cookies as $cookie_cat_id => $cookie_cat ) : ?>
230 <div class="postbox" id="cookie-tab-content-<?php echo esc_attr( $cookie_cat_id ); ?>">
231 <h2 class="hndle"><?php echo esc_html( $cookie_cat['name'] ); ?> <span>(id: <?php echo esc_html( $cookie_cat_id ); ?>)</span><button class="notice-dismiss" type="button"><span class="screen-reader-text"><?php esc_html_e( 'Remove this tab.', 'gdpr' ); ?></span></button></h2>
232 <div class="inside">
233 <table class="form-table">
234 <tr>
235 <th>
236 <label for="rename-<?php echo esc_attr( $cookie_cat_id ); ?>">
237 <?php esc_html_e( 'Category Name', 'gdpr' ); ?>:<span class="gdpr-required">*</span>
238 <span class="screen-reader-text"><?php esc_attr_e( 'Change this value if you want to name it something different.', 'gdpr' ); ?></span>
239 <span data-gdprtooltip="<?php esc_attr_e( 'Change this value if you want to name it something different.', 'gdpr' ); ?>">
240 <span class="dashicons dashicons-info"></span>
241 </span>
242 </label>
243 </th>
244 <td>
245 <input type="text" name="gdpr_cookie_popup_content[<?php echo esc_attr( $cookie_cat_id ); ?>][name]" value="<?php echo esc_attr( $cookie_cat['name'] ); ?>" required>
246 </td>
247 </tr>
248 <tr>
249 <th>
250 <label for="status-<?php echo esc_attr( $cookie_cat_id ); ?>">
251 <?php esc_html_e( 'Status', 'gdpr' ); ?>:<span class="gdpr-required">*</span>
252 <span class="screen-reader-text"><?php esc_attr_e( 'Required cookies are cookies that cannot be opted out of and are needed for the site to function properly. Soft opt-in will allow cookies on first landing but can be opted-out of. Checked means that the cookie category will be checked by default and will be set after the user agrees to them. Unchecked means the user needs to manually toggle the category on to allow these cookies.', 'gdpr' ); ?></span>
253 <span data-gdprtooltip="<?php esc_attr_e( 'Required cookies are cookies that cannot be opted out of and are needed for the site to function properly. Soft opt-in will allow cookies on first landing but can be opted-out of. Checked means that the cookie category will be checked by default and will be set after the user agrees to them. Unchecked means the user needs to manually toggle the category on to allow these cookies.', 'gdpr' ); ?>">
254 <span class="dashicons dashicons-info"></span>
255 </span>
256 </label>
257 </th>
258 <td>
259 <select name="gdpr_cookie_popup_content[<?php echo esc_attr( $cookie_cat_id ); ?>][status]" id="status-<?php echo esc_attr( $cookie_cat_id ); ?>" required>
260 <option value=""></option>
261 <option value="required" <?php selected( isset( $registered_cookies[ $cookie_cat_id ]['status'] ) ? $registered_cookies[ $cookie_cat_id ]['status'] : '', 'required' ); ?>><?php esc_html_e( 'Required', 'gdpr' ); ?></option>
262 <option value="soft" <?php selected( isset( $registered_cookies[ $cookie_cat_id ]['status'] ) ? $registered_cookies[ $cookie_cat_id ]['status'] : '', 'soft' ); ?>><?php esc_html_e( 'Soft Opt-in', 'gdpr' ); ?></option>
263 <option value="on" <?php selected( isset( $registered_cookies[ $cookie_cat_id ]['status'] ) ? $registered_cookies[ $cookie_cat_id ]['status'] : '', 'on' ); ?>><?php esc_html_e( 'Checked', 'gdpr' ); ?></option>
264 <option value="off" <?php selected( isset( $registered_cookies[ $cookie_cat_id ]['status'] ) ? $registered_cookies[ $cookie_cat_id ]['status'] : '', 'off' ); ?>><?php esc_html_e( 'Unchecked', 'gdpr' ); ?></option>
265 </select>
266 </td>
267 </tr>
268 <tr>
269 <th>
270 <label for="cookies-used-<?php echo esc_attr( $cookie_cat_id ); ?>">
271 <?php esc_html_e( 'Cookies used', 'gdpr' ); ?>:
272 <span class="screen-reader-text"><?php esc_attr_e( 'A comma-separated list of cookies that your site is using that fit this category.', 'gdpr' ); ?></span>
273 <span data-gdprtooltip="<?php esc_attr_e( 'A comma-separated list of cookies that your site is using that fit this category.', 'gdpr' ); ?>">
274 <span class="dashicons dashicons-info"></span>
275 </span>
276 </label>
277 </th>
278 <td>
279 <textarea cols="53" rows="3" name="gdpr_cookie_popup_content[<?php echo esc_attr( $cookie_cat_id ); ?>][cookies_used]" id="cookies-used-<?php echo esc_attr( $cookie_cat_id ); ?>"><?php echo esc_attr( $registered_cookies[ $cookie_cat_id ]['cookies_used'] ); ?></textarea>
280 <br>
281 <span class="description"><?php esc_html_e( 'Comma separated list.', 'gdpr' ); ?></span>
282 </td>
283 </tr>
284 <tr>
285 <th>
286 <label for="tab-how-we-use-<?php echo esc_attr( $cookie_cat_id ); ?>">
287 <?php esc_html_e( 'How are these used', 'gdpr' ); ?>:
288 <span class="screen-reader-text"><?php esc_attr_e( 'A brief explanation of why you are requesting to use these cookies, what they are for, and how you process them.', 'gdpr' ); ?></span>
289 <span data-gdprtooltip="<?php esc_attr_e( 'A brief explanation of why you are requesting to use these cookies, what they are for, and how you process them.', 'gdpr' ); ?>">
290 <span class="dashicons dashicons-info"></span>
291 </span>
292 </label>
293 </th>
294 <td><textarea name="gdpr_cookie_popup_content[<?php echo esc_attr( $cookie_cat_id ); ?>][how_we_use]" id="tab-how-we-use-<?php echo esc_attr( $cookie_cat_id ); ?>" cols="53" rows="3"><?php echo esc_html( $registered_cookies[ $cookie_cat_id ]['how_we_use'] ); ?></textarea></td>
295 </tr>
296 <tr>
297 <th>
298 <label for="hosts-<?php echo esc_attr( $cookie_cat_id ); ?>">
299 <?php esc_html_e( 'Third party domain', 'gdpr' ); ?>:
300 <span class="screen-reader-text"><?php esc_attr_e( 'E.g. facebook.com', 'gdpr' ); ?></span>
301 <span data-gdprtooltip="<?php esc_attr_e( 'E.g. facebook.com', 'gdpr' ); ?>">
302 <span class="dashicons dashicons-info"></span>
303 </span>
304 </label>
305 </th>
306 <td>
307 <input type="text" id="hosts-<?php echo esc_attr( $cookie_cat_id ); ?>" class="regular-text" placeholder="<?php esc_attr_e( 'domain.com', 'gdpr' ); ?>" />
308 <button class="button button-primary add-host" data-tabid="<?php echo esc_attr( $cookie_cat_id ); ?>"><?php esc_html_e( 'Add', 'gdpr' ); ?></button>
309 <br>
310 <span class="description"><?php esc_html_e( 'Cookies that are set by a third party, like facebook.com.', 'gdpr' ); ?></span>
311 </td>
312 </tr>
313 </table>
314 <div class="tab-hosts" data-tabid="<?php echo esc_attr( $cookie_cat_id ); ?>">
315 <?php if ( isset( $cookie_cat['hosts'] ) && $cookie_cat['hosts'] ) : ?>
316 <?php foreach ( $cookie_cat['hosts'] as $domain_id => $domain_arr ) : ?>
317 <div class="postbox">
318 <h2 class="hndle"><?php echo esc_attr( $domain_id ); ?><button class="notice-dismiss" type="button" aria-label="<?php esc_attr_e( 'Remove this domain.', 'gdpr' ); ?>"></button></h2>
319 <div class="inside">
320 <table class="form-table">
321 <tr>
322 <th>
323 <label for="hosts-cookies-used-<?php echo esc_attr( $domain_id ); ?>">
324 <?php esc_html_e( 'Cookies used', 'gdpr' ); ?>:
325 <span class="screen-reader-text"><?php esc_attr_e( 'A comma separated list of cookies that your site is using from this third-party provider.', 'gdpr' ); ?></span>
326 <span data-gdprtooltip="<?php esc_attr_e( 'A comma separated list of cookies that your site is using from this third-party provider.', 'gdpr' ); ?>">
327 <span class="dashicons dashicons-info"></span>
328 </span>
329 </label>
330 </th>
331 <td>
332 <textarea cols="53" rows="3" name="gdpr_cookie_popup_content[<?php echo esc_attr( $cookie_cat_id ); ?>][hosts][<?php echo esc_attr( $domain_id ); ?>][cookies_used]" id="hosts-cookies-used-<?php echo esc_attr( $domain_id ); ?>"><?php echo esc_attr( $domain_arr['cookies_used'] ); ?></textarea>
333 </td>
334 </tr>
335 <tr>
336 <th>
337 <label for="hosts-cookies-optout-<?php echo esc_attr( $domain_id ); ?>">
338 <?php esc_html_e( 'Opt Out Link', 'gdpr' ); ?>:
339 <span class="screen-reader-text"><?php esc_attr_e( 'Add a link with the third-party instructions on how to opt out of their cookies.', 'gdpr' ); ?></span>
340 <span data-gdprtooltip="<?php esc_attr_e( 'Add a link with the third-party instructions on how to opt out of their cookies.', 'gdpr' ); ?>">
341 <span class="dashicons dashicons-info"></span>
342 </span>
343 </label>
344 </th>
345 <td>
346 <input type="text" name="gdpr_cookie_popup_content[<?php echo esc_attr( $cookie_cat_id ); ?>][hosts][<?php echo esc_attr( $domain_id ); ?>][optout]" value="<?php echo esc_attr( $domain_arr['optout'] ); ?>" id="hosts-cookies-optout-<?php echo esc_attr( $domain_id ); ?>" class="regular-text" />
347 <br>
348 <span class="description"><?php esc_html_e( 'Url with instructions on how to opt out.', 'gdpr' ); ?></span>
349 </td>
350 </tr>
351 </table>
352 </div>
353 </div>
354 <?php endforeach; ?>
355 <?php endif; ?>
356 </div>
357 </div><!-- .inside -->
358 </div><!-- .postbox -->
359 <?php endforeach; ?>
360 </div>
361
362 <hr>
363 <h2><?php esc_html_e( 'Consents', 'gdpr' ); ?></h2>
364 <input type="text" id="type-of-consent" class="regular-text" placeholder="<?php esc_attr_e( 'E.g. Privacy Policy or Cookie Policy', 'gdpr' ); ?>">
365 <button class="button button-primary add-consent"><?php esc_html_e( 'Add consent', 'gdpr' ); ?></button>
366 <div id="consent-tabs">
367 <?php if ( ! empty( $consent_types ) ) : ?>
368 <?php foreach ( $consent_types as $consent_id => $consent ) : ?>
369 <div class="postbox" id="consent-type-content-<?php echo esc_attr( $consent_id ); ?>">
370 <h2 class="hndle"><?php echo esc_html( $consent['name'] ); ?> <span>(id: <?php echo esc_html( $consent_id ); ?>)</span><button class="notice-dismiss" type="button" aria-label="<?php esc_attr_e( 'Unregister this consent.', 'gdpr' ); ?>"></button></h2>
371 <input type="hidden" name="gdpr_consent_types[<?php echo esc_attr( $consent_id ); ?>][name]" value="<?php echo esc_attr( $consent['name'] ); ?>">
372 <div class="inside">
373 <table class="form-table">
374 <tr>
375 <th>
376 <label for="consent-policy-page-<?php echo esc_attr( $consent_id ); ?>">
377 <?php esc_html_e( 'Policy Page', 'gdpr' ); ?>:
378 <span class="screen-reader-text"><?php esc_attr_e( 'This page will be tracked for changes and you will be prompted to ask users to re-consent to the new policy. Selecting a page will make this consent required.', 'gdpr' ); ?></span>
379 <span data-gdprtooltip="<?php esc_attr_e( 'This page will be tracked for changes and you will be prompted to ask users to re-consent to the new policy. Selecting a page will make this consent required.', 'gdpr' ); ?>">
380 <span class="dashicons dashicons-info"></span>
381 </span>
382 </label>
383 </th>
384 <td>
385 <select name="gdpr_consent_types[<?php echo esc_attr( $consent_id ); ?>][policy-page]" id="consent-policy-page-<?php echo esc_attr( $consent_id ); ?>">
386 <option value=""></option>
387 <?php foreach ( $pages as $page ) : ?>
388 <option value="<?php echo esc_attr( $page->ID ); ?>" <?php selected( $consent['policy-page'], $page->ID ); ?>><?php echo esc_html( $page->post_title ); ?></option>
389 <?php endforeach ?>
390 </select>
391 </td>
392 </tr>
393 <tr>
394 <th>
395 <label for="consent-description-<?php echo esc_attr( $consent_id ); ?>">
396 <?php esc_html_e( 'Long description', 'gdpr' ); ?>:<span class="gdpr-required">*</span>
397 <span class="screen-reader-text"><?php esc_attr_e( 'This will show up at the privacy preferences center, under the name of the consent.', 'gdpr' ); ?></span>
398 <span data-gdprtooltip="<?php esc_attr_e( 'This will show up at the privacy preferences center, under the name of the consent.', 'gdpr' ); ?>">
399 <span class="dashicons dashicons-info"></span>
400 </span>
401 </label>
402 </th>
403 <td><textarea name="gdpr_consent_types[<?php echo esc_attr( $consent_id ); ?>][description]" id="consent-description-<?php echo esc_attr( $consent_id ); ?>" cols="53" rows="3" required><?php echo esc_html( $consent['description'] ); ?></textarea></td>
404 </tr>
405 <tr>
406 <th>
407 <label for="consent-registration-<?php echo esc_attr( $consent_id ); ?>">
408 <?php esc_html_e( 'Short description', 'gdpr' ); ?>:<span class="gdpr-required">*</span>
409 <span class="screen-reader-text"><?php esc_attr_e( 'This will show up at registration forms next to checkboxes.', 'gdpr' ); ?></span>
410 <span data-gdprtooltip="<?php esc_attr_e( 'This will show up at registration forms next to checkboxes.', 'gdpr' ); ?>">
411 <span class="dashicons dashicons-info"></span>
412 </span>
413 </label>
414 </th>
415 <td><textarea name="gdpr_consent_types[<?php echo esc_attr( $consent_id ); ?>][registration]" id="consent-registration-<?php echo esc_attr( $consent_id ); ?>" cols="53" rows="3" required><?php echo esc_html( $consent['registration'] ); ?></textarea></td>
416 </tr>
417 </table>
418 </div><!-- .inside -->
419 </div><!-- .postbox -->
420 <?php endforeach ?>
421 <?php endif ?>
422 </div>
423 <?php
424 do_action( 'gdpr_extra_settings' );
425 submit_button();
426 ?>
427 </form>
428
429 <!-- #poststuff -->
430 </div>
431