PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / 2.5.0
ShareThis Dashboard for Google Analytics v2.5.0
3.3.2 trunk 1.0.7 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.5 2.3.5 2.3.6 2.3.7 2.3.8 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 3.0.0 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1
googleanalytics / view / templates / gdpr-config.php
googleanalytics / view / templates Last commit date
sidebar 5 years ago appearance.php 5 years ago demo-popup.php 5 years ago demographic-chart.php 5 years ago demographic.php 5 years ago exclusions.php 5 years ago gdpr-config.php 5 years ago gdpr.php 5 years ago purposes.php 5 years ago
gdpr-config.php
174 lines
1 <?php
2 /**
3 * Appearence display for gdpr config.
4 */
5
6 // Template vars.
7 $colors = [
8 '#e31010',
9 '#000000',
10 '#ffffff',
11 '#09cd18',
12 '#ff6900',
13 '#fcb900',
14 '#7bdcb5',
15 '#00d084',
16 '#8ed1fc',
17 '#0693e3',
18 '#abb8c3',
19 '#eb144c',
20 '#f78da7',
21 '#9900ef',
22 '#b80000',
23 '#db3e00',
24 '#fccb00',
25 '#008b02',
26 '#006b76',
27 '#1273de',
28 '#004dcf',
29 '#5300eb',
30 '#eb9694',
31 '#fad0c3',
32 '#fef3bd',
33 '#c1e1c5',
34 '#bedadc',
35 '#c4def6',
36 '#bed3f3',
37 '#d4c4fb'
38 ];
39
40
41 // User type options.
42 $user_types = array(
43 'eu' => esc_html__('Only visitors in the EU', 'sharethis-custom'),
44 'always' => esc_html__('All visitors globally', 'sharethis-custom'),
45 );
46
47 // Consent type options.
48 $consent_types = array(
49 'global' => esc_html__(
50 'Global: Publisher consent = 1st party cookie; Vendors consent = 3rd party cookie',
51 'sharethis-custom'
52 ),
53 'publisher' => esc_html__(
54 'Service: publisher consent = 1st party cookie; Vendors consent = 1st party cookie',
55 'sharethis-custom'
56 ),
57 );
58
59 $languages = array(
60 'English' => 'en',
61 'German' => 'de',
62 'Spanish' => 'es',
63 'French' => 'fr'
64 );
65
66 $publisher_name = !empty($gdpr_config['publisher_name']) ? $gdpr_config['publisher_name'] : '';
67 $enabled = !empty($gdpr_config['enabled']) ? $gdpr_config['enabled'] : false;
68 ?>
69 <div id="adblocker-notice" class="notice notice-error is-dismissible">
70 <p>
71 <?php echo esc_html__( 'It appears you have an ad blocker enabled. To avoid affecting this plugin\'s functionality, please disable while using its admin configurations and registrations. Thank you.', 'sharethis-share-buttons' ); ?>
72 </p>
73 </div>
74 <div id="detectadblock">
75 <div class="adBanner">
76 </div>
77 </div>
78 <div class="gdpr-platform">
79 <div class="switch">
80 <div class="purpose-item">
81 <label class="enable-tool">
82 <?php echo esc_html__('Enable GDPR', 'googleanalytics'); ?>
83 <input type="checkbox" name="gdpr-enable" <?php echo checked('true', $enabled); ?>/>
84 <span class="lever"></span>
85 </label>
86 </div>
87 </div>
88 <div class="well">
89 <label class="control-label">
90 <?php echo esc_html__('PUBLISHER NAME * (this will be displayed in the consent tool)',
91 'sharethis-share-buttons'); ?>
92 </label>
93 <div class="input-div">
94 <input type="text" id="sharethis-publisher-name" placeholder="Enter your company name" value="<?php echo esc_attr($publisher_name); ?>">
95 </div>
96 <label class="control-label">
97 <?php echo esc_html__('WHICH USERS SHOULD BE ASKED FOR CONSENT?',
98 'sharethis-share-buttons'); ?>
99 </label>
100 <div class="input-div">
101 <select id="sharethis-user-type">
102 <?php foreach ($user_types as $user_value => $name) : ?>
103 <option value="<?php echo esc_attr($user_value); ?>" <?php echo isset($gdpr_config['display']) ? selected($user_value, $gdpr_config['display']) : ''; ?>>
104 <?php echo esc_html($name); ?>
105 </option>
106 <?php endforeach; ?>
107 </select>
108 </div>
109 <label class="control-label">
110 <?php echo esc_html__('CONSENT SCOPE', 'sharethis-share-buttons'); ?>
111 </label>
112 <div class="input-div">
113 <select id="sharethis-consent-type">
114 <?php foreach ($consent_types as $consent_value => $c_name) : ?>
115 <option
116 value="<?php echo esc_attr($consent_value); ?>"
117 <?php echo isset($gdpr_config['scope']) ? selected($consent_value, $gdpr_config['scope']) : ''; ?>
118 >
119 <?php echo esc_html($c_name); ?>
120 </option>
121 <?php endforeach; ?>
122 </select>
123 </div>
124 <label class="control-label">
125 <?php echo esc_html__('SELECT LANGUAGE', 'sharethis-share-buttons'); ?>
126 </label>
127 <div class="input-div">
128 <select id="st-language">
129 <?php foreach ($languages as $language => $code) : ?>
130 <option value="<?php echo esc_attr($code); ?>" <?php echo isset($gdpr_config['language']) ? selected($code, $gdpr_config['language']) : ''; ?>>
131 <?php echo esc_html($language); ?>
132 </option>
133 <?php endforeach; ?>
134 </select>
135 </div>
136 </div>
137 <div class="accor-wrap">
138 <div class="accor-tab">
139 <span class="accor-arrow">&#9658;</span>
140 <?php echo esc_html__( 'Appearance', 'simple-share-buttons-adder' ); ?>
141 </div>
142 <div class="accor-content">
143 <div class="well">
144 <?php include plugin_dir_path(__FILE__) . 'appearance.php'; ?>
145 </div>
146 </div>
147 </div>
148 <div class="accor-wrap">
149 <div class="accor-tab">
150 <span class="accor-arrow">&#9658;</span>
151 <?php echo esc_html__( 'Purposes', 'simple-share-buttons-adder' ); ?>
152 </div>
153 <div class="accor-content">
154 <div class="well">
155 <?php include plugin_dir_path(__FILE__) . 'purposes.php'; ?>
156 </div>
157 </div>
158 </div>
159 <div class="accor-wrap">
160 <div class="accor-tab">
161 <span class="accor-arrow">&#9658;</span>
162 <?php echo esc_html__( 'Exclusions', 'googleanalytics' ); ?>
163 </div>
164 <div class="accor-content">
165 <div class="well">
166 <?php include plugin_dir_path(__FILE__) . 'exclusions.php'; ?>
167 </div>
168 </div>
169 </div>
170 </div>
171 <div class="gdpr-submit-button">
172 <button class="gdpr-submit">Update</button>
173 </div>
174