mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Use buttons by default in styled emails
This commit is contained in:
parent
61f3bedc48
commit
904627e5b4
@ -745,9 +745,15 @@ class Account extends Eloquent
|
||||
$entityType = ENTITY_INVOICE;
|
||||
}
|
||||
|
||||
$template = "<div>\$client,</div><br>" .
|
||||
"<div>" . trans("texts.{$entityType}_message", ['amount' => '$amount']) . "</div><br>" .
|
||||
"<div>\$viewLink</div><br>";
|
||||
$template = "<div>\$client,</div><br>";
|
||||
|
||||
if ($this->isPro() && $this->email_design_id != EMAIL_DESIGN_PLAIN) {
|
||||
$template .= "<div>" . trans("texts.{$entityType}_message_button", ['amount' => '$amount']) . "</div><br>" .
|
||||
"<div style=\"text-align: center;\">\$viewButton</div><br>";
|
||||
} else {
|
||||
$template .= "<div>" . trans("texts.{$entityType}_message", ['amount' => '$amount']) . "</div><br>" .
|
||||
"<div>\$viewLink</div><br>";
|
||||
}
|
||||
|
||||
if ($message) {
|
||||
$template .= "$message<p/>\r\n\r\n";
|
||||
|
@ -1034,5 +1034,8 @@ return array(
|
||||
'live_preview' => 'Live Preview',
|
||||
'invalid_mail_config' => 'Unable to send email, please check that the mail settings are correct.',
|
||||
|
||||
|
||||
'invoice_message_button' => 'To view your invoice for :amount, click the button below.',
|
||||
'quote_message_button' => 'To view your quote for :amount, click the button below.',
|
||||
'payment_message_button' => 'Thank you for your payment of :amount.',
|
||||
|
||||
);
|
Loading…
Reference in New Issue
Block a user