| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
?> |
| 6 |
<p class="frm6 frm_first frm_form_field"> |
| 7 |
<label class="frm_help" title="<?php esc_attr_e( 'This will add !important to many of the lines in the Formidable styling to make sure it will be used.', 'formidable' ); ?>"> |
| 8 |
<input type="checkbox" name="<?php echo esc_attr( $frm_style->get_field_name( 'important_style' ) ); ?>" id="frm_important_style" value="1" <?php checked( $style->post_content['important_style'], 1 ); ?> /> |
| 9 |
<?php esc_html_e( 'Override theme styling', 'formidable' ); ?> |
| 10 |
</label> |
| 11 |
</p> |
| 12 |
|
| 13 |
<p class="frm6 frm_form_field"> |
| 14 |
<label class="frm_help" title="<?php esc_attr_e( 'This will center your form on the page where it is published if the form width is less than the available width on the page.', 'formidable' ); ?>"> |
| 15 |
<input type="checkbox" name="<?php echo esc_attr( $frm_style->get_field_name( 'center_form' ) ); ?>" id="frm_center_form" value="1" <?php checked( $style->post_content['center_form'], 1 ); ?> /> |
| 16 |
<?php esc_html_e( 'Center form on page', 'formidable' ); ?> |
| 17 |
</label> |
| 18 |
</p> |
| 19 |
|
| 20 |
<p class="frm4 frm_first frm_form_field"> |
| 21 |
<label><?php esc_html_e( 'Alignment', 'formidable' ); ?></label> |
| 22 |
<select name="<?php echo esc_attr( $frm_style->get_field_name( 'form_align' ) ); ?>" id="frm_form_align"> |
| 23 |
<option value="left" <?php selected( $style->post_content['form_align'], 'left' ); ?>> |
| 24 |
<?php esc_html_e( 'left', 'formidable' ); ?> |
| 25 |
</option> |
| 26 |
<option value="right" <?php selected( $style->post_content['form_align'], 'right' ); ?>> |
| 27 |
<?php esc_html_e( 'right', 'formidable' ); ?> |
| 28 |
</option> |
| 29 |
<option value="center" <?php selected( $style->post_content['form_align'], 'center' ); ?>> |
| 30 |
<?php esc_html_e( 'center', 'formidable' ); ?> |
| 31 |
</option> |
| 32 |
</select> |
| 33 |
</p> |
| 34 |
|
| 35 |
<p class="frm4 frm_form_field"> |
| 36 |
<label><?php esc_html_e( 'Max Width', 'formidable' ); ?></label> |
| 37 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'form_width' ) ); ?>" value="<?php echo esc_attr( $style->post_content['form_width'] ); ?>"/> |
| 38 |
</p> |
| 39 |
|
| 40 |
<p class="frm4 frm_form_field frm_end"> |
| 41 |
<label><?php esc_html_e( 'Background', 'formidable' ); ?></label> |
| 42 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'fieldset_bg_color' ) ); ?>" id="frm_fieldset_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['fieldset_bg_color'] ); ?>" size="4" <?php do_action( 'frm_style_settings_input_atts', 'fieldset_bg_color' ); ?> /> |
| 43 |
</p> |
| 44 |
|
| 45 |
<?php |
| 46 |
do_action( 'frm_style_settings_general_section_after_background', compact( 'frm_style', 'style' ) ); |
| 47 |
if ( ! FrmAppHelper::pro_is_installed() ) { |
| 48 |
?> |
| 49 |
<div class="frm_image_preview_wrapper" data-upgrade="<?php esc_attr_e( 'Background image styles', 'formidable' ); ?>" data-medium="background-image"> |
| 50 |
<button type="button" class="frm_choose_image_box frm_button frm_no_style_button frm_noallow"> |
| 51 |
<?php FrmAppHelper::icon_by_class( 'frm_icon_font frm_upload_icon' ); ?> |
| 52 |
<?php esc_attr_e( 'Upload background image', 'formidable' ); ?> |
| 53 |
</button> |
| 54 |
</div> |
| 55 |
<?php |
| 56 |
} |
| 57 |
?> |
| 58 |
|
| 59 |
<p class="frm4 frm_first frm_form_field"> |
| 60 |
<label><?php esc_html_e( 'Border', 'formidable' ); ?></label> |
| 61 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'fieldset' ) ); ?>" id="frm_fieldset" value="<?php echo esc_attr( $style->post_content['fieldset'] ); ?>" size="4" /> |
| 62 |
</p> |
| 63 |
|
| 64 |
<p class="frm4 frm_form_field"> |
| 65 |
<label><?php esc_html_e( 'Color', 'formidable' ); ?></label> |
| 66 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'fieldset_color' ) ); ?>" id="frm_fieldset_color" class="hex" value="<?php echo esc_attr( $style->post_content['fieldset_color'] ); ?>" <?php do_action( 'frm_style_settings_input_atts', 'fieldset_color' ); ?> /> |
| 67 |
</p> |
| 68 |
|
| 69 |
<p class="frm4 frm_form_field"> |
| 70 |
<label><?php esc_html_e( 'Padding', 'formidable' ); ?></label> |
| 71 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'fieldset_padding' ) ); ?>" id="frm_fieldset_padding" value="<?php echo esc_attr( $style->post_content['fieldset_padding'] ); ?>" size="4" /> |
| 72 |
</p> |
| 73 |
|
| 74 |
<p> |
| 75 |
<label><?php esc_html_e( 'Font Family', 'formidable' ); ?></label> |
| 76 |
<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( 'Leave blank to inherit from theme', 'formidable' ); ?>" class="frm_full_width" /> |
| 77 |
</p> |
| 78 |
|
| 79 |
<p class="frm6 frm_first frm_form_field"> |
| 80 |
<label><?php esc_html_e( 'Direction', 'formidable' ); ?></label> |
| 81 |
<select name="<?php echo esc_attr( $frm_style->get_field_name( 'direction' ) ); ?>" id="frm_direction"> |
| 82 |
<option value="ltr" <?php selected( $style->post_content['direction'], 'ltr' ); ?>> |
| 83 |
<?php esc_html_e( 'Left to Right', 'formidable' ); ?> |
| 84 |
</option> |
| 85 |
<option value="rtl" <?php selected( $style->post_content['direction'], 'rtl' ); ?>> |
| 86 |
<?php esc_html_e( 'Right to Left', 'formidable' ); ?> |
| 87 |
</option> |
| 88 |
</select> |
| 89 |
</p> |
| 90 |
|