This commit is contained in:
apuc committed 2024-05-20 15:37:46 +03:00
commit 00b7dbd0b7
10404 files changed
+3285853

No files matched your search

@@ -0,0 +1,30 @@
<?php
/**
* WebP disabled meta box.
*
* @since 3.8.0
* @package WP_Smush
*/
if ( ! defined( 'WPINC' ) ) {
die;
}
?>
<div class="sui-message sui-no-padding">
<?php if ( ! apply_filters( 'wpmudev_branding_hide_branding', false ) ) : ?>
<img src="<?php echo esc_url( WP_SMUSH_URL . 'app/assets/images/graphic-smush-webp-default.png' ); ?>"
srcset="<?php echo esc_url( WP_SMUSH_URL . 'app/assets/images/graphic-smush-webp-default@2x.png' ); ?> 2x" alt="<?php esc_html_e( 'Smush WebP', 'wp-smushit' ); ?>" class="sui-image" />
<?php endif; ?>
<div class="sui-message-content">
<p>
<?php esc_html_e( 'Fix the "Serve images in next-gen format" Google PageSpeed recommendation by setting up this feature. Locally serve WebP versions of your images to supported browsers, and gracefully fall back on JPEGs and PNGs for browsers that don\'t support WebP.', 'wp-smushit' ); ?>
</p>
<button class="sui-button sui-button-blue" id="smush-toggle-webp-button" data-action="enable">
<span class="sui-loading-text"><?php esc_html_e( 'Get started', 'wp-smushit' ); ?></span>
<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>
</button>
</div>
</div>