| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
?> |
| 6 |
<p class="frm_no_top_margin"> |
| 7 |
<label for="frm_submit_style"> |
| 8 |
<input type="checkbox" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_style' ) ); ?>" id="frm_submit_style" <?php checked( $style->post_content['submit_style'], 1 ); ?> value="1" /> |
| 9 |
<?php esc_html_e( 'Disable submit button styling', 'formidable' ); ?> |
| 10 |
<span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Note: If disabled, you may not see the change take effect until you make 2 more styling changes or click "Update Options".', 'formidable' ); ?>"></span> |
| 11 |
</label> |
| 12 |
</p> |
| 13 |
|
| 14 |
<p class="frm4 frm_first frm_form_field"> |
| 15 |
<label for="frm_submit_font_size"><?php esc_html_e( 'Size', 'formidable' ); ?></label> |
| 16 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_font_size' ) ); ?>" id="frm_submit_font_size" value="<?php echo esc_attr( $style->post_content['submit_font_size'] ); ?>" size="3" /> |
| 17 |
</p> |
| 18 |
|
| 19 |
<p class="frm4 frm_form_field"> |
| 20 |
<label for="frm_submit_width"><?php esc_html_e( 'Width', 'formidable' ); ?></label> |
| 21 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_width' ) ); ?>" id="frm_submit_width" value="<?php echo esc_attr( $style->post_content['submit_width'] ); ?>" size="5" /> |
| 22 |
</p> |
| 23 |
|
| 24 |
<p class="frm4 frm_form_field"> |
| 25 |
<label for="frm_submit_height"><?php esc_html_e( 'Height', 'formidable' ); ?></label> |
| 26 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_height' ) ); ?>" id="frm_submit_height" value="<?php echo esc_attr( $style->post_content['submit_height'] ); ?>" size="5" /> |
| 27 |
</p> |
| 28 |
|
| 29 |
<p class="frm4 frm_first frm_form_field"> |
| 30 |
<label for="frm_submit_weight"><?php esc_html_e( 'Weight', 'formidable' ); ?></label> |
| 31 |
<select name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_weight' ) ); ?>" id="frm_submit_weight"> |
| 32 |
<?php foreach ( FrmStyle::get_bold_options() as $value => $name ) { ?> |
| 33 |
<option value="<?php echo esc_attr( $value ); ?>" <?php selected( $style->post_content['submit_weight'], $value ); ?>><?php echo esc_html( $name ); ?></option> |
| 34 |
<?php } ?> |
| 35 |
</select> |
| 36 |
</p> |
| 37 |
|
| 38 |
<p class="frm4 frm_form_field"> |
| 39 |
<label for="frm_submit_border_radius"><?php esc_html_e( 'Corners', 'formidable' ); ?></label> |
| 40 |
<input type="text" value="<?php echo esc_attr( $style->post_content['submit_border_radius'] ); ?>" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_border_radius' ) ); ?>" id="frm_submit_border_radius" size="4"/> |
| 41 |
</p> |
| 42 |
|
| 43 |
<p class="frm4 frm_first frm_form_field"> |
| 44 |
<label for="frm_submit_bg_color"><?php esc_html_e( 'BG color', 'formidable' ); ?></label> |
| 45 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_bg_color' ) ); ?>" id="frm_submit_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_bg_color'] ); ?>" <?php do_action( 'frm_style_settings_input_atts', 'submit_bg_color' ); ?> /> |
| 46 |
</p> |
| 47 |
|
| 48 |
<p class="frm4 frm_form_field"> |
| 49 |
<label for="frm_submit_text_color"><?php esc_html_e( 'Text', 'formidable' ); ?></label> |
| 50 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_text_color' ) ); ?>" id="frm_submit_text_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_text_color'] ); ?>" <?php do_action( 'frm_style_settings_input_atts', 'submit_text_color' ); ?> /> |
| 51 |
</p> |
| 52 |
|
| 53 |
<p class="frm4 frm_first frm_form_field"> |
| 54 |
<label for="frm_submit_border_color"><?php esc_html_e( 'Border', 'formidable' ); ?></label> |
| 55 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_border_color' ) ); ?>" id="frm_submit_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_border_color'] ); ?>" <?php do_action( 'frm_style_settings_input_atts', 'submit_border_color' ); ?> /> |
| 56 |
</p> |
| 57 |
|
| 58 |
<p class="frm4 frm_form_field"> |
| 59 |
<label for="frm_submit_border_width"><?php esc_html_e( 'Thickness', 'formidable' ); ?></label> |
| 60 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_border_width' ) ); ?>" id="frm_submit_border_width" value="<?php echo esc_attr( $style->post_content['submit_border_width'] ); ?>" size="4" /> |
| 61 |
</p> |
| 62 |
|
| 63 |
<p class="frm4 frm_end frm_form_field"> |
| 64 |
<label for="frm_submit_shadow_color"><?php esc_html_e( 'Shadow', 'formidable' ); ?></label> |
| 65 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_shadow_color' ) ); ?>" id="frm_submit_shadow_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_shadow_color'] ); ?>" <?php do_action( 'frm_style_settings_input_atts', 'submit_shadow_color' ); ?> /> |
| 66 |
</p> |
| 67 |
|
| 68 |
<p class="frm_clear"> |
| 69 |
<label for="frm_submit_bg_img"><?php esc_html_e( 'BG Image', 'formidable' ); ?></label> |
| 70 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_bg_img' ) ); ?>" id="frm_submit_bg_img" value="<?php echo esc_attr( $style->post_content['submit_bg_img'] ); ?>" /> |
| 71 |
</p> |
| 72 |
|
| 73 |
<p class="frm4 frm_first frm_form_field"> |
| 74 |
<label for="frm_submit_margin"><?php esc_html_e( 'Margin', 'formidable' ); ?></label> |
| 75 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_margin' ) ); ?>" id="frm_submit_margin" value="<?php echo esc_attr( $style->post_content['submit_margin'] ); ?>" size="6" /> |
| 76 |
</p> |
| 77 |
|
| 78 |
<p class="frm4 frm_form_field"> |
| 79 |
<label for="frm_submit_padding"><?php esc_html_e( 'Padding', 'formidable' ); ?></label> |
| 80 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_padding' ) ); ?>" id="frm_submit_padding" value="<?php echo esc_attr( $style->post_content['submit_padding'] ); ?>" size="6" /> |
| 81 |
</p> |
| 82 |
|
| 83 |
<h4 class="frm_clear"> |
| 84 |
<span><?php esc_html_e( 'On Hover', 'formidable' ); ?></span> |
| 85 |
</h4> |
| 86 |
<p class="frm4 frm_first frm_form_field"> |
| 87 |
<label for="frm_submit_hover_bg_color"><?php esc_html_e( 'BG color', 'formidable' ); ?></label> |
| 88 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_hover_bg_color' ) ); ?>" id="frm_submit_hover_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_hover_bg_color'] ); ?>" <?php do_action( 'frm_style_settings_input_atts', 'submit_hover_bg_color' ); ?> /> |
| 89 |
</p> |
| 90 |
|
| 91 |
<p class="frm4 frm_form_field"> |
| 92 |
<label for="frm_submit_hover_color"><?php esc_html_e( 'Text', 'formidable' ); ?></label> |
| 93 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_hover_color' ) ); ?>" id="frm_submit_hover_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_hover_color'] ); ?>" <?php do_action( 'frm_style_settings_input_atts', 'submit_hover_color' ); ?> /> |
| 94 |
</p> |
| 95 |
|
| 96 |
<p class="frm4 frm_end frm_form_field"> |
| 97 |
<label for="frm_submit_hover_border_color"><?php esc_html_e( 'Border', 'formidable' ); ?></label> |
| 98 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_hover_border_color' ) ); ?>" id="frm_submit_hover_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_hover_border_color'] ); ?>" <?php do_action( 'frm_style_settings_input_atts', 'submit_hover_border_color' ); ?> /> |
| 99 |
</p> |
| 100 |
|
| 101 |
<h4 class="frm_clear"> |
| 102 |
<span><?php esc_html_e( 'On Click', 'formidable' ); ?></span> |
| 103 |
</h4> |
| 104 |
<p class="frm4 frm_first frm_form_field"> |
| 105 |
<label for="frm_submit_active_bg_color"><?php esc_html_e( 'BG color', 'formidable' ); ?></label> |
| 106 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_active_bg_color' ) ); ?>" id="frm_submit_active_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_active_bg_color'] ); ?>" <?php do_action( 'frm_style_settings_input_atts', 'submit_active_bg_color' ); ?> /> |
| 107 |
</p> |
| 108 |
|
| 109 |
<p class="frm4 frm_form_field"> |
| 110 |
<label for="frm_submit_active_color"><?php esc_html_e( 'Text', 'formidable' ); ?></label> |
| 111 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_active_color' ) ); ?>" id="frm_submit_active_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_active_color'] ); ?>" <?php do_action( 'frm_style_settings_input_atts', 'submit_active_color' ); ?> /> |
| 112 |
</p> |
| 113 |
|
| 114 |
<p class="frm4 frm_end frm_form_field"> |
| 115 |
<label for="frm_submit_active_border_color"><?php esc_html_e( 'Border', 'formidable' ); ?></label> |
| 116 |
<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_active_border_color' ) ); ?>" id="frm_submit_active_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_active_border_color'] ); ?>" <?php do_action( 'frm_style_settings_input_atts', 'submit_active_border_color' ); ?> /> |
| 117 |
</p> |
| 118 |
|