mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Show app link when logging in on iOS device
This commit is contained in:
parent
011032b585
commit
e313a32c6a
@ -660,6 +660,7 @@ if (!defined('CONTACT_EMAIL')) {
|
||||
define('NINJA_FORUM_URL', env('NINJA_FORUM_URL', 'https://www.invoiceninja.com/forums/forum/support/'));
|
||||
define('NINJA_CONTACT_URL', env('NINJA_CONTACT_URL', 'https://www.invoiceninja.com/contact/'));
|
||||
define('NINJA_FROM_EMAIL', env('NINJA_FROM_EMAIL', 'maildelivery@invoiceninja.com'));
|
||||
define('NINJA_IOS_APP_URL', 'https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1072566815');
|
||||
define('RELEASES_URL', env('RELEASES_URL', 'https://trello.com/b/63BbiVVe/invoice-ninja'));
|
||||
define('ZAPIER_URL', env('ZAPIER_URL', 'https://zapier.com/zapbook/invoice-ninja'));
|
||||
define('OUTDATE_BROWSER_URL', env('OUTDATE_BROWSER_URL', 'http://browsehappy.com/'));
|
||||
|
@ -52,6 +52,10 @@ class HandleUserLoggedIn {
|
||||
|
||||
$account->loadLocalizationSettings();
|
||||
|
||||
if (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strpos($_SERVER['HTTP_USER_AGENT'], 'iPad')) {
|
||||
Session::flash('warning', trans('texts.iphone_app_message', ['link' => link_to(NINJA_IOS_APP_URL, trans('texts.iphone_app'))]));
|
||||
}
|
||||
|
||||
// if they're using Stripe make sure they're using Stripe.js
|
||||
$accountGateway = $account->getGatewayConfig(GATEWAY_STRIPE);
|
||||
if ($accountGateway && ! $accountGateway->getPublishableStripeKey()) {
|
||||
|
@ -2288,6 +2288,8 @@ $LANG = array(
|
||||
'security_confirmation' => 'Your email address has been confirmed.',
|
||||
'white_label_expired' => 'Your white label license has expired, please consider renewing it to help support our project.',
|
||||
'renew_license' => 'Renew License',
|
||||
'iphone_app_message' => 'Consider downloading our :link',
|
||||
'iphone_app' => 'iPhone app',
|
||||
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user