account-status-connected.php
5 months ago
account-status-create-advanced.php
5 months ago
account-status-create-simple.php
5 months ago
account-status-loading.php
3 years ago
bulk-optimization-form.php
5 months ago
bulk-optimization-upgrade-notice.php
5 months ago
bulk-optimization.php
2 months ago
compress-details-processing.php
5 months ago
compress-details.php
5 months ago
dashboard-widget.php
2 months ago
notice-feedback.php
2 months ago
optimization-chart.php
5 months ago
request-review.php
2 months ago
settings-conversion-delivery.php
2 months ago
settings-conversion-enabled.php
2 months ago
settings-conversion-output.php
2 months ago
settings-conversion.php
2 months ago
settings-diagnostics.php
5 months ago
settings-original-image-original.php
2 months ago
settings-original-image-preserve.php
2 months ago
settings-original-image.php
2 months ago
settings.php
2 months ago
dashboard-widget.php
98 lines
| 1 | <?php |
| 2 | $link = "<a href='" . admin_url( 'upload.php?page=tiny-bulk-optimization' ) . "'>" . esc_html__( 'bulk optimization', 'tiny-compress-images' ) . '</a>'; |
| 3 | ?> |
| 4 | <style type="text/css" > |
| 5 | div#tinypng_dashboard_widget div.description { |
| 6 | display: none; |
| 7 | } |
| 8 | div#tinypng_dashboard_widget div#optimization-chart { |
| 9 | display: none; |
| 10 | } |
| 11 | div#tinypng_dashboard_widget div#optimization-chart svg circle.main { |
| 12 | stroke: <?php echo $admin_colors[2]; ?>; |
| 13 | } |
| 14 | </style> |
| 15 | |
| 16 | <div class="spinner" id="widget-spinner"></div> |
| 17 | <div class="sky"></div> |
| 18 | <div class="cloud"></div> |
| 19 | <div class="panda"></div> |
| 20 | <div class="grass"></div> |
| 21 | <div class="description no-images"> |
| 22 | <p><?php esc_html_e( 'You do not seem to have uploaded any JPEG, PNG or WebP images yet.', 'tiny-compress-images' ); ?></p> |
| 23 | </div> |
| 24 | <div class="description not-optimized"> |
| 25 | <p> |
| 26 | <?php |
| 27 | /* translators: %s: friendly user name */ |
| 28 | printf( esc_html__( 'Hi %s, you haven’t compressed any images in your media library.', 'tiny-compress-images' ), $this->friendly_user_name() ); |
| 29 | echo ' '; |
| 30 | printf( |
| 31 | wp_kses( |
| 32 | /* translators: %s: bulk optimization page */ |
| 33 | __( 'If you like you can to optimize your whole library in one go with the %s page.', 'tiny-compress-images' ), |
| 34 | array( |
| 35 | 'a' => array( |
| 36 | 'href' => array(), |
| 37 | ), |
| 38 | ) |
| 39 | ), |
| 40 | $link |
| 41 | ); |
| 42 | ?> |
| 43 | </p> |
| 44 | </div> |
| 45 | <div class="description half-optimized"> |
| 46 | <p> |
| 47 | <?php |
| 48 | /* translators: %s: friendly user name */ |
| 49 | printf( esc_html__( '%s, you are doing good.', 'tiny-compress-images' ), $this->friendly_user_name() ); |
| 50 | echo ' '; |
| 51 | /* translators: %s: number of optimizable sizes and number of uploaded images */ |
| 52 | printf( esc_html__( 'With your current settings you can still optimize %1$s image sizes from your %2$s uploaded JPEG, PNG, and WebP images.', 'tiny-compress-images' ), '<span id="unoptimized-sizes"></span>', '<span id="uploaded-images"></span>' ); |
| 53 | echo ' '; |
| 54 | printf( |
| 55 | wp_kses( |
| 56 | /* translators: %s: bulk optimization link */ |
| 57 | __( 'Start the %s to optimize the remainder of your library.', 'tiny-compress-images' ), |
| 58 | array( |
| 59 | 'a' => array( |
| 60 | 'href' => array(), |
| 61 | ), |
| 62 | ) |
| 63 | ), |
| 64 | $link |
| 65 | ); |
| 66 | ?> |
| 67 | </p> |
| 68 | </div> |
| 69 | <div class="description full-optimized"> |
| 70 | <p> |
| 71 | <?php |
| 72 | /* translators: %s: friendly user name */ |
| 73 | printf( esc_html__( '%s, this is great! Your entire library is optimized!', 'tiny-compress-images' ), $this->friendly_user_name() ); |
| 74 | echo ' '; |
| 75 | require __DIR__ . '/request-review.php'; |
| 76 | ?> |
| 77 | </p> |
| 78 | </div> |
| 79 | <div class="description" id="ie8-compressed"> |
| 80 | <p> |
| 81 | <?php |
| 82 | printf( |
| 83 | wp_kses( |
| 84 | /* translators: %s: savings percentage */ |
| 85 | __( 'You have <strong>saved %s</strong> of your media library size.', 'tiny-compress-images' ), |
| 86 | array( |
| 87 | 'span' => array(), |
| 88 | 'strong' => array(), |
| 89 | ) |
| 90 | ), |
| 91 | '<span></span>%' |
| 92 | ); |
| 93 | ?> |
| 94 | </p> |
| 95 | </div> |
| 96 | |
| 97 | <?php require_once __DIR__ . '/optimization-chart.php'; ?> |
| 98 |