# propertyhive/2.2.2/templates/emails/email-header.php

Property Hive, version 2.2.2. 48 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/2.2.2/code/templates/emails/email-header.php
- Raw: https://pluginprobe.com/plugins/propertyhive/2.2.2/raw/templates/emails/email-header.php
- Modified: 2016-11-09T15:45:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/propertyhive/2.2.2/code/templates/emails/email-header.php#L10-L20`.

```php
<?php
/**
 * Email Header
 *
 * This template can be overridden by copying it to yourtheme/propertyhive/emails/email-header.php.
 *
 * @author  PropertyHive
 * @package PropertyHive/Templates/Emails
 * @version 1.0.0
 */

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

?>
<!DOCTYPE html>
<html dir="<?php echo is_rtl() ? 'rtl' : 'ltr'?>">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>" />
		<title><?php echo get_bloginfo( 'name', 'display' ); ?></title>
	</head>
	<body <?php echo is_rtl() ? 'rightmargin' : 'leftmargin'; ?>="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">
		<div id="wrapper" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'?>">
			<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
				<tr>
					<td align="center" valign="top">
						
						<table border="0" cellpadding="0" cellspacing="0" width="600" id="template_container">
							<tr>
								<td align="center" valign="top">

									<?php if ( $img = get_option( 'propertyhive_email_header_image' ) ) { ?>
									<div id="template_header_image">
										<?php echo '<a href="' . site_url() . '" target="_blank"><img src="' . esc_url( $img ) . '" alt="' . get_bloginfo( 'name', 'display' ) . '" /></a>';
										?>
									</div>
									<?php } ?>

									<!-- Body -->
									<table border="0" cellpadding="0" cellspacing="0" width="600" id="template_body">
										<tr>
											<td valign="top" id="body_content">
												<!-- Content -->
												<table border="0" cellpadding="20" cellspacing="0" width="100%">
													<tr>
														<td valign="top">
															<div id="body_content_inner">
```
