PHP 8.2.31
Preview: email-header.php Size: 5.71 KB
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/woocommerce/templates/emails/email-header.php

<?php
/**
 * Email Header
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/emails/email-header.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see     https://woocommerce.com/document/template-structure/
 * @package WooCommerce\Templates\Emails
 * @version 10.7.0
 */

use Automattic\WooCommerce\Utilities\FeaturesUtil;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

$email_improvements_enabled = FeaturesUtil::feature_is_enabled( 'email_improvements' );
$store_name                 = $store_name ?? get_bloginfo( 'name', 'display' );

/**
 * Filter the URL used for the email header image/logo link.
 *
 * Return an empty string to disable the link.
 *
 * @since 10.7.0
 * @param string $url The URL to link to. Defaults to the site home URL.
 */
$header_image_url = apply_filters( 'woocommerce_email_header_image_url', home_url() );

?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>" />
		<meta content="width=device-width, initial-scale=1.0" name="viewport">
		<title><?php echo esc_html( $store_name ); ?></title>
	</head>
	<body <?php echo is_rtl() ? 'rightmargin' : 'leftmargin'; ?>="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">
		<table width="100%" id="outer_wrapper" role="presentation">
			<tr>
				<td><!-- Deliberately empty to support consistent sizing and layout across multiple email clients. --></td>
				<td width="600">
					<div id="wrapper" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>">
						<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="inner_wrapper" role="presentation">
							<tr>
								<td align="center" valign="top">
									<?php
									$img = get_option( 'woocommerce_email_header_image' );
									/**
									 * This filter is documented in templates/emails/email-styles.php
									 *
									 * @since 9.6.0
									 */
									if ( apply_filters( 'woocommerce_is_email_preview', false ) ) {
										$img_transient = get_transient( 'woocommerce_email_header_image' );
										$img           = false !== $img_transient ? $img_transient : $img;
									}

									if ( $email_improvements_enabled ) :
										?>
										<table border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation">
											<tr>
												<td id="template_header_image">
													<?php
													if ( $img ) {
														$image_html = '<img src="' . esc_url( $img ) . '" alt="' . esc_attr( $store_name ) . '" />';
														if ( $header_image_url ) {
															// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $image_html is built from esc_url() and esc_attr().
															echo '<p style="margin-top:0;"><a href="' . esc_url( $header_image_url ) . '" style="display: inline-block; text-decoration: none;" target="_blank">' . $image_html . '</a></p>';
														} else {
															// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
															echo '<p style="margin-top:0;">' . $image_html . '</p>';
														}
													} elseif ( $header_image_url ) {
														echo '<p class="email-logo-text"><a href="' . esc_url( $header_image_url ) . '" style="color: inherit; text-decoration: none;" target="_blank">' . esc_html( $store_name ) . '</a></p>';
													} else {
														echo '<p class="email-logo-text">' . esc_html( $store_name ) . '</p>';
													}
													?>
												</td>
											</tr>
										</table>
									<?php else : ?>
										<div id="template_header_image">
											<?php
											if ( $img ) {
												$image_html = '<img src="' . esc_url( $img ) . '" alt="' . esc_attr( $store_name ) . '" />';
												if ( $header_image_url ) {
													// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $image_html is built from esc_url() and esc_attr().
													echo '<p style="margin-top:0;"><a href="' . esc_url( $header_image_url ) . '" style="display: inline-block; text-decoration: none;" target="_blank">' . $image_html . '</a></p>';
												} else {
													// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
													echo '<p style="margin-top:0;">' . $image_html . '</p>';
												}
											}
											?>
										</div>
									<?php endif; ?>
									<table border="0" cellpadding="0" cellspacing="0" width="100%" id="template_container" role="presentation">
										<tr>
											<td align="center" valign="top">
												<!-- Header -->
												<table border="0" cellpadding="0" cellspacing="0" width="100%" id="template_header" role="presentation">
													<tr>
														<td id="header_wrapper">
															<h1><?php echo esc_html( $email_heading ); ?></h1>
														</td>
													</tr>
												</table>
												<!-- End Header -->
											</td>
										</tr>
										<tr>
											<td align="center" valign="top">
												<!-- Body -->
												<table border="0" cellpadding="0" cellspacing="0" width="100%" id="template_body" role="presentation">
													<tr>
														<td valign="top" id="body_content">
															<!-- Content -->
															<table border="0" cellpadding="20" cellspacing="0" width="100%" role="presentation">
																<tr>
																	<td valign="top" id="body_content_inner_cell">
																		<div id="body_content_inner">

Directory Contents

Dirs: 2 × Files: 34

Name Size Perms Modified Actions
block DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
plain DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
2.84 KB lrw-r--r-- 2025-03-03 22:28:12
Edit Download
2.84 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
2.69 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
2.50 KB lrw-r--r-- 2026-03-30 17:12:24
Edit Download
3.02 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
2.83 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
3.33 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
3.29 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
3.46 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
3.74 KB lrw-r--r-- 2026-05-05 14:26:50
Edit Download
4.17 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
3.83 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
2.96 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
3.04 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
3.88 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
4.27 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
3.13 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
3.51 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
3.16 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
2.95 KB lrw-r--r-- 2026-05-11 17:17:08
Edit Download
3.56 KB lrw-r--r-- 2025-09-01 23:44:48
Edit Download
2.96 KB lrw-r--r-- 2025-09-01 23:44:48
Edit Download
3.64 KB lrw-r--r-- 2025-09-01 23:44:48
Edit Download
4.08 KB lrw-r--r-- 2026-02-23 17:58:34
Edit Download
1.18 KB lrw-r--r-- 2025-01-21 18:53:44
Edit Download
3.48 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
2.76 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
4.24 KB lrw-r--r-- 2026-03-30 17:12:24
Edit Download
5.42 KB lrw-r--r-- 2026-05-05 14:26:50
Edit Download
5.71 KB lrw-r--r-- 2026-03-30 17:12:24
Edit Download
809 B lrw-r--r-- 2024-04-10 16:54:10
Edit Download
8.23 KB lrw-r--r-- 2026-05-05 14:26:50
Edit Download
7.95 KB lrw-r--r-- 2026-05-05 14:26:50
Edit Download
15.64 KB lrw-r--r-- 2026-05-05 14:26:50
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).