PluginProbe ʕ •ᴥ•ʔ
Jetpack – WP Security, Backup, Speed, & Growth / 14.9.2
Jetpack – WP Security, Backup, Speed, & Growth v14.9.2
12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 14.4.2 14.5.1 14.6.1 14.7.1 14.8.1 14.9.2 15.0.3 15.1.2 15.2.1 15.3.2 15.4.1 15.5.1 15.6.1 15.7.2 15.8.1 15.9.2 16.0.2 16.1.3 16.2-a.5 16.2-a.3 16.1.2 16.2-a.1 16.1.1 16.1 16.1-beta 16.1-beta.2 16.1-beta.3 16.1-a.5 16.1-a.3 16.0.1 16.1-a.1 16.0 16.0-beta 16.0-a.7 16.0-a.5 15.9.1 16.0-a.3 16.0-a.1 15.9 15.9-beta 15.9-a.7 15.9-a.5 15.9-a.3 15.9-a.1 15.8 15.8-beta 15.8-a.7 15.8-a.5 5.2.5 5.3.4 5.4.4 5.5.5 5.6.5 5.7.5 5.8.4 5.9.4 6.0.4 6.1 6.1.1 6.1.2 6.1.3 6.1.4 6.1.5 6.2 6.2.1 6.2.2 6.2.3 6.2.4 6.2.5 6.3 6.3.1 6.3.2 6.3.3 6.3.4 6.3.5 6.3.6 6.3.7 6.4 6.4.1 6.4.2 6.4.3 6.4.4 6.4.5 6.4.6 6.5 6.5.1 6.5.2 6.5.3 6.5.4 6.6 6.6.1 6.6.2 6.6.3 6.6.4 6.6.5 6.7 6.7.1 6.7.2 6.7.3 6.7.4 6.8 6.8.1 6.8.2 6.8.3 6.8.4 6.8.5 6.9 6.9.1 6.9.2 6.9.3 6.9.4 7.0 7.0.1 7.0.2 7.0.3 7.0.4 7.0.5 7.1 7.1.1 7.1.2 7.1.3 7.1.4 7.1.5 7.2 7.2.1 7.2.1.1 7.2.2 7.2.3 7.2.4 7.2.5 7.3 7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3 4.7.4 4.8.5 4.9.3 5.0.3 5.1.4 trunk 10.0 10.0.1 10.0.2 10.1 10.1.1 10.1.2 10.2 10.2.1 10.2.2 10.2.3 10.3 10.3.1 10.3.2 10.4 10.4.1 10.4.2 10.5 10.5.1 10.5.2 10.5.3 10.6 10.6.1 10.6.2 10.7 10.7.1 10.7.2 10.8 10.8.1 10.8.2 10.9 10.9.1 10.9.2 10.9.3 11.0 11.0.1 11.0.2 11.1 11.1.1 11.1.2 11.1.3 11.1.4 11.2 11.2.1 11.2.2 11.3 11.3.1 11.3.2 11.3.3 11.3.4 11.4 11.4.1 11.4.2 11.5 11.5.1 11.5.2 11.5.3 11.6 11.6.1 11.6.2 11.7 11.7.1 11.7.2 11.7.3 11.8 11.8.3 11.8.4 11.8.5 11.8.6 11.9 11.9.1 11.9.2 11.9.3 12.0 12.0.1 12.0.2 12.1 12.1.1 12.1.2 12.2 12.2.1 12.2.2 12.3 12.3.1 12.4 12.4.1 12.5 12.5.1 12.6 12.6.1 12.6.2 12.6.3 12.7 12.7.1 12.7.2 12.8 12.8.1 12.8.2 12.9 12.9.1 12.9.2 12.9.3 12.9.4 13.0 13.0.1 13.1 13.1.1 13.1.2 13.1.3 13.1.4 13.2 13.2.1 13.2.2 13.2.3 13.3 13.3.1 13.3.2 13.4 13.4.1 13.4.2 13.4.3 13.4.4 13.5 13.5.1 13.6 13.6.1 13.7 13.7.1 13.8 13.8.1 13.8.2 13.9 13.9.1 14.0 14.1 14.2 14.2.1 14.3 14.4 14.4.1 14.5 14.6 14.7 14.8 14.9 14.9.1 15.0 15.0.1 15.0.2 15.1 15.1.1 15.2 15.3 15.3.1 15.4 15.5 15.6 15.7 15.7-a.1 15.7-a.3 15.7-a.5 15.7-a.7 15.7-beta
jetpack / modules / widgets / eu-cookie-law / form.php
jetpack / modules / widgets / eu-cookie-law Last commit date
eu-cookie-law-admin.js 2 years ago eu-cookie-law.js 1 year ago form.php 2 years ago style.css 1 year ago widget-amp.php 2 years ago widget.php 2 years ago
form.php
302 lines
1 <?php
2 /**
3 * EU Cookie Law Widget form.
4 *
5 * @html-template Jetpack_EU_Cookie_Law_Widget::form
6 * @package automattic/jetpack
7 */
8
9 use Automattic\Jetpack\Redirect;
10
11 // phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable -- HTML template, let Phan handle it.
12
13 ?>
14 <p>
15 <strong>
16 <?php esc_html_e( 'Banner text', 'jetpack' ); ?>
17 </strong>
18 <ul>
19 <li>
20 <label>
21 <input
22 <?php checked( $instance['text'], 'default' ); ?>
23 name="<?php echo esc_attr( $this->get_field_name( 'text' ) ); ?>"
24 type="radio"
25 value="default"
26 />
27 <?php esc_html_e( 'Default', 'jetpack' ); ?>
28 </label>
29 </li>
30 <li>
31 <label>
32 <input
33 <?php checked( $instance['text'], 'custom' ); ?>
34 name="<?php echo esc_attr( $this->get_field_name( 'text' ) ); ?>"
35 type="radio"
36 value="custom"
37 />
38 <?php esc_html_e( 'Custom:', 'jetpack' ); ?>
39 </label>
40 </li>
41 </ul>
42 <textarea
43 class="widefat"
44 name="<?php echo esc_attr( $this->get_field_name( 'customtext' ) ); ?>"
45 placeholder="<?php echo esc_attr( $instance['default-text'] ); ?>"
46 ><?php echo esc_html( $instance['customtext'] ); ?></textarea>
47 </p>
48
49 <hr />
50
51 <p>
52 <strong>
53 <?php esc_html_e( 'Privacy Policy Link', 'jetpack' ); ?>
54 </strong>
55 <ul class="eu-cookie-law-widget-policy-url">
56 <li>
57 <label>
58 <input
59 <?php checked( $instance['policy-url'], 'default' ); ?>
60 name="<?php echo esc_attr( $this->get_field_name( 'policy-url' ) ); ?>"
61 type="radio"
62 value="default"
63 />
64 <?php esc_html_e( 'Default', 'jetpack' ); ?>
65 </label>
66 </li>
67 <li>
68 <label>
69 <input
70 <?php checked( $instance['policy-url'], 'custom' ); ?>
71 name="<?php echo esc_attr( $this->get_field_name( 'policy-url' ) ); ?>"
72 type="radio"
73 value="custom"
74 />
75 <?php esc_html_e( 'Custom URL:', 'jetpack' ); ?>
76 </label>
77 <input
78 class="widefat"
79 name="<?php echo esc_attr( $this->get_field_name( 'custom-policy-url' ) ); ?>"
80 placeholder="<?php echo esc_url( $instance['default-policy-url'] ); ?>"
81 style="margin-top: .5em;"
82 type="text"
83 value="<?php echo esc_url( $instance['custom-policy-url'] ); ?>"
84 />
85 <span class="notice notice-warning default-policy" style="display: none;">
86 <span style="display: block; margin: .5em 0;">
87 <strong><?php esc_html_e( 'Caution:', 'jetpack' ); ?></strong>
88 <?php esc_html_e( 'The default policy URL only covers cookies set by Jetpack. If you’re running other plugins, custom cookies, or third-party tracking technologies, you should create and link to your own cookie statement.', 'jetpack' ); ?>
89 </span>
90 </span>
91 <?php if ( Jetpack::is_module_active( 'wordads' ) ) : ?>
92 <span class="notice notice-warning custom-policy" style="display: none;">
93 <span style="display: block; margin: .5em 0;">
94 <strong><?php esc_html_e( 'Caution:', 'jetpack' ); ?></strong>
95 <?php
96 printf(
97 wp_kses(
98 /* Translators: %s is the URL to a Jetpack support article. */
99 __( 'For GDPR compliance, please make sure your policy contains <a href="%s" target="_blank">privacy information relating to WordAds</a>.', 'jetpack' ),
100 array(
101 'a' => array(
102 'href' => array(),
103 'target' => array(),
104 ),
105 )
106 ),
107 esc_url( Redirect::get_url( 'jetpack-support-ads', array( 'anchor' => 'privacy' ) ) )
108 );
109 ?>
110 </span>
111 </span>
112 <?php endif; ?>
113 </li>
114 </ul>
115 </p>
116
117 <p>
118 <strong>
119 <?php esc_html_e( 'Link text', 'jetpack' ); ?>
120 </strong>
121 <label>
122 <input
123 class="widefat"
124 name="<?php echo esc_attr( $this->get_field_name( 'policy-link-text' ) ); ?>"
125 type="text"
126 value="<?php echo esc_attr( $instance['policy-link-text'] ); ?>"
127 />
128 </label>
129 </p>
130
131 <hr />
132
133 <p>
134 <strong>
135 <?php esc_html_e( 'Button text', 'jetpack' ); ?>
136 </strong>
137 <label>
138 <input
139 class="widefat"
140 name="<?php echo esc_attr( $this->get_field_name( 'button' ) ); ?>"
141 type="text"
142 value="<?php echo esc_attr( $instance['button'] ); ?>"
143 />
144 </label>
145 </p>
146
147 <hr />
148
149 <p>
150 <strong>
151 <?php esc_html_x( 'Capture consent & hide the banner', 'action', 'jetpack' ); ?>
152 </strong>
153 <ul>
154 <li>
155 <label>
156 <input
157 <?php checked( $instance['hide'], 'button' ); ?>
158 name="<?php echo esc_attr( $this->get_field_name( 'hide' ) ); ?>"
159 type="radio"
160 value="button"
161 <?php echo Jetpack::is_module_active( 'wordads' ) ? 'disabled' : ''; ?>
162 />
163 <?php esc_html_e( 'after the user clicks the dismiss button', 'jetpack' ); ?>
164 </label>
165 </li>
166 <li>
167 <label>
168 <input
169 <?php checked( $instance['hide'], 'scroll' ); ?>
170 name="<?php echo esc_attr( $this->get_field_name( 'hide' ) ); ?>"
171 type="radio"
172 value="scroll"
173 <?php echo Jetpack::is_module_active( 'wordads' ) ? 'disabled' : ''; ?>
174 />
175 <?php esc_html_e( 'after the user scrolls the page', 'jetpack' ); ?>
176 </label>
177 </li>
178 <li>
179 <label>
180 <input
181 <?php checked( $instance['hide'], 'time' ); ?>
182 name="<?php echo esc_attr( $this->get_field_name( 'hide' ) ); ?>"
183 type="radio"
184 value="time"
185 <?php echo Jetpack::is_module_active( 'wordads' ) ? 'disabled' : ''; ?>
186 />
187 <?php esc_html_e( 'after this amount of time', 'jetpack' ); ?>
188 </label>
189 <input
190 max="1000"
191 min="3"
192 name="<?php echo esc_attr( $this->get_field_name( 'hide-timeout' ) ); ?>"
193 style="padding: 3px 5px; width: 3em;"
194 type="number"
195 value="<?php echo esc_attr( $instance['hide-timeout'] ); ?>"
196 />
197 <?php esc_html_e( 'seconds', 'jetpack' ); ?>
198 </li>
199 </ul>
200 <?php if ( Jetpack::is_module_active( 'wordads' ) ) : ?>
201 <span class="notice notice-warning" style="display: block;">
202 <span style="display: block; margin: .5em 0;">
203 <?php esc_html_e( 'Visitors must provide consent by clicking the dismiss button when WordAds is turned on.', 'jetpack' ); ?>
204 </span>
205 </span>
206 <?php endif; ?>
207 </p>
208
209 <hr />
210
211 <p>
212 <strong>
213 <?php esc_html_x( 'Consent expires after', 'action', 'jetpack' ); ?>
214 </strong>
215 <ul>
216 <li>
217 <input
218 max="365"
219 min="1"
220 name="<?php echo esc_attr( $this->get_field_name( 'consent-expiration' ) ); ?>"
221 style="padding: 3px 5px; width: 3.75em;"
222 type="number"
223 value="<?php echo esc_attr( $instance['consent-expiration'] ); ?>"
224 />
225 <?php esc_html_e( 'days', 'jetpack' ); ?>
226 </li>
227 </ul>
228 </p>
229
230 <hr />
231
232 <p>
233 <strong>
234 <?php esc_html_e( 'Color scheme', 'jetpack' ); ?>
235 </strong>
236 <ul>
237 <li>
238 <label>
239 <input
240 <?php checked( $instance['color-scheme'], 'default' ); ?>
241 name="<?php echo esc_attr( $this->get_field_name( 'color-scheme' ) ); ?>"
242 type="radio"
243 value="default"
244 />
245 <?php esc_html_e( 'Light', 'jetpack' ); ?>
246 </label>
247 </li>
248 <li>
249 <label>
250 <input
251 <?php checked( $instance['color-scheme'], 'negative' ); ?>
252 name="<?php echo esc_attr( $this->get_field_name( 'color-scheme' ) ); ?>"
253 type="radio"
254 value="negative"
255 />
256 <?php esc_html_e( 'Dark', 'jetpack' ); ?>
257 </label>
258 </li>
259 </ul>
260 </p>
261
262 <hr />
263
264 <p>
265 <strong>
266 <?php esc_html_e( 'Position', 'jetpack' ); ?>
267 </strong>
268 <ul>
269 <li>
270 <label>
271 <input
272 <?php checked( $instance['position'], 'bottom' ); ?>
273 name="<?php echo esc_attr( $this->get_field_name( 'position' ) ); ?>"
274 type="radio"
275 value="bottom"
276 />
277 <?php esc_html_e( 'Bottom', 'jetpack' ); ?>
278 </label>
279 </li>
280 <li>
281 <label>
282 <input
283 <?php checked( $instance['position'], 'top' ); ?>
284 name="<?php echo esc_attr( $this->get_field_name( 'position' ) ); ?>"
285 type="radio"
286 value="top"
287 />
288 <?php esc_html_e( 'Top', 'jetpack' ); ?>
289 </label>
290 </li>
291 </ul>
292 </p>
293
294 <hr />
295
296 <p class="small">
297 <?php esc_html_e( 'It is your own responsibility to ensure that your site complies with the relevant laws.', 'jetpack' ); ?>
298 <a href="<?php echo esc_url( Redirect::get_url( 'jetpack-support-extra-sidebar-widgets-eu-cookie-law-widget' ) ); ?>">
299 <?php esc_html_e( 'Click here for more information', 'jetpack' ); ?>
300 </a>
301 </p>
302