PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.23
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.23
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 | classes/views/styles/components/templates/slider.php +27 -28 6.286.23 View file →
@@ -1,14 +1,13 @@
1 1 <?php if ( ! defined( 'ABSPATH' ) ) {
2 2 die( 'You are not allowed to call this page directly.' );
3 3 }
4 -
5 4 if ( $component['has-multiple-values'] ) : ?>
6 5 <div class="<?php echo esc_attr( $component_class ); ?>" <?php echo esc_attr( $component_attr ); ?> >
7 6 <div class="frm-slider-component frm-has-multiple-values frm-group-sliders" data-display-sliders="top,bottom" data-type="vertical" data-max-value="<?php echo (int) $component['max_value']; ?>">
8 7 <div class="frm-flex-justify">
9 8 <div class="frm-slider-container">
10 - <?php FrmAppHelper::icon_by_class( 'frmfont frm-margin-top-bottom' ); ?>
9 + <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm-margin-top-bottom' ); ?>
11 10 <span class="frm-slider" tabindex="0">
12 11 <span class="frm-slider-active-track">
13 12 <span class="frm-slider-bullet">
14 13 <span class="frm-slider-value-label"><?php echo (int) $component['vertical']['value']; ?></span>
@@ -16,10 +15,10 @@
16 15 </span>
17 16 </span>
18 17 </div>
19 18 <div class="frm-slider-value">
20 - <input aria-label="<?php esc_attr_e( 'Vertical value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['vertical']['value'] ); ?>" />
21 - <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>">
19 + <input aria-label="<?php echo esc_attr__( 'Vertical value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['vertical']['value'] ); ?>" />
20 + <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>">
22 21 <?php foreach ( $component['units'] as $unit ) : ?>
23 22 <option <?php selected( $component['vertical']['unit'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option>
24 23 <?php endforeach; ?>
25 24 </select>
@@ -28,9 +27,9 @@
28 27 </div>
29 28 <div class="frm-slider-component frm-has-multiple-values frm_hidden" data-type="top" data-max-value="<?php echo (int) $component['max_value']; ?>">
30 29 <div class="frm-flex-justify">
31 30 <div class="frm-slider-container">
32 - <?php FrmAppHelper::icon_by_class( 'frmfont frm-margin-top' ); ?>
31 + <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm-margin-top' ); ?>
33 32 <span class="frm-slider" tabindex="0">
34 33 <span class="frm-slider-active-track">
35 34 <span class="frm-slider-bullet">
36 35 <span class="frm-slider-value-label"><?php echo (int) $component['top']['value']; ?></span>
@@ -38,10 +37,10 @@
38 37 </span>
39 38 </span>
40 39 </div>
41 40 <div class="frm-slider-value">
42 - <input aria-label="<?php esc_attr_e( 'Top value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['top']['value'] ); ?>" />
43 - <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>">
41 + <input aria-label="<?php echo esc_attr__( 'Top value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['top']['value'] ); ?>" />
42 + <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>">
44 43 <?php foreach ( $component['units'] as $unit ) : ?>
45 44 <option <?php selected( $component['top']['unit'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option>
46 45 <?php endforeach; ?>
47 46 </select>
@@ -50,9 +49,9 @@
50 49 </div>
51 50 <div class="frm-slider-component frm-has-multiple-values frm_hidden" data-type="bottom" data-max-value="<?php echo (int) $component['max_value']; ?>">
52 51 <div class="frm-flex-justify">
53 52 <div class="frm-slider-container">
54 - <?php FrmAppHelper::icon_by_class( 'frmfont frm-margin-bottom' ); ?>
53 + <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm-margin-bottom' ); ?>
55 54 <span class="frm-slider" tabindex="0">
56 55 <span class="frm-slider-active-track">
57 56 <span class="frm-slider-bullet">
58 57 <span class="frm-slider-value-label"><?php echo (int) $component['bottom']['value']; ?></span>
@@ -60,10 +59,10 @@
60 59 </span>
61 60 </span>
62 61 </div>
63 62 <div class="frm-slider-value">
64 - <input aria-label="<?php esc_attr_e( 'Bottom value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['bottom']['value'] ); ?>" />
65 - <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>">
63 + <input aria-label="<?php echo esc_attr__( 'Bottom value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['bottom']['value'] ); ?>" />
64 + <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>">
66 65 <?php foreach ( $component['units'] as $unit ) : ?>
67 66 <option <?php selected( $component['bottom']['unit'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option>
68 67 <?php endforeach; ?>
69 68 </select>
@@ -72,9 +71,9 @@
72 71 </div>
73 72 <div class="frm-slider-component frm-has-multiple-values frm-group-sliders" data-display-sliders="left,right" data-type="horizontal" data-max-value="<?php echo (int) $component['max_value']; ?>">
74 73 <div class="frm-flex-justify">
75 74 <div class="frm-slider-container">
76 - <?php FrmAppHelper::icon_by_class( 'frmfont frm-margin-left-right' ); ?>
75 + <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm-margin-left-right' ); ?>
77 76 <span class="frm-slider" tabindex="0">
78 77 <span class="frm-slider-active-track">
79 78 <span class="frm-slider-bullet">
80 79 <span class="frm-slider-value-label"><?php echo (int) $component['horizontal']['value']; ?></span>
@@ -82,10 +81,10 @@
82 81 </span>
83 82 </span>
84 83 </div>
85 84 <div class="frm-slider-value">
86 - <input aria-label="<?php esc_attr_e( 'Horizontal value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['horizontal']['value'] ); ?>" />
87 - <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>">
85 + <input aria-label="<?php echo esc_attr__( 'Horizontal value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['horizontal']['value'] ); ?>" />
86 + <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>">
88 87 <?php foreach ( $component['units'] as $unit ) : ?>
89 88 <option <?php selected( $component['horizontal']['unit'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option>
90 89 <?php endforeach; ?>
91 90 </select>
@@ -94,9 +93,9 @@
94 93 </div>
95 94 <div class="frm-slider-component frm-has-multiple-values frm_hidden" data-type="left" data-max-value="<?php echo (int) $component['max_value']; ?>">
96 95 <div class="frm-flex-justify">
97 96 <div class="frm-slider-container">
98 - <?php FrmAppHelper::icon_by_class( 'frmfont frm-margin-left' ); ?>
97 + <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm-margin-left' ); ?>
99 98 <span class="frm-slider" tabindex="0">
100 99 <span class="frm-slider-active-track">
101 100 <span class="frm-slider-bullet">
102 101 <span class="frm-slider-value-label"><?php echo (int) $component['left']['value']; ?></span>
@@ -104,10 +103,10 @@
104 103 </span>
105 104 </span>
106 105 </div>
107 106 <div class="frm-slider-value">
108 - <input aria-label="<?php esc_attr_e( 'Left value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['left']['value'] ); ?>" />
109 - <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>">
107 + <input aria-label="<?php echo esc_attr__( 'Left value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['left']['value'] ); ?>" />
108 + <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>">
110 109 <?php foreach ( $component['units'] as $unit ) : ?>
111 110 <option <?php selected( $component['left']['unit'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option>
112 111 <?php endforeach; ?>
113 112 </select>
@@ -116,9 +115,9 @@
116 115 </div>
117 116 <div class="frm-slider-component frm-has-multiple-values frm_hidden" data-type="right" data-max-value="<?php echo (int) $component['max_value']; ?>">
118 117 <div class="frm-flex-justify">
119 118 <div class="frm-slider-container">
120 - <?php FrmAppHelper::icon_by_class( 'frmfont frm-margin-right' ); ?>
119 + <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm-margin-right' ); ?>
121 120 <span class="frm-slider" tabindex="0">
122 121 <span class="frm-slider-active-track">
123 122 <span class="frm-slider-bullet">
124 123 <span class="frm-slider-value-label"><?php echo (int) $component['right']['value']; ?></span>
@@ -126,10 +125,10 @@
126 125 </span>
127 126 </span>
128 127 </div>
129 128 <div class="frm-slider-value">
130 - <input aria-label="<?php esc_attr_e( 'Right value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['right']['value'] ); ?>" />
131 - <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>">
129 + <input aria-label="<?php echo esc_attr__( 'Right value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['right']['value'] ); ?>" />
130 + <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>">
132 131 <?php foreach ( $component['units'] as $unit ) : ?>
133 132 <option <?php selected( $component['right']['unit'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option>
134 133 <?php endforeach; ?>
135 134 </select>
@@ -155,11 +154,11 @@
155 154 </span>
156 155 </span>
157 156 </div>
158 157 <div class="frm-slider-value">
159 - <input aria-label="<?php esc_attr_e( 'Field value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['value_label'] ); ?>" />
158 + <input aria-label="<?php echo esc_attr__( 'Field value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['value_label'] ); ?>" />
160 159 <input type="hidden" <?php echo esc_attr( $field_name ); ?> value="<?php echo esc_attr( $field_value ); ?>" id="<?php echo esc_attr( $component['id'] ); ?>" />
161 - <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>">
160 + <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>">
162 161 <?php foreach ( $component['units'] as $unit ) : ?>
163 162 <option <?php selected( $component['unit_measurement'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option>
164 163 <?php endforeach; ?>
165 164 </select>
@@ -170,9 +169,9 @@
170 169 <div class="<?php echo esc_attr( $component_class ); ?>" <?php echo esc_attr( $component_attr ); ?> >
171 170 <div class="frm-slider-component frm-group-sliders frm-has-independent-fields" data-display-sliders="top,bottom" data-max-value="<?php echo (int) $component['max_value']; ?>">
172 171 <div class="frm-flex-justify">
173 172 <div class="frm-slider-container">
174 - <?php FrmAppHelper::icon_by_class( 'frmfont frm-margin-top-bottom' ); ?>
173 + <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm-margin-top-bottom' ); ?>
175 174 <span class="frm-slider" tabindex="0">
176 175 <span class="frm-slider-active-track">
177 176 <span class="frm-slider-bullet">
178 177 <span class="frm-slider-value-label"><?php echo (int) $field_value; ?></span>
@@ -180,10 +179,10 @@
180 179 </span>
181 180 </span>
182 181 </div>
183 182 <div class="frm-slider-value">
184 - <input aria-label="<?php esc_attr_e( 'Field value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['value_label'] ); ?>" />
185 - <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>">
183 + <input aria-label="<?php echo esc_attr__( 'Field value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['value_label'] ); ?>" />
184 + <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>">
186 185 <?php foreach ( $component['units'] as $unit ) : ?>
187 186 <option <?php selected( $component['unit_measurement'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option>
188 187 <?php endforeach; ?>
189 188 </select>
@@ -189,9 +188,9 @@
189 188 </select>
190 189 </div>
191 190 </div>
192 191
193 - <?php
192 + <?php
194 193 foreach ( $component['independent_fields'] as $field ) :
195 194 ?>
196 195 <div class="frm-slider-component frm-independent-slider-field frm_hidden" data-type="<?php echo esc_attr( $field['type'] ); ?>" data-max-value="<?php echo (int) $component['max_value']; ?>">
197 196 <div class="frm-flex-justify">
@@ -196,9 +195,9 @@
196 195 <div class="frm-slider-component frm-independent-slider-field frm_hidden" data-type="<?php echo esc_attr( $field['type'] ); ?>" data-max-value="<?php echo (int) $component['max_value']; ?>">
197 196 <div class="frm-flex-justify">
198 197 <div class="frm-slider-container">
199 198 <?php if ( ! empty( $component['icon'] ) ) : ?>
200 - <?php FrmAppHelper::icon_by_class( 'frmfont frm-margin-' . $field['type'] ); ?>
199 + <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm-margin-' . $field['type'] ); ?>
201 200 <?php endif; ?>
202 201 <span class="frm-slider" tabindex="0">
203 202 <span class="frm-slider-active-track">
204 203 <span class="frm-slider-bullet">
@@ -207,11 +206,11 @@
207 206 </span>
208 207 </span>
209 208 </div>
210 209 <div class="frm-slider-value">
211 - <input aria-label="<?php esc_attr_e( 'Field value', 'formidable' ); ?>" type="text" value="<?php echo empty( $component['unit_measurement'] ) ? esc_attr( $field['value'] ) : (int) $field['value']; ?>" />
210 + <input aria-label="<?php echo esc_attr__( 'Field value', 'formidable' ); ?>" type="text" value="<?php echo empty( $component['unit_measurement'] ) ? esc_attr( $field['value'] ) : (int) $field['value']; ?>" />
212 211 <input type="hidden" name="<?php echo esc_attr( $field['name'] ); ?>" value="<?php echo esc_attr( $field['value'] ); ?>" id="<?php echo esc_attr( $field['id'] ); ?>" />
213 - <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>">
212 + <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>">
214 213 <?php foreach ( $component['units'] as $unit ) : ?>
215 214 <option <?php selected( $component['unit_measurement'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option>
216 215 <?php endforeach; ?>
217 216 </select>