|
14 | 14 | if ( ! defined( 'ABSPATH' ) ) { |
15 | 15 | exit; |
16 | 16 | } |
| 17 | + |
| 18 | +// Get Current User Details |
| 19 | +$current_user = wp_get_current_user(); |
| 20 | +$user_email = $current_user->user_email; |
| 21 | +$first_name = $current_user->first_name; |
| 22 | +$last_name = $current_user->last_name; |
17 | 23 | ?> |
18 | 24 | <div class="alnp-upgrade-details"> |
19 | 25 | <h1><?php esc_html_e( 'Pro Coming Soon', 'auto-load-next-post' ); ?></h1> |
20 | 26 |
|
21 | 27 | <ul> |
22 | | - <li><?php echo wptexturize( esc_html__( 'Load the Next Post or Next Post with same Category or New Posts or Related Posts or by Custom Query', 'auto-load-next-post' ) ); ?></li> |
23 | | - <li><?php echo wptexturize( esc_html__( 'Page and Media Attachment Support', 'auto-load-next-post' ) ); ?></li> |
24 | | - <li><?php echo wptexturize( esc_html__( 'Custom Post Type Support', 'auto-load-next-post' ) ); ?></li> |
25 | | - <li><?php echo wptexturize( esc_html__( 'Paginated Posts Supported', 'auto-load-next-post' ) ); ?></li> |
26 | | - <li><?php echo wptexturize( esc_html__( 'Exclude Post Formats', 'auto-load-next-post' ) ); ?></li> |
27 | | - <li><?php echo wptexturize( esc_html__( 'Limit Posts per Session', 'auto-load-next-post' ) ); ?></li> |
28 | | - <li><?php echo wptexturize( esc_html__( 'Query Posts by Category and Tag', 'auto-load-next-post' ) ); ?></li> |
29 | | - <li><?php echo wptexturize( esc_html__( 'Exclude User Roles and Specific Users', 'auto-load-next-post' ) ); ?></li> |
30 | | - <li><?php echo wptexturize( esc_html__( 'Pre-Query Posts Ready to Load', 'auto-load-next-post' ) ); ?></li> |
31 | | - <li><?php echo wptexturize( esc_html__( 'Hide Comments and Show by Toggle Button', 'auto-load-next-post' ) ); ?></li> |
32 | | - <li><?php echo wptexturize( sprintf( esc_html__( 'Multilingual Support for %1$s and %2$s', 'auto-load-next-post' ), 'WPML', 'Polylang' ) ); ?></li> |
33 | | - <li><?php echo wptexturize( esc_html__( 'Email Support', 'auto-load-next-post' ) ); ?></li> |
| 28 | + <li><?php echo esc_html__( 'Load the Next Post or Next Post with same Category or New Posts or Related Posts or by Custom Query', 'auto-load-next-post' ); ?></li> |
| 29 | + <li><?php echo esc_html__( 'Page and Media Attachment Support', 'auto-load-next-post' ); ?></li> |
| 30 | + <li><?php echo esc_html__( 'Custom Post Type Support', 'auto-load-next-post' ); ?></li> |
| 31 | + <li><?php echo esc_html__( 'Paginated Posts Supported', 'auto-load-next-post' ); ?></li> |
| 32 | + <li><?php echo esc_html__( 'Exclude Post Formats', 'auto-load-next-post' ); ?></li> |
| 33 | + <li><?php echo esc_html__( 'Limit Posts per Session', 'auto-load-next-post' ); ?></li> |
| 34 | + <li><?php echo esc_html__( 'Query Posts by Category and Tag', 'auto-load-next-post' ); ?></li> |
| 35 | + <li><?php echo esc_html__( 'Exclude User Roles and Specific Users', 'auto-load-next-post' ); ?></li> |
| 36 | + <li><?php echo esc_html__( 'Pre-Query Posts Ready to Load', 'auto-load-next-post' ); ?></li> |
| 37 | + <li><?php echo esc_html__( 'Hide Comments and Show by Toggle Button', 'auto-load-next-post' ); ?></li> |
| 38 | + <li><?php echo sprintf( esc_html__( 'Multilingual Support for %1$s and %2$s', 'auto-load-next-post' ), 'WPML', 'Polylang' ); ?></li> |
| 39 | + <li><?php echo esc_html__( 'Email Support', 'auto-load-next-post' ); ?></li> |
34 | 40 | </ul> |
35 | 41 |
|
36 | 42 | <p> |
|
43 | 49 | <h2><?php esc_html_e( 'Sign up to pre-order first', 'auto-load-next-post' ); ?></h2> |
44 | 50 |
|
45 | 51 | <p class="intro"> |
46 | | - <?php echo wptexturize( esc_html__( 'Submit your name and email and be the first to know when you can pre-order Auto Load Next Post Pro and keep up to date with my developments plus a 10% discount.', 'auto-load-next-post' ) ); ?> |
| 52 | + <?php echo sprintf( __( 'Submit your name and email and be the first to know when you can pre-order %1$s and keep up to date with my developments plus a %2$s discount.', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post Pro', 'auto-load-next-post' ), '10%' ); ?> |
47 | 53 | </p> |
48 | 54 |
|
49 | 55 | <div class="field"> |
50 | | - <input type="email" name="EMAIL" value="" placeholder="<?php esc_html_e( 'Your Email Address', 'auto-load-next-post' ); ?>"/> |
| 56 | + <input type="email" name="EMAIL" value="<?php echo $user_email; ?>" placeholder="<?php esc_html_e( 'Your Email Address', 'auto-load-next-post' ); ?>"/> |
51 | 57 | </div> |
52 | 58 |
|
53 | 59 | <div class="field"> |
54 | | - <input type="text" name="FNAME" value="" placeholder="<?php esc_html_e( 'First Name', 'auto-load-next-post' ); ?>"/> |
| 60 | + <input type="text" name="FNAME" value="<?php echo $first_name; ?>" placeholder="<?php esc_html_e( 'First Name', 'auto-load-next-post' ); ?>"/> |
55 | 61 | </div> |
56 | 62 |
|
57 | 63 | <div class="field"> |
58 | | - <input type="text" name="LNAME" value="" placeholder="<?php esc_html_e( 'Last Name', 'auto-load-next-post' ); ?>"/> |
| 64 | + <input type="text" name="LNAME" value="<?php echo $last_name; ?>" placeholder="<?php esc_html_e( 'Last Name', 'auto-load-next-post' ); ?>"/> |
59 | 65 | </div> |
60 | 66 |
|
61 | 67 | <input type="hidden" name="group[35169][1]" value="1"> |
|
0 commit comments