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-cart-icon.php
<?php
[0] Fix | Delete
if (!defined('ABSPATH'))
[1] Fix | Delete
exit; // Exit if accessed directly
[2] Fix | Delete
/**
[3] Fix | Delete
* Template Cart Icon
[4] Fix | Delete
*
[5] Fix | Delete
* Access original fields: $args['mod_settings']
[6] Fix | Delete
* @author Themify
[7] Fix | Delete
*/
[8] Fix | Delete
if ( themify_is_woocommerce_active() && isset( $GLOBALS['woocommerce']->cart ) ) :
[9] Fix | Delete
[10] Fix | Delete
wp_enqueue_script( 'tbp' );
[11] Fix | Delete
[12] Fix | Delete
$fields_default = array(
[13] Fix | Delete
'icon' => 'ti-shopping-cart',
[14] Fix | Delete
'style' => 'slide',
[15] Fix | Delete
'bubble' => 'off',
[16] Fix | Delete
'sub_total' => 'off',
[17] Fix | Delete
'alignment' => '',
[18] Fix | Delete
'animation_effect' => ''
[19] Fix | Delete
);
[20] Fix | Delete
$fields_args = wp_parse_args($args['mod_settings'], $fields_default);
[21] Fix | Delete
unset($args['mod_settings']);
[22] Fix | Delete
$fields_default=null;
[23] Fix | Delete
$element_id =$args['module_ID'];
[24] Fix | Delete
$builder_id=$args['builder_id'];
[25] Fix | Delete
$mod_name=$args['mod_name'];
[26] Fix | Delete
$container_class = apply_filters('themify_builder_module_classes', array(
[27] Fix | Delete
'module',
[28] Fix | Delete
'module-' . $mod_name,
[29] Fix | Delete
$element_id,
[30] Fix | Delete
'tbp_cart_icon_style_' . $fields_args['style']
[31] Fix | Delete
), $mod_name, $element_id,$fields_args);
[32] Fix | Delete
if(!empty($fields_args['alignment'])){
[33] Fix | Delete
$container_class[] = 'tf_text'.$fields_args['alignment'][0];
[34] Fix | Delete
}
[35] Fix | Delete
if(!empty($fields_args['global_styles']) && Themify_Builder::$frontedit_active===false){
[36] Fix | Delete
$container_class[] = $fields_args['global_styles'];
[37] Fix | Delete
}
[38] Fix | Delete
$container_props = apply_filters('themify_builder_module_container_props', self::parse_animation_effect($fields_args,array(
[39] Fix | Delete
'class' => implode(' ', $container_class),
[40] Fix | Delete
)), $fields_args, $mod_name,$element_id);
[41] Fix | Delete
[42] Fix | Delete
$args=null;
[43] Fix | Delete
$cart_is_dropdown = 'dropdown' === $fields_args['style'];
[44] Fix | Delete
if ($cart_is_dropdown === false){
[45] Fix | Delete
$container_props['data-id']=$element_id;
[46] Fix | Delete
}
[47] Fix | Delete
if(Themify_Builder::$frontedit_active===false){
[48] Fix | Delete
$container_props['data-lazy']=1;
[49] Fix | Delete
}
[50] Fix | Delete
?>
[51] Fix | Delete
<!-- Cart Icon module -->
[52] Fix | Delete
<div <?php echo self::get_element_attributes(self::sticky_element_props($container_props, $fields_args)); ?>>
[53] Fix | Delete
<?php
[54] Fix | Delete
$container_props=$container_class=null;
[55] Fix | Delete
do_action('themify_builder_background_styling',$builder_id,array('styling'=>$fields_args,'mod_name'=>$mod_name),$element_id,'module');
[56] Fix | Delete
global $woocommerce;
[57] Fix | Delete
$total = $woocommerce->cart->get_cart_contents_count();
[58] Fix | Delete
?>
[59] Fix | Delete
<div class="tbp_cart_icon_container">
[60] Fix | Delete
<a href="<?php echo $cart_is_dropdown === true ? wc_get_cart_url() : '#'.$element_id.'_tbp_cart'; ?>">
[61] Fix | Delete
<?php if ('on' === $fields_args['sub_total']): ?>
[62] Fix | Delete
<span class="tbp_cart_amount"><?php echo $woocommerce->cart->get_cart_subtotal(); ?></span>
[63] Fix | Delete
<?php endif; ?>
[64] Fix | Delete
<i class="tbp_shop_cart_icon"><?php echo themify_get_icon($fields_args['icon'])?></i>
[65] Fix | Delete
<?php if ('on' === $fields_args['bubble']): ?>
[66] Fix | Delete
<span class="tbp_cart_count<?php echo $total <= 0 ? ' tbp_cart_empty' : ''; ?>"><?php echo $total; ?></span>
[67] Fix | Delete
<?php endif; ?>
[68] Fix | Delete
</a>
[69] Fix | Delete
<?php if ($cart_is_dropdown === false): ?>
[70] Fix | Delete
<div id="<?php echo $element_id; ?>_tbp_cart" class="tbp_sidemenu sidemenu-off tbp_slide_cart tf_scrollbar">
[71] Fix | Delete
<a id="<?php echo $element_id; ?>_tbp_close" class="tf_close tbp_cart_icon_close"></a>
[72] Fix | Delete
<?php endif; ?>
[73] Fix | Delete
[74] Fix | Delete
<?php self::retrieve_template('wc/shopdock.php'); ?>
[75] Fix | Delete
[76] Fix | Delete
<?php if ($cart_is_dropdown === false): ?>
[77] Fix | Delete
</div>
[78] Fix | Delete
<!-- /#slide-cart -->
[79] Fix | Delete
<?php endif; ?>
[80] Fix | Delete
</div>
[81] Fix | Delete
</div>
[82] Fix | Delete
<!-- /Cart Icon module -->
[83] Fix | Delete
<?php endif;
[84] Fix | Delete
[85] Fix | Delete
[86] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function