Skip to content

Commit a70cfcb

Browse files
committed
Current user details added and string corrections
1 parent dd642cb commit a70cfcb

File tree

1 file changed

+22
-16
lines changed

1 file changed

+22
-16
lines changed

includes/admin/views/html-admin-sidebar.php

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,29 @@
1414
if ( ! defined( 'ABSPATH' ) ) {
1515
exit;
1616
}
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;
1723
?>
1824
<div class="alnp-upgrade-details">
1925
<h1><?php esc_html_e( 'Pro Coming Soon', 'auto-load-next-post' ); ?></h1>
2026

2127
<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>
3440
</ul>
3541

3642
<p>
@@ -43,19 +49,19 @@
4349
<h2><?php esc_html_e( 'Sign up to pre-order first', 'auto-load-next-post' ); ?></h2>
4450

4551
<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%' ); ?>
4753
</p>
4854

4955
<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' ); ?>"/>
5157
</div>
5258

5359
<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' ); ?>"/>
5561
</div>
5662

5763
<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' ); ?>"/>
5965
</div>
6066

6167
<input type="hidden" name="group[35169][1]" value="1">

0 commit comments

Comments
 (0)