mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Show logo when non-paid (#3667)
This commit is contained in:
parent
e204eedaa2
commit
057d525206
@ -99,7 +99,22 @@ class Designer
|
||||
|
||||
public function getFooter()
|
||||
{
|
||||
return $this->getSection('footer');
|
||||
$div = '
|
||||
%s <!-- Placeholder for getSection(footer) -->
|
||||
<div class="flex items-center justify-between m-12">
|
||||
%s <!-- Placeholder for signature -->
|
||||
%s <!-- Placehoder for Invoice Ninja logo -->
|
||||
</div>'
|
||||
;
|
||||
|
||||
$signature = '<div></div>'; /** @wip */
|
||||
$logo = '<div></div>';
|
||||
|
||||
if (!$this->entity->user->account->isPaid()) {
|
||||
$logo = '<img src="$app_url/images/created-by-invoiceninja.jpg" />';
|
||||
}
|
||||
|
||||
return sprintf($div, $this->getSection('footer'), $signature, $logo);
|
||||
}
|
||||
|
||||
public function getBody()
|
||||
|
BIN
public/images/created-by-invoiceninja.jpg
Normal file
BIN
public/images/created-by-invoiceninja.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
public/images/invoiceninja-black-logo-vertical.png
Normal file
BIN
public/images/invoiceninja-black-logo-vertical.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Loading…
x
Reference in New Issue
Block a user