Show logo when non-paid (#3667)

This commit is contained in:
Benjamin Beganović 2020-05-02 02:03:12 +02:00 committed by GitHub
parent e204eedaa2
commit 057d525206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 1 deletions

View File

@ -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()

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB