PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.3.5
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.3.5
4.7.2 4.7.1 trunk 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 3.0.0 3.0.1 3.1.0 3.10.0 3.10.1 3.11.1 3.11.2 3.11.3 3.2.0 3.3.0 3.3.1 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.6.1 3.6.2 3.6.5 3.6.6 3.7.0 3.7.1 3.8.0 3.9.0 4.0.0 4.0.1 4.0.2 4.0.3 4.1.0 4.1.1 4.2.0 4.2.1 4.2.10 4.2.11 4.2.12 4.2.13 4.2.14 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 4.3.1 4.3.10 4.3.11 4.3.12 4.3.2 4.3.3 4.3.4 4.3.5 4.3.6 4.3.7 4.3.7.1 4.3.8 4.3.9 4.3.9.1 4.4.0 4.4.1 4.4.2 4.5.0 4.5.1 4.5.10 4.5.11 4.5.2 4.5.3 4.5.4 4.5.5 4.5.6 4.5.7 4.5.8 4.5.9 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.7.0
cookiebot / src / view / admin / settings / iab-page.php
cookiebot / src / view / admin / settings Last commit date
multiple-configuration 3 years ago prior-consent 2 years ago dashboard-page.php 2 years ago debug-page.php 3 years ago gcm-page.php 3 years ago gtm-page.php 3 years ago iab-page.php 2 years ago legislations-page.php 3 years ago network-settings-page.php 2 years ago settings-page.php 2 years ago support-page.php 2 years ago
iab-page.php
243 lines
1 <?php
2 /**
3 * @var bool $cookiebot_iab
4 * @var string $cookiebot_tcf_version
5 * @var object $purposes
6 * @var object $special_purposes
7 * @var object $features
8 * @var object $special_features
9 * @var object $vendors
10 * @var array $vendor_data
11 * @var array $custom_tcf_purposes
12 * @var array $custom_tcf_special_purposes
13 * @var array $custom_tcf_features
14 * @var array $custom_tcf_special_features
15 * @var array $custom_tcf_vendors
16 * @var array $custom_tcf_restrictions
17 * @var array $custom_tcf_ac_vendors
18 * @var array $extra_providers
19 */
20
21 use cybot\cookiebot\settings\pages\Iab_Page;
22 $iab_page = new Iab_Page();
23 ?>
24 <div class="cb-settings__config__item">
25 <div class="cb-settings__config__content">
26 <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'IAB Integration:', 'cookiebot' ); ?></h3>
27 <p class="cb-general__info__text">
28 <?php esc_html_e( 'If you want to use the IAB Framework TCF within your Consent Management Platform (CMP) you can enable it on the right. Be aware that activating this could override some of the configurations you made with the default setup defined by the IAB.', 'cookiebot' ); ?>
29 </p>
30 <a href="https://support.cookiebot.com/hc/en-us/articles/360007652694-Cookiebot-and-the-IAB-Consent-Framework"
31 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
32 <?php esc_html_e( 'Read more on IAB with Cookiebot CMP here', 'cookiebot' ); ?>
33 </a>
34 </div>
35 <div class="cb-settings__config__data">
36 <div class="cb-settings__config__data__inner">
37 <label class="switch-checkbox" for="cookiebot-iab">
38 <input type="checkbox" name="cookiebot-iab" id="cookiebot-iab" value="1"
39 <?php checked( 1, $cookiebot_iab ); ?>>
40 <div class="switcher"></div>
41 <?php esc_html_e( 'IAB TCF V2.2 integration', 'cookiebot' ); ?>
42 </label>
43 </div>
44 </div>
45 </div>
46
47 <?php if ( $vendor_data ) : ?>
48 <?php foreach ( $vendor_data as $name => $data ) : ?>
49 <?php if ( $name !== 'vendors' ) : ?>
50 <?php $item_attribute = Iab_Page::get_option_attribute_name( $name ); ?>
51 <div class="cb-settings__vendor__config__item">
52 <div class="cb-settings__config__content">
53 <h3 class="cb-settings__config__subtitle">
54 <?php echo esc_html( $data['title'] ); ?>
55 </h3>
56 <p class="cb-general__info__text"><?php echo esc_html( $data['description'] ); ?></p>
57 </div>
58 <div class="cb-settings__config__data">
59 <div class="cb-settings__config__data__inner">
60 <div class="vendor-selected-items search-list">
61 <?php foreach ( $data['items'] as $item ) : ?>
62 <label class="switch-checkbox" for="cookiebot-<?php echo esc_attr( $item_attribute ); ?>-<?php echo esc_attr( $item['id'] ); ?>">
63 <input
64 type="checkbox"
65 name="cookiebot-tcf-<?php echo esc_attr( $item_attribute ); ?>[]"
66 id="cookiebot-<?php echo esc_attr( $item_attribute ); ?>-<?php echo esc_attr( $item['id'] ); ?>"
67 value="<?php echo esc_attr( $item['id'] ); ?>"
68 <?php echo $iab_page->vendor_checked( $item['id'], $data['selected'] ) ? 'checked' : ''; ?>>
69 <div class="switcher"></div>
70 <?php echo esc_html( $iab_page->return_translation_value( $name, $item ) ); ?>
71 </label>
72 <?php endforeach; ?>
73 </div>
74 </div>
75 </div>
76 </div>
77 <?php endif; ?>
78 <?php endforeach ?>
79 <?php endif; ?>
80
81 <?php if ( $vendor_data['vendors'] || $extra_providers ) : ?>
82 <div class="cb-settings__vendor__config__item">
83 <div class="cb-settings__config__content">
84 <h3 class="cb-settings__config__subtitle">
85 <?php esc_html_e( 'Sharing data with third-party vendors', 'cookiebot' ); ?>
86 </h3>
87 <p class="cb-general__info__text">
88 <?php
89 esc_html_e( 'Select vendors with whom you’ll share users’ data. We’ll include this information on the second layer of your consent banner, where users interested in more granular detail about who will access their data can view it.', 'cookiebot' );
90 ?>
91 </p>
92 </div>
93 </div>
94 <?php endif; ?>
95
96
97 <?php if ( $vendor_data['vendors'] ) : ?>
98 <?php $item_attribute = Iab_Page::get_option_attribute_name( 'vendors' ); ?>
99 <div class="cb-settings__vendor__config__item">
100 <div class="cb-settings__config__content">
101 <h3 class="cb-settings__config__subtitle only-title">
102 <?php echo esc_html( $vendor_data['vendors']['title'] ); ?>
103 </h3>
104 </div>
105 <div class="cb-settings__config__data">
106 <div class="cb-settings__config__data__inner">
107 <input type="text" class="cb-settings__selector-search checkbox-vendor-search" placeholder="<?php esc_html_e( 'Search', 'cookiebot' ); ?>...">
108
109 <div class="vendor-selected-items search-list">
110 <?php foreach ( $vendor_data['vendors']['items'] as $item ) : ?>
111 <label class="switch-checkbox" for="cookiebot-<?php echo esc_attr( $item_attribute ); ?>-<?php echo esc_attr( $item['id'] ); ?>">
112 <input
113 type="checkbox"
114 name="cookiebot-tcf-<?php echo esc_attr( $item_attribute ); ?>[]"
115 id="cookiebot-<?php echo esc_attr( $item_attribute ); ?>-<?php echo esc_attr( $item['id'] ); ?>"
116 value="<?php echo esc_attr( $item['id'] ); ?>"
117 <?php echo $iab_page->vendor_checked( $item['id'], $vendor_data['vendors']['selected'] ) ? 'checked' : ''; ?>>
118 <div class="switcher"></div>
119 <?php echo esc_html( $iab_page->return_translation_value( 'vendors', $item ) ); ?>
120 </label>
121 <?php endforeach; ?>
122 </div>
123 </div>
124 </div>
125 </div>
126 <?php endif; ?>
127
128 <?php if ( $extra_providers ) : ?>
129 <div class="cb-settings__vendor__config__item">
130 <div class="cb-settings__config__content">
131 <h3 class="cb-settings__config__subtitle only-title">
132 <?php esc_html_e( 'Google Ads certified external vendors', 'cookiebot' ); ?>
133 </h3>
134 </div>
135 <div class="cb-settings__config__data">
136 <div class="cb-settings__config__data__inner">
137 <input type="text" class="cb-settings__selector-search checkbox-vendor-search" placeholder="<?php esc_html_e( 'Search', 'cookiebot' ); ?>...">
138 <div class="vendor-selected-items search-list">
139 <?php foreach ( $extra_providers as $item ) : ?>
140 <label class="switch-checkbox" for="cookiebot-ac-vendor<?php echo esc_attr( $item['id'] ); ?>">
141 <input
142 type="checkbox"
143 name="cookiebot-tcf-ac-vendors[]"
144 id="cookiebot-ac-vendor<?php echo esc_attr( $item['id'] ); ?>"
145 value="<?php echo esc_attr( $item['id'] ); ?>"
146 <?php echo $iab_page->vendor_checked( $item['id'], $custom_tcf_ac_vendors ) ? 'checked' : ''; ?>>
147 <div class="switcher"></div>
148 <?php echo esc_html( $item['name'] ); ?>
149 </label>
150 <?php endforeach; ?>
151 </div>
152 </div>
153 </div>
154 </div>
155 <?php endif; ?>
156 <?php if ( $vendor_data ) : ?>
157
158 <div class="cb-settings__vendor__config__item">
159 <div class="cb-settings__config__content">
160 <h3 class="cb-settings__config__subtitle">
161 <?php esc_html_e( 'Restrictions of data use purposes for vendors', 'cookiebot' ); ?>
162 </h3>
163 <p class="cb-general__info__text">
164 <?php
165 esc_html_e(
166 'Set restrictions on data use purposes for specific vendors. Add vendors and the data use purposes that each vendor is allowed. We’ll share this information with users within your consent banner.',
167 'cookiebot'
168 );
169 ?>
170 </p>
171 <div class="cb-btn cb-main-btn restriction-vendor-add"><?php esc_html_e( 'Add Vendor', 'cookiebot' ); ?></div>
172 </div>
173 <?php
174 foreach ( $custom_tcf_restrictions as $vendor => $settings ) :
175 $select_name_attr = $vendor !== 0 ? 'cookiebot-tcf-disallowed[' . $vendor . ']' : '';
176 $vendors_list = $vendor_data['vendors'];
177 $selector_placeholder = __( 'Select Vendor', 'cookiebot' );
178 foreach ( $vendors_list['items'] as $item ) {
179 if ( $item['id'] === $vendor ) {
180 $selector_placeholder = $item['name'];
181 }
182 }
183 ?>
184 <div class="cb-settings__config__data cb-settings__vendor__restrictions">
185 <div class="cb-settings__config__data__inner">
186 <div class="cb-settings__selector__container">
187 <input type="hidden" name="<?php echo esc_html( $select_name_attr ); ?>" class="cb-settings__selector__container-input">
188 <div class="cb-settings__selector-selector" data-placeholder="<?php esc_attr_e( 'Select Vendor', 'cookiebot' ); ?>"><?php echo esc_html( $selector_placeholder ); ?></div>
189 <div class="cb-settings__selector-list-container hidden">
190 <div class="cb-settings__selector-veil"></div>
191 <input type="text" class="cb-settings__selector-search" placeholder="<?php esc_html_e( 'Search', 'cookiebot' ); ?>...">
192 <div class="cb-settings__selector-list search-list">
193 <?php foreach ( $vendors_list['items'] as $item ) : ?>
194 <div
195 data-value="<?php echo esc_attr( $item['id'] ); ?>"
196 class="cb-settings__selector-list-item <?php echo $item['id'] === $vendor ? 'selected' : ''; ?>"><?php echo esc_html( $item['name'] ); ?></div>
197 <?php endforeach; ?>
198 </div>
199 </div>
200 </div>
201 <div class="cb-btn cb-main-btn vendor-purposes-show"><?php esc_html_e( 'Set Purposes', 'cookiebot' ); ?></div>
202 <div class="remove__restriction dashicons dashicons-dismiss"></div>
203 </div>
204 <div class="vendor-purposes-restrictions hidden">
205 <?php
206 foreach ( $vendor_data as $name => $data ) :
207 if ( $name === 'purposes' ) :
208 ?>
209 <div class="cb-settings__config__data__inner">
210 <div class="vendor-selected-items">
211 <?php foreach ( $data['items'] as $item ) : ?>
212
213 <?php
214 $item_attribute = str_replace( '_', '-', $name );
215 $item_name = $vendor !== 0 ? 'cookiebot-tcf-disallowed[' . $vendor . '][purposes][]' : '';
216 $item_id = 'cookiebot-vendor' . $vendor . '-' . $item_attribute . $item['id'];
217 ?>
218
219 <label class="switch-checkbox" for="<?php echo esc_html( $item_id ); ?>">
220 <input
221 type="checkbox"
222 name="<?php echo esc_attr( $item_name ); ?>"
223 id="<?php echo esc_html( $item_id ); ?>"
224 class="purpose-item"
225 value="<?php echo esc_attr( $item['id'] ); ?>"
226 <?php echo $iab_page->vendor_checked( $item['id'], $settings['purposes'] ) ? 'checked' : ''; ?>>
227
228 <div class="switcher"></div>
229 <?php echo esc_html( $iab_page->return_translation_value( $name, $item ) ); ?>
230 </label>
231 <?php endforeach; ?>
232 </div>
233 </div>
234 <?php
235 endif;
236 endforeach;
237 ?>
238 </div>
239 </div>
240 <?php endforeach; ?>
241 </div>
242 <?php endif; ?>
243