Image option for emails
This commit is contained in:
parent
7a84e1357e
commit
3a6ae6de92
|
@ -659,6 +659,14 @@ $woocommerce_settings['email'] = apply_filters('woocommerce_email_settings', arr
|
|||
|
||||
array( 'name' => __( 'Email template', 'woothemes' ), 'type' => 'title', 'desc' => __('This section lets you customise the WooCommerce emails. For more advanced control copy woocommerce/templates/emails/ to yourtheme/woocommmerce/emails/', 'woothemes'), 'id' => 'email_template_options' ),
|
||||
|
||||
array(
|
||||
'name' => __( 'Header image', 'woothemes' ),
|
||||
'desc' => sprintf(__( 'Enter a URL to an image you want to show in the email\'s header. Upload your image using the <a href="%s">media uploader</a>.', 'woothemes' ), admin_url('media-new.php')),
|
||||
'id' => 'woocommerce_email_header_image',
|
||||
'type' => 'text',
|
||||
'std' => ''
|
||||
),
|
||||
|
||||
array(
|
||||
'name' => __( 'Email footer text', 'woothemes' ),
|
||||
'desc' => __( 'The text to appear in the footer of WooCommerce emails.', 'woothemes' ),
|
||||
|
|
|
@ -146,6 +146,12 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="backgroundTable">
|
||||
<tr>
|
||||
<td align="center" valign="top">
|
||||
|
||||
<?php
|
||||
if ($img = get_option('woocommerce_email_header_image')) :
|
||||
echo '<p style="margin-top:0;"><img src="'.$img.'" alt="'.get_bloginfo('name').'" /></p>';
|
||||
endif;
|
||||
?>
|
||||
|
||||
<!-- // End Template Preheader \\ -->
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="600" id="templateContainer" style="-webkit-box-shadow:0 0 0 3px rgba(0,0,0,0.025); -webkit-border-radius:6px;background-color:<?php echo get_option('woocommerce_email_body_background_color'); ?>;">
|
||||
|
|
Loading…
Reference in New Issue