PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.7
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.7
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/fields/FrmFieldCreditCard.php +6 -8 6.286.7 View file →
@@ -10,9 +10,8 @@
10 10 class FrmFieldCreditCard extends FrmFieldType {
11 11
12 12 /**
13 13 * @var string
14 - *
15 14 * @since 3.0
16 15 */
17 16 protected $type = 'credit_card';
18 17
@@ -17,23 +16,20 @@
17 16 protected $type = 'credit_card';
18 17
19 18 /**
20 19 * @var bool
21 - *
22 20 * @since 3.0
23 21 */
24 22 protected $has_for_label = false;
25 23
26 - /**
27 - * @return array
28 - */
29 24 protected function field_settings_for_type() {
30 - return array(
25 + $settings = array(
31 26 'clear_on_focus' => false,
32 27 'description' => false,
33 28 'default' => false,
34 29 'required' => false,
35 30 );
31 + return $settings;
36 32 }
37 33
38 34 protected function include_form_builder_file() {
39 35 return FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/field-credit-card.php';
@@ -41,9 +37,8 @@
41 37
42 38 /**
43 39 * @param array $args
44 40 * @param array $shortcode_atts
45 - *
46 41 * @return string
47 42 */
48 43 public function front_field_input( $args, $shortcode_atts ) {
49 44 $pass_args = array(
@@ -62,7 +57,10 @@
62 57 } else {
63 58 FrmStrpLiteActionsController::show_card( $this->field, $args['field_name'], $pass_args );
64 59 }
65 60
66 - return ob_get_clean();
61 + $input_html = ob_get_contents();
62 + ob_end_clean();
63 +
64 + return $input_html;
67 65 }
68 66 }