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 / _general.php

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

152 lines 4.8 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 <p class="frm5 frm_form_field">
7 <label class="frm-style-item-heading"><?php esc_html_e( 'Font Family', 'formidable' ); ?></label>
8 </p>
9 <p class="frm7 frm_form_field">
10 <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'font' ) ); ?>" id="frm_font" value="<?php echo esc_attr( $style->post_content['font'] ); ?>" placeholder="<?php esc_attr_e( 'Inherit from theme', 'formidable' ); ?>" class="frm_full_width" />
11 </p>
12
13 <?php
14 new FrmBackgroundImageStyleComponent(
15 $frm_style->get_field_name( 'fieldset_bg_color' ),
16 $style->post_content['fieldset_bg_color'],
17 array(
18 'title' => __( 'Background', 'formidable' ),
19 'id' => 'frm_fieldset_bg_color',
20 'frm_style' => $frm_style,
21 'style' => $style,
22 'action_slug' => 'fieldset_bg_color',
23 'image_id_input_name' => 'bg_image_id',
24 'include_additional_settings' => true,
25 )
26 );
27 ?>
28
29 <div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Alignment', 'formidable' ); ?></label></div>
30 <div class="frm7 frm_form_field">
31 <?php
32 new FrmAlignStyleComponent(
33 $frm_style->get_field_name( 'form_align' ),
34 $style->post_content['form_align'],
35 array()
36 );
37 ?>
38 </div>
39
40 <div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Border Color', 'formidable' ); ?></label></div>
41 <div class="frm7 frm_form_field">
42 <?php
43 new FrmColorpickerStyleComponent(
44 $frm_style->get_field_name( 'fieldset_color' ),
45 $style->post_content['fieldset_color'],
46 array(
47 'id' => 'frm_fieldset_color',
48 'action_slug' => 'fieldset_color',
49 )
50 );
51 ?>
52 </div>
53
54 <div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Border Width', 'formidable' ); ?></label></div>
55 <div class="frm7 frm_form_field">
56 <?php
57 new FrmSliderStyleComponent(
58 $frm_style->get_field_name( 'fieldset' ),
59 $style->post_content['fieldset'],
60 array(
61 'id' => 'frm_fieldset',
62 'max_value' => 25,
63 )
64 );
65 ?>
66 </div>
67
68 <div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Padding', 'formidable' ); ?></label></div>
69 <div class="frm7 frm_form_field">
70 <?php
71 new FrmSliderStyleComponent(
72 $frm_style->get_field_name( 'fieldset_padding' ),
73 $style->post_content['fieldset_padding'],
74 array(
75 'id' => 'frm_fieldset_padding',
76 'type' => 'vertical-margin',
77 'max_value' => 100,
78 )
79 );
80 ?>
81 </div>
82
83 <div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Form Width', 'formidable' ); ?></label></div>
84 <div class="frm7 frm_form_field">
85 <?php
86 new FrmSliderStyleComponent(
87 $frm_style->get_field_name( 'form_width' ),
88 $style->post_content['form_width'],
89 array(
90 'id' => 'frm_form_width',
91 'max_value' => 2000,
92 )
93 );
94 ?>
95 </div>
96
97 <div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Direction', 'formidable' ); ?></label></div>
98 <div class="frm7 frm_form_field">
99 <?php
100 new FrmDirectionStyleComponent(
101 $frm_style->get_field_name( 'direction' ),
102 $style->post_content['direction'],
103 array()
104 );
105 ?>
106 </div>
107
108 <div class="frm5 frm_form_field">
109 <label class="frm-style-item-heading">
110 <?php esc_html_e( 'Override Theme', 'formidable' ); ?>
111 <?php FrmAppHelper::tooltip_icon( __( 'This will add !important to many of the lines in the Formidable styling to make sure it will be used', 'formidable' ) ); ?>
112 </label>
113 </div>
114 <div class="frm7 frm_form_field frm-style-component">
115 <?php
116 FrmHtmlHelper::toggle(
117 'frm_important_style',
118 $frm_style->get_field_name( 'important_style' ),
119 array(
120 'div_class' => 'with_frm_style frm_toggle',
121 'checked' => ! empty( $style->post_content['important_style'] ),
122 'echo' => true,
123 'aria-label-attr' => __( 'Override Theme', 'formidable' ),
124 )
125 );
126 ?>
127 </div>
128
129 <div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Center Form', 'formidable' ); ?></label></div>
130 <div class="frm7 frm_form_field frm-style-component">
131 <?php
132 FrmHtmlHelper::toggle(
133 'frm_center_form',
134 $frm_style->get_field_name( 'center_form' ),
135 array(
136 'div_class' => 'with_frm_style frm_toggle',
137 'checked' => ! empty( $style->post_content['important_style'] ),
138 'echo' => true,
139 'aria-label-attr' => __( 'Center Form', 'formidable' ),
140 )
141 );
142 ?>
143 </div>
144 <div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Style Class', 'formidable' ); ?></label></div>
145 <div class="frm7 frm_form_field frm-style-component">
146 <label class="frm-copy-text">.frm_style_<?php
147 echo esc_html( $style->post_name );
148 FrmAppHelper::icon_by_class( 'frm_icon_font frm-copy-icon' );
149 ?>
150 </label>
151 </div>
152