Files
medicalalert-web-reloaded/wp/wp-content/plugins/imagify/views/notice-bulk-optimization-complete.php
2024-06-17 14:42:23 -04:00

30 lines
1.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
defined( 'ABSPATH' ) || die( 'Cheatin uh?' );
delete_transient( 'imagify_bulk_optimization_complete' );
delete_transient( 'imagify_bulk_optimization_result' );
?>
<div class="notice notice-success is-dismissible">
<div class="imagify-notice-bulk-complete">
<div class="imagify-notice-bulk-complete-logo">
<img src="<?php echo esc_url( IMAGIFY_ASSETS_IMG_URL . 'imagify.svg' ); ?>" width="96" height="96" alt="Imagify" />
</div>
<div>
<p><strong><?php esc_html_e( 'Well done!', 'imagify' ); ?></strong></p>
<p><?php esc_html_e( 'The bulk optimization is now complete.', 'imagify' ); ?></p>
<p><?php
printf(
// translators: %1$s = number of images optimized, %2$s = size saved, %3$s = total size, %4$s = opening link tag, %5$s = closing link tag.
__( 'We have optimized %1$s images and you have just saved %2$s out of %3$s. %4$sCheck your stats%5$s' ),
$data['total'],
$data['optimized_size'],
$data['original_size'],
'<a href="' . esc_url( $data['bulk_page_url'] ) . '">',
'</a>'
);
?>
</p>
</div>
<?php $this->print_template( 'notice-footer', [ 'dismissible' => 'bulk-optimization-complete' ] ); ?>