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