PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / trunk
VikAppointments Services Booking Calendar vtrunk
trunk 1.2.17 1.2.18 1.2.19
vikappointments / libraries / html / rss / optin / modal.php
vikappointments / libraries / html / rss / optin Last commit date
modal.php 4 years ago
modal.php
118 lines
1 <?php
2 /**
3 * @package VikAppointments - Libraries
4 * @subpackage html.rss
5 * @author E4J s.r.l.
6 * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved.
7 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
8 * @link https://vikwp.com
9 */
10
11 // No direct access
12 defined('ABSPATH') or die('No script kiddies please!');
13
14 $vik = VAPApplication::getInstance();
15
16 ?>
17
18 <style>
19 /* make background color of checkbox darker */
20 #rss_optin_status1:not(:checked) + label:before {
21 background-color: #ccc;
22 }
23 </style>
24
25 <!-- RSS intro -->
26
27 <p>
28 <?php
29 _e(
30 'VikAppointments supports the possibility of subscribing to a RSS channel and we are wondering whether you might be interested in using this service.',
31 'vikappointments'
32 );
33 ?>
34 </p>
35
36 <!-- explain RSS usage -->
37
38 <p>
39 <b>
40 <?php
41 _e(
42 'Why should I opt in to this service?',
43 'vikappointments'
44 );
45 ?>
46 </b>
47 </p>
48
49 <p>
50 <?php
51 _e(
52 'This RSS service mainly covers these macro sections: <b>news</b>, <b>tips</b> and <b>offers</b>. You might receive news about VikAppointments or anything else that interests the WordPress world, such as the jQuery conflict that broke millions of websites with WP 5.5. Sometimes you could receive notifications about tips or features that you didn\'t even think they could exist. During the most important festivities you might receive coupon codes to renew you license at a discount price. We guarantee you that this service won\'t result in an annoying advertising system.',
53 'vikappointments'
54 );
55 ?>
56 </p>
57
58 <!-- privacy policy -->
59
60 <p>
61 <b>
62 <?php
63 _e(
64 'What kind of personal data do we collect?',
65 'vikappointments'
66 );
67 ?>
68 </b>
69 </p>
70
71 <p>
72 <?php
73 _e(
74 'Our company does not collect any personal data here. The syndication URL never includes sensitive data that may be linked back to you.',
75 'vikappointments'
76 );
77 ?>
78 </p>
79
80 <!-- opt in checkbox -->
81
82 <p>
83 <?php
84 _e(
85 'We need you to explicitly opt in to this RSS service for GDPR compliance. Toggle the checkbox below if you are interested or leave it unchecked. You are free to change your decision in any time from the configuration of VikAppointments.',
86 'vikappointments'
87 );
88 ?>
89 </p>
90
91 <p style="display: flex; align-items: center;">
92 <?php
93 $yes = $vik->initRadioElement('', '', true);
94 $no = $vik->initRadioElement('', '', false);
95
96 echo $vik->radioYesNo('rss_optin_status', $yes, $no);
97 ?>
98 <label style="margin-left: 6px;">
99 <?php
100 _e(
101 'I want to opt in to VikWP RSS service',
102 'vikappointments'
103 );
104 ?>
105 </label>
106 </p>
107
108 <!-- finalisation -->
109
110 <p>
111 <?php
112 _e(
113 'Hit the <b>Save</b> button to confirm your choice and close this popup.',
114 'vikappointments'
115 );
116 ?>
117 </p>
118