PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
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 +3 -7 6.26 → trunk View file →
@@ -41,10 +41,9 @@
41 41 *
42 42 * @return bool
43 43 */
44 44 public static function hide_gdpr_field() {
45 - $settings = FrmAppHelper::get_settings();
46 - return ! $settings->enable_gdpr;
45 + return ! FrmAppHelper::get_settings()->enable_gdpr;
47 46 }
48 47
49 48 /**
50 49 * Add GDPR field to form builder
@@ -57,9 +56,9 @@
57 56 */
58 57 public static function add_gdpr_field( $fields ) {
59 58 $fields[ self::FIELD_TYPE ] = array(
60 59 'name' => __( 'GDPR', 'formidable' ),
61 - 'icon' => 'frm_icon_font frm-gdpr-icon',
60 + 'icon' => 'frmfont frm-gdpr-icon',
62 61 );
63 62 return $fields;
64 63 }
65 64
@@ -72,10 +71,7 @@
72 71 *
73 72 * @return string
74 73 */
75 74 public static function get_gdpr_field_class( $field_type = '' ) {
76 - if ( self::FIELD_TYPE === $field_type ) {
77 - return self::FIELD_CLASS;
78 - }
79 - return '';
75 + return self::FIELD_TYPE === $field_type ? self::FIELD_CLASS : '';
80 76 }
81 77 }