| @@ -1,26 +1,13 @@ | ||
| 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' ); ?> | |
| 1 | +<p> | |
| 2 | + <label><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 ); ?> /> | |
| 3 | + <?php esc_html_e( 'Center form on page', 'formidable' ) ?> <span class="frm_help frm_icon_font frm_tooltip_icon" 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' ) ?>" ></span> | |
| 10 | 4 | </label> |
| 11 | 5 | </p> |
| 12 | 6 | |
| 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 for="frm_form_align"><?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"> | |
| 7 | +<div class="field-group clearfix frm-first-row"> | |
| 8 | + <label><?php esc_html_e( 'Alignment', 'formidable' ) ?></label> | |
| 9 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'form_align' ) ) ?>" id="frm_form_align"> | |
| 23 | 10 | <option value="left" <?php selected( $style->post_content['form_align'], 'left' ); ?>> |
| 24 | 11 | <?php esc_html_e( 'left', 'formidable' ); ?> |
| 25 | 12 | </option> |
| 26 | 13 | <option value="right" <?php selected( $style->post_content['form_align'], 'right' ); ?>> |
| @@ -29,66 +16,55 @@ | ||
| 29 | 16 | <option value="center" <?php selected( $style->post_content['form_align'], 'center' ); ?>> |
| 30 | 17 | <?php esc_html_e( 'center', 'formidable' ); ?> |
| 31 | 18 | </option> |
| 32 | 19 | </select> |
| 33 | -</p> | |
| 20 | +</div> | |
| 34 | 21 | |
| 35 | -<p class="frm4 frm_form_field"> | |
| 36 | - <label for="frm_form_width"><?php esc_html_e( 'Max Width', 'formidable' ); ?></label> | |
| 37 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'form_width' ) ); ?>" id="frm_form_width" value="<?php echo esc_attr( $style->post_content['form_width'] ); ?>" /> | |
| 38 | -</p> | |
| 22 | +<div class="field-group clearfix frm-first-row"> | |
| 23 | + <label><?php esc_html_e( 'Max Width', 'formidable' ) ?></label> | |
| 24 | + <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'] ); ?>"/> | |
| 25 | +</div> | |
| 39 | 26 | |
| 40 | -<p class="frm4 frm_form_field frm_end"> | |
| 41 | - <label for="frm_fieldset_bg_color"><?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> | |
| 27 | +<div class="field-group clearfix frm-first-row"> | |
| 28 | + <label><?php esc_html_e( 'Background', 'formidable' ) ?></label> | |
| 29 | + <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" /> | |
| 30 | +</div> | |
| 44 | 31 | |
| 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 for="frm_fieldset"><?php esc_html_e( 'Border', 'formidable' ); ?></label> | |
| 32 | +<div class="field-group field-group-border clearfix"> | |
| 33 | + <label><?php esc_html_e( 'Border', 'formidable' ) ?></label> | |
| 61 | 34 | <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> | |
| 35 | +</div> | |
| 63 | 36 | |
| 64 | -<p class="frm4 frm_form_field"> | |
| 65 | - <label for="frm_fieldset_color"><?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> | |
| 37 | +<div class="field-group clearfix"> | |
| 38 | + <label><?php esc_html_e( 'Color', 'formidable' ) ?></label> | |
| 39 | + <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'] ); ?>" /> | |
| 40 | +</div> | |
| 68 | 41 | |
| 69 | -<p class="frm4 frm_form_field"> | |
| 70 | - <label for="frm_fieldset_padding"><?php esc_html_e( 'Padding', 'formidable' ); ?></label> | |
| 42 | +<div class="field-group clearfix"> | |
| 43 | + <label><?php esc_html_e( 'Padding', 'formidable' ) ?></label> | |
| 71 | 44 | <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> | |
| 45 | +</div> | |
| 73 | 46 | |
| 74 | -<p> | |
| 75 | - <label for="frm_font"><?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> | |
| 47 | +<div id="frm_gen_font_box" class="field-group clearfix"> | |
| 48 | + <label><?php esc_html_e( 'Font Family', 'formidable' ) ?></label> | |
| 49 | + <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'] ); ?>" class="frm_full_width" /> | |
| 50 | +</div> | |
| 78 | 51 | |
| 79 | -<p class="frm6 frm_first frm_form_field"> | |
| 80 | - <label for="frm_direction"><?php esc_html_e( 'Direction', 'formidable' ); ?></label> | |
| 52 | +<div class="field-group clearfix frm-half"> | |
| 53 | + <label><?php esc_html_e( 'Direction', 'formidable' ) ?></label> | |
| 81 | 54 | <select name="<?php echo esc_attr( $frm_style->get_field_name( 'direction' ) ); ?>" id="frm_direction"> |
| 82 | 55 | <option value="ltr" <?php selected( $style->post_content['direction'], 'ltr' ); ?>> |
| 83 | - <?php esc_html_e( 'Left to Right', 'formidable' ); ?> | |
| 56 | + <?php esc_html_e( 'Left to Right', 'formidable' ) ?> | |
| 84 | 57 | </option> |
| 85 | 58 | <option value="rtl" <?php selected( $style->post_content['direction'], 'rtl' ); ?>> |
| 86 | - <?php esc_html_e( 'Right to Left', 'formidable' ); ?> | |
| 59 | + <?php esc_html_e( 'Right to Left', 'formidable' ) ?> | |
| 87 | 60 | </option> |
| 88 | 61 | </select> |
| 89 | -</p> | |
| 62 | +</div> | |
| 90 | 63 | |
| 91 | -<p> | |
| 92 | - <label><?php esc_html_e( 'Style Class', 'formidable' ); ?></label> | |
| 93 | - <span>.frm_style_<?php echo esc_html( $style->post_name ); ?></span> | |
| 64 | +<div class="clear"></div> | |
| 65 | +<p class="frm_no_bottom_margin"> | |
| 66 | + <label> | |
| 67 | + <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 ); ?> /> | |
| 68 | + <?php esc_html_e( 'Override theme styling', 'formidable' ) ?> <span class="frm_help frm_icon_font frm_tooltip_icon" 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' ) ?>" ></span> | |
| 69 | + </label> | |
| 94 | 70 | </p> |