account-status-connected.php
9 years ago
account-status-create-advanced.php
9 years ago
account-status-create-simple.php
9 years ago
account-status-loading.php
9 years ago
bulk-optimization-chart.php
9 years ago
bulk-optimization-form.php
10 years ago
bulk-optimization.php
9 years ago
compress-details-processing.php
10 years ago
compress-details.php
9 years ago
dashboard-widget.php
9 years ago
account-status-create-advanced.php
58 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><?php |
| 10 | echo esc_html_e( 'Register new account', 'tiny-compress-images' ); |
| 11 | ?></h4> |
| 12 | |
| 13 | <p class="introduction" class="description"><?php |
| 14 | echo esc_html__( |
| 15 | 'Provide your name and email address to start optimizing images.', |
| 16 | 'tiny-compress-images' |
| 17 | ); |
| 18 | ?></p> |
| 19 | |
| 20 | <input type="text" id="tinypng_api_key_name" name="tinypng_api_key_name" |
| 21 | placeholder="Your full name" value="<?php echo esc_attr( $name ); ?>"> |
| 22 | |
| 23 | <input type="text" id="tinypng_api_key_email" name="tinypng_api_key_email" |
| 24 | placeholder="Your email address" value="<?php echo esc_attr( $email ); ?>"> |
| 25 | |
| 26 | <p class="message"></p> |
| 27 | |
| 28 | <button class="button button-primary" data-tiny-action="create-key"> |
| 29 | <?php echo esc_html__( 'Register Account', 'tiny-compress-images' ) ?> |
| 30 | </button> |
| 31 | </div> |
| 32 | |
| 33 | <div class="update"> |
| 34 | <h4><?php |
| 35 | echo esc_html__( 'Already have an account?', 'tiny-compress-images' ); |
| 36 | ?></h4> |
| 37 | |
| 38 | <p class="introduction"><?php |
| 39 | $link = sprintf( '<a href="https://tinypng.com/dashboard/developers" target="_blank">%s</a>', |
| 40 | esc_html__( 'API dashboard', 'tiny-compress-images' ) |
| 41 | ); |
| 42 | printf( esc_html__( |
| 43 | 'Enter your API key. Go to your %s to retrieve it.', |
| 44 | 'tiny-compress-images' |
| 45 | ), $link ); |
| 46 | ?></p> |
| 47 | |
| 48 | <input type="text" id="<?php echo esc_attr( self::get_prefixed_name( 'api_key' ) ); ?>" |
| 49 | name="<?php echo esc_attr( self::get_prefixed_name( 'api_key' ) ); ?>"> |
| 50 | |
| 51 | <p class="message"></p> |
| 52 | |
| 53 | <button class="button button-primary" data-tiny-action="update-key"> |
| 54 | <?php echo esc_html__( 'Save' ); ?> |
| 55 | </button> |
| 56 | </div> |
| 57 | </div> |
| 58 |