| @@ -2,47 +2,146 @@ | ||
| 2 | 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | 3 | die( 'You are not allowed to call this page directly.' ); |
| 4 | 4 | } |
| 5 | 5 | ?> |
| 6 | -<p class="frm4 frm_first frm_form_field"> | |
| 7 | - <label><?php esc_html_e( 'Size', 'formidable' ); ?></label> | |
| 8 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'field_font_size' ) ); ?>" id="frm_field_font_size" value="<?php echo esc_attr( $style->post_content['field_font_size'] ); ?>" /> | |
| 9 | -</p> | |
| 6 | +<div class="frm5 frm_form_field"> | |
| 7 | + <label | |
| 8 | + for="frm_field_font_size" | |
| 9 | + class="frm-style-item-heading"><?php esc_html_e( 'Font Size', 'formidable' ); ?></label> | |
| 10 | +</div> | |
| 11 | +<div class="frm7 frm_form_field"> | |
| 12 | + <?php | |
| 13 | + new FrmSliderStyleComponent( | |
| 14 | + $frm_style->get_field_name( 'field_font_size' ), | |
| 15 | + $style->post_content['field_font_size'], | |
| 16 | + array( | |
| 17 | + 'id' => 'frm_field_font_size', | |
| 18 | + 'max_value' => 100, | |
| 19 | + ) | |
| 20 | + ); | |
| 21 | + ?> | |
| 22 | +</div> | |
| 10 | 23 | |
| 11 | -<p class="frm4 frm_form_field"> | |
| 12 | - <label><?php esc_html_e( 'Height', 'formidable' ); ?></label> | |
| 13 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'field_height' ) ); ?>" id="frm_field_height" value="<?php echo esc_attr( $style->post_content['field_height'] ); ?>" /> | |
| 14 | -</p> | |
| 24 | +<div class="frm5 frm_form_field"> | |
| 25 | + <label | |
| 26 | + for="frm_field_weight" | |
| 27 | + class="frm-style-item-heading"><?php esc_html_e( 'Weight', 'formidable' ); ?></label> | |
| 28 | +</div> | |
| 29 | +<div class="frm7 frm_form_field"> | |
| 30 | + <?php | |
| 31 | + new FrmDropdownStyleComponent( | |
| 32 | + $frm_style->get_field_name( 'field_weight' ), | |
| 33 | + $style->post_content['field_weight'], | |
| 34 | + array( | |
| 35 | + 'id' => 'frm_field_weight', | |
| 36 | + 'options' => FrmStyle::get_bold_options(), | |
| 37 | + ) | |
| 38 | + ); | |
| 39 | + ?> | |
| 40 | +</div> | |
| 15 | 41 | |
| 16 | -<p class="frm4 frm_form_field"> | |
| 17 | - <label><?php esc_html_e( 'Width', 'formidable' ); ?></label> | |
| 18 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'field_width' ) ); ?>" id="frm_field_width" value="<?php echo esc_attr( $style->post_content['field_width'] ); ?>" /> | |
| 19 | -</p> | |
| 42 | +<div class="frm5 frm_form_field"> | |
| 43 | + <label | |
| 44 | + for="frm_field_height" | |
| 45 | + class="frm-style-item-heading"><?php esc_html_e( 'Height', 'formidable' ); ?></label> | |
| 46 | +</div> | |
| 47 | +<div class="frm7 frm_form_field"> | |
| 48 | + <?php | |
| 49 | + new FrmSliderStyleComponent( | |
| 50 | + $frm_style->get_field_name( 'field_height' ), | |
| 51 | + $style->post_content['field_height'], | |
| 52 | + array( | |
| 53 | + 'id' => 'frm_field_height', | |
| 54 | + 'max_value' => 100, | |
| 55 | + ) | |
| 56 | + ); | |
| 57 | + ?> | |
| 58 | +</div> | |
| 59 | +<div class="frm5 frm_form_field"> | |
| 60 | + <label | |
| 61 | + for="frm_field_width" | |
| 62 | + class="frm-style-item-heading"><?php esc_html_e( 'Width', 'formidable' ); ?></label> | |
| 63 | +</div> | |
| 64 | +<div class="frm7 frm_form_field"> | |
| 65 | + <?php | |
| 66 | + new FrmSliderStyleComponent( | |
| 67 | + $frm_style->get_field_name( 'field_width' ), | |
| 68 | + $style->post_content['field_width'], | |
| 69 | + array( | |
| 70 | + 'id' => 'frm_field_width', | |
| 71 | + 'max_value' => 1400, | |
| 72 | + ) | |
| 73 | + ); | |
| 74 | + ?> | |
| 75 | +</div> | |
| 76 | +<div class="frm5 frm_form_field"> | |
| 77 | + <label | |
| 78 | + for="frm_field_pad" | |
| 79 | + class="frm-style-item-heading"><?php esc_html_e( 'Padding', 'formidable' ); ?></label> | |
| 80 | +</div> | |
| 81 | +<div class="frm7 frm_form_field"> | |
| 82 | + <?php | |
| 83 | + new FrmSliderStyleComponent( | |
| 84 | + $frm_style->get_field_name( 'field_pad' ), | |
| 85 | + $style->post_content['field_pad'], | |
| 86 | + array( | |
| 87 | + 'id' => 'frm_field_pad', | |
| 88 | + 'type' => 'vertical-margin', | |
| 89 | + 'max_value' => 100, | |
| 90 | + ) | |
| 91 | + ); | |
| 92 | + ?> | |
| 93 | +</div> | |
| 94 | +<div class="frm5 frm_form_field"> | |
| 95 | + <label | |
| 96 | + for="frm_field_margin" | |
| 97 | + class="frm-style-item-heading"><?php esc_html_e( 'Margin', 'formidable' ); ?></label> | |
| 98 | +</div> | |
| 99 | +<div class="frm7 frm_form_field"> | |
| 100 | + <?php | |
| 101 | + new FrmSliderStyleComponent( | |
| 102 | + $frm_style->get_field_name( 'field_margin' ), | |
| 103 | + $style->post_content['field_margin'], | |
| 104 | + array( | |
| 105 | + 'id' => 'frm_field_margin', | |
| 106 | + 'type' => 'vertical-margin', | |
| 107 | + 'max_value' => 100, | |
| 108 | + ) | |
| 109 | + ); | |
| 110 | + ?> | |
| 111 | +</div> | |
| 112 | +<div class="frm5 frm_form_field"> | |
| 113 | + <label | |
| 114 | + for="frm_border_radius" | |
| 115 | + class="frm-style-item-heading"><?php esc_html_e( 'Corner Radius', 'formidable' ); ?></label> | |
| 116 | +</div> | |
| 117 | +<div class="frm7 frm_form_field"> | |
| 118 | + <?php | |
| 119 | + new FrmSliderStyleComponent( | |
| 120 | + $frm_style->get_field_name( 'border_radius' ), | |
| 121 | + $style->post_content['border_radius'], | |
| 122 | + array( | |
| 123 | + 'id' => 'frm_border_radius', | |
| 124 | + 'max_value' => 50, | |
| 125 | + ) | |
| 126 | + ); | |
| 127 | + ?> | |
| 128 | +</div> | |
| 20 | 129 | |
| 21 | -<p class="frm_clear frm_no_bottom_margin"> | |
| 22 | - <label><input type="checkbox" name="<?php echo esc_attr( $frm_style->get_field_name( 'auto_width' ) ); ?>" id="frm_auto_width" value="1" <?php checked( $style->post_content['auto_width'], 1 ); ?> /> | |
| 23 | - <?php esc_html_e( 'Automatic width for drop-down fields', 'formidable' ); ?></label> | |
| 24 | -</p> | |
| 25 | - | |
| 26 | -<p class="frm4 frm_first frm_form_field"> | |
| 27 | - <label><?php esc_html_e( 'Padding', 'formidable' ); ?></label> | |
| 28 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'field_pad' ) ); ?>" id="frm_field_pad" value="<?php echo esc_attr( $style->post_content['field_pad'] ); ?>" /> | |
| 29 | -</p> | |
| 30 | - | |
| 31 | -<p class="frm4 frm_form_field"> | |
| 32 | - <label><?php esc_html_e( 'Bottom Margin', 'formidable' ); ?></label> | |
| 33 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'field_margin' ) ); ?>" id="frm_field_margin" value="<?php echo esc_attr( $style->post_content['field_margin'] ); ?>" /> | |
| 34 | -</p> | |
| 35 | - | |
| 36 | -<p class="frm4 frm_form_field"> | |
| 37 | - <label><?php esc_html_e( 'Corners', 'formidable' ); ?> <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Formidable uses CSS3 border-radius for corner rounding, which is not currently supported by Internet Explorer.', 'formidable' ); ?>" ></span></label> | |
| 38 | - <input type="text" value="<?php echo esc_attr( $style->post_content['border_radius'] ); ?>" name="<?php echo esc_attr( $frm_style->get_field_name( 'border_radius' ) ); ?>" id="frm_border_radius" /> | |
| 39 | -</p> | |
| 40 | - | |
| 41 | -<p class="frm4 frm_first frm_form_field"> | |
| 42 | - <label><?php esc_html_e( 'Weight', 'formidable' ); ?></label> | |
| 43 | - <select name="<?php echo esc_attr( $frm_style->get_field_name( 'field_weight' ) ); ?>" id="frm_field_weight"> | |
| 44 | - <?php foreach ( FrmStyle::get_bold_options() as $value => $name ) { ?> | |
| 45 | - <option value="<?php echo esc_attr( $value ); ?>" <?php selected( $style->post_content['field_weight'], $value ); ?>><?php echo esc_attr( $name ); ?></option> | |
| 46 | - <?php } ?> | |
| 47 | - </select> | |
| 48 | -</p> | |
| 130 | +<div class="frm5 frm_form_field"> | |
| 131 | + <label | |
| 132 | + for="frm_auto_dropdowns_width" | |
| 133 | + class="frm-style-item-heading"><?php esc_html_e( 'Auto Drop-downs Width', 'formidable' ); ?></label> | |
| 134 | +</div> | |
| 135 | +<div class="frm7 frm_form_field frm-style-component"> | |
| 136 | + <?php | |
| 137 | + FrmHtmlHelper::toggle( | |
| 138 | + 'frm_auto_dropdowns_width', | |
| 139 | + $frm_style->get_field_name( 'auto_width' ), | |
| 140 | + array( | |
| 141 | + 'div_class' => 'with_frm_style frm_toggle', | |
| 142 | + 'checked' => ! empty( $style->post_content['auto_width'] ), | |
| 143 | + 'echo' => true, | |
| 144 | + ) | |
| 145 | + ); | |
| 146 | + ?> | |
| 147 | +</div> | |