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.../public_h.../clone/wp-conte.../plugins/wpforms-.../template.../admin/splash
File: section.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* What's New modal section.
[2] Fix | Delete
*
[3] Fix | Delete
* @since 1.8.7
[4] Fix | Delete
*
[5] Fix | Delete
* @var string $title Section title.
[6] Fix | Delete
* @var string $content Section content.
[7] Fix | Delete
* @var array $img Section image.
[8] Fix | Delete
* @var string $new Is new feature.
[9] Fix | Delete
* @var array $buttons Section buttons.
[10] Fix | Delete
* @var string $layout Section layout.
[11] Fix | Delete
*/
[12] Fix | Delete
[13] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[14] Fix | Delete
exit;
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
$classes = [
[18] Fix | Delete
'wpforms-splash-section',
[19] Fix | Delete
'wpforms-splash-section-' . $layout,
[20] Fix | Delete
];
[21] Fix | Delete
?>
[22] Fix | Delete
[23] Fix | Delete
<section class="<?php echo wpforms_sanitize_classes( $classes, true ); ?>">
[24] Fix | Delete
<div class="wpforms-splash-section-content">
[25] Fix | Delete
<?php
[26] Fix | Delete
if ( ! empty( $new ) ) {
[27] Fix | Delete
printf( '<span class="wpforms-splash-badge">%s</span>', esc_html( __( 'New Feature', 'wpforms-lite' ) ) );
[28] Fix | Delete
}
[29] Fix | Delete
?>
[30] Fix | Delete
<h3><?php echo esc_html( $title ); ?></h3>
[31] Fix | Delete
<p><?php echo wp_kses_post( $content ); ?></p>
[32] Fix | Delete
[33] Fix | Delete
<?php if ( ! empty( $buttons ) ) : ?>
[34] Fix | Delete
<div class="wpforms-splash-section-buttons">
[35] Fix | Delete
<?php
[36] Fix | Delete
foreach ( $buttons as $button_type => $button ) {
[37] Fix | Delete
$button_class = $button_type === 'main' ? 'wpforms-btn-orange' : 'wpforms-btn-bordered';
[38] Fix | Delete
[39] Fix | Delete
printf( '<a href="%1$s" class="wpforms-btn %3$s">%2$s</a>', esc_url( $button['url'] ), esc_html( $button['text'] ), esc_attr( $button_class ) );
[40] Fix | Delete
}
[41] Fix | Delete
?>
[42] Fix | Delete
</div>
[43] Fix | Delete
<?php endif; ?>
[44] Fix | Delete
</div>
[45] Fix | Delete
[46] Fix | Delete
<?php if ( ! empty( $img ) ) : ?>
[47] Fix | Delete
<div class="wpforms-splash-section-image wpforms-image-shadow-<?php echo wpforms_sanitize_classes( $img['shadow'] ?? 'none' ); ?>">
[48] Fix | Delete
<img src="<?php echo esc_url( $img['url'] ); ?>" alt="">
[49] Fix | Delete
</div>
[50] Fix | Delete
<?php endif; ?>
[51] Fix | Delete
</section>
[52] Fix | Delete
[53] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function