mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
wip
This commit is contained in:
parent
6d0c2ec5ca
commit
b9ee87b124
@ -183,10 +183,6 @@ class TemplateEngine
|
||||
if ($email_style !== 'custom') {
|
||||
$this->body = DesignHelpers::parseMarkdownToHtml($this->body);
|
||||
}
|
||||
|
||||
if ($email_style == 'custom') {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private function renderTemplate()
|
||||
@ -220,13 +216,9 @@ class TemplateEngine
|
||||
$wrapper = str_replace('<head>', $injection, $wrapper);
|
||||
}
|
||||
|
||||
// $body = $email_style == 'custom'
|
||||
// ? $this->body
|
||||
// : self::wrapElementsIntoTables(strtr($wrapper, ['$body' => '']), $this->body, $this->entity_obj->client->getMergedSettings());
|
||||
|
||||
$data = [
|
||||
'subject' => $this->subject,
|
||||
'body' => $this->body,
|
||||
'body' => $email_style == 'custom' ? $this->body : self::wrapElementsIntoTables(strtr('<div id="content-wrapper"></div>', ['$body' => '']), $this->body, $this->entity_obj->client->getMergedSettings()),
|
||||
'wrapper' => $wrapper,
|
||||
'raw_body' => $this->raw_body,
|
||||
'raw_subject' => $this->raw_subject
|
||||
@ -283,7 +275,7 @@ class TemplateEngine
|
||||
public static function wrapElementsIntoTables(string $wrapper, string $body, $settings): ?string
|
||||
{
|
||||
$documents['wrapper'] = new \DOMDocument();
|
||||
$documents['wrapper']->loadHTML($wrapper);
|
||||
@$documents['wrapper']->loadHTML($wrapper);
|
||||
|
||||
$documents['master'] = new \DOMDocument();
|
||||
|
||||
|
@ -224,11 +224,15 @@
|
||||
<div class="u-col u-col-100" style="max-width: 320px;min-width: 500px;display: table-cell;vertical-align: top;">
|
||||
<div style="width: 100% !important;">
|
||||
<!--[if (!mso)&(!IE)]><!--><div style="padding: 11px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;"><!--<![endif]-->
|
||||
<div id="content-wrapper">
|
||||
<div class="content-contrast-color">
|
||||
@yield('greeting')
|
||||
</div>
|
||||
|
||||
<div id="content-wrapper">
|
||||
{{ $slot }}
|
||||
</div>
|
||||
|
||||
<div class="content-contrast-color">
|
||||
@yield('signature')
|
||||
@yield('footer')
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user