From 5d557ade80fc0153ac6b9ee7599df783b55760ab Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Tue, 5 May 2020 12:04:06 +0000 Subject: - Bugfix: Logo in E-Mail Konfiguration lässt sich speichern / Task #726 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7716 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/css/admin.css | 1 + views/mailtemplates/html/logo.phtml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/views/css/admin.css b/views/css/admin.css index 29f8e16..f40bc15 100644 --- a/views/css/admin.css +++ b/views/css/admin.css @@ -78,6 +78,7 @@ .branch-5-3.wp-admin #wpsg-bs .checkbox input:before { margin:1px 0 0 1px; width:10px; height:10px; } .branch-5-3 #wpsg-bs input[type=checkbox], input[type=radio] { width:16px; height:16px; } .branch-5-3 #wpsg-bs input[type=checkbox]:checked::before { width:14px; height:14px; margin:0; } +.branch-5-3 #wpsg-bs input[type=radio]:checked::before { width:6px; height:6px; margin:4px; } /* Allgemeine Klassen */ .wpsg_grey { color:#999999; } diff --git a/views/mailtemplates/html/logo.phtml b/views/mailtemplates/html/logo.phtml index c4ecb8d..bbd3b1d 100644 --- a/views/mailtemplates/html/logo.phtml +++ b/views/mailtemplates/html/logo.phtml @@ -21,9 +21,9 @@ if(file_exists($logoPath)) { - $logoType = pathinfo($logoPath); + $logoType = mime_content_type($logoPath); $logoData = file_get_contents($logoPath); - $logoBase64 = 'data:image/' . $logoType . ';base64,' . base64_encode($logoData); + $logoBase64 = 'data:'.$logoType.';base64,'.base64_encode($logoData); } } -- cgit v1.2.3