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-fancy-heading.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Template Fancy Heading
[2] Fix | Delete
*
[3] Fix | Delete
* This template can be overridden by copying it to your child_theme_folder/themify-builder/template-fancy-heading.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
'heading' => '',
[15] Fix | Delete
'heading_tag' => 'h1',
[16] Fix | Delete
'heading_link' => '',
[17] Fix | Delete
'sub_heading_link' => '',
[18] Fix | Delete
'sub_heading' => '',
[19] Fix | Delete
'text_alignment' => '',
[20] Fix | Delete
'inline_text' => '',
[21] Fix | Delete
'animation_effect' => '',
[22] Fix | Delete
'icon_type' => '',
[23] Fix | Delete
'image' => '',
[24] Fix | Delete
'icon' => '',
[25] Fix | Delete
'icon_c' => '',
[26] Fix | Delete
'css_class' => '',
[27] Fix | Delete
'divider' => 'yes'
[28] Fix | Delete
);
[29] Fix | Delete
$container_class = apply_filters('themify_builder_module_classes', array(
[30] Fix | Delete
'module',
[31] Fix | Delete
'module-' . $mod_name,
[32] Fix | Delete
$element_id,
[33] Fix | Delete
$fields_args['css_class']
[34] Fix | Delete
), $mod_name, $element_id, $fields_args);
[35] Fix | Delete
$is_inline = $fields_args['inline_text'] === '1';
[36] Fix | Delete
if ($is_inline === true) {
[37] Fix | Delete
$container_class[] = 'inline-fancy-heading';
[38] Fix | Delete
}
[39] Fix | Delete
$hide_divider = 'no' === $fields_args['divider'];
[40] Fix | Delete
if ($hide_divider===true) {
[41] Fix | Delete
$container_class[] = 'tb_hide_divider';
[42] Fix | Delete
}
[43] Fix | Delete
if (!empty($fields_args['global_styles']) && Themify_Builder::$frontedit_active === false) {
[44] Fix | Delete
$container_class[] = $fields_args['global_styles'];
[45] Fix | Delete
}
[46] Fix | Delete
$container_props = apply_filters('themify_builder_module_container_props', self::parse_animation_effect($fields_args, array(
[47] Fix | Delete
'class' => implode(' ', $container_class),
[48] Fix | Delete
)), $fields_args, $mod_name, $element_id);
[49] Fix | Delete
[50] Fix | Delete
[51] Fix | Delete
$mainTag = '' !== $fields_args['heading_link'] ? 'a' : 'span';
[52] Fix | Delete
$subTag = '' !== $fields_args['sub_heading_link'] ? 'a' : 'span';
[53] Fix | Delete
$alignment = '';
[54] Fix | Delete
if (!empty($fields_args['text_alignment'])) {
[55] Fix | Delete
$alignment = str_replace('themify-text-', '', $fields_args['text_alignment']);
[56] Fix | Delete
$alignment = ' tf_text' . $alignment[0];
[57] Fix | Delete
}
[58] Fix | Delete
if (Themify_Builder::$frontedit_active === false) {
[59] Fix | Delete
$container_props['data-lazy'] = 1;
[60] Fix | Delete
}
[61] Fix | Delete
[62] Fix | Delete
$icon=$fields_args['icon_type']!=='image_icon' ? ($fields_args['icon_type']!=='l'?($fields_args['icon']!=='' ? themify_get_icon($fields_args['icon']):'') : themify_get_lottie($fields_args, 'parent')) : $fields_args['image'];
[63] Fix | Delete
self::sticky_element_props($container_props, $fields_args);
[64] Fix | Delete
$fields_args['heading_tag'] = esc_attr( $fields_args['heading_tag'] );
[65] Fix | Delete
?>
[66] Fix | Delete
<!-- module fancy heading -->
[67] Fix | Delete
<div <?php echo themify_get_element_attributes($container_props); ?>>
[68] Fix | Delete
<?php $container_props = $container_class = $args = null; ?>
[69] Fix | Delete
<<?php echo $fields_args['heading_tag']; ?> class="fancy-heading<?php echo $alignment; ?>">
[70] Fix | Delete
<span class="main-head <?php echo $is_inline === true ? 'tf_inline_b' : 'tf_block'; ?>">
[71] Fix | Delete
<?php if ('' !== $fields_args['heading_link']): ?>
[72] Fix | Delete
<a href="<?php echo $fields_args['heading_link'] ?>"><?php echo $fields_args['heading']; ?></a>
[73] Fix | Delete
<?php else: ?>
[74] Fix | Delete
<?php echo $fields_args['heading']; ?>
[75] Fix | Delete
<?php endif; ?>
[76] Fix | Delete
</span>
[77] Fix | Delete
[78] Fix | Delete
<?php if (!empty($icon)) : ?>
[79] Fix | Delete
<span class="tb_fancy_heading_icon_wrap <?php echo $is_inline === true ? 'tf_inline_b' : 'tf_block'; ?>">
[80] Fix | Delete
<?php if ($hide_divider===false) : ?><span class="tb_fancy_heading_border tf_rel"></span><?php endif; ?>
[81] Fix | Delete
<span class="tb_fancy_heading_icon">
[82] Fix | Delete
<?php if ($fields_args['icon_type'] !== 'image_icon') : ?>
[83] Fix | Delete
<em<?php if ('' !== $fields_args['icon_c'] && $fields_args['icon_type']==='icon'){ echo ' style="color:' . Themify_Builder_Stylesheet::get_rgba_color($fields_args['icon_c']) . '"';}?>><?php echo $icon; ?></em>
[84] Fix | Delete
<?php else: ?>
[85] Fix | Delete
<img src="<?php echo esc_url($icon) ?>" alt="<?php echo esc_attr($fields_args['heading']); ?>">
[86] Fix | Delete
<?php endif; ?>
[87] Fix | Delete
</span>
[88] Fix | Delete
<?php if ($hide_divider===false) : ?><span class="tb_fancy_heading_border tf_rel"></span><?php endif; ?>
[89] Fix | Delete
</span>
[90] Fix | Delete
<?php endif; ?>
[91] Fix | Delete
[92] Fix | Delete
<span class="sub-head <?php echo $is_inline === true ? 'tf_inline_b' : 'tf_block'; ?> tf_rel">
[93] Fix | Delete
<?php if ('' !== $fields_args['sub_heading_link']): ?>
[94] Fix | Delete
<a href="<?php echo $fields_args['sub_heading_link'] ?>"><?php echo $fields_args['sub_heading']; ?></a>
[95] Fix | Delete
<?php else: ?>
[96] Fix | Delete
<?php echo $fields_args['sub_heading']; ?>
[97] Fix | Delete
<?php endif; ?>
[98] Fix | Delete
</span>
[99] Fix | Delete
</<?php echo $fields_args['heading_tag']; ?>>
[100] Fix | Delete
</div>
[101] Fix | Delete
<!-- /module fancy heading -->
[102] Fix | Delete
[103] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function