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.../plugins/themify-.../template...
File: template-tab.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Template Tab
[2] Fix | Delete
*
[3] Fix | Delete
* This template can be overridden by copying it to your child_theme_folder/themify-builder/template-tab.php.
[4] Fix | Delete
*
[5] Fix | Delete
* Access original fields: $args['mod_settings']
[6] Fix | Delete
* @author Themify
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
defined( 'ABSPATH' ) || exit;
[10] Fix | Delete
[11] Fix | Delete
$mod_name=$args['mod_name'];
[12] Fix | Delete
$builder_id = $args['builder_id'];
[13] Fix | Delete
$element_id = $args['module_ID'];
[14] Fix | Delete
$fields_args = $args['mod_settings']+ array(
[15] Fix | Delete
'mod_title_tab' => '',
[16] Fix | Delete
'layout_tab' => 'minimal',
[17] Fix | Delete
'style_tab' => '',
[18] Fix | Delete
'color_tab' => 'tb_default_color',
[19] Fix | Delete
'tab_appearance_tab' => '',
[20] Fix | Delete
'tab_content_tab' => array(),
[21] Fix | Delete
'css_tab' => '',
[22] Fix | Delete
'animation_effect' => '',
[23] Fix | Delete
'allow_tab_breakpoint' => '',
[24] Fix | Delete
'tab_breakpoint'=>'',
[25] Fix | Delete
'hashtag'=>'',
[26] Fix | Delete
'autoplay' => '',
[27] Fix | Delete
'autoplay_timer' => '10',
[28] Fix | Delete
'autoplay_c' => '',
[29] Fix | Delete
'fx' => '',
[30] Fix | Delete
'timerbar' => '',
[31] Fix | Delete
'pauseh' => '',
[32] Fix | Delete
);
[33] Fix | Delete
[34] Fix | Delete
if (!empty($fields_args['tab_appearance_tab'])) {
[35] Fix | Delete
$fields_args['tab_appearance_tab'] = self::get_checkbox_data($fields_args['tab_appearance_tab']);
[36] Fix | Delete
Themify_Builder_Model::load_appearance_css($fields_args['tab_appearance_tab']);
[37] Fix | Delete
}
[38] Fix | Delete
Themify_Builder_Model::load_color_css($fields_args['color_tab']);
[39] Fix | Delete
if($fields_args['color_tab']==='transparent'){
[40] Fix | Delete
Themify_Builder_Model::load_module_self_style($mod_name,$fields_args['color_tab']);
[41] Fix | Delete
}
[42] Fix | Delete
if($fields_args['layout_tab']!=='tab-frame'){
[43] Fix | Delete
Themify_Builder_Model::load_module_self_style($mod_name,$fields_args['layout_tab']);
[44] Fix | Delete
}
[45] Fix | Delete
[46] Fix | Delete
$container_class = apply_filters('themify_builder_module_classes', array(
[47] Fix | Delete
'module ui',
[48] Fix | Delete
'module-' . $mod_name,
[49] Fix | Delete
$element_id,
[50] Fix | Delete
$fields_args['layout_tab'],
[51] Fix | Delete
$fields_args['tab_appearance_tab'],
[52] Fix | Delete
$fields_args['color_tab'],
[53] Fix | Delete
$fields_args['css_tab']
[54] Fix | Delete
), $mod_name, $element_id, $fields_args);
[55] Fix | Delete
if($fields_args['style_tab']!='' && $fields_args['style_tab']!=='default'){
[56] Fix | Delete
$container_class[] = $fields_args['style_tab'];
[57] Fix | Delete
}
[58] Fix | Delete
if(!empty($fields_args['global_styles']) && Themify_Builder::$frontedit_active===false){
[59] Fix | Delete
$container_class[] = $fields_args['global_styles'];
[60] Fix | Delete
}
[61] Fix | Delete
$container_props = apply_filters('themify_builder_module_container_props', self::parse_animation_effect($fields_args,array(
[62] Fix | Delete
'id' => $element_id,
[63] Fix | Delete
'class' => implode(' ', $container_class),
[64] Fix | Delete
)), $fields_args, $mod_name, $element_id);
[65] Fix | Delete
[66] Fix | Delete
if(Themify_Builder::$frontedit_active===false){
[67] Fix | Delete
$container_props['data-lazy']=1;
[68] Fix | Delete
if('yes'===$fields_args['hashtag']){
[69] Fix | Delete
$container_props['data-hashtag']=1;
[70] Fix | Delete
}
[71] Fix | Delete
}
[72] Fix | Delete
if ( '' !== $fields_args['allow_tab_breakpoint'] && '' !== $fields_args['tab_breakpoint'] ){
[73] Fix | Delete
$container_props['data-tab-breakpoint'] = $fields_args['tab_breakpoint'];
[74] Fix | Delete
}
[75] Fix | Delete
[76] Fix | Delete
$timer_bar = false;
[77] Fix | Delete
if ( $fields_args['autoplay'] === 'y' ) {
[78] Fix | Delete
$container_props['data-autoplay'] = $fields_args['autoplay_timer'];
[79] Fix | Delete
if ( $fields_args['autoplay_c'] === 'y' ) {
[80] Fix | Delete
$container_props['data-autoplay-stop-on-click'] = '1';
[81] Fix | Delete
}
[82] Fix | Delete
$timer_bar = $fields_args['timerbar'] === 'yes' ? true : false;
[83] Fix | Delete
if ( $timer_bar ) {
[84] Fix | Delete
$container_props['data-timerbar'] = 1;
[85] Fix | Delete
}
[86] Fix | Delete
if ( $fields_args['pauseh'] === 'no' ) {
[87] Fix | Delete
$container_props['data-disablepause'] = 1;
[88] Fix | Delete
}
[89] Fix | Delete
}
[90] Fix | Delete
$animated = '';
[91] Fix | Delete
if ( $fields_args['fx'] !== '' ) {
[92] Fix | Delete
$container_props['data-fx'] = $fields_args['fx'];
[93] Fix | Delete
$animated = ' wow';
[94] Fix | Delete
}
[95] Fix | Delete
self::sticky_element_props($container_props, $fields_args);
[96] Fix | Delete
?>
[97] Fix | Delete
<!-- module tab -->
[98] Fix | Delete
<div <?php echo themify_get_element_attributes($container_props); ?>>
[99] Fix | Delete
<?php $container_props=$container_class=$args=null;
[100] Fix | Delete
echo Themify_Builder_Component_Module::get_module_title($fields_args,'mod_title_tab');
[101] Fix | Delete
?>
[102] Fix | Delete
<div class="tab-nav-current-active tf_hide">
[103] Fix | Delete
<span class="tab_burger_icon tf_rel"></span>
[104] Fix | Delete
<span class="tb_tab_title"><?php echo isset( $fields_args['tab_content_tab'][0]['title_tab'] ) ? $fields_args['tab_content_tab'][0]['title_tab'] : ''; ?></span>
[105] Fix | Delete
</div>
[106] Fix | Delete
<ul class="tab-nav tf_clearfix tf_scrollbar">
[107] Fix | Delete
<?php foreach ($fields_args['tab_content_tab'] as $k => $tab): ?>
[108] Fix | Delete
<li <?php echo 0 === $k ? 'class="current" aria-expanded="true"' : 'aria-expanded="false"'; ?>>
[109] Fix | Delete
<a href="#tab-<?php echo $element_id , '-' , $k; ?>"<?php if ( $timer_bar ) : ?> class="tf_rel"<?php endif; ?>>
[110] Fix | Delete
<?php if (isset($tab['icon_tab'])) : ?><em><?php echo themify_get_icon($tab['icon_tab']); ?></em><?php endif; ?>
[111] Fix | Delete
<?php
[112] Fix | Delete
if(isset($tab['title_tab']) && $fields_args['style_tab']!=='icon-only'){
[113] Fix | Delete
echo $tab['title_tab'];
[114] Fix | Delete
}
[115] Fix | Delete
?>
[116] Fix | Delete
<?php if ( $timer_bar ) : ?><span class="tb_tab_timerbar tf_abs"></span><?php endif; ?>
[117] Fix | Delete
</a>
[118] Fix | Delete
</li>
[119] Fix | Delete
<?php endforeach; ?>
[120] Fix | Delete
</ul>
[121] Fix | Delete
<?php foreach ($fields_args['tab_content_tab'] as $k => $tab): ?>
[122] Fix | Delete
<div data-id="tab-<?php echo $element_id , '-' , $k; ?>" class="tab-content tf_clear<?php echo $animated; ?>" <?php echo $k === 0 ? 'aria-hidden="false"' : 'aria-hidden="true"' ?>>
[123] Fix | Delete
<?php
[124] Fix | Delete
if (isset($tab['text_tab']) && $tab['text_tab']!=='') {?>
[125] Fix | Delete
<div class="tb_text_wrap">
[126] Fix | Delete
<?php echo apply_filters('themify_builder_module_content', $tab['text_tab']);?>
[127] Fix | Delete
</div>
[128] Fix | Delete
<?php
[129] Fix | Delete
}
[130] Fix | Delete
elseif(isset($tab['builder_content'])){
[131] Fix | Delete
foreach($tab['builder_content'] as $subrow){
[132] Fix | Delete
Themify_Builder_Component_Subrow::template($subrow,$builder_id);
[133] Fix | Delete
}
[134] Fix | Delete
}?>
[135] Fix | Delete
</div>
[136] Fix | Delete
<?php endforeach; ?>
[137] Fix | Delete
</div>
[138] Fix | Delete
<!-- /module tab -->
[139] Fix | Delete
[140] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function