PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 4.02.04
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v4.02.04
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 4.02.04, at classes/models/fields/FrmFieldHTML.php

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