MyAccountTag.php
5 years ago
change-password.tmpl.php
5 years ago
dashboard.tmpl.php
5 years ago
edit-profile.tmpl.php
5 years ago
email-notifications.tmpl.php
5 years ago
index.php
5 years ago
dashboard.tmpl.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | use ProfilePress\Core\ShortcodeParser\MyAccount\MyAccountTag; |
| 4 | |
| 5 | if ( ! defined('ABSPATH')) { |
| 6 | exit; // Exit if accessed directly |
| 7 | } |
| 8 | |
| 9 | $current_user = get_user_by('id', get_current_user_id()); |
| 10 | ?> |
| 11 | |
| 12 | <p> |
| 13 | <?php |
| 14 | printf( |
| 15 | /* translators: 1: user display name 2: logout url */ |
| 16 | __('Hello %1$s (not %1$s? <a href="%2$s">Log out</a>)', 'wp-user-avatar'), |
| 17 | '<strong>' . esc_html(ppress_var_obj($current_user, 'display_name')) . '</strong>', |
| 18 | esc_url(wp_logout_url()) |
| 19 | ); |
| 20 | ?> |
| 21 | </p> |
| 22 | |
| 23 | <p> |
| 24 | <?php |
| 25 | printf( |
| 26 | __('From your account dashboard you can view your <a href="%1$s">change your password</a> and <a href="%2$s">edit your account details</a>.', 'wp-user-avatar'), |
| 27 | esc_url(MyAccountTag::get_endpoint_url('change-password')), |
| 28 | esc_url(MyAccountTag::get_endpoint_url('edit-profile')) |
| 29 | ); |
| 30 | ?> |
| 31 | </p> |
| 32 | |
| 33 | <?php |
| 34 | |
| 35 | do_action('ppress_myaccount_dashboard'); |
| 36 |