1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<?php /** * Lazy loading disabled meta box. * * @since 3.2.0 * @package WP_Smush */
if ( ! defined( 'WPINC' ) ) { die; }
?>
<?php if ( ! apply_filters( 'wpmudev_branding_hide_branding', false ) ) : ?> <img src="<?php echo esc_url( WP_SMUSH_URL . 'app/assets/images/graphic-smush-lazyload-default.png' ); ?>" srcset="<?php echo esc_url( WP_SMUSH_URL . 'app/assets/images/graphic-smush-lazyload-default@2x.png' ); ?> 2x" alt="<?php esc_html_e( 'Smush CDN', 'wp-smushit' ); ?>"> <?php endif; ?>
<div class="sui-message-content"> <p> <?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' ); ?> </p>
<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> </button> </div>
|