PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.12
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.12
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | css/_single_theme.css.php +72 -74 6.26.16.12 View file →
@@ -5,15 +5,12 @@
5 5
6 6 $settings = FrmStylesHelper::get_settings_for_output( $style );
7 7 extract( $settings ); // phpcs:ignore WordPress.PHP.DontExtract
8 8
9 -$is_loaded_via_ajax = $is_loaded_via_ajax ?? false;
10 -FrmStylesPreviewHelper::get_additional_preview_style( $settings, $is_loaded_via_ajax );
11 -
12 9 $important = empty( $important_style ) ? '' : ' !important';
13 10
14 -$submit_bg_img = FrmStylesHelper::get_submit_image_bg_url( $settings );
15 -$use_chosen_js = FrmStylesHelper::use_chosen_js();
11 +$minus_icons = FrmStylesHelper::minus_icons();
12 +$arrow_icons = FrmStylesHelper::arrow_icons();
16 13
17 14 ?>
18 15 .<?php echo esc_html( $style_class ); ?>{
19 16 <?php FrmStylesHelper::output_vars( $settings, $defaults ); ?>
@@ -19,10 +16,10 @@
19 16 <?php FrmStylesHelper::output_vars( $settings, $defaults ); ?>
20 17 }
21 18
22 19 .frm_forms.<?php echo esc_html( $style_class ); ?>{
23 - max-width:var(--form-width)<?php echo esc_html( $important ); ?>;
24 - direction:var(--direction)<?php echo esc_html( $important ); ?>;
20 + max-width:<?php echo esc_html( $form_width . $important ); ?>;
21 + direction:<?php echo esc_html( $direction . $important ); ?>;
25 22 <?php if ( 'rtl' === $direction ) { ?>
26 23 unicode-bidi:embed;
27 24 <?php } ?>
28 25 <?php if ( $center_form ) { ?>
@@ -37,9 +34,9 @@
37 34 <?php } ?>
38 35
39 36 <?php if ( ! empty( $field_margin ) ) { ?>
40 37 .<?php echo esc_html( $style_class ); ?> .form-field{
41 - margin-bottom:var(--field-margin)<?php echo esc_html( $important ); ?>;
38 + margin-bottom:<?php echo esc_html( $field_margin . $important ); ?>;
42 39 }
43 40 <?php } ?>
44 41
45 42 .<?php echo esc_html( $style_class ); ?> .form-field.frm_section_heading{
@@ -58,9 +55,9 @@
58 55 margin-top: 6px;
59 56 <?php } ?>
60 57 padding:0;
61 58 <?php if ( ! empty( $font ) ) { ?>
62 - font-family:<?php FrmAppHelper::kses_echo( $font . $important ); ?>;
59 + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
63 60 <?php } ?>
64 61 <?php if ( ! empty( $description_font_size ) ) { ?>
65 62 font-size:<?php echo esc_html( $description_font_size . $important ); ?>;
66 63 <?php } ?>
@@ -81,8 +78,10 @@
81 78
82 79 /* Left and right labels */
83 80 <?php
84 81
82 +$frm_settings = FrmAppHelper::get_settings();
83 +
85 84 if ( '' === $field_height || 'auto' === $field_height ) {
86 85 foreach ( array( 'left', 'right', 'inline' ) as $alignit ) {
87 86 ?>
88 87 .<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=text],
@@ -118,9 +117,9 @@
118 117 }
119 118
120 119 .<?php echo esc_html( $style_class ); ?> .frm_pos_right{
121 120 display:inline<?php echo esc_html( $important ); ?>;
122 - width:var(--width)<?php echo esc_html( $important ); ?>;
121 + width:<?php echo esc_html( $width . $important ); ?>;
123 122 }
124 123
125 124 .<?php echo esc_html( $style_class ); ?> .frm_none_container .frm_primary_label,
126 125 .<?php echo esc_html( $style_class ); ?> .frm_pos_none{
@@ -132,9 +131,9 @@
132 131 <?php if ( ! empty( $check_weight ) ) { ?>
133 132 font-weight:<?php echo esc_html( $check_weight . $important ); ?>;
134 133 <?php } ?>
135 134 <?php if ( ! empty( $font ) ) { ?>
136 - font-family:<?php FrmAppHelper::kses_echo( $font . $important ); ?>;
135 + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
137 136 <?php } ?>
138 137 <?php if ( ! empty( $check_font_size ) ) { ?>
139 138 font-size:<?php echo esc_html( $check_font_size . $important ); ?>;
140 139 <?php } ?>
@@ -143,12 +142,25 @@
143 142 <?php } ?>
144 143 }
145 144 <?php endif; ?>
146 145
146 +/* These do not work if they are combined */
147 147 .<?php echo esc_html( $style_class ); ?> input::placeholder,
148 148 .<?php echo esc_html( $style_class ); ?> textarea::placeholder{
149 - color:var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
149 + color: <?php echo esc_html( $text_color_disabled . $important ); ?>;
150 150 }
151 +.<?php echo esc_html( $style_class ); ?> input::-webkit-input-placeholder,
152 +.<?php echo esc_html( $style_class ); ?> textarea::-webkit-input-placeholder{
153 + color: <?php echo esc_html( $text_color_disabled . $important ); ?>;
154 +}
155 +.<?php echo esc_html( $style_class ); ?> input::-moz-placeholder,
156 +.<?php echo esc_html( $style_class ); ?> textarea::-moz-placeholder{
157 + opacity: 1;
158 +}
159 +.<?php echo esc_html( $style_class ); ?> input:-ms-input-placeholder,
160 +<?php echo esc_html( $style_class ); ?> textarea:-ms-input-placeholder{
161 + color: <?php echo esc_html( $text_color_disabled . $important ); ?>;
162 +}
151 163
152 164 .<?php echo esc_html( $style_class ); ?> .frm_default,
153 165 .<?php echo esc_html( $style_class ); ?> input.frm_default,
154 166 .<?php echo esc_html( $style_class ); ?> textarea.frm_default,
@@ -157,14 +169,14 @@
157 169 .<?php echo esc_html( $style_class ); ?> .chosen-container-multi .chosen-choices li.search-field .default,
158 170 .<?php echo esc_html( $style_class ); ?> .chosen-container-single .chosen-default,
159 171 <?php } ?>
160 172 .<?php echo esc_html( $style_class ); ?> .placeholder {
161 - color:var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
173 + color: <?php echo esc_html( $text_color_disabled . $important ); ?>;
162 174 }
163 175
164 176 .<?php echo esc_html( $style_class ); ?> .form-field input:not([type=file]):not([type=range]):not([readonly]):focus,
165 177 .<?php echo esc_html( $style_class ); ?> select:focus,
166 -.<?php echo esc_html( $style_class ); ?> .form-field textarea:focus,
178 +.<?php echo esc_html( $style_class ); ?> textarea:focus,
167 179 .<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=text],
168 180 .<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=password],
169 181 .<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=email],
170 182 .<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=number],
@@ -176,11 +188,11 @@
176 188 .<?php echo esc_html( $style_class ); ?> .chosen-container-single.chosen-container-active .chosen-single,
177 189 .<?php echo esc_html( $style_class ); ?> .chosen-container-active .chosen-choices,
178 190 <?php } ?>
179 191 .<?php echo esc_html( $style_class ); ?> .frm_focus_field .frm-card-element.StripeElement {
180 - background-color:var(--bg-color-active)<?php echo esc_html( $important ); ?>;
181 - border-color:var(--border-color-active)<?php echo esc_html( $important ); ?>;
182 - color:var(--text-color);
192 + background-color:<?php echo esc_html( $bg_color_active . $important ); ?>;
193 + border-color:<?php echo esc_html( $border_color_active . $important ); ?>;
194 + color: var(--text-color);
183 195 <?php if ( isset( $remove_box_shadow_active ) && $remove_box_shadow_active ) { ?>
184 196 box-shadow:none;
185 197 outline: none;
186 198 <?php } else { ?>
@@ -196,9 +208,9 @@
196 208 .frm_form_submit_style,
197 209 .<?php echo esc_html( $style_class ); ?> .frm-edit-page-btn {
198 210 width:<?php echo esc_html( ( $submit_width == '' ? 'auto' : $submit_width ) . $important ); ?>;
199 211 <?php if ( ! empty( $font ) ) { ?>
200 - font-family:<?php FrmAppHelper::kses_echo( $font ); ?>;
212 + font-family:<?php echo FrmAppHelper::kses( $font ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
201 213 <?php } ?>
202 214 font-size:<?php echo esc_html( $submit_font_size . $important ); ?>;
203 215 height:<?php echo esc_html( $submit_height . $important ); ?>;
204 216 line-height:normal<?php echo esc_html( $important ); ?>;
@@ -205,9 +217,8 @@
205 217 text-align:center;
206 218 background:
207 219 <?php
208 220 echo esc_html( $submit_bg_color );
209 -
210 221 if ( ! empty( $submit_bg_img ) ) {
211 222 echo esc_html( ' url(' . $submit_bg_img . ')' );
212 223 }
213 224 echo esc_html( $important );
@@ -247,15 +258,15 @@
247 258 .<?php echo esc_html( $style_class ); ?> .frm-edit-page-btn:hover,
248 259 .<?php echo esc_html( $style_class ); ?> input[type=submit]:hover,
249 260 .<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button]:hover,
250 261 .<?php echo esc_html( $style_class ); ?> .frm_submit button:hover{
251 - background:var(--submit-hover-bg-color)<?php echo esc_html( $important ); ?>;
252 - border-color:var(--submit-hover-border-color)<?php echo esc_html( $important ); ?>;
253 - color:var(--submit-hover-color)<?php echo esc_html( $important ); ?>;
262 + background: <?php echo esc_html( $submit_hover_bg_color . $important ); ?>;
263 + border-color: <?php echo esc_html( $submit_hover_border_color . $important ); ?>;
264 + color: <?php echo esc_html( $submit_hover_color . $important ); ?>;
254 265 }
255 266
256 267 .<?php echo esc_html( $style_class ); ?>.frm_center_submit .frm_submit .frm_ajax_loading{
257 - margin-bottom:<?php echo esc_html( FrmStylesHelper::get_bottom_value( $submit_margin ) ); ?>;
268 + margin-bottom:<?php echo esc_html( $submit_margin ); ?>;
258 269 }
259 270
260 271 .<?php echo esc_html( $style_class ); ?> .frm-edit-page-btn:focus,
261 272 .<?php echo esc_html( $style_class ); ?> input[type=submit]:focus,
@@ -263,11 +274,11 @@
263 274 .<?php echo esc_html( $style_class ); ?> .frm_submit button:focus,
264 275 .<?php echo esc_html( $style_class ); ?> input[type=submit]:active,
265 276 .<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button]:active,
266 277 .<?php echo esc_html( $style_class ); ?> .frm_submit button:active{
267 - background:var(--submit-active-bg-color)<?php echo esc_html( $important ); ?>;
268 - border-color:var(--submit-active-border-color)<?php echo esc_html( $important ); ?>;
269 - color:var(--submit-active-color)<?php echo esc_html( $important ); ?>;
278 + background: <?php echo esc_html( $submit_active_bg_color . $important ); ?>;
279 + border-color: <?php echo esc_html( $submit_active_border_color . $important ); ?>;
280 + color: <?php echo esc_html( $submit_active_color . $important ); ?>;
270 281 outline: none;
271 282 }
272 283
273 284 .<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page,
@@ -277,22 +288,22 @@
277 288 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit,
278 289 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:hover,
279 290 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:active,
280 291 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:focus{
281 - color: transparent<?php echo esc_html( $important ); ?>;
282 - background:var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
283 - border-color:var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
292 + color: transparent <?php echo esc_html( $important ); ?>;
293 + background: <?php echo esc_html( $submit_bg_color . $important ); ?>;
294 + border-color: <?php echo esc_html( $submit_bg_color . $important ); ?>;
284 295 }
285 296
286 297 .<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:before,
287 298 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:before {
288 - border-bottom-color:var(--submit-text-color)<?php echo esc_html( $important ); ?>;
289 - border-right-color:var(--submit-text-color)<?php echo esc_html( $important ); ?>;
299 + border-bottom-color: <?php echo esc_html( $submit_text_color . $important ); ?>;
300 + border-right-color: <?php echo esc_html( $submit_text_color . $important ); ?>;
290 301 <?php if ( $submit_height !== 'auto' ) { ?>
291 - max-height:var(--submit-height)<?php echo esc_html( $important ); ?>;
302 + max-height:<?php echo esc_html( $submit_height ); ?>;
292 303 <?php } ?>
293 304 <?php if ( $submit_width !== 'auto' ) { ?>
294 - max-width:var(--submit-width)<?php echo esc_html( $important ); ?>;
305 + max-width:<?php echo esc_html( $submit_width ); ?>;
295 306 <?php } ?>
296 307 }
297 308 <?php
298 309 }//end if
@@ -302,15 +313,15 @@
302 313 .<?php echo esc_html( $style_class ); ?>.frm_inline_top .frm_submit::before,
303 314 .<?php echo esc_html( $style_class ); ?> .frm_submit.frm_inline_submit::before {
304 315 content:"before";
305 316 <?php if ( ! empty( $font ) ) { ?>
306 - font-family:<?php FrmAppHelper::kses_echo( $font ); ?>;
317 + font-family:<?php echo FrmAppHelper::kses( $font ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
307 318 <?php } ?>
308 - font-size:var(--font-size)<?php echo esc_html( $important ); ?>;
309 - color:var(--label-color)<?php echo esc_html( $important ); ?>;
310 - font-weight:var(--weight)<?php echo esc_html( $important ); ?>;
319 + font-size:<?php echo esc_html( $font_size . $important ); ?>;
320 + color:<?php echo esc_html( $label_color . $important ); ?>;
321 + font-weight:<?php echo esc_html( $weight . $important ); ?>;
311 322 margin:0;
312 - padding:var(--label-padding)<?php echo esc_html( $important ); ?>;
323 + padding:<?php echo esc_html( $label_padding . $important ); ?>;
313 324 width:auto;
314 325 display:block;
315 326 visibility:hidden;
316 327 }
@@ -321,24 +332,17 @@
321 332 .<?php echo esc_html( $style_class ); ?> .frm_submit.frm_inline_submit button {
322 333 margin: 0 !important;
323 334 }
324 335
325 -<?php
326 -// Only include this CSS when the math captcha plugin is active.
327 -if ( class_exists( 'FrmCptController' ) ) :
328 - ?>
329 336 .<?php echo esc_html( $style_class ); ?> #frm_field_cptch_number_container{
330 337 <?php if ( ! empty( $font ) ) { ?>
331 - font-family:<?php FrmAppHelper::kses_echo( $font ); ?>;
338 + font-family:<?php echo FrmAppHelper::kses( $font ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
332 339 <?php } ?>
333 - font-size:var(--font-size)<?php echo esc_html( $important ); ?>;
334 - color:var(--label-color)<?php echo esc_html( $important ); ?>;
335 - font-weight:var(--weight)<?php echo esc_html( $important ); ?>;
340 + font-size:<?php echo esc_html( $font_size . $important ); ?>;
341 + color:<?php echo esc_html( $label_color . $important ); ?>;
342 + font-weight:<?php echo esc_html( $weight . $important ); ?>;
336 343 clear:both;
337 344 }
338 - <?php
339 -endif;
340 -?>
341 345
342 346 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=text],
343 347 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=password],
344 348 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=url],
@@ -344,10 +348,8 @@
344 348 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=url],
345 349 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=tel],
346 350 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=number],
347 351 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=email],
348 -.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=checkbox],
349 -.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=radio],
350 352 .<?php echo esc_html( $style_class ); ?> .frm_blank_field textarea,
351 353 .<?php echo esc_html( $style_class ); ?> .frm_blank_field .mce-edit-area iframe,
352 354 .<?php echo esc_html( $style_class ); ?> .frm_blank_field select:not(.ui-datepicker-month):not(.ui-datepicker-year),
353 355 .frm_form_fields_error_style,
@@ -358,40 +360,37 @@
358 360 .<?php echo esc_html( $style_class ); ?> .frm_blank_field .chosen-container-multi .chosen-choices,
359 361 .<?php echo esc_html( $style_class ); ?> .frm_blank_field .chosen-container-single .chosen-single,
360 362 <?php } ?>
361 363 .<?php echo esc_html( $style_class ); ?> .frm_form_field :invalid {
362 - color:var(--text-color-error)<?php echo esc_html( $important ); ?>;
363 - background-color:var(--bg-color-error)<?php echo esc_html( $important ); ?>;
364 - border-color:var(--border-color-error)<?php echo esc_html( $important ); ?>;
365 - border-width:var(--border-width-error)<?php echo esc_html( $important ); ?>;
366 - border-style:var(--border-style-error)<?php echo esc_html( $important ); ?>;
364 + color:<?php echo esc_html( $text_color_error . $important ); ?>;
365 + background-color:<?php echo esc_html( $bg_color_error . $important ); ?>;
366 + border-color:<?php echo esc_html( $border_color_error . $important ); ?>;
367 + border-width:<?php echo esc_html( $border_width_error . $important ); ?>;
368 + border-style:<?php echo esc_html( $border_style_error . $important ); ?>;
367 369 }
368 370
369 -<?php
370 -// Only include this style when the signatures add-on is active
371 -if ( class_exists( 'FrmSigField' ) ) :
372 - ?>
373 371 .<?php echo esc_html( $style_class ); ?> .frm_blank_field .sigWrapper{
374 - border-color:var(--border-color-error) !important;
372 + border-color:<?php echo esc_html( $border_color_error ); ?> !important;
375 373 }
376 - <?php
377 -endif;
378 -?>
379 374
380 375 .<?php echo esc_html( $style_class ); ?> .frm_error,
381 376 .<?php echo esc_html( $style_class ); ?> .frm_limit_error{
382 - font-weight:var(--weight)<?php echo esc_html( $important ); ?>;
383 - color:var(--border-color-error)<?php echo esc_html( $important ); ?>;
377 + font-weight:<?php echo esc_html( $weight . $important ); ?>;
384 378 }
385 379
380 +.<?php echo esc_html( $style_class ); ?> .frm_error,
381 +.<?php echo esc_html( $style_class ); ?> .frm_limit_error{
382 + color:<?php echo esc_html( $border_color_error . $important ); ?>;
383 +}
384 +
386 385 .<?php echo esc_html( $style_class ); ?> .frm_error_style{
387 - background-color:var(--error-bg)<?php echo esc_html( $important ); ?>;
388 - border:1px solid var(--error-border)<?php echo esc_html( $important ); ?>;
389 - border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>;
390 - color:var(--error-text)<?php echo esc_html( $important ); ?>;
391 - font-size:var(--error-font-size)<?php echo esc_html( $important ); ?>;
386 + background-color:<?php echo esc_html( $error_bg . $important ); ?>;
387 + border:1px solid <?php echo esc_html( $error_border . $important ); ?>;
388 + border-radius:<?php echo esc_html( $border_radius . $important ); ?>;
389 + color: <?php echo esc_html( $error_text . $important ); ?>;
390 + font-size:<?php echo esc_html( $error_font_size . $important ); ?>;
392 391 margin:0;
393 - margin-bottom:var(--field-margin);
392 + margin-bottom:<?php echo esc_html( $field_margin ); ?>;
394 393 }
395 394
396 395 .<?php echo esc_html( $style_class ); ?> #frm_loading .progress-striped .progress-bar{
397 396 background-image:linear-gradient(45deg, <?php echo esc_html( $border_color ); ?> 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, <?php echo esc_html( $border_color ); ?> 50%, <?php echo esc_html( $border_color ); ?> 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0));
@@ -397,9 +396,9 @@
397 396 background-image:linear-gradient(45deg, <?php echo esc_html( $border_color ); ?> 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, <?php echo esc_html( $border_color ); ?> 50%, <?php echo esc_html( $border_color ); ?> 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0));
398 397 }
399 398
400 399 .<?php echo esc_html( $style_class ); ?> #frm_loading .progress-bar{
401 - background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
400 + background-color:<?php echo esc_html( $bg_color . $important ); ?>;
402 401 }
403 402
404 403 .<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total_big input,
405 404 .<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total_big textarea,
@@ -412,6 +411,5 @@
412 411 width:auto<?php echo esc_html( $important ); ?>;
413 412 padding:0<?php echo esc_html( $important ); ?>;
414 413 }
415 414
416 -<?php echo strip_tags( FrmStylesController::get_custom_css( $settings ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
417 415 <?php do_action( 'frm_output_single_style', $settings ); ?>