mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 12:42:36 +01:00
Use queues in send reminders command
This commit is contained in:
parent
a439da5b0c
commit
25feebd6c2
@ -182,6 +182,11 @@ class Utils
|
|||||||
return static::isNinja() ? NINJA_WEB_URL.'/terms' : NINJA_WEB_URL.'/self-hosting-the-invoice-ninja-platform';
|
return static::isNinja() ? NINJA_WEB_URL.'/terms' : NINJA_WEB_URL.'/self-hosting-the-invoice-ninja-platform';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function getPrivacyLink()
|
||||||
|
{
|
||||||
|
return static::isNinja() ? NINJA_WEB_URL.'/terms' : NINJA_WEB_URL.'/self-hosting-the-invoice-ninja-platform';
|
||||||
|
}
|
||||||
|
|
||||||
public static function isOAuthEnabled()
|
public static function isOAuthEnabled()
|
||||||
{
|
{
|
||||||
$providers = [
|
$providers = [
|
||||||
|
@ -67,6 +67,8 @@ class AccountRepository
|
|||||||
$account->currency_id = DEFAULT_CURRENCY;
|
$account->currency_id = DEFAULT_CURRENCY;
|
||||||
|
|
||||||
// Set default language/currency based on IP
|
// Set default language/currency based on IP
|
||||||
|
// TODO Disabled until GDPR implications are understood
|
||||||
|
/*
|
||||||
if (\Cache::get('currencies')) {
|
if (\Cache::get('currencies')) {
|
||||||
if ($data = unserialize(@file_get_contents('http://www.geoplugin.net/php.gp?ip=' . $account->ip))) {
|
if ($data = unserialize(@file_get_contents('http://www.geoplugin.net/php.gp?ip=' . $account->ip))) {
|
||||||
$currencyCode = strtolower($data['geoplugin_currencyCode']);
|
$currencyCode = strtolower($data['geoplugin_currencyCode']);
|
||||||
@ -94,6 +96,7 @@ class AccountRepository
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
$account->save();
|
$account->save();
|
||||||
|
|
||||||
|
@ -41,7 +41,8 @@
|
|||||||
"jt.timepicker": "jquery-timepicker-jt#^1.11.12",
|
"jt.timepicker": "jquery-timepicker-jt#^1.11.12",
|
||||||
"qrcode.js": "qrcode-js#*",
|
"qrcode.js": "qrcode-js#*",
|
||||||
"money.js": "^0.1.3",
|
"money.js": "^0.1.3",
|
||||||
"grapesjs": "^0.13.8"
|
"grapesjs": "^0.13.8",
|
||||||
|
"cookieconsent": "^3.0.6"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"jquery": "~1.11"
|
"jquery": "~1.11"
|
||||||
|
@ -23,4 +23,7 @@ return [
|
|||||||
'exchange_rates_url' => env('EXCHANGE_RATES_URL', 'https://api.fixer.io/latest'),
|
'exchange_rates_url' => env('EXCHANGE_RATES_URL', 'https://api.fixer.io/latest'),
|
||||||
'exchange_rates_base' => env('EXCHANGE_RATES_BASE', 'EUR'),
|
'exchange_rates_base' => env('EXCHANGE_RATES_BASE', 'EUR'),
|
||||||
|
|
||||||
|
// privacy policy
|
||||||
|
'privacy_policy_url' => env('PRIVACY_POLICY_URL', ''),
|
||||||
|
|
||||||
];
|
];
|
||||||
|
@ -2796,6 +2796,8 @@ $LANG = array(
|
|||||||
'send_item_details_help' => 'Send the line item details to the payment gateway.',
|
'send_item_details_help' => 'Send the line item details to the payment gateway.',
|
||||||
'view_proposal' => 'View Proposal',
|
'view_proposal' => 'View Proposal',
|
||||||
'view_in_portal' => 'View in Portal',
|
'view_in_portal' => 'View in Portal',
|
||||||
|
'cookie_message' => 'This website uses cookies to ensure you get the best experience on our website.',
|
||||||
|
'got_it' => 'Got it!',
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -198,6 +198,31 @@
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="{{ asset('css/cookieconsent.min.css') }}"/>
|
||||||
|
<script src="{{ asset('js/cookieconsent.min.js') }}"></script>
|
||||||
|
<script>
|
||||||
|
window.addEventListener("load", function(){
|
||||||
|
window.cookieconsent.initialise({
|
||||||
|
"palette": {
|
||||||
|
"popup": {
|
||||||
|
"background": "#000"
|
||||||
|
},
|
||||||
|
"button": {
|
||||||
|
"background": "#f1d600"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"cookie": {
|
||||||
|
"domain": "{{ config('session.domain') }}"
|
||||||
|
},
|
||||||
|
"content": {
|
||||||
|
"href": "{{ Utils::isNinja() ? Utils::getPrivacyLink() : (config('ninja.privacy_policy_url') ?: 'https://cookiesandyou.com/' ) }}",
|
||||||
|
"message": {!! json_encode(trans('texts.cookie_message')) !!},
|
||||||
|
"dismiss": {!! json_encode(trans('texts.got_it')) !!},
|
||||||
|
"link": {!! json_encode(trans('texts.learn_more')) !!},
|
||||||
|
}
|
||||||
|
})}
|
||||||
|
);
|
||||||
|
</script>
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
@ -231,6 +256,8 @@
|
|||||||
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||||
|
|
||||||
ga('create', '{{ $_ENV['ANALYTICS_KEY'] }}', 'auto');
|
ga('create', '{{ $_ENV['ANALYTICS_KEY'] }}', 'auto');
|
||||||
|
ga('set', 'anonymizeIp', true);
|
||||||
|
|
||||||
@if (request()->invitation_key || request()->proposal_invitation_key || request()->contact_key)
|
@if (request()->invitation_key || request()->proposal_invitation_key || request()->contact_key)
|
||||||
ga('send', 'pageview', { 'page': '/client/portal' });
|
ga('send', 'pageview', { 'page': '/client/portal' });
|
||||||
@else
|
@else
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{!! Former::checkbox('accepted_terms')->text(trans('texts.agree_to_terms', [
|
{!! Former::checkbox('accepted_terms')->text(trans('texts.agree_to_terms', [
|
||||||
'terms' => link_to(Utils::getTermsLink(), trans('texts.terms_of_service'), ['target' => '_blank']),
|
'terms' => link_to(Utils::getTermsLink(), trans('texts.terms_of_service'), ['target' => '_blank']),
|
||||||
'privacy' => link_to(Utils::getTermsLink(), trans('texts.privacy_policy'), ['target' => '_blank']),
|
'privacy' => link_to(Utils::getPrivacyLink(), trans('texts.privacy_policy'), ['target' => '_blank']),
|
||||||
]))->raw()->value(1) !!}
|
]))->raw()->value(1) !!}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user