PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 4.01.02
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v4.01.02
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/FrmFieldHTML.php +2 -40 6.264.01.02 View file →
@@ -1,8 +1,5 @@
1 1 <?php
2 -if ( ! defined( 'ABSPATH' ) ) {
3 - die( 'You are not allowed to call this page directly.' );
4 -}
5 2
6 3 /**
7 4 * @since 3.0
8 5 */
@@ -9,9 +6,8 @@
9 6 class FrmFieldHTML extends FrmFieldType {
10 7
11 8 /**
12 9 * @var string
13 - *
14 10 * @since 3.0
15 11 */
16 12 protected $type = 'html';
17 13
@@ -16,9 +12,8 @@
16 12 protected $type = 'html';
17 13
18 14 /**
19 15 * @var bool
20 - *
21 16 * @since 3.0
22 17 */
23 18 protected $has_input = false;
24 19
@@ -23,23 +18,17 @@
23 18 protected $has_input = false;
24 19
25 20 /**
26 21 * @since 4.0
27 - *
28 - * @param array $args Includes 'field', 'display', and 'values'.
29 - *
30 - * @return void
22 + * @param array $args - Includes 'field', 'display', and 'values'
31 23 */
32 24 public function show_primary_options( $args ) {
33 25 $field = $args['field'];
34 - include FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/html-content.php';
26 + include( FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/html-content.php' );
35 27
36 28 parent::show_primary_options( $args );
37 29 }
38 30
39 - /**
40 - * @return string
41 - */
42 31 public function default_html() {
43 32 return '<div id="frm_field_[id]_container" class="frm_form_field form-field">[description]</div>';
44 33 }
45 34
@@ -44,19 +33,13 @@
44 33 }
45 34
46 35 /**
47 36 * @since 3.0
48 - *
49 - * @param array $args
50 - * @param string $html
51 - *
52 - * @return string
53 37 */
54 38 protected function after_replace_html_shortcodes( $args, $html ) {
55 39 FrmFieldsHelper::run_wpautop( array( 'wpautop' => true ), $html );
56 40 $pre_filter = $html;
57 41 $html = apply_filters( 'frm_get_default_value', $html, (object) $this->field, false );
58 -
59 42 if ( $pre_filter === $html ) {
60 43 $html = do_shortcode( $html );
61 44 }
62 45
@@ -62,33 +45,12 @@
62 45
63 46 return $html;
64 47 }
65 48
66 - /**
67 - * @return string
68 - */
69 49 public function get_container_class() {
70 50 return ' frm_html_container';
71 51 }
72 52
73 - /**
74 - * @return string
75 - */
76 53 protected function include_form_builder_file() {
77 54 return FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/field-html.php';
78 - }
79 -
80 - /**
81 - * Overwrite FrmFieldType::should_strip_most_html_before_preparing_display_value.
82 - * An HTML field is not populated from user input.
83 - * It does not need to be passed through FrmAppHelper::strip_most_html.
84 - *
85 - * @since 6.8.3
86 - *
87 - * @param array $atts
88 - *
89 - * @return bool
90 - */
91 - protected function should_strip_most_html_before_preparing_display_value( $atts ) {
92 - return false;
93 55 }
94 56 }