PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.23
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.23
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/helpers/FrmFieldGdprHelper.php +5 -10 6.286.23 View file →
@@ -2,9 +2,8 @@
2 2 /**
3 3 * GDPR field helper
4 4 *
5 5 * @since 6.19
6 - *
7 6 * @package Formidable
8 7 */
9 8
10 9 if ( ! defined( 'ABSPATH' ) ) {
@@ -19,9 +18,8 @@
19 18 /**
20 19 * Field type
21 20 *
22 21 * @since 6.19
23 - *
24 22 * @var string
25 23 */
26 24 const FIELD_TYPE = 'gdpr';
27 25
@@ -28,9 +26,8 @@
28 26 /**
29 27 * Field class
30 28 *
31 29 * @since 6.19
32 - *
33 30 * @var string
34 31 */
35 32 const FIELD_CLASS = 'FrmFieldGdpr';
36 33
@@ -37,9 +34,8 @@
37 34 /**
38 35 * Hide GDPR field
39 36 *
40 37 * @since 6.19
41 - *
42 38 * @return bool
43 39 */
44 40 public static function hide_gdpr_field() {
45 41 $settings = FrmAppHelper::get_settings();
@@ -49,17 +45,15 @@
49 45 /**
50 46 * Add GDPR field to form builder
51 47 *
52 48 * @since 6.19
53 - *
54 49 * @param array $fields
55 - *
56 50 * @return array
57 51 */
58 52 public static function add_gdpr_field( $fields ) {
59 53 $fields[ self::FIELD_TYPE ] = array(
60 54 'name' => __( 'GDPR', 'formidable' ),
61 - 'icon' => 'frmfont frm-gdpr-icon',
55 + 'icon' => 'frm_icon_font frm-gdpr-icon',
62 56 );
63 57 return $fields;
64 58 }
65 59
@@ -66,13 +60,14 @@
66 60 /**
67 61 * Initialize GDPR field Class name
68 62 *
69 63 * @since 6.19
70 - *
71 64 * @param string $field_type
72 - *
73 65 * @return string
74 66 */
75 67 public static function get_gdpr_field_class( $field_type = '' ) {
76 - return self::FIELD_TYPE === $field_type ? self::FIELD_CLASS : '';
68 + if ( self::FIELD_TYPE === $field_type ) {
69 + return self::FIELD_CLASS;
70 + }
71 + return '';
77 72 }
78 73 }