|
16 | 16 | <span class="message"> |
17 | 17 | <strong><?php echo $tiny_metadata->get_compressed_count() ?></strong> |
18 | 18 | <span> |
19 | | - <?= htmlspecialchars(_n('size compressed', 'sizes compressed', $tiny_metadata->get_compressed_count(), 'tiny-compress-images')) ?> |
| 19 | + <?php echo htmlspecialchars(_n('size compressed', 'sizes compressed', $tiny_metadata->get_compressed_count(), 'tiny-compress-images')) ?> |
20 | 20 | </span> |
21 | 21 | </span> |
22 | 22 | <br/> |
23 | 23 | <?php } ?> |
24 | 24 |
|
25 | 25 | <?php if ($not_compressed_active > 0) { ?> |
26 | 26 | <span class="message"> |
27 | | - <?= htmlspecialchars(sprintf(_n('%d size not compressed', '%d sizes not compressed', $not_compressed_active), $not_compressed_active)) ?> |
| 27 | + <?php echo htmlspecialchars(sprintf(_n('%d size not compressed', '%d sizes not compressed', $not_compressed_active, 'tiny-compress-images'), $not_compressed_active)) ?> |
28 | 28 | </span> |
29 | 29 | <br /> |
30 | 30 | <?php } ?> |
31 | 31 |
|
32 | 32 | <?php if ($missing > 0) { ?> |
33 | 33 | <span class="message"> |
34 | | - <?= htmlspecialchars(sprintf(_n('%d file removed', '%d files removed', $missing), $missing)) ?> |
| 34 | + <?php echo htmlspecialchars(sprintf(_n('%d file removed', '%d files removed', $missing, 'tiny-compress-images'), $missing)) ?> |
35 | 35 | </span> |
36 | 36 | <br /> |
37 | 37 | <?php } ?> |
38 | 38 |
|
39 | 39 | <?php if ($modified > 0) { ?> |
40 | 40 | <span class="message"> |
41 | | - <?= htmlspecialchars(sprintf(_n('%d file modified after compression', '%d files modified after compression', $modified), $modified)) ?> |
| 41 | + <?php echo htmlspecialchars(sprintf(_n('%d file modified after compression', '%d files modified after compression', $modified, 'tiny-compress-images'), $modified)) ?> |
42 | 42 | </span> |
43 | 43 | <br /> |
44 | 44 | <?php } ?> |
|
52 | 52 |
|
53 | 53 | <?php if ($error) { ?> |
54 | 54 | <span class="message error_message"> |
55 | | - <?= esc_html__('Latest error', 'tiny-compress-images') . ': '. esc_html__($error, 'tiny-compress-images') ?> |
| 55 | + <?php echo esc_html__('Latest error', 'tiny-compress-images') . ': '. esc_html__($error, 'tiny-compress-images') ?> |
56 | 56 | </span> |
57 | 57 | <br/> |
58 | 58 | <?php } ?> |
|
65 | 65 |
|
66 | 66 | <?php if ($tiny_metadata->can_be_compressed() && count($uncompressed) > 0) { ?> |
67 | 67 | <button type="button" class="tiny-compress button button-small button-primary" data-id="<?php echo $tiny_metadata->get_id() ?>"> |
68 | | - <?= esc_html__('Compress', 'tiny-compress-images') ?> |
| 68 | + <?php echo esc_html__('Compress', 'tiny-compress-images') ?> |
69 | 69 | </button> |
70 | 70 | <?php } ?> |
71 | 71 | </div> |
|
82 | 82 | <th><?php esc_html_e('Compressed', 'tiny-compress-images') ?></th> |
83 | 83 | <th><?php esc_html_e('Date', 'tiny-compress-images') ?></th> |
84 | 84 | </tr> |
85 | | - <?php $i = 0; ?> |
| 85 | + <?php $i = 0 ?> |
86 | 86 | <?php foreach ($tiny_metadata->get_compressed_sizes() as $size) { ?> |
87 | | - <?php $meta = $tiny_metadata->get_value($size); ?> |
| 87 | + <?php $meta = $tiny_metadata->get_value($size) ?> |
88 | 88 | <tr class="<?php echo ($i % 2 == 0) ? 'even' : 'odd' ?>"> |
89 | 89 | <td> |
90 | 90 | <?php |
|
106 | 106 | <td><?php echo size_format($meta["output"]["size"], 1) ?></td> |
107 | 107 | <td><?php echo human_time_diff($tiny_metadata->get_end_time($size)) . ' ' . esc_html__('ago', 'tiny-compress-images') ?></td> |
108 | 108 | </tr> |
109 | | - <?php $i++; ?> |
| 109 | + <?php $i++ ?> |
110 | 110 | <?php } ?> |
111 | 111 | <?php if ($savings['count'] > 0) { ?> |
112 | 112 | <tfoot> |
|
0 commit comments