Signed-off-by: Joas Schilling <coding@schilljs.com>tags/v12.0.0beta1
@@ -98,7 +98,7 @@ EOF; | |||
<tbody> | |||
<tr style="padding:0;text-align:left;vertical-align:top"> | |||
<center data-parsed="" style="min-width:580px;width:100%%"> | |||
<img class="logo float-center" src="%s" alt="logo" align="center" style="-ms-interpolation-mode:bicubic;Margin:0 auto;clear:both;display:block;float:none;margin:0 auto;max-height:100%%;max-width:100px;outline:0;text-align:center;text-decoration:none;width:auto"> | |||
<img class="logo float-center" src="%s" alt="%s" align="center" style="-ms-interpolation-mode:bicubic;Margin:0 auto;clear:both;display:block;float:none;margin:0 auto;max-height:100%%;max-width:100px;outline:0;text-align:center;text-decoration:none;width:auto"> | |||
</center> | |||
</tr> | |||
</tbody> | |||
@@ -328,7 +328,7 @@ EOF; | |||
$this->headerAdded = true; | |||
$logoUrl = $this->urlGenerator->getAbsoluteURL($this->themingDefaults->getLogo()); | |||
$this->htmlBody .= vsprintf($this->header, [$this->themingDefaults->getColorPrimary(), $logoUrl]); | |||
$this->htmlBody .= vsprintf($this->header, [$this->themingDefaults->getColorPrimary(), $logoUrl, $this->themingDefaults->getName()]); | |||
} | |||
/** |
@@ -23,7 +23,7 @@ | |||
<tbody> | |||
<tr style="padding:0;text-align:left;vertical-align:top"> | |||
<center data-parsed="" style="min-width:580px;width:100%"> | |||
<img class="logo float-center" src="https://example.org/img/logo-mail-header.png" alt="logo" align="center" style="-ms-interpolation-mode:bicubic;Margin:0 auto;clear:both;display:block;float:none;margin:0 auto;max-height:100%;max-width:100px;outline:0;text-align:center;text-decoration:none;width:auto"> | |||
<img class="logo float-center" src="https://example.org/img/logo-mail-header.png" alt="TestCloud" align="center" style="-ms-interpolation-mode:bicubic;Margin:0 auto;clear:both;display:block;float:none;margin:0 auto;max-height:100%;max-width:100px;outline:0;text-align:center;text-decoration:none;width:auto"> | |||
</center> | |||
</tr> | |||
</tbody> |
@@ -23,7 +23,7 @@ | |||
<tbody> | |||
<tr style="padding:0;text-align:left;vertical-align:top"> | |||
<center data-parsed="" style="min-width:580px;width:100%"> | |||
<img class="logo float-center" src="https://example.org/img/logo-mail-header.png" alt="logo" align="center" style="-ms-interpolation-mode:bicubic;Margin:0 auto;clear:both;display:block;float:none;margin:0 auto;max-height:100%;max-width:100px;outline:0;text-align:center;text-decoration:none;width:auto"> | |||
<img class="logo float-center" src="https://example.org/img/logo-mail-header.png" alt="TestCloud" align="center" style="-ms-interpolation-mode:bicubic;Margin:0 auto;clear:both;display:block;float:none;margin:0 auto;max-height:100%;max-width:100px;outline:0;text-align:center;text-decoration:none;width:auto"> | |||
</center> | |||
</tr> | |||
</tbody> |
@@ -23,7 +23,7 @@ | |||
<tbody> | |||
<tr style="padding:0;text-align:left;vertical-align:top"> | |||
<center data-parsed="" style="min-width:580px;width:100%"> | |||
<img class="logo float-center" src="https://example.org/img/logo-mail-header.png" alt="logo" align="center" style="-ms-interpolation-mode:bicubic;Margin:0 auto;clear:both;display:block;float:none;margin:0 auto;max-height:100%;max-width:100px;outline:0;text-align:center;text-decoration:none;width:auto"> | |||
<img class="logo float-center" src="https://example.org/img/logo-mail-header.png" alt="TestCloud" align="center" style="-ms-interpolation-mode:bicubic;Margin:0 auto;clear:both;display:block;float:none;margin:0 auto;max-height:100%;max-width:100px;outline:0;text-align:center;text-decoration:none;width:auto"> | |||
</center> | |||
</tr> | |||
</tbody> |
@@ -62,6 +62,10 @@ class EMailTemplateTest extends TestCase { | |||
->expects($this->any()) | |||
->method('getLogo') | |||
->willReturn('/img/logo-mail-header.png'); | |||
$this->defaults | |||
->expects($this->any()) | |||
->method('getName') | |||
->willReturn('TestCloud'); | |||
$this->urlGenerator | |||
->expects($this->once()) | |||
->method('getAbsoluteURL') |