| Server IP : 199.250.200.62 / Your IP : 216.73.217.89 Web Server : Apache System : Linux vps37394.inmotionhosting.com 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : jasonp18 ( 1000) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/jasonp18/public_html/wp-content/plugins/formidable/classes/models/fields/ |
Upload File : |
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( 'You are not allowed to call this page directly.' );
}
/**
* @since 3.0
*/
class FrmFieldHTML extends FrmFieldType {
/**
* @var string
* @since 3.0
*/
protected $type = 'html';
/**
* @var bool
* @since 3.0
*/
protected $has_input = false;
/**
* @since 4.0
*
* @param array $args - Includes 'field', 'display', and 'values'
*
* @return void
*/
public function show_primary_options( $args ) {
$field = $args['field'];
include FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/html-content.php';
parent::show_primary_options( $args );
}
/**
* @return string
*/
public function default_html() {
return '<div id="frm_field_[id]_container" class="frm_form_field form-field">[description]</div>';
}
/**
* @since 3.0
*/
protected function after_replace_html_shortcodes( $args, $html ) {
FrmFieldsHelper::run_wpautop( array( 'wpautop' => true ), $html );
$pre_filter = $html;
$html = apply_filters( 'frm_get_default_value', $html, (object) $this->field, false );
if ( $pre_filter === $html ) {
$html = do_shortcode( $html );
}
return $html;
}
/**
* @return string
*/
public function get_container_class() {
return ' frm_html_container';
}
/**
* @return string
*/
protected function include_form_builder_file() {
return FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/field-html.php';
}
}