| 1 |
<p class="frm_no_top_margin"> |
| 2 |
<label for="frm_submit_style"> |
| 3 |
<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" /> |
| 4 |
<?php esc_html_e( 'Disable submit button styling', 'formidable' ); ?> |
| 5 |
<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> |
| 6 |
</label> |
| 7 |
</p> |
| 8 |
|
| 9 |
<div class="posttypediv"> |
| 10 |
<ul class="posttype-tabs add-menu-item-tabs"> |
| 11 |
<li <?php echo ( 'default' === $current_tab ? ' class="tabs"' : '' ); ?>> |
| 12 |
<a href="<?php echo esc_url( '?page=formidable-styles&page-tab=default#tabs-panel-button-default' ) ?>" class="nav-tab-link" data-type="tabs-panel-button-default" ><?php esc_html_e( 'Default', 'formidable' ) ?></a> |
| 13 |
</li> |
| 14 |
<li <?php echo ( 'button-hover' === $current_tab ? ' class="tabs"' : '' ); ?>> |
| 15 |
<a href="<?php echo esc_url( '?page=formidable-styles&page-tab=button-hover#page-button-hover' ) ?>" class="nav-tab-link" data-type="tabs-panel-button-hover" ><?php esc_html_e( 'Hover', 'formidable' ) ?></a> |
| 16 |
</li> |
| 17 |
<li <?php echo ( 'button-click' === $current_tab ? ' class="tabs"' : '' ); ?>> |
| 18 |
<a href="?page=formidable-styles&page-tab=button-click#tabs-panel-button-click" class="nav-tab-link" data-type="tabs-panel-button-click"><?php esc_html_e( 'Click', 'formidable' ) ?></a> |
| 19 |
</li> |
| 20 |
</ul><!-- .posttype-tabs --> |
| 21 |
|
| 22 |
<div id="tabs-panel-button-default" class="tabs-panel <?php echo esc_attr( 'default' === $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?>"> |
| 23 |
<div class="field-group field-group-border clearfix"> |
| 24 |
<label for="frm_submit_font_size"><?php esc_html_e( 'Size', 'formidable' ) ?></label> |
| 25 |
<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" /> |
| 26 |
</div> |
| 27 |
|
| 28 |
<div class="field-group clearfix"> |
| 29 |
<label for="frm_submit_width"><?php esc_html_e( 'Width', 'formidable' ) ?></label> |
| 30 |
<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" /> |
| 31 |
</div> |
| 32 |
|
| 33 |
<div class="field-group clearfix"> |
| 34 |
<label for="frm_submit_height"><?php esc_html_e( 'Height', 'formidable' ) ?></label> |
| 35 |
<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" /> |
| 36 |
</div> |
| 37 |
|
| 38 |
<div class="field-group clearfix"> |
| 39 |
<label for="frm_submit_weight"><?php esc_html_e( 'Weight', 'formidable' ) ?></label> |
| 40 |
<select name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_weight' ) ) ?>" id="frm_submit_weight"> |
| 41 |
<?php foreach ( FrmStyle::get_bold_options() as $value => $name ) { ?> |
| 42 |
<option value="<?php echo esc_attr( $value ) ?>" <?php selected( $style->post_content['submit_weight'], $value ) ?>><?php echo esc_html( $name ) ?></option> |
| 43 |
<?php } ?> |
| 44 |
</select> |
| 45 |
</div> |
| 46 |
|
| 47 |
<div class="field-group clearfix"> |
| 48 |
<label for="frm_submit_border_radius"><?php esc_html_e( 'Corners', 'formidable' ) ?></label> |
| 49 |
<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"/> |
| 50 |
</div> |
| 51 |
|
| 52 |
<div class="field-group field-group-border clearfix"> |
| 53 |
<label for="frm_submit_bg_color"><?php esc_html_e( 'BG color', 'formidable' ) ?></label> |
| 54 |
<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'] ) ?>" /> |
| 55 |
</div> |
| 56 |
|
| 57 |
<div class="field-group clearfix"> |
| 58 |
<label for="frm_submit_text_color"><?php esc_html_e( 'Text', 'formidable' ) ?></label> |
| 59 |
<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'] ) ?>" /> |
| 60 |
</div> |
| 61 |
|
| 62 |
<div class="field-group field-group-border clearfix"> |
| 63 |
<label for="frm_submit_border_color"><?php esc_html_e( 'Border', 'formidable' ) ?></label> |
| 64 |
<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'] ) ?>" /> |
| 65 |
</div> |
| 66 |
|
| 67 |
<div class="field-group clearfix"> |
| 68 |
<label for="frm_submit_border_width"><?php esc_html_e( 'Thickness', 'formidable' ) ?></label> |
| 69 |
<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" /> |
| 70 |
</div> |
| 71 |
|
| 72 |
<div class="field-group clearfix"> |
| 73 |
<label for="frm_submit_shadow_color"><?php esc_html_e( 'Shadow', 'formidable' ) ?></label> |
| 74 |
<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'] ) ?>" /> |
| 75 |
</div> |
| 76 |
|
| 77 |
<div class="clear"></div> |
| 78 |
<div class="field-group field-group-border frm-full"> |
| 79 |
<label for="frm_submit_bg_img"><?php esc_html_e( 'BG Image', 'formidable' ) ?></label> |
| 80 |
<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'] ) ?>" /> |
| 81 |
</div> |
| 82 |
|
| 83 |
<div class="field-group field-group-border clearfix"> |
| 84 |
<label for="frm_submit_margin"><?php esc_html_e( 'Margin', 'formidable' ) ?></label> |
| 85 |
<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" /> |
| 86 |
</div> |
| 87 |
|
| 88 |
<div class="field-group clearfix"> |
| 89 |
<label for="frm_submit_padding"><?php esc_html_e( 'Padding', 'formidable' ) ?></label> |
| 90 |
<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" /> |
| 91 |
</div> |
| 92 |
<div class="clear"></div> |
| 93 |
</div><!-- /.tabs-panel --> |
| 94 |
|
| 95 |
<div id="tabs-panel-button-hover" class="tabs-panel <?php echo esc_attr( 'button-hover' === $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?>"> |
| 96 |
<div class="field-group clearfix"> |
| 97 |
<label for="frm_submit_hover_bg_color"><?php esc_html_e( 'BG color', 'formidable' ) ?></label> |
| 98 |
<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'] ) ?>" /> |
| 99 |
</div> |
| 100 |
|
| 101 |
<div class="field-group clearfix"> |
| 102 |
<label for="frm_submit_hover_color"><?php esc_html_e( 'Text', 'formidable' ) ?></label> |
| 103 |
<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'] ) ?>" /> |
| 104 |
</div> |
| 105 |
|
| 106 |
<div class="field-group clearfix"> |
| 107 |
<label for="frm_submit_hover_border_color"><?php esc_html_e( 'Border', 'formidable' ) ?></label> |
| 108 |
<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'] ) ?>" /> |
| 109 |
</div> |
| 110 |
|
| 111 |
<div class="clear"></div> |
| 112 |
</div><!-- /.tabs-panel --> |
| 113 |
|
| 114 |
<div id="tabs-panel-button-click" class="tabs-panel <?php echo esc_attr( 'button-click' === $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?>"> |
| 115 |
<div class="field-group clearfix"> |
| 116 |
<label for="frm_submit_active_bg_color"><?php esc_html_e( 'BG color', 'formidable' ) ?></label> |
| 117 |
<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'] ) ?>" /> |
| 118 |
</div> |
| 119 |
|
| 120 |
<div class="field-group clearfix"> |
| 121 |
<label for="frm_submit_active_color"><?php esc_html_e( 'Text', 'formidable' ) ?></label> |
| 122 |
<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'] ) ?>" /> |
| 123 |
</div> |
| 124 |
|
| 125 |
<div class="field-group clearfix"> |
| 126 |
<label for="frm_submit_active_border_color"><?php esc_html_e( 'Border', 'formidable' ) ?></label> |
| 127 |
<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'] ) ?>" /> |
| 128 |
</div> |
| 129 |
|
| 130 |
<div class="clear"></div> |
| 131 |
</div><!-- /.tabs-panel --> |
| 132 |
|
| 133 |
</div> |
| 134 |
|