← All changes
|
modules/optimization/templates/details-view/optimized.php
+13
-3
1.5.1
→
1.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 { ?> |