Subversion Repositories wpShopGermany4

Rev

Rev 7329 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7329 Rev 7716
Line 19... Line 19...
19
		$logoAlignment = $this->get_option('wpsg_email_logo_alignment');
19
		$logoAlignment = $this->get_option('wpsg_email_logo_alignment');
20
		$logoPath = WPSG_PATH_CONTENT . 'uploads/wpsg/wpsg_mailconf/wpsg_email_logo.jpg';
20
		$logoPath = WPSG_PATH_CONTENT . 'uploads/wpsg/wpsg_mailconf/wpsg_email_logo.jpg';
21
 
21
 
22
		if(file_exists($logoPath))
22
		if(file_exists($logoPath))
23
		{
23
		{
24
			$logoType = pathinfo($logoPath);
24
			$logoType = mime_content_type($logoPath);
25
			$logoData = file_get_contents($logoPath);
25
			$logoData = file_get_contents($logoPath);
26
			$logoBase64 = 'data:image/' . $logoType . ';base64,' . base64_encode($logoData);
26
			$logoBase64 = 'data:'.$logoType.';base64,'.base64_encode($logoData);
27
		}
27
		}
28
 
28
 
29
	}
29
	}
30
?>
30
?>
31
 
31