PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / trunk
ShareThis Dashboard for Google Analytics vtrunk
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 2 months ago appearance.php 2 months ago date-custom-range-filter.php 2 months ago demo-popup.php 2 months ago demographic-chart.php 2 months ago demographic.php 2 months ago exclusions.php 2 months ago ga4-dashboard.php 2 months ago ga4-demographic-chart.php 2 months ago gdpr-config.php 2 months ago gdpr.php 2 months ago purposes.php 2 months ago
gdpr-config.php
170 lines
1 <?php
2 /**
3 * Appearence display for gdpr config.
4 *
5 * @package GoogleAnalytics
6 */
7
8 if (!defined('ABSPATH')) exit;
9
10 // Template vars.
11 $colors = array(
12 '#e31010',
13 '#000000',
14 '#ffffff',
15 '#09cd18',
16 '#ff6900',
17 '#fcb900',
18 '#7bdcb5',
19 '#00d084',
20 '#8ed1fc',
21 '#0693e3',
22 '#abb8c3',
23 '#eb144c',
24 '#f78da7',
25 '#9900ef',
26 '#b80000',
27 '#db3e00',
28 '#fccb00',
29 '#008b02',
30 '#006b76',
31 '#1273de',
32 '#004dcf',
33 '#5300eb',
34 '#eb9694',
35 '#fad0c3',
36 '#fef3bd',
37 '#c1e1c5',
38 '#bedadc',
39 '#c4def6',
40 '#bed3f3',
41 '#d4c4fb',
42 );
43
44
45 // User type options.
46 $user_types = array(
47 'eu' => esc_html__( 'Only visitors in the EU', 'googleanalytics' ),
48 'always' => esc_html__( 'All visitors globally', 'googleanalytics' ),
49 );
50
51 $languages = array(
52 'English' => 'en',
53 'German' => 'de',
54 'Spanish' => 'es',
55 'French' => 'fr',
56 );
57
58 $publisher_name = ! empty( $gdpr_config['publisher_name'] ) ? $gdpr_config['publisher_name'] : '';
59 $enabled = ! empty( $gdpr_config['enabled'] ) ? $gdpr_config['enabled'] : false;
60 ?>
61 <div id="adblocker-notice" class="notice notice-error is-dismissible">
62 <p>
63 <?php esc_html_e( '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.', 'googleanalytics' ); ?>
64 </p>
65 </div>
66 <div id="detectadblock">
67 <div class="adBanner">
68 </div>
69 </div>
70 <div class="gdpr-platform">
71 <div class="switch">
72 <div class="purpose-item">
73 <label class="enable-tool">
74 <?php esc_html_e( 'Enable GDPR', 'googleanalytics' ); ?>
75 <input type="checkbox" name="gdpr-enable" <?php echo checked( 'true', $enabled ); ?>/>
76 <span class="lever"></span>
77 </label>
78 </div>
79 </div>
80 <div class="well">
81 <label class="control-label">
82 <?php
83 esc_html_e(
84 'PUBLISHER NAME * (this will be displayed in the consent tool)',
85 'googleanalytics'
86 );
87 ?>
88 </label>
89 <div class="input-div">
90 <input type="text" id="sharethis-publisher-name" placeholder="Enter your company name" value="<?php echo esc_attr( $publisher_name ); ?>">
91 </div>
92 <label class="control-label">
93 <?php
94 esc_html_e(
95 'WHICH USERS SHOULD BE ASKED FOR CONSENT?',
96 'googleanalytics'
97 );
98 ?>
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 ); ?>"
104 <?php
105 echo true === isset( $gdpr_config['display'] ) ?
106 selected( $user_value, $gdpr_config['display'] ) : '';
107 ?>
108 >
109 <?php echo esc_html( $name ); ?>
110 </option>
111 <?php endforeach; ?>
112 </select>
113 </div>
114
115 <label class="control-label">
116 <?php esc_html_e( 'SELECT LANGUAGE', 'googleanalytics' ); ?>
117 </label>
118 <div class="input-div">
119 <select id="st-language">
120 <?php foreach ( $languages as $language => $code ) : ?>
121 <option value="<?php echo esc_attr( $code ); ?>"
122 <?php
123 echo true === isset( $gdpr_config['language'] ) ?
124 selected( $code, $gdpr_config['language'] ) : '';
125 ?>
126 >
127 <?php echo esc_html( $language ); ?>
128 </option>
129 <?php endforeach; ?>
130 </select>
131 </div>
132 </div>
133 <div class="accor-wrap">
134 <div class="accor-tab">
135 <span class="accor-arrow">&#9658;</span>
136 <?php esc_html_e( 'Appearance', 'googleanalytics' ); ?>
137 </div>
138 <div class="accor-content">
139 <div class="well">
140 <?php require plugin_dir_path( __FILE__ ) . 'appearance.php'; ?>
141 </div>
142 </div>
143 </div>
144 <div class="accor-wrap">
145 <div class="accor-tab">
146 <span class="accor-arrow">&#9658;</span>
147 <?php esc_html_e( 'Purposes', 'googleanalytics' ); ?>
148 </div>
149 <div class="accor-content">
150 <div class="well">
151 <?php require plugin_dir_path( __FILE__ ) . 'purposes.php'; ?>
152 </div>
153 </div>
154 </div>
155 <div class="accor-wrap">
156 <div class="accor-tab">
157 <span class="accor-arrow">&#9658;</span>
158 <?php esc_html_e( 'Exclusions', 'googleanalytics' ); ?>
159 </div>
160 <div class="accor-content">
161 <div class="well">
162 <?php require plugin_dir_path( __FILE__ ) . 'exclusions.php'; ?>
163 </div>
164 </div>
165 </div>
166 </div>
167 <div class="gdpr-submit-button">
168 <button class="gdpr-submit">Update</button>
169 </div>
170