plain
4 years ago
admin-cancelled-order.php
5 years ago
admin-failed-order.php
5 years ago
admin-new-order.php
5 years ago
customer-completed-order.php
5 years ago
customer-invoice.php
4 years ago
customer-new-account.php
4 years ago
customer-note.php
5 years ago
customer-on-hold-order.php
5 years ago
customer-processing-order.php
5 years ago
customer-refunded-order.php
5 years ago
customer-reset-password.php
5 years ago
email-addresses.php
4 years ago
email-customer-details.php
5 years ago
email-downloads.php
5 years ago
email-footer.php
5 years ago
email-header.php
5 years ago
email-order-details.php
5 years ago
email-order-items.php
5 years ago
email-styles.php
4 years ago
email-header.php
66 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Email Header |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/emails/email-header.php. |
| 6 | * |
| 7 | * HOWEVER, on occasion WooCommerce will need to update template files and you |
| 8 | * (the theme developer) will need to copy the new files to your theme to |
| 9 | * maintain compatibility. We try to do this as little as possible, but it does |
| 10 | * happen. When this occurs the version of the template file will be bumped and |
| 11 | * the readme will list any important changes. |
| 12 | * |
| 13 | * @see https://docs.woocommerce.com/document/template-structure/ |
| 14 | * @package WooCommerce\Templates\Emails |
| 15 | * @version 4.0.0 |
| 16 | */ |
| 17 | |
| 18 | if ( ! defined( 'ABSPATH' ) ) { |
| 19 | exit; // Exit if accessed directly |
| 20 | } |
| 21 | |
| 22 | ?> |
| 23 | <!DOCTYPE html> |
| 24 | <html <?php language_attributes(); ?>> |
| 25 | <head> |
| 26 | <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>" /> |
| 27 | <title><?php echo get_bloginfo( 'name', 'display' ); ?></title> |
| 28 | </head> |
| 29 | <body <?php echo is_rtl() ? 'rightmargin' : 'leftmargin'; ?>="0" marginwidth="0" topmargin="0" marginheight="0" offset="0"> |
| 30 | <div id="wrapper" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>"> |
| 31 | <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%"> |
| 32 | <tr> |
| 33 | <td align="center" valign="top"> |
| 34 | <div id="template_header_image"> |
| 35 | <?php |
| 36 | if ( $img = get_option( 'woocommerce_email_header_image' ) ) { |
| 37 | echo '<p style="margin-top:0;"><img src="' . esc_url( $img ) . '" alt="' . get_bloginfo( 'name', 'display' ) . '" /></p>'; |
| 38 | } |
| 39 | ?> |
| 40 | </div> |
| 41 | <table border="0" cellpadding="0" cellspacing="0" width="600" id="template_container"> |
| 42 | <tr> |
| 43 | <td align="center" valign="top"> |
| 44 | <!-- Header --> |
| 45 | <table border="0" cellpadding="0" cellspacing="0" width="100%" id="template_header"> |
| 46 | <tr> |
| 47 | <td id="header_wrapper"> |
| 48 | <h1><?php echo $email_heading; ?></h1> |
| 49 | </td> |
| 50 | </tr> |
| 51 | </table> |
| 52 | <!-- End Header --> |
| 53 | </td> |
| 54 | </tr> |
| 55 | <tr> |
| 56 | <td align="center" valign="top"> |
| 57 | <!-- Body --> |
| 58 | <table border="0" cellpadding="0" cellspacing="0" width="600" id="template_body"> |
| 59 | <tr> |
| 60 | <td valign="top" id="body_content"> |
| 61 | <!-- Content --> |
| 62 | <table border="0" cellpadding="20" cellspacing="0" width="100%"> |
| 63 | <tr> |
| 64 | <td valign="top"> |
| 65 | <div id="body_content_inner"> |
| 66 |