PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.2.07
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.2.07
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
formidable / classes / models / fields / FrmFieldHTML.php

FrmFieldHTML.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 5.2.07, at classes/models/fields/FrmFieldHTML.php

60 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5
6 /**
7 * @since 3.0
8 */
9 class FrmFieldHTML extends FrmFieldType {
10
11 /**
12 * @var string
13 * @since 3.0
14 */
15 protected $type = 'html';
16
17 /**
18 * @var bool
19 * @since 3.0
20 */
21 protected $has_input = false;
22
23 /**
24 * @since 4.0
25 * @param array $args - Includes 'field', 'display', and 'values'
26 */
27 public function show_primary_options( $args ) {
28 $field = $args['field'];
29 include( FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/html-content.php' );
30
31 parent::show_primary_options( $args );
32 }
33
34 public function default_html() {
35 return '<div id="frm_field_[id]_container" class="frm_form_field form-field">[description]</div>';
36 }
37
38 /**
39 * @since 3.0
40 */
41 protected function after_replace_html_shortcodes( $args, $html ) {
42 FrmFieldsHelper::run_wpautop( array( 'wpautop' => true ), $html );
43 $pre_filter = $html;
44 $html = apply_filters( 'frm_get_default_value', $html, (object) $this->field, false );
45 if ( $pre_filter === $html ) {
46 $html = do_shortcode( $html );
47 }
48
49 return $html;
50 }
51
52 public function get_container_class() {
53 return ' frm_html_container';
54 }
55
56 protected function include_form_builder_file() {
57 return FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/field-html.php';
58 }
59 }
60