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