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
bulk-optimization-upgrade-notice.php
42 lines
| 1 | <div class="upgrade-account-notice"> |
| 2 | <div class="introduction"> |
| 3 | <p> |
| 4 | <?php |
| 5 | $strong = array( |
| 6 | 'strong' => array(), |
| 7 | ); |
| 8 | printf( |
| 9 | wp_kses( |
| 10 | /* translators: %s: number of remaining credits */ |
| 11 | __( |
| 12 | 'You are on a <strong>free plan</strong> with <strong>%s compressions left</strong> this month.', // WPCS: Needed for proper translation. |
| 13 | 'tiny-compress-images' |
| 14 | ), |
| 15 | $strong |
| 16 | ), |
| 17 | $remaining_credits |
| 18 | ); |
| 19 | ?> |
| 20 | </p> |
| 21 | <p> |
| 22 | <?php |
| 23 | esc_html_e( |
| 24 | 'Upgrade your account now to compress your entire media library.', |
| 25 | 'tiny-compress-images' |
| 26 | ); |
| 27 | ?> |
| 28 | </p> |
| 29 | </div> |
| 30 | <?php $encoded_email = str_replace( '%20', '%2B', rawurlencode( $email_address ) ); ?> |
| 31 | <a href="https://tinypng.com/dashboard/api?type=upgrade&mail=<?php echo $encoded_email; ?>" target="_blank" class="button button-primary button-hero upgrade-account"> |
| 32 | <?php esc_html_e( 'Upgrade account', 'tiny-compress-images' ); ?> |
| 33 | </a> |
| 34 | <?php if ( $remaining_credits > 0 ) { ?> |
| 35 | <p> |
| 36 | <a id="hide-warning" href="#"> |
| 37 | <?php esc_html_e( 'No thanks, continue anyway', 'tiny-compress-images' ); ?> |
| 38 | </a> |
| 39 | </p> |
| 40 | <?php } ?> |
| 41 | </div> |
| 42 |