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
account-status-create-advanced.php
71 lines
| 1 | <?php |
| 2 | |
| 3 | $user = wp_get_current_user(); |
| 4 | $name = trim( $user->user_firstname . ' ' . $user->user_lastname ); |
| 5 | $email = trim( $user->user_email ); |
| 6 | |
| 7 | ?><div class="tiny-account-status wide" id="tiny-account-status" data-state="missing"> |
| 8 | <div class="create"> |
| 9 | <h4> |
| 10 | <?php |
| 11 | echo esc_html_e( 'Register new account', 'tiny-compress-images' ); |
| 12 | ?> |
| 13 | </h4> |
| 14 | |
| 15 | <p class="introduction" class="description"> |
| 16 | <?php |
| 17 | esc_html_e( |
| 18 | 'Provide your name and email address to start optimizing images.', |
| 19 | 'tiny-compress-images' |
| 20 | ); |
| 21 | ?> |
| 22 | </p> |
| 23 | |
| 24 | <input type="text" id="tinypng_api_key_name" name="tinypng_api_key_name" |
| 25 | placeholder="Your full name" value="<?php echo esc_attr( $name ); ?>"> |
| 26 | |
| 27 | <input type="text" id="tinypng_api_key_email" name="tinypng_api_key_email" |
| 28 | placeholder="Your email address" value="<?php echo esc_attr( $email ); ?>"> |
| 29 | |
| 30 | <p class="message"></p> |
| 31 | |
| 32 | <button class="button button-primary" data-tiny-action="create-key"> |
| 33 | <?php esc_html_e( 'Register Account', 'tiny-compress-images' ); ?> |
| 34 | </button> |
| 35 | </div> |
| 36 | |
| 37 | <div class="update"> |
| 38 | <h4> |
| 39 | <?php |
| 40 | esc_html_e( 'Already have an account?', 'tiny-compress-images' ); |
| 41 | ?> |
| 42 | </h4> |
| 43 | |
| 44 | <p class="introduction"> |
| 45 | <?php |
| 46 | $link = sprintf( |
| 47 | '<a href="https://tinypng.com/dashboard/api" target="_blank">%s</a>', |
| 48 | esc_html__( 'API dashboard', 'tiny-compress-images' ) |
| 49 | ); |
| 50 | printf( |
| 51 | /* translators: %s: link saying API dashboard */ |
| 52 | esc_html__( |
| 53 | 'Enter your API key. Go to your %s to retrieve it.', |
| 54 | 'tiny-compress-images' |
| 55 | ), |
| 56 | $link |
| 57 | ); |
| 58 | ?> |
| 59 | </p> |
| 60 | |
| 61 | <input type="text" id="<?php echo esc_attr( self::get_prefixed_name( 'api_key' ) ); ?>" |
| 62 | name="<?php echo esc_attr( self::get_prefixed_name( 'api_key' ) ); ?>"> |
| 63 | |
| 64 | <p class="message"></p> |
| 65 | |
| 66 | <button class="button button-primary" data-tiny-action="update-key"> |
| 67 | <?php esc_html_e( 'Save', 'tiny-compress-images' ); ?> |
| 68 | </button> |
| 69 | </div> |
| 70 | </div> |
| 71 |