@@ -8,12 +8,12 @@ discard block |
||
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | public function widget( $args, $instance ) { |
| 11 | - if ( empty($instance['title']) ) { |
|
| 12 | - $title = FrmForm::getName( $instance['form'] ); |
|
| 13 | - } else { |
|
| 14 | - $title = $instance['title']; |
|
| 15 | - } |
|
| 16 | - $title = apply_filters('widget_title', $title); |
|
| 11 | + if ( empty($instance['title']) ) { |
|
| 12 | + $title = FrmForm::getName( $instance['form'] ); |
|
| 13 | + } else { |
|
| 14 | + $title = $instance['title']; |
|
| 15 | + } |
|
| 16 | + $title = apply_filters('widget_title', $title); |
|
| 17 | 17 | |
| 18 | 18 | echo $args['before_widget']; |
| 19 | 19 | |
@@ -39,9 +39,9 @@ discard block |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | public function form( $instance ) { |
| 42 | - //Defaults |
|
| 42 | + //Defaults |
|
| 43 | 43 | $instance = wp_parse_args( (array) $instance, array( |
| 44 | - 'title' => false, 'form' => false, 'description' => false, |
|
| 44 | + 'title' => false, 'form' => false, 'description' => false, |
|
| 45 | 45 | ) ); |
| 46 | 46 | ?> |
| 47 | 47 | <p><label for="<?php echo esc_attr( $this->get_field_id('title') ); ?>"><?php _e( 'Title', 'formidable' ) ?>:</label><br/> |
@@ -49,10 +49,10 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | <p><label for="<?php echo esc_attr( $this->get_field_id('form') ); ?>"><?php _e( 'Form', 'formidable' ) ?>:</label><br/> |
| 51 | 51 | <?php |
| 52 | - FrmFormsHelper::forms_dropdown( $this->get_field_name('form'), $instance['form'], array( |
|
| 53 | - 'blank' => false, 'field_id' => $this->get_field_id('form'), |
|
| 54 | - 'class' => 'widefat', |
|
| 55 | - ) ); |
|
| 52 | + FrmFormsHelper::forms_dropdown( $this->get_field_name('form'), $instance['form'], array( |
|
| 53 | + 'blank' => false, 'field_id' => $this->get_field_id('form'), |
|
| 54 | + 'class' => 'widefat', |
|
| 55 | + ) ); |
|
| 56 | 56 | ?> |
| 57 | 57 | </p> |
| 58 | 58 | |
@@ -4,22 +4,22 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | public function __construct() { |
| 6 | 6 | $widget_ops = array( 'description' => __( 'Display a Formidable Form', 'formidable' ) ); |
| 7 | - parent::__construct('frm_show_form', __( 'Formidable Form', 'formidable' ), $widget_ops); |
|
| 7 | + parent::__construct( 'frm_show_form', __( 'Formidable Form', 'formidable' ), $widget_ops ); |
|
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | public function widget( $args, $instance ) { |
| 11 | - if ( empty($instance['title']) ) { |
|
| 11 | + if ( empty( $instance['title'] ) ) { |
|
| 12 | 12 | $title = FrmForm::getName( $instance['form'] ); |
| 13 | 13 | } else { |
| 14 | 14 | $title = $instance['title']; |
| 15 | 15 | } |
| 16 | - $title = apply_filters('widget_title', $title); |
|
| 16 | + $title = apply_filters( 'widget_title', $title ); |
|
| 17 | 17 | |
| 18 | 18 | echo $args['before_widget']; |
| 19 | 19 | |
| 20 | 20 | echo '<div class="frm_form_widget">'; |
| 21 | 21 | if ( $title ) { |
| 22 | - echo $args['before_title'] . stripslashes($title) . $args['after_title']; |
|
| 22 | + echo $args['before_title'] . stripslashes( $title ) . $args['after_title']; |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | $form_atts = array( |
@@ -44,19 +44,19 @@ discard block |
||
| 44 | 44 | 'title' => false, 'form' => false, 'description' => false, |
| 45 | 45 | ) ); |
| 46 | 46 | ?> |
| 47 | - <p><label for="<?php echo esc_attr( $this->get_field_id('title') ); ?>"><?php _e( 'Title', 'formidable' ) ?>:</label><br/> |
|
| 48 | - <input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id('title') ); ?>" name="<?php echo esc_attr( $this->get_field_name('title') ); ?>" value="<?php echo esc_attr( stripslashes($instance['title']) ); ?>" /></p> |
|
| 47 | + <p><label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title', 'formidable' ) ?>:</label><br/> |
|
| 48 | + <input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" value="<?php echo esc_attr( stripslashes( $instance['title'] ) ); ?>" /></p> |
|
| 49 | 49 | |
| 50 | - <p><label for="<?php echo esc_attr( $this->get_field_id('form') ); ?>"><?php _e( 'Form', 'formidable' ) ?>:</label><br/> |
|
| 50 | + <p><label for="<?php echo esc_attr( $this->get_field_id( 'form' ) ); ?>"><?php _e( 'Form', 'formidable' ) ?>:</label><br/> |
|
| 51 | 51 | <?php |
| 52 | - FrmFormsHelper::forms_dropdown( $this->get_field_name('form'), $instance['form'], array( |
|
| 53 | - 'blank' => false, 'field_id' => $this->get_field_id('form'), |
|
| 52 | + FrmFormsHelper::forms_dropdown( $this->get_field_name( 'form' ), $instance['form'], array( |
|
| 53 | + 'blank' => false, 'field_id' => $this->get_field_id( 'form' ), |
|
| 54 | 54 | 'class' => 'widefat', |
| 55 | 55 | ) ); |
| 56 | 56 | ?> |
| 57 | 57 | </p> |
| 58 | 58 | |
| 59 | - <p><label for="<?php echo esc_attr( $this->get_field_id('description') ); ?>"><input class="checkbox" type="checkbox" <?php checked($instance['description'], true) ?> id="<?php echo esc_attr( $this->get_field_id('description') ); ?>" name="<?php echo esc_attr( $this->get_field_name('description') ); ?>" value="1" /> |
|
| 59 | + <p><label for="<?php echo esc_attr( $this->get_field_id( 'description' ) ); ?>"><input class="checkbox" type="checkbox" <?php checked( $instance['description'], true ) ?> id="<?php echo esc_attr( $this->get_field_id( 'description' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'description' ) ); ?>" value="1" /> |
|
| 60 | 60 | <?php _e( 'Show Description', 'formidable' ) ?></label></p> |
| 61 | 61 | <?php |
| 62 | 62 | } |
@@ -1,17 +1,17 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | $read_only = false; |
| 4 | -if ( isset($field['post_field']) && $field['post_field'] == 'post_category' && FrmAppHelper::pro_is_installed() ) { |
|
| 4 | +if ( isset( $field['post_field'] ) && $field['post_field'] == 'post_category' && FrmAppHelper::pro_is_installed() ) { |
|
| 5 | 5 | echo FrmProPost::get_category_dropdown( $field, array( 'location' => 'front', 'name' => $field_name, 'id' => $html_id ) ); |
| 6 | 6 | } else { |
| 7 | 7 | if ( FrmAppHelper::pro_is_installed() && FrmField::is_read_only( $field ) && ! FrmAppHelper::is_admin() ) { |
| 8 | 8 | $read_only = true; |
| 9 | 9 | |
| 10 | 10 | echo FrmProDropdownFieldsController::get_hidden_fields_with_readonly_values( $field, $field_name, $html_id ); ?> |
| 11 | - <select <?php do_action('frm_field_input_html', $field) ?>> <?php |
|
| 11 | + <select <?php do_action( 'frm_field_input_html', $field ) ?>> <?php |
|
| 12 | 12 | |
| 13 | 13 | } else { ?> |
| 14 | - <select name="<?php echo esc_attr( $field_name ) ?>" id="<?php echo esc_attr( $html_id ) ?>" <?php do_action('frm_field_input_html', $field) ?>> |
|
| 14 | + <select name="<?php echo esc_attr( $field_name ) ?>" id="<?php echo esc_attr( $html_id ) ?>" <?php do_action( 'frm_field_input_html', $field ) ?>> |
|
| 15 | 15 | <?php } |
| 16 | 16 | |
| 17 | 17 | $other_opt = false; |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | } |
| 28 | 28 | } |
| 29 | 29 | ?> |
| 30 | - <option value="<?php echo esc_attr($field_val) ?>" <?php echo $selected ? ' selected="selected"' : ''; ?><?php echo ( FrmFieldsHelper::is_other_opt( $opt_key ) ) ? ' class="frm_other_trigger"' : '';?>><?php echo esc_html( $opt == '' ? ' ' : $opt ); ?></option> |
|
| 30 | + <option value="<?php echo esc_attr( $field_val ) ?>" <?php echo $selected ? ' selected="selected"' : ''; ?><?php echo ( FrmFieldsHelper::is_other_opt( $opt_key ) ) ? ' class="frm_other_trigger"' : ''; ?>><?php echo esc_html( $opt == '' ? ' ' : $opt ); ?></option> |
|
| 31 | 31 | <?php |
| 32 | 32 | } ?> |
| 33 | 33 | </select> |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -if ( isset($field['post_field']) && $field['post_field'] == 'post_category' && FrmAppHelper::pro_is_installed() ) { |
|
| 3 | +if ( isset( $field['post_field'] ) && $field['post_field'] == 'post_category' && FrmAppHelper::pro_is_installed() ) { |
|
| 4 | 4 | echo FrmProPost::get_category_dropdown( $field, array( 'name' => $field_name, 'id' => 'placeholder_id', 'location' => 'form_builder' ) ); |
| 5 | 5 | } else { ?> |
| 6 | 6 | <select id="frm_dropdown_<?php echo esc_attr( $field['id'] ) ?>" |
@@ -8,8 +8,8 @@ discard block |
||
| 8 | 8 | echo FrmField::is_option_true( $field, 'size' ) ? 'class="auto_width"' : ''; |
| 9 | 9 | echo FrmField::is_option_true( $field, 'multiple' ) ? ' multiple="multiple"' : ''; ?> > |
| 10 | 10 | <?php foreach ( $field['options'] as $opt_key => $opt ) { |
| 11 | - $field_val = apply_filters('frm_field_value_saved', $opt, $opt_key, $field); |
|
| 12 | - $opt = apply_filters('frm_field_label_seen', $opt, $opt_key, $field); |
|
| 11 | + $field_val = apply_filters( 'frm_field_value_saved', $opt, $opt_key, $field ); |
|
| 12 | + $opt = apply_filters( 'frm_field_label_seen', $opt, $opt_key, $field ); |
|
| 13 | 13 | $selected = ( $field['default_value'] == $field_val || FrmFieldsHelper::get_other_val( array( 'opt_key', 'field' ) ) ) ? ' selected="selected"' : ''; ?> |
| 14 | 14 | <option value="<?php echo esc_attr( $field_val ) ?>"<?php echo $selected ?>><?php echo esc_html( $opt ) ?> </option> |
| 15 | 15 | <?php } ?> |
@@ -27,9 +27,9 @@ discard block |
||
| 27 | 27 | <?php |
| 28 | 28 | |
| 29 | 29 | if ( ! isset( $field['post_field'] ) || ! in_array( $field['post_field'], array( 'post_category' ) ) ) { ?> |
| 30 | - <?php do_action('frm_add_multiple_opts_labels', $field); ?> |
|
| 31 | - <ul id="frm_field_<?php echo esc_attr( $field['id'] ) ?>_opts" class="frm_sortable_field_opts<?php echo ( count($field['options']) > 10 ) ? ' frm_field_opts_list' : ''; ?>"> |
|
| 32 | - <?php FrmFieldsHelper::show_single_option($field); ?> |
|
| 30 | + <?php do_action( 'frm_add_multiple_opts_labels', $field ); ?> |
|
| 31 | + <ul id="frm_field_<?php echo esc_attr( $field['id'] ) ?>_opts" class="frm_sortable_field_opts<?php echo ( count( $field['options'] ) > 10 ) ? ' frm_field_opts_list' : ''; ?>"> |
|
| 32 | + <?php FrmFieldsHelper::show_single_option( $field ); ?> |
|
| 33 | 33 | </ul> |
| 34 | 34 | <?php |
| 35 | 35 | } ?> |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | $display = apply_filters('frm_display_field_options', array( |
| 4 | - 'type' => $field['type'], 'field_data' => $field, |
|
| 5 | - 'required' => true, 'unique' => false, 'read_only' => false, |
|
| 6 | - 'description' => true, 'options' => true, 'label_position' => true, |
|
| 7 | - 'invalid' => false, 'size' => false, 'clear_on_focus' => false, |
|
| 8 | - 'default_blank' => true, 'css' => true, 'conf_field' => false, |
|
| 4 | + 'type' => $field['type'], 'field_data' => $field, |
|
| 5 | + 'required' => true, 'unique' => false, 'read_only' => false, |
|
| 6 | + 'description' => true, 'options' => true, 'label_position' => true, |
|
| 7 | + 'invalid' => false, 'size' => false, 'clear_on_focus' => false, |
|
| 8 | + 'default_blank' => true, 'css' => true, 'conf_field' => false, |
|
| 9 | 9 | 'max' => true, 'captcha_size' => false, |
| 10 | 10 | )); |
| 11 | 11 | |
@@ -25,19 +25,19 @@ discard block |
||
| 25 | 25 | $frm_settings = FrmAppHelper::get_settings(); |
| 26 | 26 | |
| 27 | 27 | if ( ! isset( $frm_all_field_selection ) ) { |
| 28 | - if ( isset($frm_field_selection) && isset($pro_field_selection) ) { |
|
| 29 | - $frm_all_field_selection = array_merge($frm_field_selection, $pro_field_selection); |
|
| 30 | - } else { |
|
| 28 | + if ( isset($frm_field_selection) && isset($pro_field_selection) ) { |
|
| 29 | + $frm_all_field_selection = array_merge($frm_field_selection, $pro_field_selection); |
|
| 30 | + } else { |
|
| 31 | 31 | $pro_field_selection = FrmField::pro_field_selection(); |
| 32 | 32 | $frm_all_field_selection = array_merge( FrmField::field_selection(), $pro_field_selection ); |
| 33 | - } |
|
| 33 | + } |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | $disabled_fields = FrmAppHelper::pro_is_installed() ? array() : $pro_field_selection; |
| 37 | 37 | |
| 38 | 38 | |
| 39 | 39 | if ( ! isset( $ajax ) ) { |
| 40 | - $li_classes .= ' ui-state-default widgets-holder-wrap'; ?> |
|
| 40 | + $li_classes .= ' ui-state-default widgets-holder-wrap'; ?> |
|
| 41 | 41 | <li id="frm_field_id_<?php echo esc_attr( $field['id'] ); ?>" class="<?php echo esc_attr( $li_classes ) ?>" data-fid="<?php echo esc_attr( $field['id'] ) ?>" data-formid="<?php echo ( 'divider' == $field['type'] ) ? esc_attr( $field['form_select'] ) : esc_attr( $field['form_id'] ); ?>" data-ftype="<?php echo esc_attr( $display['type'] ) ?>"> |
| 42 | 42 | <?php |
| 43 | 43 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | </span> |
| 60 | 60 | <?php } |
| 61 | 61 | |
| 62 | - ?> |
|
| 62 | + ?> |
|
| 63 | 63 | <label class="<?php echo ( $field['type'] == 'end_divider' ) ? '' : 'frm_ipe_field_label'; ?> frm_primary_label <?php echo ( $field['type'] == 'break' ) ? 'button': ''; ?>" id="field_label_<?php echo esc_attr( $field['id'] ); ?>"><?php echo ( $field['name'] == '' ) ? __( '(no label)', 'formidable' ) : force_balance_tags( $field['name'] ); ?></label> |
| 64 | 64 | |
| 65 | 65 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | if ( in_array( $field['type'], array( 'select', 'radio', 'checkbox' ) ) ) { ?> |
| 107 | 107 | <div class="frm-show-click frm_small_top_margin"><?php |
| 108 | 108 | |
| 109 | - if ( isset($field['post_field']) && $field['post_field'] == 'post_category' ) { |
|
| 109 | + if ( isset($field['post_field']) && $field['post_field'] == 'post_category' ) { |
|
| 110 | 110 | echo '<p class="howto">' . FrmFieldsHelper::get_term_link( $field['taxonomy'] ) . '</p>'; |
| 111 | 111 | } else if ( ! isset( $field['post_field'] ) || ! in_array( $field['post_field'], array( 'post_category' ) ) ) { |
| 112 | 112 | ?> |
@@ -118,16 +118,16 @@ discard block |
||
| 118 | 118 | <a href="javascript:void(0);" id="other_button_<?php echo esc_attr( $field['id'] ); ?>" data-opttype="other" data-ftype="<?php echo esc_attr( $field['type'] ) ?>" class="button frm_cb_button frm_add_opt<?php echo ( in_array( $field['type'], array( 'radio', 'select' ) ) && $field['other'] == true ? ' frm_hidden' : '' ); ?>"><?php _e( 'Add "Other"', 'formidable' ) ?></a> |
| 119 | 119 | <input type="hidden" value="<?php echo esc_attr( $field['other'] ); ?>" id="other_input_<?php echo esc_attr( $field['id'] ); ?>" name="field_options[other_<?php echo esc_attr( $field['id'] ); ?>]"> |
| 120 | 120 | <?php |
| 121 | - } |
|
| 121 | + } |
|
| 122 | 122 | |
| 123 | - if ( ! isset($field['post_field']) || $field['post_field'] != 'post_category' ) { ?> |
|
| 123 | + if ( ! isset($field['post_field']) || $field['post_field'] != 'post_category' ) { ?> |
|
| 124 | 124 | <a href="<?php echo esc_url( admin_url( 'admin-ajax.php?action=frm_import_choices&field_id=' . $field['id'] . '&TB_iframe=1' ) ) ?>" title="<?php echo esc_attr( FrmAppHelper::truncate( strip_tags( str_replace( '"', '"', $field['name'] ) ), 20 ) . ' ' . __( 'Field Choices', 'formidable' ) ); ?>" class="thickbox frm_orange"> |
| 125 | 125 | <?php _e( 'Bulk Edit Options', 'formidable' ) ?> |
| 126 | 126 | </a> |
| 127 | 127 | <?php } ?> |
| 128 | 128 | </div> |
| 129 | 129 | <?php |
| 130 | - } |
|
| 130 | + } |
|
| 131 | 131 | ?> |
| 132 | 132 | </div> |
| 133 | 133 | <?php |
@@ -162,31 +162,31 @@ discard block |
||
| 162 | 162 | <?php _e( 'Required', 'formidable' ) ?> |
| 163 | 163 | </label> |
| 164 | 164 | <?php |
| 165 | - } |
|
| 165 | + } |
|
| 166 | 166 | |
| 167 | 167 | if ( $display['unique'] ) { |
| 168 | - if ( ! isset( $field['unique'] ) ) { |
|
| 169 | - $field['unique'] = false; |
|
| 170 | - } |
|
| 171 | - ?> |
|
| 168 | + if ( ! isset( $field['unique'] ) ) { |
|
| 169 | + $field['unique'] = false; |
|
| 170 | + } |
|
| 171 | + ?> |
|
| 172 | 172 | <label for="frm_uniq_field_<?php echo esc_attr( $field['id'] ) ?>" class="frm_inline_label frm_help" title="<?php esc_attr_e( 'Unique: Do not allow the same response multiple times. For example, if one user enters \'Joe\', then no one else will be allowed to enter the same name.', 'formidable' ) ?>"><input type="checkbox" name="field_options[unique_<?php echo esc_attr( $field['id'] ) ?>]" id="frm_uniq_field_<?php echo esc_attr( $field['id'] ) ?>" value="1" <?php checked( $field['unique'], 1 ); ?> class="frm_mark_unique" /> <?php _e( 'Unique', 'formidable' ) ?></label> |
| 173 | 173 | <?php |
| 174 | - } |
|
| 174 | + } |
|
| 175 | 175 | |
| 176 | 176 | if ( $display['read_only'] ) { |
| 177 | - if ( ! isset( $field['read_only'] ) ) { |
|
| 178 | - $field['read_only'] = false; |
|
| 177 | + if ( ! isset( $field['read_only'] ) ) { |
|
| 178 | + $field['read_only'] = false; |
|
| 179 | 179 | } |
| 180 | - ?> |
|
| 180 | + ?> |
|
| 181 | 181 | <label for="frm_read_only_field_<?php echo esc_attr( $field['id'] ) ?>" class="frm_inline_label frm_help" title="<?php esc_attr_e( 'Read Only: Show this field but do not allow the field value to be edited from the front-end.', 'formidable' ) ?>" > |
| 182 | 182 | <input type="checkbox" id="frm_read_only_field_<?php echo esc_attr( $field['id'] ) ?>" name="field_options[read_only_<?php echo esc_attr( $field['id'] ) ?>]" value="1" <?php checked( $field['read_only'], 1 ) ?>/> |
| 183 | 183 | <?php _e( 'Read Only', 'formidable' ) ?> |
| 184 | 184 | </label> |
| 185 | 185 | <?php } |
| 186 | 186 | |
| 187 | - do_action('frm_field_options_form_top', $field, $display, $values); |
|
| 187 | + do_action('frm_field_options_form_top', $field, $display, $values); |
|
| 188 | 188 | |
| 189 | - ?> |
|
| 189 | + ?> |
|
| 190 | 190 | <?php |
| 191 | 191 | if ( $display['required'] ) { ?> |
| 192 | 192 | <div class="frm_required_details<?php echo esc_attr( $field['id'] . ( $field['required'] ? '' : ' frm_hidden' ) ); ?>"> |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | do_action( 'frm_' . $field['type'] . '_field_options_form', $field, $display, $values ); |
| 273 | 273 | do_action( 'frm_field_options_form', $field, $display, $values ); |
| 274 | 274 | |
| 275 | - if ( $display['required'] || $display['invalid'] || $display['unique'] || $display['conf_field'] ) { ?> |
|
| 275 | + if ( $display['required'] || $display['invalid'] || $display['unique'] || $display['conf_field'] ) { ?> |
|
| 276 | 276 | <tr class="frm_validation_msg <?php echo ($display['invalid'] || $field['required'] || FrmField::is_option_true( $field, 'unique' ) || FrmField::is_option_true( $field, 'conf_field' ) ) ? '' : 'frm_hidden'; ?>"> |
| 277 | 277 | <td colspan="2"> |
| 278 | 278 | <div class="menu-settings"> |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | <input type="text" name="field_options[blank_<?php echo esc_attr( $field['id'] ) ?>]" value="<?php echo esc_attr( $field['blank'] ); ?>" /> |
| 286 | 286 | </p> |
| 287 | 287 | <?php |
| 288 | - } |
|
| 288 | + } |
|
| 289 | 289 | |
| 290 | 290 | if ( $display['invalid'] ) { ?> |
| 291 | 291 | <p><label><?php _e( 'Invalid Format', 'formidable' ) ?></label> |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | <input type="text" name="field_options[unique_msg_<?php echo esc_attr( $field['id'] ) ?>]" value="<?php echo esc_attr( $field['unique_msg'] ); ?>" /> |
| 301 | 301 | </p> |
| 302 | 302 | <?php |
| 303 | - } |
|
| 303 | + } |
|
| 304 | 304 | |
| 305 | 305 | if ( $display['conf_field'] ) { ?> |
| 306 | 306 | <p class="frm_conf_details<?php echo esc_attr( $field['id'] . ( $field['conf_field'] ? '' : ' frm_hidden' ) ); ?>"> |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | <input type="text" name="field_options[conf_msg_<?php echo esc_attr( $field['id'] ) ?>]" value="<?php echo esc_attr( $field['conf_msg'] ); ?>" /> |
| 309 | 309 | </p> |
| 310 | 310 | <?php |
| 311 | - } ?> |
|
| 311 | + } ?> |
|
| 312 | 312 | </div> |
| 313 | 313 | </div> |
| 314 | 314 | </td> |
@@ -1,22 +1,22 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -$display = apply_filters('frm_display_field_options', array( |
|
| 3 | +$display = apply_filters( 'frm_display_field_options', array( |
|
| 4 | 4 | 'type' => $field['type'], 'field_data' => $field, |
| 5 | 5 | 'required' => true, 'unique' => false, 'read_only' => false, |
| 6 | 6 | 'description' => true, 'options' => true, 'label_position' => true, |
| 7 | 7 | 'invalid' => false, 'size' => false, 'clear_on_focus' => false, |
| 8 | 8 | 'default_blank' => true, 'css' => true, 'conf_field' => false, |
| 9 | 9 | 'max' => true, 'captcha_size' => false, |
| 10 | -)); |
|
| 10 | +) ); |
|
| 11 | 11 | |
| 12 | 12 | $li_classes = 'form-field edit_form_item frm_field_box frm_top_container frm_not_divider edit_field_type_' . $display['type']; |
| 13 | -$li_classes = apply_filters('frm_build_field_class', $li_classes, $field ); |
|
| 13 | +$li_classes = apply_filters( 'frm_build_field_class', $li_classes, $field ); |
|
| 14 | 14 | |
| 15 | 15 | if ( isset( $values ) && isset( $values['ajax_load'] ) && $values['ajax_load'] && isset( $count ) && $count > 10 && ! in_array( $field['type'], array( 'divider', 'end_divider' ) ) ) { |
| 16 | 16 | ?> |
| 17 | 17 | <li id="frm_field_id_<?php echo esc_attr( $field['id'] ); ?>" class="<?php echo esc_attr( $li_classes ) ?> frm_field_loading" data-fid="<?php echo esc_attr( $field['id'] ) ?>" data-formid="<?php echo esc_attr( 'divider' == $field['type'] ? $field['form_select'] : $field['form_id'] ); ?>" data-ftype="<?php echo esc_attr( $display['type'] ) ?>"> |
| 18 | 18 | <img src="<?php echo FrmAppHelper::plugin_url() ?>/images/ajax_loader.gif" alt="<?php esc_attr_e( 'Loading', 'formidable' ) ?>" /> |
| 19 | -<span class="frm_hidden_fdata frm_hidden"><?php echo htmlspecialchars(json_encode($field)) ?></span> |
|
| 19 | +<span class="frm_hidden_fdata frm_hidden"><?php echo htmlspecialchars( json_encode( $field ) ) ?></span> |
|
| 20 | 20 | </li> |
| 21 | 21 | <?php |
| 22 | 22 | return; |
@@ -25,8 +25,8 @@ discard block |
||
| 25 | 25 | $frm_settings = FrmAppHelper::get_settings(); |
| 26 | 26 | |
| 27 | 27 | if ( ! isset( $frm_all_field_selection ) ) { |
| 28 | - if ( isset($frm_field_selection) && isset($pro_field_selection) ) { |
|
| 29 | - $frm_all_field_selection = array_merge($frm_field_selection, $pro_field_selection); |
|
| 28 | + if ( isset( $frm_field_selection ) && isset( $pro_field_selection ) ) { |
|
| 29 | + $frm_all_field_selection = array_merge( $frm_field_selection, $pro_field_selection ); |
|
| 30 | 30 | } else { |
| 31 | 31 | $pro_field_selection = FrmField::pro_field_selection(); |
| 32 | 32 | $frm_all_field_selection = array_merge( FrmField::field_selection(), $pro_field_selection ); |
@@ -51,8 +51,8 @@ discard block |
||
| 51 | 51 | <a href="javascript:void(0);" class="frm_bstooltip alignright frm-show-hover frm-move frm-hover-icon frm_icon_font frm_move_icon" title="<?php esc_attr_e( 'Move Field', 'formidable' ) ?>"> </a> |
| 52 | 52 | <a href="#" class="frm_bstooltip alignright frm-show-hover frm-hover-icon frm_icon_font frm_delete_icon frm_delete_field" title="<?php esc_attr_e( 'Delete Field', 'formidable' ) ?>"> </a> |
| 53 | 53 | <a href="#" class="frm_bstooltip alignright frm-show-hover frm-hover-icon frm_icon_font frm_duplicate_icon" title="<?php ( $field['type'] == 'divider' ) ? esc_attr_e( 'Duplicate Section', 'formidable' ) : esc_attr_e( 'Duplicate Field', 'formidable' ) ?>"> </a> |
| 54 | - <input type="hidden" name="frm_fields_submitted[]" value="<?php echo esc_attr($field['id']) ?>" /> |
|
| 55 | - <?php do_action('frm_extra_field_actions', $field['id']); ?> |
|
| 54 | + <input type="hidden" name="frm_fields_submitted[]" value="<?php echo esc_attr( $field['id'] ) ?>" /> |
|
| 55 | + <?php do_action( 'frm_extra_field_actions', $field['id'] ); ?> |
|
| 56 | 56 | <?php if ( $display['required'] ) { ?> |
| 57 | 57 | <span id="require_field_<?php echo esc_attr( $field['id'] ); ?>"> |
| 58 | 58 | <a href="javascript:void(0);" class="frm_req_field frm_action_icon frm_required_icon frm_icon_font alignleft frm_required<?php echo (int) $field['required'] ?>" id="req_field_<?php echo esc_attr( $field['id'] ); ?>" title="Click to Mark as <?php echo FrmField::is_required( $field ) ? 'not ' : ''; ?>Required"></a> |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | <?php } |
| 61 | 61 | |
| 62 | 62 | ?> |
| 63 | - <label class="<?php echo ( $field['type'] == 'end_divider' ) ? '' : 'frm_ipe_field_label'; ?> frm_primary_label <?php echo ( $field['type'] == 'break' ) ? 'button': ''; ?>" id="field_label_<?php echo esc_attr( $field['id'] ); ?>"><?php echo ( $field['name'] == '' ) ? __( '(no label)', 'formidable' ) : force_balance_tags( $field['name'] ); ?></label> |
|
| 63 | + <label class="<?php echo ( $field['type'] == 'end_divider' ) ? '' : 'frm_ipe_field_label'; ?> frm_primary_label <?php echo ( $field['type'] == 'break' ) ? 'button' : ''; ?>" id="field_label_<?php echo esc_attr( $field['id'] ); ?>"><?php echo ( $field['name'] == '' ) ? __( '(no label)', 'formidable' ) : force_balance_tags( $field['name'] ); ?></label> |
|
| 64 | 64 | |
| 65 | 65 | |
| 66 | 66 | <div id="field_<?php echo esc_attr( $field['id'] ) ?>_inner_container" class="frm_inner_field_container"> |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | </div> |
| 79 | 79 | <?php |
| 80 | 80 | if ( $display['description'] ) { ?> |
| 81 | - <div class="frm_ipe_field_desc description <?php echo ($field['description'] == '') ? 'frm-show-click' : '' ?>" id="field_description_<?php echo esc_attr( $field['id'] ); ?>"><?php echo ($field['description'] == '') ? __( '(Click to add description)', 'formidable' ) : force_balance_tags( $field['description'] ); ?></div> |
|
| 81 | + <div class="frm_ipe_field_desc description <?php echo ( $field['description'] == '' ) ? 'frm-show-click' : '' ?>" id="field_description_<?php echo esc_attr( $field['id'] ); ?>"><?php echo ( $field['description'] == '' ) ? __( '(Click to add description)', 'formidable' ) : force_balance_tags( $field['description'] ); ?></div> |
|
| 82 | 82 | <input type="hidden" name="field_options[description_<?php echo esc_attr( $field['id'] ) ?>]" value="<?php echo esc_attr( $field['description'] ); ?>" /> |
| 83 | 83 | |
| 84 | 84 | <?php } ?> |
@@ -90,8 +90,8 @@ discard block |
||
| 90 | 90 | <div class="frm_form_fields"> |
| 91 | 91 | <input type="text" id="conf_field_<?php echo esc_attr( $field['field_key'] ) ?>" name="field_options[conf_input_<?php echo esc_attr( $field['id'] ) ?>]" value="<?php echo esc_attr( $field['conf_input'] ); ?>" class="dyn_default_value" /> |
| 92 | 92 | </div> |
| 93 | - <div id="conf_field_description_<?php echo esc_attr( $field['id'] ) ?>" class="frm_ipe_field_conf_desc description <?php echo ($field['conf_desc'] == '') ? 'frm-show-click' : '' ?>"><?php |
|
| 94 | - echo ($field['conf_desc'] == '') ? __( '(Click to add description)', 'formidable' ) : force_balance_tags($field['conf_desc']); ?></div> |
|
| 93 | + <div id="conf_field_description_<?php echo esc_attr( $field['id'] ) ?>" class="frm_ipe_field_conf_desc description <?php echo ( $field['conf_desc'] == '' ) ? 'frm-show-click' : '' ?>"><?php |
|
| 94 | + echo ( $field['conf_desc'] == '' ) ? __( '(Click to add description)', 'formidable' ) : force_balance_tags( $field['conf_desc'] ); ?></div> |
|
| 95 | 95 | <input type="hidden" name="field_options[conf_desc_<?php echo esc_attr( $field['id'] ) ?>]" value="<?php echo esc_attr( $field['conf_desc'] ); ?>" /> |
| 96 | 96 | </div> |
| 97 | 97 | <?php if ( $display['clear_on_focus'] ) { ?> |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | if ( in_array( $field['type'], array( 'select', 'radio', 'checkbox' ) ) ) { ?> |
| 107 | 107 | <div class="frm-show-click frm_small_top_margin"><?php |
| 108 | 108 | |
| 109 | - if ( isset($field['post_field']) && $field['post_field'] == 'post_category' ) { |
|
| 109 | + if ( isset( $field['post_field'] ) && $field['post_field'] == 'post_category' ) { |
|
| 110 | 110 | echo '<p class="howto">' . FrmFieldsHelper::get_term_link( $field['taxonomy'] ) . '</p>'; |
| 111 | 111 | } else if ( ! isset( $field['post_field'] ) || ! in_array( $field['post_field'], array( 'post_category' ) ) ) { |
| 112 | 112 | ?> |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | <?php |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | - if ( ! isset($field['post_field']) || $field['post_field'] != 'post_category' ) { ?> |
|
| 123 | + if ( ! isset( $field['post_field'] ) || $field['post_field'] != 'post_category' ) { ?> |
|
| 124 | 124 | <a href="<?php echo esc_url( admin_url( 'admin-ajax.php?action=frm_import_choices&field_id=' . $field['id'] . '&TB_iframe=1' ) ) ?>" title="<?php echo esc_attr( FrmAppHelper::truncate( strip_tags( str_replace( '"', '"', $field['name'] ) ), 20 ) . ' ' . __( 'Field Choices', 'formidable' ) ); ?>" class="thickbox frm_orange"> |
| 125 | 125 | <?php _e( 'Bulk Edit Options', 'formidable' ) ?> |
| 126 | 126 | </a> |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | <?php |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | -do_action('frm_before_field_options', $field); |
|
| 136 | +do_action( 'frm_before_field_options', $field ); |
|
| 137 | 137 | |
| 138 | 138 | if ( $display['options'] ) { ?> |
| 139 | 139 | <div class="widget"> |
@@ -143,13 +143,13 @@ discard block |
||
| 143 | 143 | </div> |
| 144 | 144 | <div class="widget-inside"> |
| 145 | 145 | <table class="form-table frm_clear_none"> |
| 146 | - <?php $field_types = FrmFieldsHelper::get_field_types($field['type']); ?> |
|
| 146 | + <?php $field_types = FrmFieldsHelper::get_field_types( $field['type'] ); ?> |
|
| 147 | 147 | <tr><td class="frm_150_width"><label><?php _e( 'Field Type', 'formidable' ) ?></label></td> |
| 148 | 148 | <td> |
| 149 | - <select <?php if ( count($field_types) == 1 ) { ?>disabled="disabled"<?php } else { ?>name="field_options[type_<?php echo esc_attr( $field['id'] ) ?>]"<?php } ?>> |
|
| 149 | + <select <?php if ( count( $field_types ) == 1 ) { ?>disabled="disabled"<?php } else { ?>name="field_options[type_<?php echo esc_attr( $field['id'] ) ?>]"<?php } ?>> |
|
| 150 | 150 | <?php |
| 151 | 151 | foreach ( $field_types as $fkey => $ftype ) { ?> |
| 152 | - <option value="<?php echo esc_attr( $fkey ) ?>" <?php echo ( $fkey == $field['type'] ) ? ' selected="selected"' : ''; ?> <?php echo array_key_exists($fkey, $disabled_fields ) ? 'disabled="disabled"' : ''; ?>><?php echo is_array($ftype) ? $ftype['name'] : $ftype ?> </option> |
|
| 152 | + <option value="<?php echo esc_attr( $fkey ) ?>" <?php echo ( $fkey == $field['type'] ) ? ' selected="selected"' : ''; ?> <?php echo array_key_exists( $fkey, $disabled_fields ) ? 'disabled="disabled"' : ''; ?>><?php echo is_array( $ftype ) ? $ftype['name'] : $ftype ?> </option> |
|
| 153 | 153 | <?php |
| 154 | 154 | unset( $fkey, $ftype ); |
| 155 | 155 | } ?> |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | </label> |
| 185 | 185 | <?php } |
| 186 | 186 | |
| 187 | - do_action('frm_field_options_form_top', $field, $display, $values); |
|
| 187 | + do_action( 'frm_field_options_form_top', $field, $display, $values ); |
|
| 188 | 188 | |
| 189 | 189 | ?> |
| 190 | 190 | <?php |
@@ -221,13 +221,13 @@ discard block |
||
| 221 | 221 | if ( $display['label_position'] ) { ?> |
| 222 | 222 | <tr><td class="frm_150_width"><label><?php _e( 'Label Position', 'formidable' ) ?></label></td> |
| 223 | 223 | <td><select name="field_options[label_<?php echo esc_attr( $field['id'] ) ?>]"> |
| 224 | - <option value=""<?php selected($field['label'], ''); ?>><?php _e( 'Default', 'formidable' ) ?></option> |
|
| 225 | - <option value="top"<?php selected($field['label'], 'top'); ?>><?php _e( 'Top', 'formidable' ) ?></option> |
|
| 226 | - <option value="left"<?php selected($field['label'], 'left'); ?>><?php _e( 'Left', 'formidable' ) ?></option> |
|
| 227 | - <option value="right"<?php selected($field['label'], 'right'); ?>><?php _e( 'Right', 'formidable' ) ?></option> |
|
| 228 | - <option value="inline"<?php selected($field['label'], 'inline'); ?>><?php _e( 'Inline (left without a set width)', 'formidable' ) ?></option> |
|
| 229 | - <option value="none"<?php selected($field['label'], 'none'); ?>><?php _e( 'None', 'formidable' ) ?></option> |
|
| 230 | - <option value="hidden"<?php selected($field['label'], 'hidden'); ?>><?php _e( 'Hidden (but leave the space)', 'formidable' ) ?></option> |
|
| 224 | + <option value=""<?php selected( $field['label'], '' ); ?>><?php _e( 'Default', 'formidable' ) ?></option> |
|
| 225 | + <option value="top"<?php selected( $field['label'], 'top' ); ?>><?php _e( 'Top', 'formidable' ) ?></option> |
|
| 226 | + <option value="left"<?php selected( $field['label'], 'left' ); ?>><?php _e( 'Left', 'formidable' ) ?></option> |
|
| 227 | + <option value="right"<?php selected( $field['label'], 'right' ); ?>><?php _e( 'Right', 'formidable' ) ?></option> |
|
| 228 | + <option value="inline"<?php selected( $field['label'], 'inline' ); ?>><?php _e( 'Inline (left without a set width)', 'formidable' ) ?></option> |
|
| 229 | + <option value="none"<?php selected( $field['label'], 'none' ); ?>><?php _e( 'None', 'formidable' ) ?></option> |
|
| 230 | + <option value="hidden"<?php selected( $field['label'], 'hidden' ); ?>><?php _e( 'Hidden (but leave the space)', 'formidable' ) ?></option> |
|
| 231 | 231 | </select> |
| 232 | 232 | </td> |
| 233 | 233 | </tr> |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | do_action( 'frm_field_options_form', $field, $display, $values ); |
| 282 | 282 | |
| 283 | 283 | if ( $display['required'] || $display['invalid'] || $display['unique'] || $display['conf_field'] ) { ?> |
| 284 | - <tr class="frm_validation_msg <?php echo ($display['invalid'] || $field['required'] || FrmField::is_option_true( $field, 'unique' ) || FrmField::is_option_true( $field, 'conf_field' ) ) ? '' : 'frm_hidden'; ?>"> |
|
| 284 | + <tr class="frm_validation_msg <?php echo ( $display['invalid'] || $field['required'] || FrmField::is_option_true( $field, 'unique' ) || FrmField::is_option_true( $field, 'conf_field' ) ) ? '' : 'frm_hidden'; ?>"> |
|
| 285 | 285 | <td colspan="2"> |
| 286 | 286 | <div class="menu-settings"> |
| 287 | 287 | <h3 class="frm_no_bg"><?php _e( 'Validation', 'formidable' ) ?></h3> |
@@ -345,4 +345,4 @@ discard block |
||
| 345 | 345 | <?php |
| 346 | 346 | } |
| 347 | 347 | |
| 348 | -unset($display); |
|
| 348 | +unset( $display ); |
|
@@ -65,18 +65,18 @@ discard block |
||
| 65 | 65 | </ul> |
| 66 | 66 | </li> |
| 67 | 67 | <?php |
| 68 | - } else { |
|
| 69 | - $field_label = $field_type; |
|
| 70 | - ?> |
|
| 68 | + } else { |
|
| 69 | + $field_label = $field_type; |
|
| 70 | + ?> |
|
| 71 | 71 | <li class="frmbutton button <?php echo esc_attr( $col_class . ' ' . $no_allow_class . ' frm_t' . $field_key ) ?>" id="<?php echo esc_attr( $field_key ) ?>"> |
| 72 | 72 | <?php echo apply_filters( 'frmpro_field_links', $field_label, $id, $field_key ) ?> |
| 73 | 73 | </li> |
| 74 | 74 | <?php |
| 75 | - } |
|
| 75 | + } |
|
| 76 | 76 | |
| 77 | - $col_class = empty($col_class) ? 'frm_col_one' : ''; |
|
| 78 | - unset($field_key, $field_type, $field_label); |
|
| 79 | - } ?> |
|
| 77 | + $col_class = empty($col_class) ? 'frm_col_one' : ''; |
|
| 78 | + unset($field_key, $field_type, $field_label); |
|
| 79 | + } ?> |
|
| 80 | 80 | </ul> |
| 81 | 81 | <div class="clear"></div> |
| 82 | 82 | </div> |
@@ -87,33 +87,33 @@ discard block |
||
| 87 | 87 | <?php _e( '2. This box will activate and you can click to insert classes.', 'formidable' ) ?></p> |
| 88 | 88 | <ul class="frm_code_list"> |
| 89 | 89 | <?php $classes = array( |
| 90 | - 'frm_first' => array( |
|
| 91 | - 'label' => __( 'First', 'formidable' ), |
|
| 92 | - 'title' => __( 'Add this to the first field in each row along with a width. ie frm_first frm_third', 'formidable' ), |
|
| 93 | - ), |
|
| 94 | - 'frm_half' => __( '1/2', 'formidable' ), |
|
| 95 | - 'frm_third' => __( '1/3', 'formidable' ), |
|
| 96 | - 'frm_two_thirds' => __( '2/3', 'formidable' ), |
|
| 97 | - 'frm_fourth' => __( '1/4', 'formidable' ), |
|
| 90 | + 'frm_first' => array( |
|
| 91 | + 'label' => __( 'First', 'formidable' ), |
|
| 92 | + 'title' => __( 'Add this to the first field in each row along with a width. ie frm_first frm_third', 'formidable' ), |
|
| 93 | + ), |
|
| 94 | + 'frm_half' => __( '1/2', 'formidable' ), |
|
| 95 | + 'frm_third' => __( '1/3', 'formidable' ), |
|
| 96 | + 'frm_two_thirds' => __( '2/3', 'formidable' ), |
|
| 97 | + 'frm_fourth' => __( '1/4', 'formidable' ), |
|
| 98 | 98 | 'frm_three_fourths' => __( '3/4', 'formidable' ), |
| 99 | - 'frm_fifth' => __( '1/5', 'formidable' ), |
|
| 99 | + 'frm_fifth' => __( '1/5', 'formidable' ), |
|
| 100 | 100 | 'frm_two_fifths' => __( '2/5', 'formidable' ), |
| 101 | - 'frm_sixth' => __( '1/6', 'formidable' ), |
|
| 102 | - 'frm_seventh' => __( '1/7', 'formidable' ), |
|
| 101 | + 'frm_sixth' => __( '1/6', 'formidable' ), |
|
| 102 | + 'frm_seventh' => __( '1/7', 'formidable' ), |
|
| 103 | 103 | 'frm_eighth' => __( '1/8', 'formidable' ), |
| 104 | 104 | 'frm_alignright' => __( 'Right', 'formidable' ), |
| 105 | - 'frm_inline' => array( |
|
| 106 | - 'label' => __( 'Inline', 'formidable' ), |
|
| 105 | + 'frm_inline' => array( |
|
| 106 | + 'label' => __( 'Inline', 'formidable' ), |
|
| 107 | 107 | 'title' => __( 'Align fields in a row without a specific width.', 'formidable' ), |
| 108 | - ), |
|
| 108 | + ), |
|
| 109 | 109 | |
| 110 | - 'frm_full' => array( |
|
| 111 | - 'label' => __( '100% width', 'formidable' ), |
|
| 110 | + 'frm_full' => array( |
|
| 111 | + 'label' => __( '100% width', 'formidable' ), |
|
| 112 | 112 | 'title' => __( 'Force the field to fill the full space with 100% width.', 'formidable' ), |
| 113 | - ), |
|
| 114 | - 'frm_grid_first' => __( 'First Grid Row', 'formidable' ), |
|
| 115 | - 'frm_grid' => __( 'Even Grid Row', 'formidable' ), |
|
| 116 | - 'frm_grid_odd' => __( 'Odd Grid Row', 'formidable' ), |
|
| 113 | + ), |
|
| 114 | + 'frm_grid_first' => __( 'First Grid Row', 'formidable' ), |
|
| 115 | + 'frm_grid' => __( 'Even Grid Row', 'formidable' ), |
|
| 116 | + 'frm_grid_odd' => __( 'Odd Grid Row', 'formidable' ), |
|
| 117 | 117 | 'frm_two_col' => array( 'label' => __( '2 Col Options', 'formidable' ), 'title' => __( 'Put your radio button or checkbox options into two columns.', 'formidable' ) ), |
| 118 | 118 | 'frm_three_col' => array( 'label' => __( '3 Col Options', 'formidable' ), 'title' => __( 'Put your radio button or checkbox options into three columns.', 'formidable' ) ), |
| 119 | 119 | 'frm_four_col' => array( 'label' => __( '4 Col Options', 'formidable' ), 'title' => __( 'Put your radio button or checkbox options into four columns.', 'formidable' ) ), |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | 'frm_scroll_box' => array( 'label' => __( 'Scroll Box', 'formidable' ), 'title' => __( 'If you have many checkbox or radio button options, you may add this class to allow your user to easily scroll through the options.', 'formidable' ) ), |
| 122 | 122 | 'frm_text_block' => array( 'label' => __( 'Align Option Text', 'formidable' ), 'title' => __( 'If you have a large amount of text in a checkbox or radio button field, use this class to align all the text in a block.', 'formidable' ) ), |
| 123 | 123 | 'frm_capitalize' => array( 'label' => __( 'Capitalize', 'formidable' ), 'title' => __( 'Automatically capitalize the first letter in each word.', 'formidable' ) ), |
| 124 | - ); |
|
| 124 | + ); |
|
| 125 | 125 | |
| 126 | 126 | $classes = apply_filters( 'frm_layout_classes', $classes ); |
| 127 | 127 | $col = 'one'; |
@@ -138,11 +138,11 @@ discard block |
||
| 138 | 138 | } ?>> |
| 139 | 139 | <?php |
| 140 | 140 | if ( empty( $d ) ) { |
| 141 | - echo $c; |
|
| 141 | + echo $c; |
|
| 142 | 142 | } else if ( ! is_array( $d ) ) { |
| 143 | - echo $d; |
|
| 143 | + echo $d; |
|
| 144 | 144 | } else if ( isset( $d['label'] ) ) { |
| 145 | - echo $d['label']; |
|
| 145 | + echo $d['label']; |
|
| 146 | 146 | } |
| 147 | 147 | ?> |
| 148 | 148 | </a> |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | <ul id="category-tabs" class="category-tabs frm-category-tabs"> |
| 18 | 18 | <li class="tabs" ><a href="#frm-insert-fields" id="frm_insert_fields_tab"><?php _e( 'Fields', 'formidable' ); ?></a></li> |
| 19 | 19 | <li class="hide-if-no-js"><a href="#frm-layout-classes" id="frm_layout_classes_tab" class="frm_help" title="<?php esc_attr_e( 'Open the Field Options and click on the CSS Layout Classes option to enable this tab', 'formidable' ) ?>"><?php _e( 'Layout', 'formidable' ); ?></a></li> |
| 20 | -<?php do_action('frm_extra_form_instruction_tabs'); ?> |
|
| 20 | +<?php do_action( 'frm_extra_form_instruction_tabs' ); ?> |
|
| 21 | 21 | </ul> |
| 22 | 22 | |
| 23 | 23 | <div id="frm-insert-fields" class="tabs-panel"> |
@@ -74,13 +74,13 @@ discard block |
||
| 74 | 74 | <?php |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - $col_class = empty($col_class) ? 'frm_col_one' : ''; |
|
| 78 | - unset($field_key, $field_type, $field_label); |
|
| 77 | + $col_class = empty( $col_class ) ? 'frm_col_one' : ''; |
|
| 78 | + unset( $field_key, $field_type, $field_label ); |
|
| 79 | 79 | } ?> |
| 80 | 80 | </ul> |
| 81 | 81 | <div class="clear"></div> |
| 82 | 82 | </div> |
| 83 | - <?php do_action('frm_extra_form_instructions'); ?> |
|
| 83 | + <?php do_action( 'frm_extra_form_instructions' ); ?> |
|
| 84 | 84 | |
| 85 | 85 | <div id="frm-layout-classes" class="tabs-panel"> |
| 86 | 86 | <p class="howto"><?php _e( '1. Click inside the "CSS layout classes" field option in any field.', 'formidable' ) ?><br/> |
@@ -132,9 +132,9 @@ discard block |
||
| 132 | 132 | <a href="javascript:void(0);" class="frmbutton frm_insert_code button show_frm_classes<?php |
| 133 | 133 | if ( ! empty( $title ) ) { |
| 134 | 134 | echo ' frm_help'; |
| 135 | - } ?>" data-code="<?php echo esc_attr($c) ?>" <?php |
|
| 135 | + } ?>" data-code="<?php echo esc_attr( $c ) ?>" <?php |
|
| 136 | 136 | if ( ! empty( $title ) ) { |
| 137 | - ?>title="<?php echo esc_attr($title); ?>"<?php |
|
| 137 | + ?>title="<?php echo esc_attr( $title ); ?>"<?php |
|
| 138 | 138 | } ?>> |
| 139 | 139 | <?php |
| 140 | 140 | if ( empty( $d ) ) { |
@@ -159,14 +159,14 @@ discard block |
||
| 159 | 159 | |
| 160 | 160 | <div class="submitbox" id="major-publishing-actions"> |
| 161 | 161 | <div id="delete-action"> |
| 162 | - <?php echo FrmFormsHelper::delete_trash_link($id, $values['status']); ?> |
|
| 162 | + <?php echo FrmFormsHelper::delete_trash_link( $id, $values['status'] ); ?> |
|
| 163 | 163 | </div> |
| 164 | 164 | |
| 165 | 165 | <div id="publishing-action"> |
| 166 | 166 | <form method="post" id="frm_js_build_form"> |
| 167 | 167 | <span class="spinner"></span> |
| 168 | 168 | <input type="hidden" id="frm_compact_fields" name="frm_compact_fields" value="" /> |
| 169 | - <input type="button" value="<?php echo esc_attr($button) ?>" class="frm_submit_form frm_submit_<?php echo ( isset($values['ajax_load']) && $values['ajax_load'] ) ? '': 'no_'; ?>ajax button-primary button-large" id="frm_submit_side" /> |
|
| 169 | + <input type="button" value="<?php echo esc_attr( $button ) ?>" class="frm_submit_form frm_submit_<?php echo ( isset( $values['ajax_load'] ) && $values['ajax_load'] ) ? '' : 'no_'; ?>ajax button-primary button-large" id="frm_submit_side" /> |
|
| 170 | 170 | </form> |
| 171 | 171 | </div> |
| 172 | 172 | <div class="clear"></div> |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | FrmAppController::get_form_nav( $id, true, 'hide' ); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - ?> |
|
| 22 | + ?> |
|
| 23 | 23 | <div class="frm_form_builder with_frm_style"> |
| 24 | 24 | |
| 25 | 25 | <p class="frm_hidden frm-no-margin"> |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <div class="wrap"> |
| 2 | - <h2><?php echo ( $form->is_template ? __( 'Templates', 'formidable' ) : __( 'Build', 'formidable' )); ?> |
|
| 2 | + <h2><?php echo ( $form->is_template ? __( 'Templates', 'formidable' ) : __( 'Build', 'formidable' ) ); ?> |
|
| 3 | 3 | <a href="?page=formidable&frm_action=new" class="add-new-h2"><?php _e( 'Add New', 'formidable' ); ?></a> |
| 4 | 4 | </h2> |
| 5 | 5 | |
@@ -1,10 +1,10 @@ discard block |
||
| 1 | 1 | <div class="posttypediv"> |
| 2 | 2 | <ul class="posttype-tabs add-menu-item-tabs"> |
| 3 | 3 | <li <?php echo ( 'default' == $current_tab ? ' class="tabs"' : '' ); ?>> |
| 4 | - <a href="<?php echo esc_url('?page=formidable-styles&page-tab=default#tabs-panel-success-msg') ?>" class="nav-tab-link" data-type="tabs-panel-success-msg" ><?php _e( 'Success', 'formidable' ) ?></a> |
|
| 4 | + <a href="<?php echo esc_url( '?page=formidable-styles&page-tab=default#tabs-panel-success-msg' ) ?>" class="nav-tab-link" data-type="tabs-panel-success-msg" ><?php _e( 'Success', 'formidable' ) ?></a> |
|
| 5 | 5 | </li> |
| 6 | 6 | <li <?php echo ( 'error-msg' == $current_tab ? ' class="tabs"' : '' ); ?>> |
| 7 | - <a href="<?php echo esc_url('?page=formidable-styles&page-tab=error-msge#page-error-msg') ?>" class="nav-tab-link" data-type="tabs-panel-error-msg" ><?php _e( 'Error', 'formidable' ) ?></a> |
|
| 7 | + <a href="<?php echo esc_url( '?page=formidable-styles&page-tab=error-msge#page-error-msg' ) ?>" class="nav-tab-link" data-type="tabs-panel-error-msg" ><?php _e( 'Error', 'formidable' ) ?></a> |
|
| 8 | 8 | </li> |
| 9 | 9 | </ul><!-- .posttype-tabs --> |
| 10 | 10 | |
@@ -14,19 +14,19 @@ discard block |
||
| 14 | 14 | <div class="field-group field-group-border clearfix"> |
| 15 | 15 | <label><?php _e( 'BG color', 'formidable' ) ?></label> |
| 16 | 16 | <div class="hasPicker"> |
| 17 | - <input name="<?php echo esc_attr( $frm_style->get_field_name('success_bg_color') ) ?>" id="frm_success_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_bg_color'] ) ?>" type="text" /></div> |
|
| 17 | + <input name="<?php echo esc_attr( $frm_style->get_field_name( 'success_bg_color' ) ) ?>" id="frm_success_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_bg_color'] ) ?>" type="text" /></div> |
|
| 18 | 18 | </div> |
| 19 | 19 | <div class="field-group clearfix"> |
| 20 | 20 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
| 21 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('success_border_color') ) ?>" id="frm_success_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_border_color'] ) ?>" /> |
|
| 21 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'success_border_color' ) ) ?>" id="frm_success_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_border_color'] ) ?>" /> |
|
| 22 | 22 | </div> |
| 23 | 23 | <div class="field-group clearfix"> |
| 24 | 24 | <label><?php _e( 'Text', 'formidable' ) ?></label> |
| 25 | - <input name="<?php echo esc_attr( $frm_style->get_field_name('success_text_color') ) ?>" id="frm_success_text_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_text_color'] ) ?>" type="text" /> |
|
| 25 | + <input name="<?php echo esc_attr( $frm_style->get_field_name( 'success_text_color' ) ) ?>" id="frm_success_text_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_text_color'] ) ?>" type="text" /> |
|
| 26 | 26 | </div> |
| 27 | 27 | <div class="field-group clearfix"> |
| 28 | 28 | <label><?php _e( 'Size', 'formidable' ) ?></label> |
| 29 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('success_font_size') ) ?>" id="frm_success_font_size" value="<?php echo esc_attr( $style->post_content['success_font_size'] ) ?>" size="3" /> |
|
| 29 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'success_font_size' ) ) ?>" id="frm_success_font_size" value="<?php echo esc_attr( $style->post_content['success_font_size'] ) ?>" size="3" /> |
|
| 30 | 30 | </div> |
| 31 | 31 | <div class="clear"></div> |
| 32 | 32 | </div><!-- /.tabs-panel --> |
@@ -37,21 +37,21 @@ discard block |
||
| 37 | 37 | <div class="field-group field-group-border clearfix"> |
| 38 | 38 | <label><?php _e( 'BG color', 'formidable' ) ?></label> |
| 39 | 39 | <div class="hasPicker"> |
| 40 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('error_bg') ) ?>" id="frm_error_bg" class="hex" value="<?php echo esc_attr($style->post_content['error_bg']) ?>" /></div> |
|
| 40 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'error_bg' ) ) ?>" id="frm_error_bg" class="hex" value="<?php echo esc_attr( $style->post_content['error_bg'] ) ?>" /></div> |
|
| 41 | 41 | </div> |
| 42 | 42 | <div class="field-group clearfix"> |
| 43 | 43 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
| 44 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('error_border') ) ?>" id="frm_error_border" class="hex" value="<?php echo esc_attr( $style->post_content['error_border'] ) ?>" /> |
|
| 44 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'error_border' ) ) ?>" id="frm_error_border" class="hex" value="<?php echo esc_attr( $style->post_content['error_border'] ) ?>" /> |
|
| 45 | 45 | </div> |
| 46 | 46 | <div class="field-group clearfix"> |
| 47 | 47 | |
| 48 | 48 | <label><?php _e( 'Text', 'formidable' ) ?></label> |
| 49 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('error_text') ) ?>" id="frm_error_text" class="hex" value="<?php echo esc_attr( $style->post_content['error_text'] ) ?>" /> |
|
| 49 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'error_text' ) ) ?>" id="frm_error_text" class="hex" value="<?php echo esc_attr( $style->post_content['error_text'] ) ?>" /> |
|
| 50 | 50 | </div> |
| 51 | 51 | |
| 52 | 52 | <div class="field-group clearfix"> |
| 53 | 53 | <label><?php _e( 'Size', 'formidable' ) ?></label> |
| 54 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('error_font_size') ) ?>" id="frm_error_font_size" value="<?php echo esc_attr( $style->post_content['error_font_size'] ) ?>" size="3" /> |
|
| 54 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'error_font_size' ) ) ?>" id="frm_error_font_size" value="<?php echo esc_attr( $style->post_content['error_font_size'] ) ?>" size="3" /> |
|
| 55 | 55 | </div> |
| 56 | 56 | <div class="clear"></div> |
| 57 | 57 | </div><!-- /.tabs-panel --> |
@@ -1,42 +1,42 @@ |
||
| 1 | 1 | <div class="field-group clearfix frm-first-row"> |
| 2 | 2 | <label><?php _e( 'Size', 'formidable' ) ?></label> |
| 3 | - <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'] ) ?>" /> |
|
| 3 | + <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'] ) ?>" /> |
|
| 4 | 4 | </div> |
| 5 | 5 | |
| 6 | 6 | <div class="field-group clearfix frm-first-row"> |
| 7 | 7 | <label><?php _e( 'Height', 'formidable' ) ?></label> |
| 8 | - <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'] ) ?>" /> |
|
| 8 | + <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'] ) ?>" /> |
|
| 9 | 9 | </div> |
| 10 | 10 | |
| 11 | 11 | <div class="field-group clearfix frm-first-row"> |
| 12 | 12 | <label><?php _e( 'Width', 'formidable' ) ?></label> |
| 13 | - <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'] ) ?>" /> |
|
| 13 | + <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'] ) ?>" /> |
|
| 14 | 14 | </div> |
| 15 | 15 | |
| 16 | 16 | <div class="clear"></div> |
| 17 | 17 | <p class="frm_no_bottom_margin"> |
| 18 | - <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 ) ?> /> |
|
| 18 | + <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 ) ?> /> |
|
| 19 | 19 | <?php _e( 'Automatic Width for drop-down fields', 'formidable' ) ?></label> |
| 20 | 20 | </p> |
| 21 | 21 | |
| 22 | 22 | <div class="field-group clearfix"> |
| 23 | 23 | <label><?php _e( 'Padding', 'formidable' ) ?></label> |
| 24 | - <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'] ) ?>" /> |
|
| 24 | + <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'] ) ?>" /> |
|
| 25 | 25 | </div> |
| 26 | 26 | |
| 27 | 27 | <div class="field-group clearfix"> |
| 28 | 28 | <label><?php _e( 'Margin', 'formidable' ) ?></label> |
| 29 | - <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'] ) ?>" /> |
|
| 29 | + <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'] ) ?>" /> |
|
| 30 | 30 | </div> |
| 31 | 31 | |
| 32 | 32 | <div class="field-group clearfix"> |
| 33 | 33 | <label><?php _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> |
| 34 | - <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" /> |
|
| 34 | + <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" /> |
|
| 35 | 35 | </div> |
| 36 | 36 | |
| 37 | 37 | <div class="field-group clearfix frm-first-row"> |
| 38 | 38 | <label><?php _e( 'Weight', 'formidable' ) ?></label> |
| 39 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('field_weight') ) ?>" id="frm_field_weight"> |
|
| 39 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'field_weight' ) ) ?>" id="frm_field_weight"> |
|
| 40 | 40 | <?php foreach ( FrmStyle::get_bold_options() as $value => $name ) { ?> |
| 41 | 41 | <option value="<?php echo esc_attr( $value ) ?>" <?php selected( $style->post_content['field_weight'], $value ) ?>><?php echo esc_attr( $name ) ?></option> |
| 42 | 42 | <?php } ?> |
@@ -1,26 +1,26 @@ discard block |
||
| 1 | 1 | <div class="field-group clearfix frm-half frm-first-row"> |
| 2 | 2 | <label><?php _e( 'Radio', 'formidable' ) ?></label> |
| 3 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('radio_align') ) ?>" id="frm_radio_align"> |
|
| 4 | - <option value="block" <?php selected($style->post_content['radio_align'], 'block') ?>><?php _e( 'Multiple Rows' , 'formidable' ) ?></option> |
|
| 5 | - <option value="inline" <?php selected($style->post_content['radio_align'], 'inline') ?>><?php _e( 'Single Row' , 'formidable' ) ?></option> |
|
| 3 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'radio_align' ) ) ?>" id="frm_radio_align"> |
|
| 4 | + <option value="block" <?php selected( $style->post_content['radio_align'], 'block' ) ?>><?php _e( 'Multiple Rows', 'formidable' ) ?></option> |
|
| 5 | + <option value="inline" <?php selected( $style->post_content['radio_align'], 'inline' ) ?>><?php _e( 'Single Row', 'formidable' ) ?></option> |
|
| 6 | 6 | </select> |
| 7 | 7 | </div> |
| 8 | 8 | |
| 9 | 9 | <div class="field-group clearfix frm-half frm-first-row"> |
| 10 | 10 | <label><?php _e( 'Check Box', 'formidable' ) ?></label> |
| 11 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('check_align') ) ?>" id="frm_check_align"> |
|
| 12 | - <option value="block" <?php selected($style->post_content['check_align'], 'block') ?>><?php _e( 'Multiple Rows' , 'formidable' ) ?></option> |
|
| 13 | - <option value="inline" <?php selected($style->post_content['check_align'], 'inline') ?>><?php _e( 'Single Row' , 'formidable' ) ?></option> |
|
| 11 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'check_align' ) ) ?>" id="frm_check_align"> |
|
| 12 | + <option value="block" <?php selected( $style->post_content['check_align'], 'block' ) ?>><?php _e( 'Multiple Rows', 'formidable' ) ?></option> |
|
| 13 | + <option value="inline" <?php selected( $style->post_content['check_align'], 'inline' ) ?>><?php _e( 'Single Row', 'formidable' ) ?></option> |
|
| 14 | 14 | </select> |
| 15 | 15 | </div> |
| 16 | 16 | |
| 17 | 17 | <div class="field-group field-group-background clearfix"> |
| 18 | 18 | <label><?php _e( 'Color', 'formidable' ) ?></label> |
| 19 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('check_label_color') ) ?>" id="frm_check_label_color" class="hex" value="<?php echo esc_attr( $style->post_content['check_label_color'] ) ?>" /> |
|
| 19 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'check_label_color' ) ) ?>" id="frm_check_label_color" class="hex" value="<?php echo esc_attr( $style->post_content['check_label_color'] ) ?>" /> |
|
| 20 | 20 | </div> |
| 21 | 21 | <div class="field-group clearfix"> |
| 22 | 22 | <label><?php _e( 'Weight', 'formidable' ) ?></label> |
| 23 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('check_weight') ) ?>" id="frm_check_weight"> |
|
| 23 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'check_weight' ) ) ?>" id="frm_check_weight"> |
|
| 24 | 24 | <?php foreach ( FrmStyle::get_bold_options() as $value => $name ) { ?> |
| 25 | 25 | <option value="<?php echo esc_attr( $value ) ?>" <?php selected( $style->post_content['check_weight'], $value ) ?>><?php echo esc_html( $name ) ?></option> |
| 26 | 26 | <?php } ?> |
@@ -28,5 +28,5 @@ discard block |
||
| 28 | 28 | </div> |
| 29 | 29 | <div class="field-group clearfix"> |
| 30 | 30 | <label><?php _e( 'Size', 'formidable' ) ?></label> |
| 31 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('check_font_size') ) ?>" id="frm_check_font_size" value="<?php echo esc_attr( $style->post_content['check_font_size'] ) ?>" size="3" /> |
|
| 31 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'check_font_size' ) ) ?>" id="frm_check_font_size" value="<?php echo esc_attr( $style->post_content['check_font_size'] ) ?>" size="3" /> |
|
| 32 | 32 | </div> |