: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* @var bool $is_lazy_load Is lazy load module active.
* @var array $media_types List of supported media types.
if ( ! defined( 'WPINC' ) ) {
<?php esc_html_e( 'This feature stops offscreen images from loading until a visitor scrolls to them. Make your page load faster, use less bandwidth and fix the “defer offscreen images” recommendation from a Google PageSpeed test.', 'wp-smushit' ); ?>
<?php if ( ! $is_lazy_load ) : ?>
<button class="sui-button sui-button-blue" id="smush-enable-lazyload">
<span class="sui-loading-text"><?php esc_html_e( 'Activate', 'wp-smushit' ); ?></span>
<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>
<div class="sui-notice sui-notice-success">
<div class="sui-notice-content">
<div class="sui-notice-message">
<span class="sui-notice-icon sui-icon-check-tick sui-md" aria-hidden="true"></span>
<p><?php esc_html_e( 'Lazy loading is active.', 'wp-smushit' ); ?></p>
<div class="sui-box-settings-row sui-flushed">
<span class="sui-settings-label"><?php esc_html_e( 'Active Media Types', 'wp-smushit' ); ?></span>
<?php foreach ( $media_types as $media => $value ) : ?>
<span class="smush-filename-extension smush-extension-<?php echo esc_attr( $media ); ?>">
<?php echo esc_html( $media ); ?>
<a href="<?php echo esc_url( $this->get_url( 'smush-lazy-load' ) ); ?>" class="sui-button sui-button-ghost">
<span class="sui-icon-wrench-tool" aria-hidden="true"></span>
<?php esc_html_e( 'Configure', 'wp-smushit' ); ?>