| 1 |
<?php |
| 2 |
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' ); |
| 3 |
|
| 4 |
delete_transient( 'imagify_bulk_optimization_complete' ); |
| 5 |
delete_transient( 'imagify_bulk_optimization_result' ); |
| 6 |
?> |
| 7 |
|
| 8 |
<div class="notice notice-success is-dismissible"> |
| 9 |
<div class="imagify-notice-bulk-complete"> |
| 10 |
<div class="imagify-notice-bulk-complete-logo"> |
| 11 |
<img src="<?php echo esc_url( IMAGIFY_ASSETS_IMG_URL . 'imagify.svg' ); ?>" width="96" height="96" alt="Imagify" /> |
| 12 |
</div> |
| 13 |
<div> |
| 14 |
<p><strong><?php esc_html_e( 'Well done!', 'imagify' ); ?></strong></p> |
| 15 |
<p><?php esc_html_e( 'The bulk optimization is now complete.', 'imagify' ); ?></p> |
| 16 |
<p><?php |
| 17 |
printf( |
| 18 |
// 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. |
| 19 |
__( 'We have optimized %1$s images and you have just saved %2$s out of %3$s. %4$sCheck your stats%5$s' ), |
| 20 |
$data['total'], |
| 21 |
$data['optimized_size'], |
| 22 |
$data['original_size'], |
| 23 |
'<a href="' . esc_url( $data['bulk_page_url'] ) . '">', |
| 24 |
'</a>' |
| 25 |
); |
| 26 |
?> |
| 27 |
</p> |
| 28 |
</div> |
| 29 |
<?php $this->print_template( 'notice-footer', [ 'dismissible' => 'bulk-optimization-complete' ] ); ?> |
| 30 |
|