| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
?> |
| 6 |
<hr class="frm12"/> |
| 7 |
<h2 class="frm12 frm-mb-0"><?php esc_html_e( 'Quick Settings', 'formidable' ); ?></h2> |
| 8 |
|
| 9 |
<p class="frm12"><?php esc_html_e( 'Essential presets for a quick start. Explore advanced settings for more options', 'formidable' ); ?>.</p> |
| 10 |
|
| 11 |
<div class="frm5 frm_form_field frm-mt-md"><label class="frm-style-item-heading"><?php esc_html_e( 'Primary', 'formidable' ); ?></label></div> |
| 12 |
<div class="frm7 frm_form_field frm-mt-md"> |
| 13 |
<?php |
| 14 |
new FrmPrimaryColorStyleComponent( |
| 15 |
null, |
| 16 |
$style->post_content['submit_bg_color'], |
| 17 |
array( |
| 18 |
'id' => 'frm_style_qsettings_submit_bg_color', |
| 19 |
'frm_style' => $frm_style, |
| 20 |
'style' => $style, |
| 21 |
'action_slug' => 'submit_bg_color', |
| 22 |
'will_change' => array( |
| 23 |
$frm_style->get_field_name( 'submit_bg_color' ), |
| 24 |
$frm_style->get_field_name( 'slider_bar_color' ), |
| 25 |
$frm_style->get_field_name( 'slider_color' ), |
| 26 |
$frm_style->get_field_name( 'border_color_active' ), |
| 27 |
$frm_style->get_field_name( 'submit_border_color' ), |
| 28 |
$frm_style->get_field_name( 'progress_active_bg_color' ), |
| 29 |
$frm_style->get_field_name( 'date_band_color' ), |
| 30 |
$frm_style->get_field_name( 'date_head_bg_color' ), |
| 31 |
), |
| 32 |
) |
| 33 |
); |
| 34 |
?> |
| 35 |
</div> |
| 36 |
|
| 37 |
<div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Field Text', 'formidable' ); ?></label></div> |
| 38 |
<div class="frm7 frm_form_field"> |
| 39 |
<?php |
| 40 |
new FrmPrimaryColorStyleComponent( |
| 41 |
null, |
| 42 |
$style->post_content['text_color'], |
| 43 |
array( |
| 44 |
'id' => 'frm_style_qsettings_text_color', |
| 45 |
'frm_style' => $frm_style, |
| 46 |
'style' => $style, |
| 47 |
'action_slug' => 'text_color', |
| 48 |
'will_change' => array( |
| 49 |
$frm_style->get_field_name( 'text_color' ), |
| 50 |
$frm_style->get_field_name( 'section_color' ), |
| 51 |
$frm_style->get_field_name( 'check_label_color' ), |
| 52 |
), |
| 53 |
) |
| 54 |
); |
| 55 |
?> |
| 56 |
</div> |
| 57 |
|
| 58 |
<div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Field Border', 'formidable' ); ?></label></div> |
| 59 |
<div class="frm7 frm_form_field"> |
| 60 |
<?php |
| 61 |
new FrmPrimaryColorStyleComponent( |
| 62 |
null, |
| 63 |
$style->post_content['border_color'], |
| 64 |
array( |
| 65 |
'id' => 'frm_style_qsettings_border_color', |
| 66 |
'frm_style' => $frm_style, |
| 67 |
'style' => $style, |
| 68 |
'action_slug' => 'border_color', |
| 69 |
'will_change' => array( |
| 70 |
$frm_style->get_field_name( 'border_color' ), |
| 71 |
), |
| 72 |
) |
| 73 |
); |
| 74 |
?> |
| 75 |
</div> |
| 76 |
|
| 77 |
<div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Button Text', 'formidable' ); ?></label></div> |
| 78 |
<div class="frm7 frm_form_field"> |
| 79 |
<?php |
| 80 |
new FrmPrimaryColorStyleComponent( |
| 81 |
null, |
| 82 |
$style->post_content['submit_text_color'], |
| 83 |
array( |
| 84 |
'id' => 'frm_style_qsettings_submit_text_color', |
| 85 |
'frm_style' => $frm_style, |
| 86 |
'style' => $style, |
| 87 |
'action_slug' => 'submit_text_color', |
| 88 |
'will_change' => array( |
| 89 |
$frm_style->get_field_name( 'submit_text_color' ), |
| 90 |
), |
| 91 |
) |
| 92 |
); |
| 93 |
?> |
| 94 |
</div> |
| 95 |
|
| 96 |
<hr class="frm12"/> |
| 97 |
|
| 98 |
<div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Vertical Spacing', 'formidable' ); ?></label></div> |
| 99 |
<div class="frm7 frm_form_field"> |
| 100 |
<?php |
| 101 |
new FrmSliderStyleComponent( |
| 102 |
null, |
| 103 |
$style->post_content['field_margin'], |
| 104 |
array( |
| 105 |
'id' => 'field_margin', |
| 106 |
'max_value' => 100, |
| 107 |
'will_change' => array( |
| 108 |
$frm_style->get_field_name( 'field_margin' ), |
| 109 |
), |
| 110 |
) |
| 111 |
); |
| 112 |
?> |
| 113 |
</div> |
| 114 |
|
| 115 |
<div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Input Field Padding', 'formidable' ); ?></label></div> |
| 116 |
<div class="frm7 frm_form_field"> |
| 117 |
<?php |
| 118 |
new FrmSliderStyleComponent( |
| 119 |
null, |
| 120 |
$style->post_content['field_pad'], |
| 121 |
array( |
| 122 |
'id' => 'field_pad', |
| 123 |
'max_value' => 100, |
| 124 |
'will_change' => array( |
| 125 |
$frm_style->get_field_name( 'field_pad' ), |
| 126 |
), |
| 127 |
) |
| 128 |
); |
| 129 |
?> |
| 130 |
</div> |
| 131 |
<hr class="frm12"/> |
| 132 |
<div class="frm5 frm_form_field"><label class="frm-style-item-heading"><?php esc_html_e( 'Base Font Size', 'formidable' ); ?></label></div> |
| 133 |
<div class="frm7 frm_form_field"> |
| 134 |
<?php |
| 135 |
if ( ! FrmStylesHelper::is_advanced_settings() ) { |
| 136 |
// This is displayed only in "Quick Settings" and has a default value of "false." It is updated via JavaScript when the Base Font Size slider is adjusted. |
| 137 |
// When set to false, the sizes in "Advanced Settings" will not be modified. |
| 138 |
?> |
| 139 |
<input type="hidden" name="<?php echo esc_attr( $frm_style->get_field_name( 'use_base_font_size' ) ); ?>" value="false" /> |
| 140 |
<?php } ?> |
| 141 |
<?php |
| 142 |
new FrmSliderStyleComponent( |
| 143 |
$frm_style->get_field_name( 'base_font_size' ), |
| 144 |
$style->post_content['base_font_size'], |
| 145 |
array( |
| 146 |
'id' => 'base_font_size', |
| 147 |
'max_value' => 100, |
| 148 |
'not_show_in' => 'advanced-settings', |
| 149 |
'classname' => 'frm-base-font-size', |
| 150 |
) |
| 151 |
); |
| 152 |
?> |
| 153 |
</div> |
| 154 |
|
| 155 |
<hr class="frm12"/> |
| 156 |
|
| 157 |
<div class="frm5 frm_form_field"> |
| 158 |
<label class="frm-style-item-heading"><?php esc_html_e( 'Field Shape', 'formidable' ); ?></label> |
| 159 |
</div> |
| 160 |
<div class="frm7 frm_form_field frm-sm-z-index"> |
| 161 |
<?php |
| 162 |
new FrmFieldShapeStyleComponent( |
| 163 |
$frm_style->get_field_name( 'field_shape_type' ), |
| 164 |
$style->post_content['field_shape_type'], |
| 165 |
array( |
| 166 |
'id' => 'frm_field_shape', |
| 167 |
) |
| 168 |
); |
| 169 |
?> |
| 170 |
</div> |
| 171 |
|
| 172 |
<div class="frm5 frm_form_field frm_hidden" data-frm-element="field-shape-corner-radius"> |
| 173 |
<label class="frm-style-item-heading"><?php esc_html_e( 'Corner Radius', 'formidable' ); ?></label> |
| 174 |
</div> |
| 175 |
<div class="frm7 frm_form_field frm_hidden frm-md-z-index" data-frm-element="field-shape-corner-radius"> |
| 176 |
<?php |
| 177 |
new FrmSliderStyleComponent( |
| 178 |
null, |
| 179 |
$style->post_content['border_radius'], |
| 180 |
array( |
| 181 |
'id' => 'frm_border_radius', |
| 182 |
'max_value' => 50, |
| 183 |
'will_change' => array( |
| 184 |
$frm_style->get_field_name( 'border_radius' ), |
| 185 |
), |
| 186 |
) |
| 187 |
); |
| 188 |
?> |
| 189 |
</div> |
| 190 |
|
| 191 |
<hr class="frm12"/> |
| 192 |
|
| 193 |
<a id="frm-style-advanced-settings-button" class="frm-button-secondary frm-mt-md frmcenter" href="#"><?php esc_html_e( 'Show advanced settings', 'formidable' ); ?></a> |