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-overlay-content.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Template Part
[2] Fix | Delete
*
[3] Fix | Delete
* This template can be overridden by copying it to your child_theme_folder/themify-builder/template-overlay-content.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
$element_id = $args['module_ID'];
[12] Fix | Delete
$fields_args = $args['mod_settings']+ array(
[13] Fix | Delete
'selected_layout_part' => '',
[14] Fix | Delete
'style' => 'overlay',
[15] Fix | Delete
'add_css_layout_part' => '',
[16] Fix | Delete
'icon' => '',
[17] Fix | Delete
'icon_title' => '',
[18] Fix | Delete
'overlay_type' => 'overlay',
[19] Fix | Delete
'expand_mode' => 'overlap',
[20] Fix | Delete
'overlay_width' => '100',
[21] Fix | Delete
'overlay_height' => '100',
[22] Fix | Delete
'overlay_width_unit' => 'px',
[23] Fix | Delete
'overlay_height_unit' => 'px',
[24] Fix | Delete
);
[25] Fix | Delete
$container_class = apply_filters('themify_builder_module_classes', array(
[26] Fix | Delete
'module', 'module-' . $args['mod_name'], $args['module_ID'], $fields_args['add_css_layout_part']
[27] Fix | Delete
), $args['mod_name'], $args['module_ID'], $fields_args);
[28] Fix | Delete
[29] Fix | Delete
$container_props = apply_filters('themify_builder_module_container_props', array(
[30] Fix | Delete
'class' => implode(' ', $container_class),
[31] Fix | Delete
'data-overlay' => $fields_args['overlay_type'],
[32] Fix | Delete
), $fields_args, $args['mod_name'], $args['module_ID']);
[33] Fix | Delete
$overlay_id = 'tb_oc_' . $args['module_ID'];
[34] Fix | Delete
$isLoop = Themify_Builder::$is_loop;
[35] Fix | Delete
Themify_Builder::$is_loop = true;
[36] Fix | Delete
$layoutPart = $fields_args['selected_layout_part'] !== '' ? do_shortcode('[themify_layout_part slug="' . $fields_args['selected_layout_part'] . '"]') : '';
[37] Fix | Delete
$is_overlay = 'overlay' === $fields_args['overlay_type'];
[38] Fix | Delete
$overlay_style = 'width:' . $fields_args['overlay_width'] . $fields_args['overlay_width_unit'] . ';height:' . $fields_args['overlay_height'] . $fields_args['overlay_height_unit'] . ';';
[39] Fix | Delete
if ($is_overlay === true && 'overlay' !== $fields_args['style'] && ( '100%' !== $fields_args['overlay_width'] . $fields_args['overlay_width_unit'] || '100%' !== $fields_args['overlay_height'] . $fields_args['overlay_height_unit'] )) {
[40] Fix | Delete
if ('100' !== $fields_args['overlay_height'] && 'px' !== $fields_args['overlay_height_unit'] && ('slide_down' === $fields_args['style'] || 'slide_up' === $fields_args['style'])) {
[41] Fix | Delete
$overlay_style .= 'slide_down' === $fields_args['style'] ? 'bottom' : 'top';
[42] Fix | Delete
$overlay_style .= ':' . (( 100 - $fields_args['overlay_height'] ) / 2) . $fields_args['overlay_height_unit'] . ';';
[43] Fix | Delete
}
[44] Fix | Delete
if ('100' !== $fields_args['overlay_width'] && 'px' !== $fields_args['overlay_width_unit'] && ('slide_left' === $fields_args['style'] || 'slide_right' === $fields_args['style'])) {
[45] Fix | Delete
$overlay_style .= 'slide_left' === $fields_args['style'] ? 'left' : 'right';
[46] Fix | Delete
$overlay_style .= ':' . (( 100 - $fields_args['overlay_width'] ) / 2) . $fields_args['overlay_width_unit'];
[47] Fix | Delete
}
[48] Fix | Delete
}
[49] Fix | Delete
$icon = !empty($fields_args['icon']) ? sprintf('<em>%s</em>', themify_get_icon($fields_args['icon'])) : '';
[50] Fix | Delete
if (Themify_Builder::$frontedit_active === false) {
[51] Fix | Delete
$container_props['data-lazy'] = 1;
[52] Fix | Delete
}
[53] Fix | Delete
self::sticky_element_props($container_props, $fields_args);
[54] Fix | Delete
?>
[55] Fix | Delete
<!-- module overlay-content -->
[56] Fix | Delete
<div <?php echo themify_get_element_attributes($container_props); ?>>
[57] Fix | Delete
<?php $container_props = $container_class = $args =null; ?>
[58] Fix | Delete
<a href="<?php echo $is_overlay === true ? '#' . $overlay_id : '#'; ?>" rel="nofollow" class="tb_ov_co_icon_wrapper tf_inline_b<?php echo empty($icon) ? ' tb_ov_no_icon' : ''; ?>">
[59] Fix | Delete
<span class="tb_ov_co_icon_outer tf_inline_b"><span class="tb_ov_co_icon tf_box tf_rel tf_inline_b<?php echo empty($icon) ? ' tf_vmiddle' : ''; ?>"><?php echo $icon; ?></span></span>
[60] Fix | Delete
<?php echo!empty($fields_args['icon_title']) ? '<span class="tb_ov_co_icon_title tf_vmiddle">' . $fields_args['icon_title'] . '</span>' : ''; ?>
[61] Fix | Delete
</a>
[62] Fix | Delete
<?php echo $is_overlay === false ? '<div class="tb_oc_expand_container tb_oc_expand_' . $fields_args['expand_mode'] . '">' : ''; ?>
[63] Fix | Delete
<div id="<?php echo $overlay_id; ?>" style="<?php echo $overlay_style; ?>" class="tb_oc_overlay tf_scrollbar tf_box<?php echo $is_overlay === true ? ' sidemenu sidemenu-off tf_w tf_h tf_hide tb_content_overlay_' . $fields_args['style'] : ' tb_oc_expandable tf_abs tf_w tf_h'; ?>">
[64] Fix | Delete
<?php if ($is_overlay === true): ?>
[65] Fix | Delete
<a id="<?php echo $overlay_id; ?>_close" href="javascript:;" rel="nofollow" class="tb_ov_close tf_box"><span class="tb_ov_close_inner tf_close tf_rel"><span class="screen-reader-text"><?php _e('Close Overlay','themify')?></span></span></a>
[66] Fix | Delete
<?php endif; ?>
[67] Fix | Delete
<div class="tb_overlay_content_lp"><?php echo $layoutPart; ?></div>
[68] Fix | Delete
</div>
[69] Fix | Delete
<?php if (true === $is_overlay): ?>
[70] Fix | Delete
<div class="tb_oc_overlay_layer tf_abs_t" data-id="<?php echo $overlay_id; ?>"></div>
[71] Fix | Delete
<?php endif; ?>
[72] Fix | Delete
<?php echo $is_overlay === false ? '</div>' : ''; ?>
[73] Fix | Delete
[74] Fix | Delete
<?php if ($is_overlay === true && in_array($fields_args['style'], array('slide_left', 'slide_right'), true)) : ?>
[75] Fix | Delete
<style>
[76] Fix | Delete
.<?php echo $element_id; ?> .tb_content_overlay_<?php echo $fields_args['style']; ?>{
[77] Fix | Delete
transform:translateX(<?php echo ( $fields_args['style'] === 'slide_left' ? '-' : '' ), $fields_args['overlay_width'], $fields_args['overlay_width_unit']; ?>)
[78] Fix | Delete
}
[79] Fix | Delete
</style>
[80] Fix | Delete
<?php endif; ?>
[81] Fix | Delete
</div><!-- /module overlay-content -->
[82] Fix | Delete
<?php
[83] Fix | Delete
Themify_Builder::$is_loop = $isLoop;
[84] Fix | Delete
[85] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function