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.../wc
File: shopdock.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Template for cart icon
[2] Fix | Delete
* @package Themify Builder Pro
[3] Fix | Delete
* @since 1.0.0
[4] Fix | Delete
*/
[5] Fix | Delete
?>
[6] Fix | Delete
<div class="tbp_shopdock tf_overflow">
[7] Fix | Delete
<?php
[8] Fix | Delete
// check whether cart is not empty
[9] Fix | Delete
if ( !empty( WC()->cart->get_cart() )):
[10] Fix | Delete
if(Tbp_Utils::isAjax())://we don't need to render on page loading,wc will do it by js even if we will render
[11] Fix | Delete
?>
[12] Fix | Delete
<div class="tbp_cart_wrap tf_textl tf_box">
[13] Fix | Delete
<div class="tbp_cart_list">
[14] Fix | Delete
<?php Themify_Builder_Component_Base::retrieve_template('wc/loop/loop-product-cart.php');?>
[15] Fix | Delete
</div>
[16] Fix | Delete
<!-- /cart-list -->
[17] Fix | Delete
<div class="tbp_cart_checkout_wrap">
[18] Fix | Delete
<p class="tbp_cart_total">
[19] Fix | Delete
<span class="tbp_cart_amount"><?php echo WC()->cart->get_cart_subtotal(); ?></span>
[20] Fix | Delete
<a class="tbp_view_cart" href="<?php echo esc_url( wc_get_cart_url() ) ?>">
[21] Fix | Delete
<?php _e( 'view cart', 'tbp' ) ?>
[22] Fix | Delete
</a>
[23] Fix | Delete
</p>
[24] Fix | Delete
<p class="tbp_checkout_button tf_right">
[25] Fix | Delete
<button type="submit" onClick="document.location.href = '<?php echo wc_get_checkout_url(); ?>'; return false;"><?php _e( 'Checkout', 'tbp') ?></button>
[26] Fix | Delete
</p>
[27] Fix | Delete
<!-- /checkout-botton -->
[28] Fix | Delete
</div>
[29] Fix | Delete
</div>
[30] Fix | Delete
<!-- /#cart-wrap -->
[31] Fix | Delete
<?php endif; // cart whether is not empty?>
[32] Fix | Delete
<?php else: ?>
[33] Fix | Delete
<?php
[34] Fix | Delete
if(function_exists('themify_get_shop_permalink')){
[35] Fix | Delete
$shop_permalink= themify_get_shop_permalink();
[36] Fix | Delete
}
[37] Fix | Delete
elseif(function_exists('themify_shop_pageId')){
[38] Fix | Delete
$shop_permalink=get_permalink(themify_shop_pageId());
[39] Fix | Delete
}
[40] Fix | Delete
else{
[41] Fix | Delete
$shop_permalink = get_permalink(wc_get_page_id('shop'));
[42] Fix | Delete
}
[43] Fix | Delete
?>
[44] Fix | Delete
<span class="tbp_empty_shopdock tf_textl tf_box">
[45] Fix | Delete
<?php printf( __( 'Your cart is empty. Go to <a href="%s">Shop</a>', 'tbp' ), $shop_permalink ); ?>
[46] Fix | Delete
</span>
[47] Fix | Delete
<?php endif; // cart whether is not empty?>
[48] Fix | Delete
</div>
[49] Fix | Delete
[50] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function