dashboard.php
6 years ago
downloads.php
6 years ago
form-add-payment-method.php
8 years ago
form-edit-account.php
7 years ago
form-edit-address.php
6 years ago
form-login.php
6 years ago
form-lost-password.php
7 years ago
form-reset-password.php
7 years ago
lost-password-confirmation.php
6 years ago
my-account.php
7 years ago
my-address.php
6 years ago
my-downloads.php
6 years ago
my-orders.php
6 years ago
navigation.php
7 years ago
orders.php
6 years ago
payment-methods.php
6 years ago
view-order.php
6 years ago
dashboard.php
70 lines
| 1 | <?php |
| 2 | /** |
| 3 | * My Account Dashboard |
| 4 | * |
| 5 | * Shows the first intro screen on the account dashboard. |
| 6 | * |
| 7 | * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/dashboard.php. |
| 8 | * |
| 9 | * HOWEVER, on occasion WooCommerce will need to update template files and you |
| 10 | * (the theme developer) will need to copy the new files to your theme to |
| 11 | * maintain compatibility. We try to do this as little as possible, but it does |
| 12 | * happen. When this occurs the version of the template file will be bumped and |
| 13 | * the readme will list any important changes. |
| 14 | * |
| 15 | * @see https://docs.woocommerce.com/document/template-structure/ |
| 16 | * @package WooCommerce/Templates |
| 17 | * @version 2.6.0 |
| 18 | */ |
| 19 | |
| 20 | if ( ! defined( 'ABSPATH' ) ) { |
| 21 | exit; // Exit if accessed directly |
| 22 | } |
| 23 | ?> |
| 24 | |
| 25 | <p> |
| 26 | <?php |
| 27 | printf( |
| 28 | /* translators: 1: user display name 2: logout url */ |
| 29 | __( 'Hello %1$s (not %1$s? <a href="%2$s">Log out</a>)', 'woocommerce' ), |
| 30 | '<strong>' . esc_html( $current_user->display_name ) . '</strong>', |
| 31 | esc_url( wc_logout_url() ) |
| 32 | ); |
| 33 | ?> |
| 34 | </p> |
| 35 | |
| 36 | <p> |
| 37 | <?php |
| 38 | printf( |
| 39 | __( 'From your account dashboard you can view your <a href="%1$s">recent orders</a>, manage your <a href="%2$s">shipping and billing addresses</a>, and <a href="%3$s">edit your password and account details</a>.', 'woocommerce' ), |
| 40 | esc_url( wc_get_endpoint_url( 'orders' ) ), |
| 41 | esc_url( wc_get_endpoint_url( 'edit-address' ) ), |
| 42 | esc_url( wc_get_endpoint_url( 'edit-account' ) ) |
| 43 | ); |
| 44 | ?> |
| 45 | </p> |
| 46 | |
| 47 | <?php |
| 48 | /** |
| 49 | * My Account dashboard. |
| 50 | * |
| 51 | * @since 2.6.0 |
| 52 | */ |
| 53 | do_action( 'woocommerce_account_dashboard' ); |
| 54 | |
| 55 | /** |
| 56 | * Deprecated woocommerce_before_my_account action. |
| 57 | * |
| 58 | * @deprecated 2.6.0 |
| 59 | */ |
| 60 | do_action( 'woocommerce_before_my_account' ); |
| 61 | |
| 62 | /** |
| 63 | * Deprecated woocommerce_after_my_account action. |
| 64 | * |
| 65 | * @deprecated 2.6.0 |
| 66 | */ |
| 67 | do_action( 'woocommerce_after_my_account' ); |
| 68 | |
| 69 | /* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */ |
| 70 |