mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Added Invoice Ninja footer to emails
This commit is contained in:
parent
715838d401
commit
938096d50b
@ -1085,6 +1085,11 @@ class Account extends Eloquent
|
||||
}
|
||||
}
|
||||
|
||||
public function isPaid()
|
||||
{
|
||||
return Utils::isNinja() ? $this->isPro() : Utils::isWhiteLabel();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param null $plan_details
|
||||
*
|
||||
|
@ -305,7 +305,7 @@ $LANG = array(
|
||||
'specify_colors' => 'Specify colors',
|
||||
'specify_colors_label' => 'Select the colors used in the invoice',
|
||||
'chart_builder' => 'Chart Builder',
|
||||
'ninja_email_footer' => 'Use :site to invoice your clients and get paid online for free!',
|
||||
'ninja_email_footer' => 'Created by :site. Create. Send. Get Paid.',
|
||||
'go_pro' => 'Go Pro',
|
||||
'quote' => 'Quote',
|
||||
'quotes' => 'Quotes',
|
||||
|
@ -63,10 +63,14 @@
|
||||
|
||||
@section('footer')
|
||||
<p style="color: #A7A6A6; font-size: 13px; line-height: 18px; margin: 0 0 7px; padding: 0;">
|
||||
{{ $account->present()->address }}
|
||||
<br />
|
||||
@if ($account->website)
|
||||
<strong><a href="{{ $account->present()->website }}" style="color: #A7A6A6; text-decoration: none; font-weight: bold; font-size: 10px;">{{ $account->website }}</a></strong>
|
||||
@if (! $account->isPaid())
|
||||
{!! trans('texts.ninja_email_footer', ['site' => link_to(NINJA_WEB_URL . '?utm_source=email_footer', APP_NAME)]) !!}
|
||||
@else
|
||||
{{ $account->present()->address }}
|
||||
<br />
|
||||
@if ($account->website)
|
||||
<strong><a href="{{ $account->present()->website }}" style="color: #A7A6A6; text-decoration: none; font-weight: bold; font-size: 10px;">{{ $account->website }}</a></strong>
|
||||
@endif
|
||||
@endif
|
||||
</p>
|
||||
@stop
|
||||
|
@ -63,10 +63,14 @@
|
||||
|
||||
@section('footer')
|
||||
<p style="color: #A7A6A6; font-size: 13px; line-height: 18px; margin: 0 0 7px; padding: 0;">
|
||||
{{ $account->present()->address }}
|
||||
<br />
|
||||
@if ($account->website)
|
||||
<strong><a href="{{ $account->present()->website }}" style="color: #A7A6A6; text-decoration: none; font-weight: bold; font-size: 10px;">{{ $account->website }}</a></strong>
|
||||
@if (! $account->isPaid())
|
||||
{!! trans('texts.ninja_email_footer', ['site' => link_to(NINJA_WEB_URL . '?utm_source=email_footer', APP_NAME)]) !!}
|
||||
@else
|
||||
{{ $account->present()->address }}
|
||||
<br />
|
||||
@if ($account->website)
|
||||
<strong><a href="{{ $account->present()->website }}" style="color: #A7A6A6; text-decoration: none; font-weight: bold; font-size: 10px;">{{ $account->website }}</a></strong>
|
||||
@endif
|
||||
@endif
|
||||
</p>
|
||||
@stop
|
||||
|
@ -8,5 +8,9 @@
|
||||
@include('emails.partials.client_view_action')
|
||||
@endif
|
||||
{!! $body !!}
|
||||
@if (! $account->isPaid())
|
||||
<br/>
|
||||
{!! trans('texts.ninja_email_footer', ['site' => link_to(NINJA_WEB_URL . '?utm_source=email_footer', APP_NAME)]) !!}
|
||||
@endif
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -1 +1,5 @@
|
||||
{!! strip_tags(str_replace('</div>', "\n\n", $body)) !!}
|
||||
{!! strip_tags(str_replace('</div>', "\n\n", $body)) !!}
|
||||
|
||||
@if (! $account->isPaid())
|
||||
{{ trans('texts.ninja_email_footer', ['site' => NINJA_WEB_URL . '?utm_source=email_footer']) }}
|
||||
@endif
|
||||
|
@ -8,7 +8,7 @@
|
||||
@endif
|
||||
<!--<![endif]-->
|
||||
</head>
|
||||
<body style="color: #000000;{!! isset($account) ? $account->getBodyFontCss() : '' !!}font-size: 12px; -webkit-text-size-adjust: none; -ms-text-size-adjust: none; background: #F4F5F5; margin: 0; padding: 0;"
|
||||
<body style="color: #000000;{!! isset($account) ? $account->getBodyFontCss() : '' !!}font-size: 12px; -webkit-text-size-adjust: none; -ms-text-size-adjust: none; background: #F4F5F5; margin: 0; padding: 0;"
|
||||
alink="#FF0000" link="#FF0000" bgcolor="#F4F5F5" text="#000000" yahoo="fix">
|
||||
@yield('markup')
|
||||
|
||||
@ -50,25 +50,25 @@
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
<div id="body_style" style="{!! isset($account) ? $account->getBodyFontCss() : '' !!};color: #2E2B2B; font-size: 16px;
|
||||
background: #F4F5F5; padding: 0px 0px 15px;">
|
||||
<div id="body_style" style="{!! isset($account) ? $account->getBodyFontCss() : '' !!};color: #2E2B2B; font-size: 16px;
|
||||
background: #F4F5F5; padding: 0px 0px 15px;">
|
||||
|
||||
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF" width="580" align="center">
|
||||
|
||||
@yield('content')
|
||||
|
||||
|
||||
<tr class="footer" style="text-align: center; color: #a7a6a6;" align="center">
|
||||
<td bgcolor="#F4F5F5"
|
||||
<td bgcolor="#F4F5F5"
|
||||
style="border-collapse: collapse; padding-top: 32px;">
|
||||
@yield('footer')
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
@ -25,17 +25,3 @@
|
||||
</td>
|
||||
</tr>
|
||||
@stop
|
||||
|
||||
@section('footer')
|
||||
@if (Utils::isNinja() || ! Utils::isWhiteLabel())
|
||||
<p style="color: #A7A6A6; font-size: 13px; line-height: 18px; margin: 0 0 7px; padding: 0;">
|
||||
<a href="{{ SOCIAL_LINK_FACEBOOK }}" style="color: #A7A6A6; text-decoration: none; font-weight: bold; font-size: 10px;"><img src="{{ $message->embed(public_path('images/emails/icon-facebook.png')) }}" alt="Facebook" /></a>
|
||||
<a href="{{ SOCIAL_LINK_TWITTER }}" style="color: #A7A6A6; text-decoration: none; font-weight: bold; font-size: 10px;"><img src="{{ $message->embed(public_path('images/emails/icon-twitter.png')) }}" alt="Twitter" /></a>
|
||||
<a href="{{ SOCIAL_LINK_GITHUB }}" style="color: #A7A6A6; text-decoration: none; font-weight: bold; font-size: 10px;"><img src="{{ $message->embed(public_path('images/emails/icon-github.png')) }}" alt="GitHub" /></a>
|
||||
</p>
|
||||
|
||||
<p style="color: #A7A6A6; font-size: 13px; line-height: 18px; margin: 0 0 7px; padding: 0;">
|
||||
© {{ date('Y') }} Invoice Ninja<br />
|
||||
</p>
|
||||
@endif
|
||||
@stop
|
||||
|
@ -8,5 +8,9 @@
|
||||
@include('emails.partials.client_view_action', ['link' => $link])
|
||||
@endif
|
||||
{!! $body !!}
|
||||
@if (! $account->isPaid())
|
||||
<br/>
|
||||
{!! trans('texts.ninja_email_footer', ['site' => link_to(NINJA_WEB_URL . '?utm_source=email_footer', APP_NAME)]) !!}
|
||||
@endif
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1 +1,5 @@
|
||||
{!! strip_tags(str_replace('</div>', "\n\n", $body)) !!}
|
||||
{!! strip_tags(str_replace('</div>', "\n\n", $body)) !!}
|
||||
|
||||
@if (! $account->isPaid())
|
||||
{{ trans('texts.ninja_email_footer', ['site' => NINJA_WEB_URL . '?utm_source=email_footer']) }}
|
||||
@endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user