Footer for Sancho Mail

- New constant "DEFAULT_SANCHO_FOOTER_IMG" in hlp_sancho_helper.php
- Footer Image as param in sendSanchoMail-function
- Added Footer Images for Sancho
- Added Black/White Images for Sancho (Header and Footer)
- Added minor Header and Footer Images for Sancho
This commit is contained in:
Manfred Kindl
2019-01-07 15:48:42 +01:00
parent 398dc01a43
commit 12cf5a4bbb
12 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -24,6 +24,7 @@ if (! defined('BASEPATH')) exit('No direct script access allowed');
// ------------------------------------------------------------------------
const DEFAULT_SANCHO_HEADER_IMG = 'sancho_header_DEFAULT.jpg';
const DEFAULT_SANCHO_FOOTER_IMG = 'sancho_footer_DEFAULT.jpg';
/**
* Send single Mail with Sancho Design and Layout.
@@ -35,14 +36,14 @@ const DEFAULT_SANCHO_HEADER_IMG = 'sancho_header_DEFAULT.jpg';
* @param string $headerImg Filename of the specific Sancho header image.
* @return void
*/
function sendSanchoMail($vorlage_kurzbz, $vorlage_data, $to, $subject, $headerImg = DEFAULT_SANCHO_HEADER_IMG)
function sendSanchoMail($vorlage_kurzbz, $vorlage_data, $to, $subject, $headerImg = DEFAULT_SANCHO_HEADER_IMG, $footerImg = DEFAULT_SANCHO_FOOTER_IMG)
{
$ci =& get_instance();
$ci->load->library('email');
$ci->load->library('MailLib');
$sanchoHeader_img = 'skin/images/sancho/'. $headerImg;
$sanchoFooter_img = 'skin/images/sancho/sancho_footer.jpg';
$sanchoFooter_img = 'skin/images/sancho/'. $footerImg;
// Embed sancho header and footer image
// reset important to ensure embedding of images when called in a loop