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-social-share.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Template Social Share
[2] Fix | Delete
*
[3] Fix | Delete
* This template can be overridden by copying it to your child_theme_folder/themify-builder/template-social-share.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
$element_id = $args['module_ID'];
[13] Fix | Delete
$fields_args = $args['mod_settings']+ array(
[14] Fix | Delete
'mod_title' => '',
[15] Fix | Delete
'networks' => '',
[16] Fix | Delete
'size' => 'normal',
[17] Fix | Delete
'shape' => 'none',
[18] Fix | Delete
'arrangement' => 'h',
[19] Fix | Delete
'title' => 'yes',
[20] Fix | Delete
'animation_effect' => '',
[21] Fix | Delete
'css' => ''
[22] Fix | Delete
);
[23] Fix | Delete
[24] Fix | Delete
if($fields_args['networks']!==''){
[25] Fix | Delete
$fields_args['networks'] = explode( '|', $fields_args['networks'] );
[26] Fix | Delete
if ( !empty( $fields_args['networks'] ) ) {
[27] Fix | Delete
//$url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
[28] Fix | Delete
$info = array(
[29] Fix | Delete
'fb' => array( 'icon' => 'facebook', 'title' => __( 'Facebook', 'themify' ),'type'=>'facebook' ),
[30] Fix | Delete
'tw' => array( 'icon' => 'fab x-twitter', 'title' => __( 'Twitter', 'themify' ),'type'=>'twitter' ),
[31] Fix | Delete
'lk' => array( 'icon' => 'linkedin', 'title' => __( 'Linkedin', 'themify' ),'type'=>'linkedin' ),
[32] Fix | Delete
'pi' => array( 'icon' => 'pinterest', 'title' => __( 'Pinterest', 'themify' ),'type'=>'pinterest' ),
[33] Fix | Delete
'em' => array( 'icon' => 'email', 'title' => __( 'Email', 'themify' ),'type'=>'email' )
[34] Fix | Delete
);
[35] Fix | Delete
}
[36] Fix | Delete
}
[37] Fix | Delete
$container_class = apply_filters( 'themify_builder_module_classes', array(
[38] Fix | Delete
'module',
[39] Fix | Delete
'module-' . $mod_name,
[40] Fix | Delete
$element_id,
[41] Fix | Delete
$fields_args['css'],
[42] Fix | Delete
'tb_ss_size_' . $fields_args['size'],
[43] Fix | Delete
'tb_ss_shape_' . $fields_args['shape']
[44] Fix | Delete
), $mod_name, $element_id, $fields_args );
[45] Fix | Delete
[46] Fix | Delete
if ( !empty( $fields_args['global_styles'] ) && Themify_Builder::$frontedit_active === false ) {
[47] Fix | Delete
$container_class[] = $fields_args['global_styles'];
[48] Fix | Delete
}
[49] Fix | Delete
$container_props = apply_filters( 'themify_builder_module_container_props', self::parse_animation_effect($fields_args,array( 'class' => implode( ' ', $container_class ) )), $fields_args, $mod_name, $element_id );
[50] Fix | Delete
$loop = Themify_Builder::$is_loop===true || in_the_loop();
[51] Fix | Delete
if(Themify_Builder::$frontedit_active===false){
[52] Fix | Delete
$container_props['data-lazy']=1;
[53] Fix | Delete
}
[54] Fix | Delete
self::sticky_element_props($container_props, $fields_args);
[55] Fix | Delete
?>
[56] Fix | Delete
<!-- module social share -->
[57] Fix | Delete
<div <?php echo themify_get_element_attributes($container_props);?> data-title="<?php true === $loop?the_title():wp_title(); ?>" data-url="<?php true===$loop?the_permalink():''; ?>">
[58] Fix | Delete
<?php $container_props = $container_class = $args=null;
[59] Fix | Delete
echo Themify_Builder_Component_Module::get_module_title($fields_args);
[60] Fix | Delete
?>
[61] Fix | Delete
<div class="module-social-share-wrapper">
[62] Fix | Delete
<?php if($fields_args['networks']!==''):?>
[63] Fix | Delete
<?php foreach ( $fields_args['networks'] as $net ): ?>
[64] Fix | Delete
<div class="ss_anchor_wrap<?php echo 'h'===$fields_args['arrangement']?' tf_inline_b':''; ?>">
[65] Fix | Delete
<a href="#" data-type="<?php echo $info[ $net ]['type']; ?>">
[66] Fix | Delete
<em class="tb_social_share_icon"><?php echo themify_get_icon($info[ $net ]['icon'], $net === 'tw' ? 'fa' : 'ti', false,false,array('aria-label'=>$info[$net]['title'])); ?></em>
[67] Fix | Delete
<?php if('no' === $fields_args['title']): ?>
[68] Fix | Delete
<span class="tb_social_share_title"><?php echo $info[ $net ]['title']; ?></span>
[69] Fix | Delete
<?php endif; ?>
[70] Fix | Delete
</a>
[71] Fix | Delete
</div>
[72] Fix | Delete
<?php endforeach; ?>
[73] Fix | Delete
<?php endif;?>
[74] Fix | Delete
</div>
[75] Fix | Delete
</div>
[76] Fix | Delete
<!-- /module social share -->
[77] Fix | Delete
[78] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function