mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 02:24:29 -04:00
Fixes for premium template
This commit is contained in:
parent
0b5a4c7b21
commit
6fecdbb62a
@ -68,7 +68,6 @@ class EncryptNinja extends Command
|
||||
$contents = Storage::disk('base')->get($file);
|
||||
$encrypted = encrypt($contents);
|
||||
Storage::disk('base')->put($file.".enc", $encrypted);
|
||||
// Storage::disk('base')->delete($file);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -74,11 +74,14 @@ class TemplateEmail extends Mailable
|
||||
{
|
||||
$template_name = 'email.template.'.$this->build_email->getTemplate();
|
||||
|
||||
if ($this->build_email->getTemplate() == 'light' || $this->build_email->getTemplate() == 'dark') {
|
||||
// $template_name = $this->company->account->isPremium() ? 'email.template.client_premium' : 'email.template.client';
|
||||
if (in_array($this->build_email->getTemplate(), ['light', 'dark'])) {
|
||||
$template_name = 'email.template.client';
|
||||
}
|
||||
|
||||
if($this->build_email->getTemplate() == 'premium') {
|
||||
$template_name = 'email.template.client_premium';
|
||||
}
|
||||
|
||||
if ($this->build_email->getTemplate() == 'custom') {
|
||||
$this->build_email->setBody(str_replace('$body', $this->build_email->getBody().$this->buildLinksForCustomDesign(), $this->client->getSetting('email_style_custom')));
|
||||
}
|
||||
|
@ -71,10 +71,13 @@ class VendorTemplateEmail extends Mailable
|
||||
{
|
||||
$template_name = 'email.template.'.$this->build_email->getTemplate();
|
||||
|
||||
if ($this->build_email->getTemplate() == 'light' || $this->build_email->getTemplate() == 'dark') {
|
||||
// $template_name = $this->company->account->isPremium() ? 'email.template.client_premium' : 'email.template.client';
|
||||
if (in_array($this->build_email->getTemplate(), ['light', 'dark'])) {
|
||||
$template_name = 'email.template.client';
|
||||
}
|
||||
|
||||
if($this->build_email->getTemplate() == 'premium') {
|
||||
$template_name = 'email.template.client_premium';
|
||||
}
|
||||
|
||||
if ($this->build_email->getTemplate() == 'custom') {
|
||||
$this->build_email->setBody(str_replace('$body', $this->build_email->getBody().$this->buildLinksForCustomDesign(), $this->company->getSetting('email_style_custom')));
|
||||
|
Loading…
x
Reference in New Issue
Block a user