PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / 1.7.7
Image Optimizer – Compress Images and Convert to WebP or AVIF v1.7.7
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
← All changes | modules/optimization/templates/list-view/optimized.php +15 -3 1.5.11.7.7 View file →
@@ -14,9 +14,21 @@
14 14 data-image-optimization-image-id="<?php echo esc_attr( $args['image_id'] ); ?>"
15 15 data-image-optimization-can-be-restored="<?php echo esc_attr( $args['can_be_restored'] ); ?>">
16 16 <p class="image-optimization-control__property">
17 17 <?php esc_html_e( 'Image sizes optimized', 'image-optimization' ); ?>:
18 - <span><?php echo esc_html( $args['sizes_optimized_count'] ); ?></span>
18 + <span>
19 + <?php printf(
20 + '%d/%d',
21 + esc_html( $args['sizes_optimized_count'] ),
22 + esc_html( $args['sizes_total'] )
23 + ); ?>
24 +
25 + <button type="button"
26 + class="image-optimization-control__details-button"
27 + aria-label="<?php esc_html_e( 'Open optimization details', 'image-optimization' ); ?>">
28 + (+)
29 + </button>
30 + </span>
19 31 </p>
20 32
21 33 <p class="image-optimization-control__property">
22 34 <?php if ( 0 === $args['saved']['absolute'] ) { ?>
@@ -22,11 +34,11 @@
22 34 <?php if ( 0 === $args['saved']['absolute'] ) { ?>
23 35 <span>
24 36 <?php
25 37 if ( $args['is_losseless_and_webp'] ) {
26 - echo esc_html_e( 'Requested WebP format is larger than the original file. Switch to Lossy in settings to convert this image in an optimized manner.', 'image-optimization' );
38 + esc_html_e( 'Requested WebP format is larger than the original file. Switch to Lossy in settings to convert this image in an optimized manner.', 'image-optimization' );
27 39 } else {
28 - echo esc_html_e( 'Image is fully optimized', 'image-optimization' );
40 + esc_html_e( 'Image is fully optimized', 'image-optimization' );
29 41 }
30 42 ?>
31 43 </span>
32 44 <?php } else { ?>