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-testimonial-slider-content.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Template Testimonial Content
[2] Fix | Delete
*
[3] Fix | Delete
* This template can be overridden by copying it to your child_theme_folder/themify-builder/template-testimonial-slider-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
$settings = $args['settings'];
[12] Fix | Delete
if (!empty($settings['tab_content_testimonial'])):
[13] Fix | Delete
$image_w = $settings['img_w_slider'];
[14] Fix | Delete
$image_h = $settings['img_h_slider'];
[15] Fix | Delete
$isSlider = !isset($settings['type_testimonial']) || $settings['type_testimonial'] === 'slider';
[16] Fix | Delete
$image_size = $settings['image_size_slider'] !== '' ? $settings['image_size_slider'] : themify_builder_get('setting-global_feature_size', 'image_global_size_field');
[17] Fix | Delete
$param_image_src = array('w' => $image_w, 'h' => $image_h, 'image_size' => $image_size);
[18] Fix | Delete
if ($isSlider === true) {
[19] Fix | Delete
$param_image_src['is_slider'] = true;
[20] Fix | Delete
}
[21] Fix | Delete
$limit= isset( $settings['visible_opt_slider'] ) ? (int) $settings['visible_opt_slider'] : 1;
[22] Fix | Delete
foreach ($settings['tab_content_testimonial'] as $i => $content):
[23] Fix | Delete
?>
[24] Fix | Delete
<div class="post<?php echo $isSlider === true ? ' tf_swiper-slide' : '' ?>"<?php if( $isSlider && $i >= $limit ) : ?> style="content-visibility:hidden"<?php endif;?>>
[25] Fix | Delete
<div class="testimonial-item"<?php if ($settings['margin'] !== ''): ?> style="<?php echo $settings['margin']; ?>"<?php endif; ?>>
[26] Fix | Delete
<?php
[27] Fix | Delete
$image = '';
[28] Fix | Delete
if (!empty($content['person_picture_testimonial'])) {
[29] Fix | Delete
$image_url = esc_url($content['person_picture_testimonial']);
[30] Fix | Delete
$image_title = isset($content['title_testimonial']) ? $content['title_testimonial'] : '';
[31] Fix | Delete
if ($alt_by_url = Themify_Builder_Model::get_alt_by_url($image_url)) {
[32] Fix | Delete
$image_alt = $alt_by_url;
[33] Fix | Delete
} else {
[34] Fix | Delete
$image_alt = $image_title;
[35] Fix | Delete
}
[36] Fix | Delete
$param_image_src['src'] = $image_url;
[37] Fix | Delete
$param_image_src['alt'] = $image_alt;
[38] Fix | Delete
$image = themify_get_image($param_image_src);
[39] Fix | Delete
}
[40] Fix | Delete
?>
[41] Fix | Delete
<div class="testimonial-content">
[42] Fix | Delete
<?php if (!empty($content['title_testimonial'])): ?>
[43] Fix | Delete
<h3 class="testimonial-title"><?php echo $content['title_testimonial'] ?></h3>
[44] Fix | Delete
<?php endif; ?>
[45] Fix | Delete
<?php
[46] Fix | Delete
if (!empty($content['ic'])) {
[47] Fix | Delete
$count = !empty($content['count']) ? (int) $content['count'] : 5;
[48] Fix | Delete
$rating = isset($content['rating']) && $content['rating'] !== '' ? round((float) $content['rating'], 2) : 5;
[49] Fix | Delete
$defaultIcon = themify_get_icon($content['ic']);
[50] Fix | Delete
$fillIcon = themify_get_icon($content['ic'], false, false, false, array('class' => 'tb_rating_fill'));
[51] Fix | Delete
?>
[52] Fix | Delete
<div class="tb_rating_wrap">
[53] Fix | Delete
<?php
[54] Fix | Delete
for ($j = 0; $j < $count; ++$j) {
[55] Fix | Delete
if (($rating - $j) >= 1) {
[56] Fix | Delete
echo $fillIcon;
[57] Fix | Delete
} elseif ($rating > $j) {
[58] Fix | Delete
$decimal = $rating - (int) $rating;
[59] Fix | Delete
$gid = $args['module_ID'] . $i;
[60] Fix | Delete
?>
[61] Fix | Delete
<svg width="0" height="0" aria-hidden="true" style="visibility:hidden;position:absolute">
[62] Fix | Delete
<defs>
[63] Fix | Delete
<linearGradient id="<?php echo $gid ?>">
[64] Fix | Delete
<stop offset="<?php echo $decimal * 100 ?>%" class="tb_rating_fill"/>
[65] Fix | Delete
<stop offset="<?php echo $decimal * 100 ?>%" stop-color="currentColor"/>
[66] Fix | Delete
</linearGradient>
[67] Fix | Delete
</defs>
[68] Fix | Delete
</svg>
[69] Fix | Delete
<?php
[70] Fix | Delete
echo themify_get_icon($content['ic'], false, false, false, array('class' => 'tb_rating_half', 'style' => '--tb_rating_half:url(#' . $gid . ')'));
[71] Fix | Delete
} else {
[72] Fix | Delete
echo $defaultIcon;
[73] Fix | Delete
}
[74] Fix | Delete
}
[75] Fix | Delete
?>
[76] Fix | Delete
</div>
[77] Fix | Delete
<?php } ?>
[78] Fix | Delete
<?php if (!empty($content['content_testimonial'])): ?>
[79] Fix | Delete
<div class="testimonial-entry-content">
[80] Fix | Delete
<?php echo apply_filters('themify_builder_module_content', $content['content_testimonial']); ?>
[81] Fix | Delete
</div>
[82] Fix | Delete
<?php endif; ?>
[83] Fix | Delete
<?php if (!empty($image)): ?>
[84] Fix | Delete
<figure class="testimonial-image<?php if ($isSlider === true): ?> tf_lazy<?php endif; ?> tf_rel">
[85] Fix | Delete
<?php echo $image ?>
[86] Fix | Delete
</figure>
[87] Fix | Delete
<?php endif; ?>
[88] Fix | Delete
[89] Fix | Delete
<?php if (!empty($content['person_name_testimonial'])): ?>
[90] Fix | Delete
<div class="testimonial-author">
[91] Fix | Delete
<div class="person-name"><?php echo $content['person_name_testimonial'] ?></div>
[92] Fix | Delete
<?php if (!empty($content['person_position_testimonial'])): ?>
[93] Fix | Delete
<span class="person-position"><?php echo $content['person_position_testimonial'] ?></span>
[94] Fix | Delete
<?php endif; ?>
[95] Fix | Delete
<?php if (!empty($content['company_testimonial'])): ?>
[96] Fix | Delete
<div class="person-company">
[97] Fix | Delete
<?php if (!empty($content['company_website_testimonial'])): ?>
[98] Fix | Delete
<a href="<?php echo $content['company_website_testimonial'] ?>"><?php echo $content['company_testimonial'] ?></a>
[99] Fix | Delete
<?php else: ?>
[100] Fix | Delete
<?php echo $content['company_testimonial'] ?>
[101] Fix | Delete
<?php endif; ?>
[102] Fix | Delete
</div>
[103] Fix | Delete
<?php endif; ?>
[104] Fix | Delete
</div>
[105] Fix | Delete
<?php endif; ?>
[106] Fix | Delete
</div>
[107] Fix | Delete
</div>
[108] Fix | Delete
</div>
[109] Fix | Delete
<?php endforeach; ?>
[110] Fix | Delete
<?php
[111] Fix | Delete
endif;
[112] Fix | Delete
[113] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function