Edit File by line
/home/barbar84/www/wp-conte.../plugins/ninja-fo.../includes/Fields
File: HTML.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Class NF_Fields_HTML
[3] Fix | Delete
*/
[4] Fix | Delete
class NF_Fields_HTML extends NF_Abstracts_Input
[5] Fix | Delete
{
[6] Fix | Delete
protected $_name = 'html';
[7] Fix | Delete
[8] Fix | Delete
protected $_section = 'layout';
[9] Fix | Delete
[10] Fix | Delete
protected $_icon = 'code';
[11] Fix | Delete
[12] Fix | Delete
protected $_aliases = array( 'html' );
[13] Fix | Delete
[14] Fix | Delete
protected $_type = 'html';
[15] Fix | Delete
[16] Fix | Delete
protected $_templates = 'html';
[17] Fix | Delete
[18] Fix | Delete
protected $_settings_only = array( 'label', 'default', 'classes' );
[19] Fix | Delete
[20] Fix | Delete
protected $_use_merge_tags_include = array( 'calculations' );
[21] Fix | Delete
[22] Fix | Delete
public function __construct()
[23] Fix | Delete
{
[24] Fix | Delete
parent::__construct();
[25] Fix | Delete
[26] Fix | Delete
$this->_settings[ 'label' ][ 'width' ] = 'full';
[27] Fix | Delete
$this->_settings[ 'default' ][ 'group' ] = 'primary';
[28] Fix | Delete
$this->_settings[ 'default' ][ 'type' ] = 'rte';
[29] Fix | Delete
$this->_settings[ 'default' ][ 'use_merge_tags' ] = array(
[30] Fix | Delete
'include' => array(
[31] Fix | Delete
'calcs'
[32] Fix | Delete
),
[33] Fix | Delete
'exclude' => array(
[34] Fix | Delete
'form',
[35] Fix | Delete
'fields'
[36] Fix | Delete
),
[37] Fix | Delete
);
[38] Fix | Delete
[39] Fix | Delete
$this->_nicename = esc_html__( 'HTML', 'ninja-forms' );
[40] Fix | Delete
[41] Fix | Delete
add_filter( 'nf_sub_hidden_field_types', array( $this, 'hide_field_type' ) );
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
function hide_field_type( $field_types )
[45] Fix | Delete
{
[46] Fix | Delete
$field_types[] = $this->_name;
[47] Fix | Delete
[48] Fix | Delete
return $field_types;
[49] Fix | Delete
}
[50] Fix | Delete
}
[51] Fix | Delete
[52] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function