PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.32.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.32.1
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
formidable / classes / views / styles / _buttons.php

_buttons.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.32.1, at classes/views/styles/_buttons.php

385 lines 11.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5 ?>
6 <div class="frm-style-tabs-wrapper">
7 <div class="frm-tabs-delimiter">
8 <span class="frm-tabs-active-underline"></span>
9 </div>
10 <div class="frm-tabs-navs">
11 <ul class="frm-flex-box">
12 <li class="frm-active"><?php esc_html_e( 'Default', 'formidable' ); ?></li>
13 <li><?php esc_html_e( 'On Hover', 'formidable' ); ?></li>
14 <li><?php esc_html_e( 'On Click', 'formidable' ); ?></li>
15 </ul>
16 </div>
17 <div class="frm-tabs-container">
18 <div class="frm-tabs-slide-track frm-flex-box">
19 <div class="frm-active">
20 <div class="frm_grid_container">
21 <?php
22 new FrmBackgroundImageStyleComponent(
23 $frm_style->get_field_name( 'submit_bg_color' ),
24 $style->post_content['submit_bg_color'],
25 array(
26 'title' => __( 'Background Image', 'formidable' ),
27 'id' => 'frm_submit_bg_color',
28 'frm_style' => $frm_style,
29 'style' => $style,
30 'action_slug' => 'submit_bg_color',
31 'image_id_input_name' => 'submit_bg_img',
32 'include_additional_settings' => false,
33 )
34 );
35 ?>
36 <div class="frm5 frm_form_field">
37 <label
38 for="frm_submit_text_color"
39 class="frm-style-item-heading"><?php esc_html_e( 'Font Color', 'formidable' ); ?></label>
40 </div>
41 <div class="frm7 frm_form_field">
42 <?php
43 new FrmColorpickerStyleComponent(
44 $frm_style->get_field_name( 'submit_text_color' ),
45 $style->post_content['submit_text_color'],
46 array(
47 'id' => 'frm_submit_text_color',
48 'action_slug' => 'submit_text_color',
49 )
50 );
51 ?>
52 </div>
53
54 <div class="frm5 frm_form_field">
55 <label
56 for="frm_submit_font_size"
57 class="frm-style-item-heading"><?php esc_html_e( 'Font Size', 'formidable' ); ?></label>
58 </div>
59 <div class="frm7 frm_form_field">
60 <?php
61 new FrmSliderStyleComponent(
62 $frm_style->get_field_name( 'submit_font_size' ),
63 $style->post_content['submit_font_size'],
64 array(
65 'id' => 'frm_submit_font_size',
66 'max_value' => 100,
67 )
68 );
69 ?>
70 </div>
71
72 <div class="frm5 frm_form_field">
73 <label
74 for="frm_submit_weight"
75 class="frm-style-item-heading"><?php esc_html_e( 'Weight', 'formidable' ); ?></label>
76 </div>
77 <div class="frm7 frm_form_field">
78 <?php
79 new FrmDropdownStyleComponent(
80 $frm_style->get_field_name( 'submit_weight' ),
81 $style->post_content['submit_weight'],
82 array(
83 'id' => 'frm_submit_weight',
84 'options' => FrmStyle::get_bold_options(),
85 )
86 );
87 ?>
88 </div>
89
90 <div class="frm5 frm_form_field">
91 <label
92 for="frm_submit_width"
93 class="frm-style-item-heading"><?php esc_html_e( 'Width', 'formidable' ); ?></label>
94 </div>
95 <div class="frm7 frm_form_field">
96 <?php
97 new FrmSliderStyleComponent(
98 $frm_style->get_field_name( 'submit_width' ),
99 $style->post_content['submit_width'],
100 array(
101 'id' => 'frm_submit_width',
102 'max_value' => 300,
103 'units' => array( 'auto', 'px', 'em', '%' ),
104 )
105 );
106 ?>
107 </div>
108
109 <div class="frm5 frm_form_field">
110 <label
111 for="frm_submit_height"
112 class="frm-style-item-heading"><?php esc_html_e( 'Height', 'formidable' ); ?></label>
113 </div>
114 <div class="frm7 frm_form_field">
115 <?php
116 new FrmSliderStyleComponent(
117 $frm_style->get_field_name( 'submit_height' ),
118 $style->post_content['submit_height'],
119 array(
120 'id' => 'frm_submit_height',
121 'max_value' => 300,
122 )
123 );
124 ?>
125 </div>
126
127 <div class="frm5 frm_form_field">
128 <label
129 for="frm_submit_border_color"
130 class="frm-style-item-heading"><?php esc_html_e( 'Border Color', 'formidable' ); ?></label>
131 </div>
132 <div class="frm7 frm_form_field">
133 <?php
134 new FrmColorpickerStyleComponent(
135 $frm_style->get_field_name( 'submit_border_color' ),
136 $style->post_content['submit_border_color'],
137 array(
138 'id' => 'frm_submit_border_color',
139 'action_slug' => 'submit_border_color',
140 )
141 );
142 ?>
143 </div>
144
145 <div class="frm5 frm_form_field">
146 <label
147 for="frm_submit_border_width"
148 class="frm-style-item-heading"><?php esc_html_e( 'Border Width', 'formidable' ); ?></label>
149 </div>
150 <div class="frm7 frm_form_field">
151 <?php
152 new FrmSliderStyleComponent(
153 $frm_style->get_field_name( 'submit_border_width' ),
154 $style->post_content['submit_border_width'],
155 array(
156 'id' => 'frm_submit_border_width',
157 'max_value' => 25,
158 )
159 );
160 ?>
161 </div>
162
163 <div class="frm5 frm_form_field">
164 <label
165 for="frm_submit_shadow_color"
166 class="frm-style-item-heading"><?php esc_html_e( 'Shadow', 'formidable' ); ?></label>
167 </div>
168 <div class="frm7 frm_form_field">
169 <?php
170 new FrmColorpickerStyleComponent(
171 $frm_style->get_field_name( 'submit_shadow_color' ),
172 $style->post_content['submit_shadow_color'],
173 array(
174 'id' => 'frm_submit_shadow_color',
175 'action_slug' => 'submit_shadow_color',
176 )
177 );
178 ?>
179 </div>
180
181 <div class="frm5 frm_form_field">
182 <label
183 for="frm_submit_border_radius"
184 class="frm-style-item-heading"><?php esc_html_e( 'Corner Radius', 'formidable' ); ?></label>
185 </div>
186 <div class="frm7 frm_form_field">
187 <?php
188 new FrmSliderStyleComponent(
189 $frm_style->get_field_name( 'submit_border_radius' ),
190 $style->post_content['submit_border_radius'],
191 array(
192 'id' => 'frm_submit_border_radius',
193 'max_value' => 50,
194 )
195 );
196 ?>
197 </div>
198
199 <div class="frm5 frm_form_field">
200 <label
201 for="frm_submit_margin"
202 class="frm-style-item-heading">
203 <?php esc_html_e( 'Margin', 'formidable' ); ?>
204 <span class="frm_help frmfont frm_tooltip_icon" data-placement="right" data-container="body" data-original-title="<?php esc_attr_e( 'Used for navigation buttons too', 'formidable' ); ?>"></span>
205 </label>
206 </div>
207 <div class="frm7 frm_form_field">
208 <?php
209 new FrmSliderStyleComponent(
210 $frm_style->get_field_name( 'submit_margin' ),
211 $style->post_content['submit_margin'],
212 array(
213 'id' => 'frm_submit_margin',
214 'type' => 'vertical-margin',
215 'max_value' => 100,
216 )
217 );
218 ?>
219 </div>
220
221 <div class="frm5 frm_form_field">
222 <label
223 for="frm_submit_padding"
224 class="frm-style-item-heading">
225 <?php esc_html_e( 'Padding', 'formidable' ); ?>
226 </label>
227 </div>
228 <div class="frm7 frm_form_field">
229 <?php
230 new FrmSliderStyleComponent(
231 $frm_style->get_field_name( 'submit_padding' ),
232 $style->post_content['submit_padding'],
233 array(
234 'id' => 'frm_submit_padding',
235 'type' => 'vertical-margin',
236 'max_value' => 100,
237 )
238 );
239 ?>
240 </div>
241
242 <div class="frm5 frm_form_field">
243 <label
244 for="frm_submit_style"
245 class="frm-style-item-heading">
246 <?php esc_html_e( 'Disable submit button styling', 'formidable' ); ?>
247 <?php FrmAppHelper::tooltip_icon( __( 'Note: If disabled, you may not see the change take effect until you make 2 more styling changes or click "Update Options".', 'formidable' ) ); ?>
248 </label>
249 </div>
250 <div class="frm7 frm_form_field frm-style-component">
251 <?php
252 FrmHtmlHelper::toggle(
253 'frm_submit_style',
254 $frm_style->get_field_name( 'submit_style' ),
255 array(
256 'div_class' => 'with_frm_style frm_toggle',
257 'checked' => ! $frm_style->get_field_name( 'submit_style' ),
258 'echo' => true,
259 'aria-label-attr' => __( 'Disable submit button styling', 'formidable' ),
260 )
261 );
262 ?>
263 </div>
264
265 </div>
266 </div>
267 <div class="frm-active">
268 <div class="frm_grid_container">
269 <div class="frm5 frm_form_field">
270 <label
271 for="frm_submit_hover_bg_color"
272 class="frm-style-item-heading"><?php esc_html_e( 'BG Color', 'formidable' ); ?></label>
273 </div>
274 <div class="frm7 frm_form_field">
275 <?php
276 new FrmColorpickerStyleComponent(
277 $frm_style->get_field_name( 'submit_hover_bg_color' ),
278 $style->post_content['submit_hover_bg_color'],
279 array(
280 'id' => 'frm_submit_hover_bg_color',
281 'action_slug' => 'submit_hover_bg_color',
282 )
283 );
284 ?>
285 </div>
286
287 <div class="frm5 frm_form_field">
288 <label
289 for="frm_submit_hover_color"
290 class="frm-style-item-heading"><?php esc_html_e( 'Font Color', 'formidable' ); ?></label>
291 </div>
292 <div class="frm7 frm_form_field">
293 <?php
294 new FrmColorpickerStyleComponent(
295 $frm_style->get_field_name( 'submit_hover_color' ),
296 $style->post_content['submit_hover_color'],
297 array(
298 'id' => 'frm_submit_hover_color',
299 'action_slug' => 'submit_hover_color',
300 )
301 );
302 ?>
303 </div>
304
305 <div class="frm5 frm_form_field">
306 <label
307 for="frm_submit_hover_border_color"
308 class="frm-style-item-heading"><?php esc_html_e( 'Border Color', 'formidable' ); ?></label>
309 </div>
310 <div class="frm7 frm_form_field">
311 <?php
312 new FrmColorpickerStyleComponent(
313 $frm_style->get_field_name( 'submit_hover_border_color' ),
314 $style->post_content['submit_hover_border_color'],
315 array(
316 'id' => 'frm_submit_hover_border_color',
317 'action_slug' => 'submit_hover_border_color',
318 )
319 );
320 ?>
321 </div>
322
323 </div>
324 </div>
325 <div class="frm-active">
326 <div class="frm_grid_container">
327 <div class="frm5 frm_form_field">
328 <label
329 for="frm_submit_active_bg_color"
330 class="frm-style-item-heading"><?php esc_html_e( 'BG Color', 'formidable' ); ?></label>
331 </div>
332 <div class="frm7 frm_form_field">
333 <?php
334 new FrmColorpickerStyleComponent(
335 $frm_style->get_field_name( 'submit_active_bg_color' ),
336 $style->post_content['submit_active_bg_color'],
337 array(
338 'id' => 'frm_submit_active_bg_color',
339 'action_slug' => 'submit_active_bg_color',
340 )
341 );
342 ?>
343 </div>
344
345 <div class="frm5 frm_form_field">
346 <label
347 for="frm_submit_active_color"
348 class="frm-style-item-heading"><?php esc_html_e( 'Font Color', 'formidable' ); ?></label>
349 </div>
350 <div class="frm7 frm_form_field">
351 <?php
352 new FrmColorpickerStyleComponent(
353 $frm_style->get_field_name( 'submit_active_color' ),
354 $style->post_content['submit_active_color'],
355 array(
356 'id' => 'frm_submit_active_color',
357 'action_slug' => 'submit_active_color',
358 )
359 );
360 ?>
361 </div>
362
363 <div class="frm5 frm_form_field">
364 <label
365 for="frm_submit_active_border_color"
366 class="frm-style-item-heading"><?php esc_html_e( 'Border Color', 'formidable' ); ?></label>
367 </div>
368 <div class="frm7 frm_form_field">
369 <?php
370 new FrmColorpickerStyleComponent(
371 $frm_style->get_field_name( 'submit_active_border_color' ),
372 $style->post_content['submit_active_border_color'],
373 array(
374 'id' => 'frm_submit_active_border_color',
375 'action_slug' => 'submit_active_border_color',
376 )
377 );
378 ?>
379 </div>
380 </div>
381 </div>
382 </div>
383 </div>
384 </div>
385