Aucune description

email-header.php 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. if ( ! defined( 'ABSPATH' ) ) {
  18. exit; // Exit if accessed directly
  19. }
  20. ?>
  21. <!DOCTYPE html>
  22. <html <?php language_attributes(); ?>>
  23. <head>
  24. <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>" />
  25. <title><?php echo get_bloginfo( 'name', 'display' ); ?></title>
  26. </head>
  27. <body <?php echo is_rtl() ? 'rightmargin' : 'leftmargin'; ?>="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">
  28. <div id="wrapper" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>">
  29. <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
  30. <tr>
  31. <td align="center" valign="top">
  32. <div id="template_header_image">
  33. <?php
  34. if ( $img = get_option( 'woocommerce_email_header_image' ) ) {
  35. echo '<p style="margin-top:0;"><img src="' . esc_url( $img ) . '" alt="' . get_bloginfo( 'name', 'display' ) . '" /></p>';
  36. }
  37. ?>
  38. </div>
  39. <table border="0" cellpadding="0" cellspacing="0" width="600" id="template_container">
  40. <tr>
  41. <td align="center" valign="top">
  42. <!-- Header -->
  43. <table border="0" cellpadding="0" cellspacing="0" width="100%" id="template_header">
  44. <tr>
  45. <td id="header_wrapper">
  46. <h1><?php echo $email_heading; ?></h1>
  47. </td>
  48. </tr>
  49. </table>
  50. <!-- End Header -->
  51. </td>
  52. </tr>
  53. <tr>
  54. <td align="center" valign="top">
  55. <!-- Body -->
  56. <table border="0" cellpadding="0" cellspacing="0" width="600" id="template_body">
  57. <tr>
  58. <td valign="top" id="body_content">
  59. <!-- Content -->
  60. <table border="0" cellpadding="20" cellspacing="0" width="100%">
  61. <tr>
  62. <td valign="top">
  63. <div id="body_content_inner">