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