Created
August 3, 2016 18:15
-
-
Save SeanChDavis/9254d4a30d45bc8d3fb7743e1d677d11 to your computer and use it in GitHub Desktop.
EDD Email Templates Template Override
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sd_edd_et_clean() { | |
global $edd_options; | |
// wrap | |
echo '<div style="background: #efefef;padding: 0 0 30px;">'; | |
// header | |
echo '<div style="margin:0 0 25px;">'; | |
echo '<div style="width:640px;margin: 0 auto;">'; | |
if( isset( $edd_options['email_logo']) ) { | |
echo '<img src="' . $edd_options['email_logo'] . '" style="margin:15px 30px 0;position:relative;z-index:2;"/>'; | |
} | |
echo '</div>'; | |
echo '</div>'; | |
// main content | |
echo '<div style="width: 610px; margin: 0 auto; background: url(' . EDDET_PLUGIN_URL . 'images/clean/middle.png) repeat-y;">'; | |
echo '<div style="background:url(); height: 105px;"></div>'; | |
echo '<div id="edd-email-content" style="position:relative; text-align: left; padding: 0 50px; margin: -50px 0 0;">'; | |
echo '{email}'; // this tag is required in order for the contents of the email to be shown | |
echo '</div>'; | |
echo '<div style="display:block!important;height: 10px; background: url(' . EDDET_PLUGIN_URL . 'images/clean/bottom.png) no-repeat left bottom;"></div>'; | |
echo '</div>'; // end main content | |
echo '</div>'; // end wrap | |
} | |
remove_action('edd_email_template_clean', 'edd_et_clean'); | |
add_action('edd_email_template_clean', 'sd_edd_et_clean'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment