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/details-view/optimized.php +13 -3 1.5.11.7.7 View file →
@@ -28,9 +28,19 @@
28 28 <?php esc_html_e( 'Image sizes optimized', 'image-optimization' ); ?>:
29 29 </span>
30 30
31 31 <span class="image-optimization-control__property-value">
32 - <?php echo esc_html( $args['sizes_optimized_count'] ); ?>
32 + <?php printf(
33 + '%d/%d',
34 + esc_html( $args['sizes_optimized_count'] ),
35 + esc_html( $args['sizes_total'] )
36 + ); ?>
37 +
38 + <button type="button"
39 + class="image-optimization-control__details-button"
40 + aria-label="<?php esc_html_e( 'Open optimization details', 'image-optimization' ); ?>">
41 + (+)
42 + </button>
33 43 </span>
34 44 </span>
35 45
36 46 <span class="setting image-optimization-setting">
@@ -39,11 +49,11 @@
39 49
40 50 <span class="name image-optimization-control__property-value" style="max-width: 50%;">
41 51 <?php
42 52 if ( $args['is_losseless_and_webp'] ) {
43 - 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' );
53 + 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' );
44 54 } else {
45 - echo esc_html_e( 'Image is fully optimized', 'image-optimization' );
55 + esc_html_e( 'Image is fully optimized', 'image-optimization' );
46 56 }
47 57 ?>
48 58 </span>
49 59 <?php } else { ?>