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
formidable / classes / views / styles / _buttons.php

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

334 lines 10.9 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 data-initial-width="123" class="frm-tabs-active-underline frm-first"></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 class="frm-style-item-heading"><?php esc_html_e( 'Font Color', 'formidable' ); ?></label>
38 </div>
39 <div class="frm7 frm_form_field">
40 <?php
41 new FrmColorpickerStyleComponent(
42 $frm_style->get_field_name( 'submit_text_color' ),
43 $style->post_content['submit_text_color'],
44 array(
45 'id' => 'frm_submit_text_color',
46 'action_slug' => 'submit_text_color',
47 )
48 );
49 ?>
50 </div>
51
52 <div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Font Size', 'formidable' ); ?></label></div>
53 <div class="frm7 frm_form_field">
54 <?php
55 new FrmSliderStyleComponent(
56 $frm_style->get_field_name( 'submit_font_size' ),
57 $style->post_content['submit_font_size'],
58 array(
59 'id' => 'frm_submit_font_size',
60 'max_value' => 100,
61 )
62 );
63 ?>
64 </div>
65
66 <div class="frm5 frm_form_field">
67 <label class="frm-style-item-heading"><?php esc_html_e( 'Weight', 'formidable' ); ?></label>
68 </div>
69 <div class="frm7 frm_form_field">
70 <?php
71 new FrmDropdownStyleComponent(
72 $frm_style->get_field_name( 'submit_weight' ),
73 $style->post_content['submit_weight'],
74 array(
75 'id' => 'frm_submit_weight',
76 'options' => FrmStyle::get_bold_options(),
77 )
78 );
79 ?>
80 </div>
81
82 <div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Width', 'formidable' ); ?></label></div>
83 <div class="frm7 frm_form_field">
84 <?php
85 new FrmSliderStyleComponent(
86 $frm_style->get_field_name( 'submit_width' ),
87 $style->post_content['submit_width'],
88 array(
89 'id' => 'frm_submit_width',
90 'max_value' => 300,
91 'units' => array( 'auto', 'px', 'em', '%' ),
92 )
93 );
94 ?>
95 </div>
96
97 <div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Height', 'formidable' ); ?></label></div>
98 <div class="frm7 frm_form_field">
99 <?php
100 new FrmSliderStyleComponent(
101 $frm_style->get_field_name( 'submit_height' ),
102 $style->post_content['submit_height'],
103 array(
104 'id' => 'frm_submit_height',
105 'max_value' => 300,
106 )
107 );
108 ?>
109 </div>
110
111 <div class="frm5 frm_form_field">
112 <label class="frm-style-item-heading"><?php esc_html_e( 'Border Color', 'formidable' ); ?></label>
113 </div>
114 <div class="frm7 frm_form_field">
115 <?php
116 new FrmColorpickerStyleComponent(
117 $frm_style->get_field_name( 'submit_border_color' ),
118 $style->post_content['submit_border_color'],
119 array(
120 'id' => 'frm_submit_border_color',
121 'action_slug' => 'submit_border_color',
122 )
123 );
124 ?>
125 </div>
126
127 <div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Border Width', 'formidable' ); ?></label></div>
128 <div class="frm7 frm_form_field">
129 <?php
130 new FrmSliderStyleComponent(
131 $frm_style->get_field_name( 'submit_border_width' ),
132 $style->post_content['submit_border_width'],
133 array(
134 'id' => 'frm_submit_border_width',
135 'max_value' => 25,
136 )
137 );
138 ?>
139 </div>
140
141 <div class="frm5 frm_form_field">
142 <label class="frm-style-item-heading"><?php esc_html_e( 'Shadow', 'formidable' ); ?></label>
143 </div>
144 <div class="frm7 frm_form_field">
145 <?php
146 new FrmColorpickerStyleComponent(
147 $frm_style->get_field_name( 'submit_shadow_color' ),
148 $style->post_content['submit_shadow_color'],
149 array(
150 'id' => 'frm_submit_shadow_color',
151 'action_slug' => 'submit_shadow_color',
152 )
153 );
154 ?>
155 </div>
156
157 <div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Corner Radius', 'formidable' ); ?></label></div>
158 <div class="frm7 frm_form_field">
159 <?php
160 new FrmSliderStyleComponent(
161 $frm_style->get_field_name( 'submit_border_radius' ),
162 $style->post_content['submit_border_radius'],
163 array(
164 'id' => 'frm_submit_border_radius',
165 'max_value' => 50,
166 )
167 );
168 ?>
169 </div>
170
171 <div class="frm5 frm_form_field">
172 <label class="frm-style-item-heading">
173 <?php esc_html_e( 'Margin', 'formidable' ); ?>
174 <span class="frm_help frm_icon_font frm_tooltip_icon" data-placement="right" data-container="body" data-original-title="<?php esc_attr_e( 'Used for navigation buttons too', 'formidable' ); ?>"></span>
175 </label>
176 </div>
177 <div class="frm7 frm_form_field">
178 <?php
179 new FrmSliderStyleComponent(
180 $frm_style->get_field_name( 'submit_margin' ),
181 $style->post_content['submit_margin'],
182 array(
183 'id' => 'frm_submit_margin',
184 'type' => 'vertical-margin',
185 'max_value' => 100,
186 )
187 );
188 ?>
189 </div>
190
191 <div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Padding', 'formidable' ); ?></label></div>
192 <div class="frm7 frm_form_field">
193 <?php
194 new FrmSliderStyleComponent(
195 $frm_style->get_field_name( 'submit_padding' ),
196 $style->post_content['submit_padding'],
197 array(
198 'id' => 'frm_submit_padding',
199 'type' => 'vertical-margin',
200 'max_value' => 100,
201 )
202 );
203 ?>
204 </div>
205
206 <div class="frm5 frm_form_field">
207 <label class="frm-style-item-heading">
208 <?php esc_html_e( 'Disable submit button styling', 'formidable' ); ?>
209 <?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' ) ); ?>
210 </label>
211 </div>
212 <div class="frm7 frm_form_field frm-style-component">
213 <?php
214 FrmHtmlHelper::toggle(
215 'frm_submit_style',
216 $frm_style->get_field_name( 'submit_style' ),
217 array(
218 'div_class' => 'with_frm_style frm_toggle',
219 'checked' => empty( $frm_style->get_field_name( 'submit_style' ) ),
220 'echo' => true,
221 'aria-label-attr' => __( 'Disable submit button styling', 'formidable' ),
222 )
223 );
224 ?>
225 </div>
226
227 </div>
228 </div>
229 <div class="frm-active">
230 <div class="frm_grid_container">
231 <div class="frm5 frm_form_field">
232 <label class="frm-style-item-heading"><?php esc_html_e( 'BG Color', 'formidable' ); ?></label>
233 </div>
234 <div class="frm7 frm_form_field">
235 <?php
236 new FrmColorpickerStyleComponent(
237 $frm_style->get_field_name( 'submit_hover_bg_color' ),
238 $style->post_content['submit_hover_bg_color'],
239 array(
240 'id' => 'frm_submit_hover_bg_color',
241 'action_slug' => 'submit_hover_bg_color',
242 )
243 );
244 ?>
245 </div>
246
247 <div class="frm5 frm_form_field">
248 <label class="frm-style-item-heading"><?php esc_html_e( 'Font Color', 'formidable' ); ?></label>
249 </div>
250 <div class="frm7 frm_form_field">
251 <?php
252 new FrmColorpickerStyleComponent(
253 $frm_style->get_field_name( 'submit_hover_color' ),
254 $style->post_content['submit_hover_color'],
255 array(
256 'id' => 'frm_submit_hover_color',
257 'action_slug' => 'submit_hover_color',
258 )
259 );
260 ?>
261 </div>
262
263 <div class="frm5 frm_form_field">
264 <label class="frm-style-item-heading"><?php esc_html_e( 'Border Color', 'formidable' ); ?></label>
265 </div>
266 <div class="frm7 frm_form_field">
267 <?php
268 new FrmColorpickerStyleComponent(
269 $frm_style->get_field_name( 'submit_hover_border_color' ),
270 $style->post_content['submit_hover_border_color'],
271 array(
272 'id' => 'frm_submit_hover_border_color',
273 'action_slug' => 'submit_hover_border_color',
274 )
275 );
276 ?>
277 </div>
278
279 </div>
280 </div>
281 <div class="frm-active">
282 <div class="frm_grid_container">
283 <div class="frm5 frm_form_field">
284 <label class="frm-style-item-heading"><?php esc_html_e( 'BG Color', 'formidable' ); ?></label>
285 </div>
286 <div class="frm7 frm_form_field">
287 <?php
288 new FrmColorpickerStyleComponent(
289 $frm_style->get_field_name( 'submit_active_bg_color' ),
290 $style->post_content['submit_active_bg_color'],
291 array(
292 'id' => 'frm_submit_active_bg_color',
293 'action_slug' => 'submit_active_bg_color',
294 )
295 );
296 ?>
297 </div>
298
299 <div class="frm5 frm_form_field">
300 <label class="frm-style-item-heading"><?php esc_html_e( 'Font Color', 'formidable' ); ?></label>
301 </div>
302 <div class="frm7 frm_form_field">
303 <?php
304 new FrmColorpickerStyleComponent(
305 $frm_style->get_field_name( 'submit_active_color' ),
306 $style->post_content['submit_active_color'],
307 array(
308 'id' => 'frm_submit_active_color',
309 'action_slug' => 'submit_active_color',
310 )
311 );
312 ?>
313 </div>
314
315 <div class="frm5 frm_form_field">
316 <label class="frm-style-item-heading"><?php esc_html_e( 'Border Color', 'formidable' ); ?></label>
317 </div>
318 <div class="frm7 frm_form_field">
319 <?php
320 new FrmColorpickerStyleComponent(
321 $frm_style->get_field_name( 'submit_active_border_color' ),
322 $style->post_content['submit_active_border_color'],
323 array(
324 'id' => 'frm_submit_active_border_color',
325 'action_slug' => 'submit_active_border_color',
326 )
327 );
328 ?>
329 </div>
330 </div>
331 </div>
332 </div>
333 </div>
334 </div>