From 6025e7638c2e7cb385a6feae0893c64a014a2d06 Mon Sep 17 00:00:00 2001 From: florian Date: Fri, 10 Aug 2018 07:40:47 +0000 Subject: git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7094 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mailtemplates/html/logo.phtml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 views/mailtemplates/html/logo.phtml (limited to 'views/mailtemplates/html/logo.phtml') diff --git a/views/mailtemplates/html/logo.phtml b/views/mailtemplates/html/logo.phtml new file mode 100644 index 0000000..a080084 --- /dev/null +++ b/views/mailtemplates/html/logo.phtml @@ -0,0 +1,33 @@ + + +get_option('wpsg_email_logo_activated')) + { + + $logoWatermark = $this->get_option('wpsg_email_logo_watermark') ? "email-logo-watermark" : ""; + + $logoTransparency = str_replace("#", "", get_option('wpsg_email_logo_transparency')); + if($logoTransparency !== "100") $logoTransparency = str_replace(array("0", "00"), "", $logoTransparency); + if($logoTransparency !== "100") $logoTransparency = "0." . $logoTransparency; + + $logoAlignment = $this->get_option('wpsg_email_logo_alignment'); + $logoPath = WPSG_PATH_CONTENT . 'uploads/wpsg/wpsg_mailconf/wpsg_email_logo.jpg'; + + if(file_exists($logoPath)) + { + $logoType = pathinfo($logoPath); + $logoData = file_get_contents($logoPath); + $logoBase64 = 'data:image/' . $logoType . ';base64,' . base64_encode($logoData); + } + + } +?> + +get_option('wpsg_email_logo_activated')) { ?> + " ?> + "; ?> + "; ?> + -- cgit v1.2.3