mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
wip
This commit is contained in:
parent
326ef52cd5
commit
ca15b03eda
@ -262,6 +262,10 @@ class TemplateEngine
|
|||||||
|
|
||||||
public static function wrapElementsIntoTables(string $wrapper, string $body, $settings): ?string
|
public static function wrapElementsIntoTables(string $wrapper, string $body, $settings): ?string
|
||||||
{
|
{
|
||||||
|
$wrapper = $wrapper == strip_tags($wrapper)
|
||||||
|
? '<div id="content-wrapper"></div>'
|
||||||
|
: $wrapper;
|
||||||
|
|
||||||
$documents['wrapper'] = new \DOMDocument();
|
$documents['wrapper'] = new \DOMDocument();
|
||||||
$documents['wrapper']->loadHTML($wrapper);
|
$documents['wrapper']->loadHTML($wrapper);
|
||||||
|
|
||||||
|
@ -8,47 +8,24 @@
|
|||||||
<title>Invoice Ninja</title>
|
<title>Invoice Ninja</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<div id="content-wrapper">
|
||||||
<table role="presentation" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr>
|
|
||||||
<td style="font-family: Arial, sans-serif, 'Open Sans'">
|
|
||||||
<table cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<table cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr>
|
|
||||||
<td id="email-content">
|
|
||||||
{!! $body !!}
|
{!! $body !!}
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
|
||||||
</table>
|
@if($signature)
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@if($signature)
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<p>{!! $signature !!}</p>
|
<p>{!! $signature !!}</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
<tr>
|
|
||||||
@isset($whitelabel)
|
@isset($whitelabel)
|
||||||
@if(!$whitelabel)
|
@if(!$whitelabel)
|
||||||
<td>
|
|
||||||
<p>
|
<p>
|
||||||
<a href="https://invoiceninja.com" target="_blank">
|
<a href="https://invoiceninja.com" target="_blank">
|
||||||
{{ __('texts.ninja_email_footer', ['site' => 'Invoice Ninja']) }}
|
{{ __('texts.ninja_email_footer', ['site' => 'Invoice Ninja']) }}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endisset
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user