woocommerce/templates/emails/email-footer.php

71 lines
2.6 KiB
PHP
Raw Normal View History

2012-08-14 18:05:45 +00:00
<?php
/**
* Email Footer
*
* @author WooThemes
* @package WooCommerce/Templates/Emails
2012-12-03 19:19:58 +00:00
* @version 2.0.0
2012-08-14 18:05:45 +00:00
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
2012-09-17 10:36:24 +00:00
// Load colours
$base = get_option( 'woocommerce_email_base_color' );
2012-09-17 10:36:24 +00:00
$base_lighter_40 = wc_hex_lighter( $base, 40 );
2012-09-17 10:36:24 +00:00
// For gmail compatibility, including CSS styles in head/body are stripped out therefore styles need to be inline. These variables contain rules which are added to the template inline.
$template_footer = "
border-top:0;
-webkit-border-radius:6px;
";
$credit = "
2012-11-27 16:22:47 +00:00
border:0;
color: $base_lighter_40;
font-family: Arial;
font-size:12px;
line-height:125%;
2012-09-17 10:36:24 +00:00
text-align:center;
";
2012-08-14 18:05:45 +00:00
?>
</div>
</td>
</tr>
</table>
2012-09-17 10:36:24 +00:00
<!-- End Content -->
</td>
</tr>
</table>
2012-09-17 10:36:24 +00:00
<!-- End Body -->
</td>
</tr>
<tr>
<td align="center" valign="top">
2012-09-17 10:36:24 +00:00
<!-- Footer -->
<table border="0" cellpadding="10" cellspacing="0" width="600" id="template_footer" style="<?php echo $template_footer; ?>">
<tr>
<td valign="top">
<table border="0" cellpadding="10" cellspacing="0" width="100%">
<tr>
2012-09-17 10:36:24 +00:00
<td colspan="2" valign="middle" id="credit" style="<?php echo $credit; ?>">
2012-10-16 15:35:16 +00:00
<?php echo wpautop( wp_kses_post( wptexturize( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ) ) ); ?>
2011-10-26 13:11:20 +00:00
</td>
</tr>
</table>
</td>
</tr>
</table>
2012-09-17 10:36:24 +00:00
<!-- End Footer -->
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</body>
</html>