account-status-connected.php
11 months ago
account-status-create-advanced.php
11 months ago
account-status-create-simple.php
4 years ago
account-status-loading.php
4 years ago
bulk-optimization-form.php
1 year ago
bulk-optimization-upgrade-notice.php
4 years ago
bulk-optimization.php
1 year ago
compress-details-processing.php
4 years ago
compress-details.php
10 months ago
dashboard-widget.php
1 year ago
optimization-chart.php
4 years ago
settings.php
11 months ago
dashboard-widget.php
80 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 | /* translators: %s: bulk optimization page */ |
| 31 | printf( wp_kses( __( 'If you like you can to optimize your whole library in one go with the %s page.', 'tiny-compress-images' ), array( |
| 32 | 'a' => array( |
| 33 | 'href' => array(), |
| 34 | ), |
| 35 | ) ), $link ); |
| 36 | ?> |
| 37 | </p> |
| 38 | </div> |
| 39 | <div class="description half-optimized"> |
| 40 | <p> |
| 41 | <?php |
| 42 | /* translators: %s: friendly user name */ |
| 43 | printf( esc_html__( '%s, you are doing good.', 'tiny-compress-images' ), $this->friendly_user_name() ); |
| 44 | echo ' '; |
| 45 | /* translators: %s: number of optimizable sizes and number of uploaded images */ |
| 46 | 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>' ); |
| 47 | echo ' '; |
| 48 | /* translators: %s: bulk optimization link */ |
| 49 | printf( wp_kses( __( 'Start the %s to optimize the remainder of your library.', 'tiny-compress-images' ), array( |
| 50 | 'a' => array( |
| 51 | 'href' => array(), |
| 52 | ), |
| 53 | ) ), $link ); |
| 54 | ?> |
| 55 | </p> |
| 56 | </div> |
| 57 | <div class="description full-optimized"> |
| 58 | <p> |
| 59 | <?php |
| 60 | /* translators: %s: friendly user name */ |
| 61 | printf( esc_html__( '%s, this is great! Your entire library is optimized!', 'tiny-compress-images' ), $this->friendly_user_name() ); |
| 62 | echo ' '; |
| 63 | echo Tiny_Plugin::request_review(); |
| 64 | ?> |
| 65 | </p> |
| 66 | </div> |
| 67 | <div class="description" id="ie8-compressed"> |
| 68 | <p> |
| 69 | <?php |
| 70 | /* translators: %s: savings percentage */ |
| 71 | printf( wp_kses( __( 'You have <strong>saved %s</strong> of your media library size.', 'tiny-compress-images' ), array( |
| 72 | 'span' => array(), |
| 73 | 'strong' => array(), |
| 74 | ) ), '<span></span>%' ); |
| 75 | ?> |
| 76 | </p> |
| 77 | </div> |
| 78 | |
| 79 | <?php require_once dirname( __FILE__ ) . '/optimization-chart.php'; ?> |
| 80 |