| @@ -2,9 +2,8 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Submit field class |
| 4 | 4 | * |
| 5 | 5 | * @since 6.9 |
| 6 | - * | |
| 7 | 6 | * @package Formidable |
| 8 | 7 | */ |
| 9 | 8 | |
| 10 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -42,13 +41,15 @@ | ||
| 42 | 41 | * |
| 43 | 42 | * @return string |
| 44 | 43 | */ |
| 45 | 44 | public function default_html() { |
| 46 | - return <<<DEFAULT_HTML | |
| 45 | + $default_html = <<<DEFAULT_HTML | |
| 47 | 46 | <div id="frm_field_[id]_container" class="frm_form_field form-field [required_class][error_class]"> |
| 48 | 47 | [input] |
| 49 | 48 | </div> |
| 50 | 49 | DEFAULT_HTML; |
| 50 | + | |
| 51 | + return $default_html; | |
| 51 | 52 | } |
| 52 | 53 | |
| 53 | 54 | /** |
| 54 | 55 | * Sets settings for this field type. |
| @@ -55,9 +56,9 @@ | ||
| 55 | 56 | * |
| 56 | 57 | * @return array |
| 57 | 58 | */ |
| 58 | 59 | protected function field_settings_for_type() { |
| 59 | - return array( | |
| 60 | + $settings = array( | |
| 60 | 61 | 'required' => false, |
| 61 | 62 | 'visibility' => false, |
| 62 | 63 | 'label_position' => false, |
| 63 | 64 | 'options' => false, |
| @@ -64,8 +65,10 @@ | ||
| 64 | 65 | 'default' => false, |
| 65 | 66 | 'description' => false, |
| 66 | 67 | 'logic' => true, |
| 67 | 68 | ); |
| 69 | + | |
| 70 | + return $settings; | |
| 68 | 71 | } |
| 69 | 72 | |
| 70 | 73 | /** |
| 71 | 74 | * Includes form builder file. |
| @@ -87,14 +90,12 @@ | ||
| 87 | 90 | * Gets frontend field input. |
| 88 | 91 | * |
| 89 | 92 | * @param array $args Args. |
| 90 | 93 | * @param array $shortcode_atts Shortcode atts. |
| 91 | - * | |
| 92 | 94 | * @return string |
| 93 | 95 | */ |
| 94 | 96 | public function front_field_input( $args, $shortcode_atts ) { |
| 95 | 97 | $form = $args['form']; |
| 96 | - | |
| 97 | 98 | if ( ! FrmForm::show_submit( $form ) ) { |
| 98 | 99 | return ''; |
| 99 | 100 | } |
| 100 | 101 | |