mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Rollback premium designs
This commit is contained in:
parent
b9eb98f876
commit
52b1b90ae2
@ -52,7 +52,7 @@ class ClientStatement extends Mailable
|
|||||||
public function content()
|
public function content()
|
||||||
{
|
{
|
||||||
return new Content(
|
return new Content(
|
||||||
view: $this->data['company']->account->isPremium() ? 'email.template.client_premium' : 'email.template.client',
|
view: 'email.template.client',
|
||||||
text: 'email.template.text',
|
text: 'email.template.text',
|
||||||
with: [
|
with: [
|
||||||
'text_body' => $this->data['body'],
|
'text_body' => $this->data['body'],
|
||||||
|
@ -75,7 +75,8 @@ class TemplateEmail extends Mailable
|
|||||||
$template_name = 'email.template.'.$this->build_email->getTemplate();
|
$template_name = 'email.template.'.$this->build_email->getTemplate();
|
||||||
|
|
||||||
if ($this->build_email->getTemplate() == 'light' || $this->build_email->getTemplate() == 'dark') {
|
if ($this->build_email->getTemplate() == 'light' || $this->build_email->getTemplate() == 'dark') {
|
||||||
$template_name = $this->company->account->isPremium() ? 'email.template.client_premium' : 'email.template.client';
|
// $template_name = $this->company->account->isPremium() ? 'email.template.client_premium' : 'email.template.client';
|
||||||
|
$template_name = 'email.template.client';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->build_email->getTemplate() == 'custom') {
|
if ($this->build_email->getTemplate() == 'custom') {
|
||||||
|
@ -72,7 +72,8 @@ class VendorTemplateEmail extends Mailable
|
|||||||
$template_name = 'email.template.'.$this->build_email->getTemplate();
|
$template_name = 'email.template.'.$this->build_email->getTemplate();
|
||||||
|
|
||||||
if ($this->build_email->getTemplate() == 'light' || $this->build_email->getTemplate() == 'dark') {
|
if ($this->build_email->getTemplate() == 'light' || $this->build_email->getTemplate() == 'dark') {
|
||||||
$template_name = $this->company->account->isPremium() ? 'email.template.client_premium' : 'email.template.client';
|
// $template_name = $this->company->account->isPremium() ? 'email.template.client_premium' : 'email.template.client';
|
||||||
|
$template_name = 'email.template.client';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->build_email->getTemplate() == 'custom') {
|
if ($this->build_email->getTemplate() == 'custom') {
|
||||||
|
@ -107,10 +107,10 @@ class EmailDefaults
|
|||||||
|
|
||||||
match ($this->email->email_object->settings->email_style) {
|
match ($this->email->email_object->settings->email_style) {
|
||||||
'plain' => $this->template = 'email.template.plain',
|
'plain' => $this->template = 'email.template.plain',
|
||||||
'light' => $this->template = $this->email->email_object->company->account->isPremium() ? 'email.template.client_premium' : 'email.template.client',
|
'light' => $this->template = 'email.template.client',
|
||||||
'dark' => $this->template = $this->email->email_object->company->account->isPremium() ? 'email.template.client_premium' :'email.template.client',
|
'dark' => $this->template = 'email.template.client',
|
||||||
'custom' => $this->template = 'email.template.custom',
|
'custom' => $this->template = 'email.template.custom',
|
||||||
default => $this->template = $this->email->email_object->company->account->isPremium() ? 'email.template.client_premium' :'email.template.client',
|
default => $this->template = 'email.template.client',
|
||||||
};
|
};
|
||||||
|
|
||||||
$this->email->email_object->html_template = $this->template;
|
$this->email->email_object->html_template = $this->template;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user