1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

Show app link when logging in on iOS device

This commit is contained in:
Hillel Coren 2016-12-29 21:49:55 +02:00
parent 011032b585
commit e313a32c6a
3 changed files with 7 additions and 0 deletions

View File

@ -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/'));

View File

@ -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()) {

View File

@ -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',
);