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-site-logo.php
<?php
[0] Fix | Delete
if (!defined('ABSPATH'))
[1] Fix | Delete
exit; // Exit if accessed directly
[2] Fix | Delete
/**
[3] Fix | Delete
* Template Site Logo
[4] Fix | Delete
*
[5] Fix | Delete
* Access original fields: $args['mod_settings']
[6] Fix | Delete
* @author Themify
[7] Fix | Delete
*/
[8] Fix | Delete
$fields_default = array(
[9] Fix | Delete
'display' => 'text',
[10] Fix | Delete
'url_image' => '',
[11] Fix | Delete
'width_image' => 100,
[12] Fix | Delete
'height_image' => 100,
[13] Fix | Delete
'link' => 'siteurl',
[14] Fix | Delete
'custom_url' => '',
[15] Fix | Delete
'html_tag' => '',
[16] Fix | Delete
'css' => '',
[17] Fix | Delete
'animation_effect' => '',
[18] Fix | Delete
);
[19] Fix | Delete
$fields_args = wp_parse_args($args['mod_settings'], $fields_default);
[20] Fix | Delete
unset($args['mod_settings']);
[21] Fix | Delete
$fields_default=null;
[22] Fix | Delete
$mod_name = $args['mod_name'];
[23] Fix | Delete
$element_id =$args['module_ID'];
[24] Fix | Delete
$builder_id = $args['builder_id'];
[25] Fix | Delete
$container_class = apply_filters('themify_builder_module_classes', array(
[26] Fix | Delete
'module',
[27] Fix | Delete
'module-' . $mod_name,
[28] Fix | Delete
$element_id,
[29] Fix | Delete
$fields_args['css']
[30] Fix | Delete
), $mod_name, $element_id, $fields_args);
[31] Fix | Delete
[32] Fix | Delete
if (!empty($fields_args['global_styles']) && Themify_Builder::$frontedit_active === false) {
[33] Fix | Delete
$container_class[] = $fields_args['global_styles'];
[34] Fix | Delete
}
[35] Fix | Delete
$container_props = apply_filters('themify_builder_module_container_props', self::parse_animation_effect($fields_args,array(
[36] Fix | Delete
'class' => implode(' ', $container_class),
[37] Fix | Delete
)), $fields_args, $mod_name, $element_id);
[38] Fix | Delete
$args = null;
[39] Fix | Delete
if ('image' === $fields_args['display'] && '' !== $fields_args['url_image']) {
[40] Fix | Delete
[41] Fix | Delete
$width_image = $fields_args['width_image'] !== '' ? $fields_args['width_image'] : get_option($preset . '_size_w');
[42] Fix | Delete
$height_image = $fields_args['height_image'] !== '' ? $fields_args['height_image'] : get_option($preset . '_size_h');
[43] Fix | Delete
if (Themify_Builder_Model::is_img_php_disabled()) {
[44] Fix | Delete
$attachment_id = themify_get_attachment_id_from_url($fields_args['url_image']);
[45] Fix | Delete
$image =!empty($attachment_id)?wp_get_attachment_image($attachment_id, $preset):apply_filters('themify_image_make_responsive_image', '<img src="' . esc_url($fields_args['url_image']) . '" alt="" width="' . $width_image. '" height="' . $height_image. '"/>');
[46] Fix | Delete
} else {
[47] Fix | Delete
$image = themify_get_image('src=' . esc_url($fields_args['url_image']) . '&w=' . $width_image . '&h=' . $height_image. '&alt=');
[48] Fix | Delete
}
[49] Fix | Delete
} else {
[50] Fix | Delete
$image = get_bloginfo('name');
[51] Fix | Delete
}
[52] Fix | Delete
[53] Fix | Delete
$url = 'siteurl' === $fields_args['link'] ? home_url() : ( 'custom' === $fields_args['link'] && '' !== $fields_args['custom_url'] ? esc_url($fields_args['custom_url']) : false);
[54] Fix | Delete
if(Themify_Builder::$frontedit_active===false){
[55] Fix | Delete
$container_props['data-lazy']=1;
[56] Fix | Delete
}
[57] Fix | Delete
?>
[58] Fix | Delete
<!-- Site Logo module -->
[59] Fix | Delete
<div <?php echo self::get_element_attributes(self::sticky_element_props($container_props, $fields_args));?>>
[60] Fix | Delete
<div class="site-logo-inner">
[61] Fix | Delete
<?php $container_props = $container_class = null;
[62] Fix | Delete
do_action('themify_builder_background_styling',$builder_id,array('styling'=>$fields_args,'mod_name'=>$mod_name),$element_id,'module');
[63] Fix | Delete
?>
[64] Fix | Delete
<?php if (!empty($fields_args['html_tag'])): ?>
[65] Fix | Delete
<<?php echo $fields_args['html_tag'] ?>>
[66] Fix | Delete
<?php endif; ?>
[67] Fix | Delete
[68] Fix | Delete
<?php if ($url !== false): ?>
[69] Fix | Delete
<a href="<?php echo $url ?>">
[70] Fix | Delete
<?php endif; ?>
[71] Fix | Delete
[72] Fix | Delete
<?php echo $image; ?>
[73] Fix | Delete
<?php if ($url !== false): ?>
[74] Fix | Delete
</a>
[75] Fix | Delete
<?php endif; ?>
[76] Fix | Delete
<?php if (!empty($fields_args['html_tag'])): ?>
[77] Fix | Delete
</<?php echo $fields_args['html_tag'] ?>>
[78] Fix | Delete
<?php endif; ?>
[79] Fix | Delete
</div>
[80] Fix | Delete
</div>
[81] Fix | Delete
<!-- /Site Logo module -->
[82] Fix | Delete
[83] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function