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/wp-conte.../plugins/themify-.../template...
File: template-link-block.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Template Link Block
[2] Fix | Delete
*
[3] Fix | Delete
* This template can be overridden by copying it to your child_theme_folder/themify-builder/template-link-block.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
'shape'=>'normal',
[15] Fix | Delete
'lb_layout'=>'icon-center',
[16] Fix | Delete
'style'=>'solid',
[17] Fix | Delete
'heading'=>'',
[18] Fix | Delete
'blurb'=>'',
[19] Fix | Delete
'nofollow_link'=>'',
[20] Fix | Delete
'label'=>'',
[21] Fix | Delete
'link'=>'',
[22] Fix | Delete
'icon_type' => 'icon',
[23] Fix | Delete
'icon'=>'',
[24] Fix | Delete
'image'=>'',
[25] Fix | Delete
'i_w'=>'',
[26] Fix | Delete
'i_h'=>'',
[27] Fix | Delete
'link_options'=>false,
[28] Fix | Delete
'lightbox_width'=>'',
[29] Fix | Delete
'lightbox_height'=>'',
[30] Fix | Delete
'lightbox_width_unit'=>'px',
[31] Fix | Delete
'lightbox_height_unit'=>'px',
[32] Fix | Delete
'color'=>'tb_default_color',
[33] Fix | Delete
'title'=>'',
[34] Fix | Delete
'animation_effect'=>'',
[35] Fix | Delete
'css_class'=>'',
[36] Fix | Delete
'disp_icon_btm' => false
[37] Fix | Delete
);
[38] Fix | Delete
$container_class=apply_filters('themify_builder_module_classes', array(
[39] Fix | Delete
'module',
[40] Fix | Delete
'module-' . $mod_name,
[41] Fix | Delete
$element_id,
[42] Fix | Delete
$fields_args['lb_layout'],
[43] Fix | Delete
$fields_args['style'],
[44] Fix | Delete
$fields_args['css_class']
[45] Fix | Delete
), $mod_name, $element_id, $fields_args);
[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
if(!empty($fields_args['disp_icon_btm'])){
[50] Fix | Delete
$container_class[] = 'icon_disp_btm';
[51] Fix | Delete
}
[52] Fix | Delete
[53] Fix | Delete
$container_props=apply_filters('themify_builder_module_container_props', self::parse_animation_effect($fields_args, array(
[54] Fix | Delete
'class'=>implode(' ', $container_class),
[55] Fix | Delete
)), $fields_args, $mod_name, $element_id);
[56] Fix | Delete
if(Themify_Builder::$frontedit_active===false) {
[57] Fix | Delete
$container_props['data-lazy']=1;
[58] Fix | Delete
}
[59] Fix | Delete
Themify_Builder_Model::load_color_css($fields_args['color']);
[60] Fix | Delete
self::sticky_element_props($container_props, $fields_args);
[61] Fix | Delete
?>
[62] Fix | Delete
<!-- module link_block -->
[63] Fix | Delete
<div <?php echo themify_get_element_attributes($container_props); ?>>
[64] Fix | Delete
<?php
[65] Fix | Delete
$container_props=$container_class=$args=null;
[66] Fix | Delete
[67] Fix | Delete
$link_attr=array();
[68] Fix | Delete
$link_css_clsss=array('tb_link_block_container ui ' . $fields_args['color']);
[69] Fix | Delete
if ($fields_args['shape']!=='normal') {
[70] Fix | Delete
$link_css_clsss[] = $fields_args['shape'];
[71] Fix | Delete
if ($fields_args['shape'] === 'rounded') {
[72] Fix | Delete
Themify_Builder_Model::load_appearance_css($fields_args['shape']);
[73] Fix | Delete
}
[74] Fix | Delete
}
[75] Fix | Delete
if($fields_args['link_options']==='lightbox') {
[76] Fix | Delete
$link_css_clsss[]='themify_lightbox';
[77] Fix | Delete
if($fields_args['lightbox_width']!=='' || $fields_args['lightbox_height']!=='') {
[78] Fix | Delete
$lightbox_settings=array();
[79] Fix | Delete
if($fields_args['lightbox_width']!=='') {
[80] Fix | Delete
$lightbox_settings[]=$fields_args['lightbox_width'] . $fields_args['lightbox_width_unit'];
[81] Fix | Delete
}
[82] Fix | Delete
if($fields_args['lightbox_height']!=='') {
[83] Fix | Delete
$lightbox_settings[]=$fields_args['lightbox_height'] . $fields_args['lightbox_height_unit'];
[84] Fix | Delete
}
[85] Fix | Delete
$link_attr[]=sprintf('data-zoom-config="%s"', implode('|', $lightbox_settings));
[86] Fix | Delete
unset($lightbox_settings);
[87] Fix | Delete
}
[88] Fix | Delete
}
[89] Fix | Delete
elseif($fields_args['link_options']==='newtab') {
[90] Fix | Delete
$nofollow=$fields_args['nofollow_link']==='yes' ? 'nofollow ' : '';
[91] Fix | Delete
$link_attr[]='target="_blank" rel="' . $nofollow . 'noopener"';
[92] Fix | Delete
}
[93] Fix | Delete
if($fields_args['nofollow_link']==='yes' && $fields_args['link_options']!=='newtab') {
[94] Fix | Delete
$link_attr[]='rel="nofollow"';
[95] Fix | Delete
}
[96] Fix | Delete
$tag = !empty($fields_args['link']) ? 'a' : 'span';
[97] Fix | Delete
if('a'===$tag) {
[98] Fix | Delete
$link_attr[]='href="'.esc_url($fields_args['link']).'"';
[99] Fix | Delete
if(!empty($fields_args['title'])){
[100] Fix | Delete
$link_attr[]='title="'.esc_attr($fields_args['title']).'"';
[101] Fix | Delete
}
[102] Fix | Delete
}
[103] Fix | Delete
$link_attr[]='class="'.implode(' ', $link_css_clsss).'"';
[104] Fix | Delete
?>
[105] Fix | Delete
<<?php echo $tag.' ',implode(' ', $link_attr) ?>>
[106] Fix | Delete
[107] Fix | Delete
<?php if ('icon'===$fields_args['icon_type'] && $fields_args['icon']!==''): ?>
[108] Fix | Delete
<div class="tf-lb-icon">
[109] Fix | Delete
<em class="tb_link_block_icon tf_inline_b"><?php echo themify_get_icon($fields_args['icon'])?></em>
[110] Fix | Delete
</div>
[111] Fix | Delete
<?php elseif ('image' === $fields_args['icon_type'] && $fields_args['image'] !=='' ) :
[112] Fix | Delete
echo themify_get_image( [
[113] Fix | Delete
'class' => 'tf_vmiddle tf_box tb_link_block_img',
[114] Fix | Delete
'src' => $fields_args['image'],
[115] Fix | Delete
'w' => $fields_args['i_w'],
[116] Fix | Delete
'h' => $fields_args['i_h'],
[117] Fix | Delete
'alt' => $fields_args['title'] ?? null
[118] Fix | Delete
] );
[119] Fix | Delete
endif; ?>
[120] Fix | Delete
[121] Fix | Delete
<div class="tf-lb-content">
[122] Fix | Delete
<?php if(!empty($fields_args['heading'])): ?>
[123] Fix | Delete
<div class="tb_link_block_heading"><?php echo $fields_args['heading'] ?></div>
[124] Fix | Delete
<?php endif; ?>
[125] Fix | Delete
<?php if(!empty($fields_args['blurb'])): ?>
[126] Fix | Delete
<div class="tb_link_block_blurb"><?php echo $fields_args['blurb'] ?></div>
[127] Fix | Delete
<?php endif; ?>
[128] Fix | Delete
</div>
[129] Fix | Delete
[130] Fix | Delete
</<?php echo $tag; ?>>
[131] Fix | Delete
</div>
[132] Fix | Delete
<!-- /module buttons -->
[133] Fix | Delete
[134] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function