diff options
author | Struan Donald <struan@exo.org.uk> | 2019-02-21 15:53:32 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2019-03-25 14:30:59 +0000 |
commit | 6ddee0561b6a91d9a82dae6a0941454dd2d2ac24 (patch) | |
tree | 82a98fee75404b88ed0d1c7047f79683509675ed /templates | |
parent | 8ed295033defa2cb3c2dd768b9a2c42d9f39cbba (diff) |
enable custom email header logo file
allows adding a logo_file setting in _color_overrides.html to change the
name of the file used. Defaults to email-logo.gif
Diffstat (limited to 'templates')
-rw-r--r-- | templates/email/default/_email_top.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/email/default/_email_top.html b/templates/email/default/_email_top.html index 75dec6788..127ecb9db 100644 --- a/templates/email/default/_email_top.html +++ b/templates/email/default/_email_top.html @@ -3,6 +3,8 @@ # Alert sets cobrand directly, questionnaire/submit have it in report, otherwise web cobrand = cobrand.moniker OR report.cobrand OR c.cobrand.moniker; + DEFAULT logo_file = 'email-logo.gif'; + IF cobrand == 'fixmystreet'; SET img_dir = 'fixmystreet.com'; ELSE; @@ -61,8 +63,8 @@ <table [% table_reset %]> <tr> <th colspan="[% email_columns %]" style="[% td_style %][% header_style %]"> - [%~ IF file_exists("web/cobrands/${ img_dir }/images/email-logo.gif") ~%] - <img src="[% inline_image('web/cobrands/' _ img_dir _ '/images/email-logo.gif') %]" width="[% logo_width %]" height="[% logo_height %]" alt="[% site_name %]" style="[% logo_style %]"/> + [%~ IF file_exists("web/cobrands/${ img_dir }/images/${ logo_file }") ~%] + <img src="[% inline_image('web/cobrands/' _ img_dir _ '/images/' _ logo_file ) %]" width="[% logo_width %]" height="[% logo_height %]" alt="[% site_name %]" style="[% logo_style %]"/> [%~ ELSE ~%] <span style="[% logo_style %]">[% site_name %]</span> [%~ END %] |