Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/Divi/includes/builder/module/field/template
File: Tabbed.php
<?php
[0] Fix | Delete
[1] Fix | Delete
require_once( ET_BUILDER_DIR . 'module/field/template/Base.php' );
[2] Fix | Delete
[3] Fix | Delete
class ET_Builder_Module_Field_Template_Tabbed extends ET_Builder_Module_Field_Template_Base {
[4] Fix | Delete
/**
[5] Fix | Delete
* @param $field array Field settings
[6] Fix | Delete
* @param $render_helper ET_Builder_Element
[7] Fix | Delete
*
[8] Fix | Delete
* @return string Control rendered html
[9] Fix | Delete
*/
[10] Fix | Delete
public function render( $field, $render_helper ) {
[11] Fix | Delete
ob_start();
[12] Fix | Delete
if ( ! empty( $field['composite_structure'] ) && is_array( $field['composite_structure'] ) ) {
[13] Fix | Delete
?>
[14] Fix | Delete
<div class="et-pb-composite-tabbed-wrapper">
[15] Fix | Delete
<div id="<?php echo esc_attr( $this->_wrap_field_name( $field['name'] ) ); ?>" class="<?php echo esc_attr( $this->_get_control_class() ); ?>" data-attr-suffix="<?php echo esc_attr( $field['attr_suffix'] )?>">
[16] Fix | Delete
<div class="et-pb-outside-preview-container">
[17] Fix | Delete
<?php echo et_core_esc_previously( $this->_render_outside_preview() ); ?>
[18] Fix | Delete
</div>
[19] Fix | Delete
<ul class="et-pb-settings-tabs">
[20] Fix | Delete
<?php foreach ( $field['composite_structure'] as $tab => $structure ) : ?>
[21] Fix | Delete
<li class="et-pb-settings-tab">
[22] Fix | Delete
<a href="#" class="et-pb-settings-tab-title" data-tab="<?php echo esc_attr( $tab ); ?>">
[23] Fix | Delete
<?php
[24] Fix | Delete
if ( isset( $structure['label'] ) && ! empty( $structure['label'] ) ) {
[25] Fix | Delete
echo esc_html( $structure['label'] );
[26] Fix | Delete
}
[27] Fix | Delete
// render the icon if there is one defined.
[28] Fix | Delete
if ( isset( $structure['icon'] ) && ! empty( $structure['icon'] ) ) {
[29] Fix | Delete
echo et_core_esc_previously( $this->_render_icon( esc_html( $structure['icon'] ) ) );
[30] Fix | Delete
}
[31] Fix | Delete
?>
[32] Fix | Delete
</a>
[33] Fix | Delete
</li>
[34] Fix | Delete
<?php endforeach; ?>
[35] Fix | Delete
</ul>
[36] Fix | Delete
<?php foreach ( $field['composite_structure'] as $tab => $structure ) : ?>
[37] Fix | Delete
<div class="et-pb-settings-tab-content" data-tab="<?php echo esc_attr( $tab ); ?>">
[38] Fix | Delete
<div class="et-pb-tab-preview-container" data-tab="<?php echo esc_attr( $tab ); ?>">
[39] Fix | Delete
<?php echo et_core_esc_previously( $this->_render_tab_preview( $tab ) ); ?>
[40] Fix | Delete
</div>
[41] Fix | Delete
<?php if ( ! empty( $structure['controls'] ) && is_array( $structure['controls'] ) ) : ?>
[42] Fix | Delete
<?php foreach ( $structure['controls'] as $name => $control ) : ?>
[43] Fix | Delete
<?php $control['name'] = $name; ?>
[44] Fix | Delete
<?php $control['tab_slug'] = $field['tab_slug']; ?>
[45] Fix | Delete
<?php $hidden = 'hidden' === $control['type'] ? ' et_pb_hidden' : ''; ?>
[46] Fix | Delete
<div class="et-pb-composite-option et-pb-composite-tabbed-option et-pb-option<?php echo et_core_intentionally_unescaped( $hidden, 'fixed_string' ) ?>" data-control-index="<?php echo esc_attr( $name ) ?>" data-option_name="<?php echo esc_attr( $name ) ?>">
[47] Fix | Delete
<?php echo et_core_esc_previously( $render_helper->wrap_settings_option_label( $control ) ); ?>
[48] Fix | Delete
<?php echo et_core_esc_previously( $render_helper->wrap_settings_option_field( $control, $name ) ); ?>
[49] Fix | Delete
</div>
[50] Fix | Delete
<?php endforeach; ?>
[51] Fix | Delete
<?php endif; ?>
[52] Fix | Delete
</div>
[53] Fix | Delete
<?php endforeach; ?>
[54] Fix | Delete
</div>
[55] Fix | Delete
</div>
[56] Fix | Delete
<span class="et-pb-reset-setting et-pb-reset-skip et-pb-composite-tabbed-reset-setting"></span>
[57] Fix | Delete
<?php
[58] Fix | Delete
}
[59] Fix | Delete
[60] Fix | Delete
return ob_get_clean();
[61] Fix | Delete
}
[62] Fix | Delete
[63] Fix | Delete
protected function _render_outside_preview() {
[64] Fix | Delete
return '';
[65] Fix | Delete
}
[66] Fix | Delete
[67] Fix | Delete
protected function _render_tab_preview( $tab ) {
[68] Fix | Delete
return '';
[69] Fix | Delete
}
[70] Fix | Delete
[71] Fix | Delete
protected function _get_control_class() {
[72] Fix | Delete
return 'et-pb-composite-tabbed';
[73] Fix | Delete
}
[74] Fix | Delete
}
[75] Fix | Delete
[76] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function