mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01:00
Bug fixes
This commit is contained in:
parent
a2b4c25a56
commit
fcaacdf48b
@ -229,8 +229,9 @@ class InvoiceController extends BaseController
|
||||
}
|
||||
foreach(Gateway::$paymentTypes as $type) {
|
||||
if ($account->getGatewayByType($type)) {
|
||||
$paymentTypes[] = [
|
||||
'url' => URL::to("/payment/{$invitation->invitation_key}/{$type}"), 'label' => trans('texts.'.strtolower($type))
|
||||
$typeLink = strtolower(str_replace('PAYMENT_TYPE_', '', $type));
|
||||
$paymentTypes[] = [
|
||||
'url' => URL::to("/payment/{$invitation->invitation_key}/{$typeLink}"), 'label' => trans('texts.'.strtolower($type))
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -292,7 +292,9 @@ class PaymentController extends BaseController
|
||||
$account = $client->account;
|
||||
$useToken = false;
|
||||
|
||||
if (!$paymentType) {
|
||||
if ($paymentType) {
|
||||
$paymentType = 'PAYMENT_TYPE_' . strtoupper($paymentType);
|
||||
} else {
|
||||
$paymentType = Session::get('payment_type', $account->account_gateways[0]->getPaymentType());
|
||||
}
|
||||
if ($paymentType == PAYMENT_TYPE_TOKEN) {
|
||||
|
@ -204,6 +204,9 @@ Route::get('/testimonials', function() {
|
||||
Route::get('/compare-online-invoicing{sites?}', function() {
|
||||
return Redirect::to(NINJA_WEB_URL, 301);
|
||||
});
|
||||
Route::get('/forgot_password', function() {
|
||||
return Redirect::to(NINJA_APP_URL.'/forgot', 301);
|
||||
});
|
||||
|
||||
|
||||
define('CONTACT_EMAIL', Config::get('mail.from.address'));
|
||||
|
@ -39,6 +39,14 @@ class Gateway extends Eloquent
|
||||
return '/images/gateways/logo_'.$this->provider.'.png';
|
||||
}
|
||||
|
||||
public static function getPaymentTypeLinks() {
|
||||
$data = [];
|
||||
foreach (self::$paymentTypes as $type) {
|
||||
$data[] = strtolower(str_replace('PAYMENT_TYPE_', '', $type));
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function getHelp()
|
||||
{
|
||||
$link = '';
|
||||
|
@ -7,6 +7,7 @@ use URL;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\Payment;
|
||||
use App\Models\Activity;
|
||||
use App\Models\Gateway;
|
||||
use App\Events\InvoiceSent;
|
||||
|
||||
class ContactMailer extends Mailer
|
||||
@ -43,15 +44,8 @@ class ContactMailer extends Mailer
|
||||
];
|
||||
|
||||
// Add variables for available payment types
|
||||
foreach([PAYMENT_TYPE_CREDIT_CARD, PAYMENT_TYPE_PAYPAL, PAYMENT_TYPE_BITCOIN] as $type) {
|
||||
if ($invoice->account->getGatewayByType($type)) {
|
||||
|
||||
// Changes "PAYMENT_TYPE_CREDIT_CARD" to "$credit_card_link"
|
||||
$gateway_slug = '$'.strtolower(str_replace('PAYMENT_TYPE_', '', $type)).'_link';
|
||||
|
||||
$variables[$gateway_slug] = URL::to("/payment/{$invitation->invitation_key}/{$type}");
|
||||
|
||||
}
|
||||
foreach (Gateway::getPaymentTypeLinks() as $type) {
|
||||
$variables["\${$type}_link"] = URL::to("/payment/{$invitation->invitation_key}/{$type}");
|
||||
}
|
||||
|
||||
$data['body'] = str_replace(array_keys($variables), array_values($variables), $emailTemplate);
|
||||
|
79
public/css/built.css
vendored
79
public/css/built.css
vendored
@ -3267,4 +3267,81 @@ div.dataTables_length label {
|
||||
a .glyphicon,
|
||||
button .glyphicon {
|
||||
padding-left: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.pro-plan-modal {
|
||||
background-color: #4b4b4b;
|
||||
padding-bottom: 40px;
|
||||
padding-right: 25px;
|
||||
/*opacity:0.96 !important;*/
|
||||
}
|
||||
|
||||
.pro-plan-modal .left-side {
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
.pro-plan-modal h2 {
|
||||
color: #36c157;
|
||||
font-size: 71px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.pro-plan-modal img.price {
|
||||
height: 90px;
|
||||
}
|
||||
|
||||
.pro-plan-modal a.button {
|
||||
font-family: 'roboto_slabregular', Georgia, Times, serif;
|
||||
background: #f38c4f;
|
||||
background: -moz-linear-gradient(top, #f38c4f 0%, #db7134 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f38c4f), color-stop(100%,#db7134));
|
||||
background: -webkit-linear-gradient(top, #f38c4f 0%,#db7134 100%);
|
||||
background: -o-linear-gradient(top, #f38c4f 0%,#db7134 100%);
|
||||
background: -ms-linear-gradient(top, #f38c4f 0%,#db7134 100%);
|
||||
background: linear-gradient(to bottom, #f38c4f 0%,#db7134 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f38c4f', endColorstr='#db7134',GradientType=0 );
|
||||
text-shadow: 1px 1px 1px rgba(0, 0, 0, .25);
|
||||
width: 68%;
|
||||
margin-top: 20px;
|
||||
font-size: 28px;
|
||||
color: #fff;
|
||||
border-radius: 10px;
|
||||
padding: 20px 0;
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.pro-plan-modal a.button:hover {
|
||||
background: #db7134; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #db7134 0%, #f38c4f 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#db7134), color-stop(100%,#f38c4f)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, #db7134 0%,#f38c4f 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #db7134 0%,#f38c4f 100%); /* Opera 11.10+ */
|
||||
background: -ms-linear-gradient(top, #db7134 0%,#f38c4f 100%); /* IE10+ */
|
||||
background: linear-gradient(to bottom, #db7134 0%,#f38c4f 100%); /* W3C */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#db7134', endColorstr='#f38c4f',GradientType=0 ); /* IE6-9 */
|
||||
}
|
||||
|
||||
|
||||
.pro-plan-modal ul {
|
||||
color: #fff;
|
||||
list-style: none;
|
||||
padding: 0 0 30px 0;
|
||||
text-align: left;
|
||||
white-space: pre-line;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.pro-plan-modal ul li {
|
||||
font-family: 'roboto_slabregular', Georgia, Times, serif;
|
||||
background: url('../images/pro_plan/check.png') no-repeat 0px 12px;
|
||||
display: inline-block;
|
||||
font-size: 17px;
|
||||
line-height: 36px;
|
||||
padding: 0 0 0 19px;
|
||||
}
|
||||
|
||||
.pro-plan-modal img.close {
|
||||
width: 35px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
79
public/css/style.css
vendored
79
public/css/style.css
vendored
@ -883,4 +883,81 @@ div.dataTables_length label {
|
||||
a .glyphicon,
|
||||
button .glyphicon {
|
||||
padding-left: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.pro-plan-modal {
|
||||
background-color: #4b4b4b;
|
||||
padding-bottom: 40px;
|
||||
padding-right: 25px;
|
||||
/*opacity:0.96 !important;*/
|
||||
}
|
||||
|
||||
.pro-plan-modal .left-side {
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
.pro-plan-modal h2 {
|
||||
color: #36c157;
|
||||
font-size: 71px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.pro-plan-modal img.price {
|
||||
height: 90px;
|
||||
}
|
||||
|
||||
.pro-plan-modal a.button {
|
||||
font-family: 'roboto_slabregular', Georgia, Times, serif;
|
||||
background: #f38c4f;
|
||||
background: -moz-linear-gradient(top, #f38c4f 0%, #db7134 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f38c4f), color-stop(100%,#db7134));
|
||||
background: -webkit-linear-gradient(top, #f38c4f 0%,#db7134 100%);
|
||||
background: -o-linear-gradient(top, #f38c4f 0%,#db7134 100%);
|
||||
background: -ms-linear-gradient(top, #f38c4f 0%,#db7134 100%);
|
||||
background: linear-gradient(to bottom, #f38c4f 0%,#db7134 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f38c4f', endColorstr='#db7134',GradientType=0 );
|
||||
text-shadow: 1px 1px 1px rgba(0, 0, 0, .25);
|
||||
width: 68%;
|
||||
margin-top: 20px;
|
||||
font-size: 28px;
|
||||
color: #fff;
|
||||
border-radius: 10px;
|
||||
padding: 20px 0;
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.pro-plan-modal a.button:hover {
|
||||
background: #db7134; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #db7134 0%, #f38c4f 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#db7134), color-stop(100%,#f38c4f)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, #db7134 0%,#f38c4f 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #db7134 0%,#f38c4f 100%); /* Opera 11.10+ */
|
||||
background: -ms-linear-gradient(top, #db7134 0%,#f38c4f 100%); /* IE10+ */
|
||||
background: linear-gradient(to bottom, #db7134 0%,#f38c4f 100%); /* W3C */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#db7134', endColorstr='#f38c4f',GradientType=0 ); /* IE6-9 */
|
||||
}
|
||||
|
||||
|
||||
.pro-plan-modal ul {
|
||||
color: #fff;
|
||||
list-style: none;
|
||||
padding: 0 0 30px 0;
|
||||
text-align: left;
|
||||
white-space: pre-line;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.pro-plan-modal ul li {
|
||||
font-family: 'roboto_slabregular', Georgia, Times, serif;
|
||||
background: url('../images/pro_plan/check.png') no-repeat 0px 12px;
|
||||
display: inline-block;
|
||||
font-size: 17px;
|
||||
line-height: 36px;
|
||||
padding: 0 0 0 19px;
|
||||
}
|
||||
|
||||
.pro-plan-modal img.close {
|
||||
width: 35px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
BIN
public/images/pro_plan/check.png
Normal file
BIN
public/images/pro_plan/check.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
public/images/pro_plan/close.png
Normal file
BIN
public/images/pro_plan/close.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
BIN
public/images/pro_plan/price.png
Normal file
BIN
public/images/pro_plan/price.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
@ -677,5 +677,18 @@ return array(
|
||||
'gateway_help_43' => ':link to sign up for Dwolla.',
|
||||
'partial_value' => 'Must be greater than zero and less than the total',
|
||||
'more_actions' => 'More Actions',
|
||||
|
||||
'pro_plan_title' => 'NINJA PRO',
|
||||
'pro_plan_call_to_action' => 'Upgrade Now!',
|
||||
'pro_plan_feature1' => 'Create Unlimited Clients',
|
||||
'pro_plan_feature2' => 'Access to 10 Beautiful Invoice Designs',
|
||||
'pro_plan_feature3' => 'Custom URLs - "YourBrand.InvoiceNinja.com"',
|
||||
'pro_plan_feature4' => 'Remove "Created by Invoice Ninja"',
|
||||
'pro_plan_feature5' => 'Multi-user Access & Activity Tracking',
|
||||
'pro_plan_feature6' => 'Create Quotes & Pro-forma Invoices',
|
||||
'pro_plan_feature7' => 'Customize Invoice Field Titles & Numbering',
|
||||
'pro_plan_feature8' => 'Option to Attach PDFs to Client Emails',
|
||||
|
||||
|
||||
|
||||
);
|
||||
|
@ -669,4 +669,16 @@ return array(
|
||||
'partial_value' => 'Must be greater than zero and less than the total',
|
||||
'more_actions' => 'More Actions',
|
||||
|
||||
'pro_plan_title' => 'NINJA PRO',
|
||||
'pro_plan_call_to_action' => 'Upgrade Now!',
|
||||
'pro_plan_feature1' => 'Create Unlimited Clients',
|
||||
'pro_plan_feature2' => 'Access to 10 Beautiful Invoice Designs',
|
||||
'pro_plan_feature3' => 'Custom URLs - "YourBrand.InvoiceNinja.com"',
|
||||
'pro_plan_feature4' => 'Remove "Created by Invoice Ninja"',
|
||||
'pro_plan_feature5' => 'Multi-user Access & Activity Tracking',
|
||||
'pro_plan_feature6' => 'Create Quotes & Pro-forma Invoices',
|
||||
'pro_plan_feature7' => 'Customize Invoice Field Titles & Numbering',
|
||||
'pro_plan_feature8' => 'Option to Attach PDFs to Client Emails',
|
||||
|
||||
|
||||
);
|
@ -676,4 +676,17 @@ return array(
|
||||
'partial_value' => 'Must be greater than zero and less than the total',
|
||||
'more_actions' => 'More Actions',
|
||||
|
||||
'pro_plan_title' => 'NINJA PRO',
|
||||
'pro_plan_call_to_action' => 'Upgrade Now!',
|
||||
'pro_plan_feature1' => 'Create Unlimited Clients',
|
||||
'pro_plan_feature2' => 'Access to 10 Beautiful Invoice Designs',
|
||||
'pro_plan_feature3' => 'Custom URLs - "YourBrand.InvoiceNinja.com"',
|
||||
'pro_plan_feature4' => 'Remove "Created by Invoice Ninja"',
|
||||
'pro_plan_feature5' => 'Multi-user Access & Activity Tracking',
|
||||
'pro_plan_feature6' => 'Create Quotes & Pro-forma Invoices',
|
||||
'pro_plan_feature7' => 'Customize Invoice Field Titles & Numbering',
|
||||
'pro_plan_feature8' => 'Option to Attach PDFs to Client Emails',
|
||||
|
||||
|
||||
|
||||
);
|
||||
|
@ -648,4 +648,16 @@ return array(
|
||||
'partial_value' => 'Must be greater than zero and less than the total',
|
||||
'more_actions' => 'More Actions',
|
||||
|
||||
'pro_plan_title' => 'NINJA PRO',
|
||||
'pro_plan_call_to_action' => 'Upgrade Now!',
|
||||
'pro_plan_feature1' => 'Create Unlimited Clients',
|
||||
'pro_plan_feature2' => 'Access to 10 Beautiful Invoice Designs',
|
||||
'pro_plan_feature3' => 'Custom URLs - "YourBrand.InvoiceNinja.com"',
|
||||
'pro_plan_feature4' => 'Remove "Created by Invoice Ninja"',
|
||||
'pro_plan_feature5' => 'Multi-user Access & Activity Tracking',
|
||||
'pro_plan_feature6' => 'Create Quotes & Pro-forma Invoices',
|
||||
'pro_plan_feature7' => 'Customize Invoice Field Titles & Numbering',
|
||||
'pro_plan_feature8' => 'Option to Attach PDFs to Client Emails',
|
||||
|
||||
|
||||
);
|
@ -677,4 +677,16 @@ return array(
|
||||
'partial_value' => 'Must be greater than zero and less than the total',
|
||||
'more_actions' => 'More Actions',
|
||||
|
||||
'pro_plan_title' => 'NINJA PRO',
|
||||
'pro_plan_call_to_action' => 'Upgrade Now!',
|
||||
'pro_plan_feature1' => 'Create Unlimited Clients',
|
||||
'pro_plan_feature2' => 'Access to 10 Beautiful Invoice Designs',
|
||||
'pro_plan_feature3' => 'Custom URLs - "YourBrand.InvoiceNinja.com"',
|
||||
'pro_plan_feature4' => 'Remove "Created by Invoice Ninja"',
|
||||
'pro_plan_feature5' => 'Multi-user Access & Activity Tracking',
|
||||
'pro_plan_feature6' => 'Create Quotes & Pro-forma Invoices',
|
||||
'pro_plan_feature7' => 'Customize Invoice Field Titles & Numbering',
|
||||
'pro_plan_feature8' => 'Option to Attach PDFs to Client Emails',
|
||||
|
||||
|
||||
);
|
@ -669,4 +669,16 @@ return array(
|
||||
'partial_value' => 'Must be greater than zero and less than the total',
|
||||
'more_actions' => 'More Actions',
|
||||
|
||||
'pro_plan_title' => 'NINJA PRO',
|
||||
'pro_plan_call_to_action' => 'Upgrade Now!',
|
||||
'pro_plan_feature1' => 'Create Unlimited Clients',
|
||||
'pro_plan_feature2' => 'Access to 10 Beautiful Invoice Designs',
|
||||
'pro_plan_feature3' => 'Custom URLs - "YourBrand.InvoiceNinja.com"',
|
||||
'pro_plan_feature4' => 'Remove "Created by Invoice Ninja"',
|
||||
'pro_plan_feature5' => 'Multi-user Access & Activity Tracking',
|
||||
'pro_plan_feature6' => 'Create Quotes & Pro-forma Invoices',
|
||||
'pro_plan_feature7' => 'Customize Invoice Field Titles & Numbering',
|
||||
'pro_plan_feature8' => 'Option to Attach PDFs to Client Emails',
|
||||
|
||||
|
||||
);
|
@ -669,4 +669,16 @@ return array(
|
||||
'partial_value' => 'Must be greater than zero and less than the total',
|
||||
'more_actions' => 'More Actions',
|
||||
|
||||
|
||||
'pro_plan_title' => 'NINJA PRO',
|
||||
'pro_plan_call_to_action' => 'Upgrade Now!',
|
||||
'pro_plan_feature1' => 'Create Unlimited Clients',
|
||||
'pro_plan_feature2' => 'Access to 10 Beautiful Invoice Designs',
|
||||
'pro_plan_feature3' => 'Custom URLs - "YourBrand.InvoiceNinja.com"',
|
||||
'pro_plan_feature4' => 'Remove "Created by Invoice Ninja"',
|
||||
'pro_plan_feature5' => 'Multi-user Access & Activity Tracking',
|
||||
'pro_plan_feature6' => 'Create Quotes & Pro-forma Invoices',
|
||||
'pro_plan_feature7' => 'Customize Invoice Field Titles & Numbering',
|
||||
'pro_plan_feature8' => 'Option to Attach PDFs to Client Emails',
|
||||
|
||||
);
|
||||
|
@ -670,5 +670,18 @@ return array(
|
||||
'gateway_help_43' => ':link to sign up for Dwolla.',
|
||||
'partial_value' => 'Must be greater than zero and less than the total',
|
||||
'more_actions' => 'More Actions',
|
||||
|
||||
|
||||
'pro_plan_title' => 'NINJA PRO',
|
||||
'pro_plan_call_to_action' => 'Upgrade Now!',
|
||||
'pro_plan_feature1' => 'Create Unlimited Clients',
|
||||
'pro_plan_feature2' => 'Access to 10 Beautiful Invoice Designs',
|
||||
'pro_plan_feature3' => 'Custom URLs - "YourBrand.InvoiceNinja.com"',
|
||||
'pro_plan_feature4' => 'Remove "Created by Invoice Ninja"',
|
||||
'pro_plan_feature5' => 'Multi-user Access & Activity Tracking',
|
||||
'pro_plan_feature6' => 'Create Quotes & Pro-forma Invoices',
|
||||
'pro_plan_feature7' => 'Customize Invoice Field Titles & Numbering',
|
||||
'pro_plan_feature8' => 'Option to Attach PDFs to Client Emails',
|
||||
|
||||
|
||||
);
|
||||
|
@ -678,6 +678,18 @@ return array(
|
||||
'gateway_help_43' => ':link to sign up for Dwolla.',
|
||||
'partial_value' => 'Must be greater than zero and less than the total',
|
||||
'more_actions' => 'More Actions',
|
||||
|
||||
'pro_plan_title' => 'NINJA PRO',
|
||||
'pro_plan_call_to_action' => 'Upgrade Now!',
|
||||
'pro_plan_feature1' => 'Create Unlimited Clients',
|
||||
'pro_plan_feature2' => 'Access to 10 Beautiful Invoice Designs',
|
||||
'pro_plan_feature3' => 'Custom URLs - "YourBrand.InvoiceNinja.com"',
|
||||
'pro_plan_feature4' => 'Remove "Created by Invoice Ninja"',
|
||||
'pro_plan_feature5' => 'Multi-user Access & Activity Tracking',
|
||||
'pro_plan_feature6' => 'Create Quotes & Pro-forma Invoices',
|
||||
'pro_plan_feature7' => 'Customize Invoice Field Titles & Numbering',
|
||||
'pro_plan_feature8' => 'Option to Attach PDFs to Client Emails',
|
||||
|
||||
|
||||
);
|
||||
|
||||
|
@ -676,5 +676,17 @@ return array(
|
||||
'gateway_help_43' => ':link to sign up for Dwolla.',
|
||||
'partial_value' => 'Must be greater than zero and less than the total',
|
||||
'more_actions' => 'More Actions',
|
||||
|
||||
'pro_plan_title' => 'NINJA PRO',
|
||||
'pro_plan_call_to_action' => 'Upgrade Now!',
|
||||
'pro_plan_feature1' => 'Create Unlimited Clients',
|
||||
'pro_plan_feature2' => 'Access to 10 Beautiful Invoice Designs',
|
||||
'pro_plan_feature3' => 'Custom URLs - "YourBrand.InvoiceNinja.com"',
|
||||
'pro_plan_feature4' => 'Remove "Created by Invoice Ninja"',
|
||||
'pro_plan_feature5' => 'Multi-user Access & Activity Tracking',
|
||||
'pro_plan_feature6' => 'Create Quotes & Pro-forma Invoices',
|
||||
'pro_plan_feature7' => 'Customize Invoice Field Titles & Numbering',
|
||||
'pro_plan_feature8' => 'Option to Attach PDFs to Client Emails',
|
||||
|
||||
|
||||
);
|
@ -671,5 +671,17 @@ return array(
|
||||
'gateway_help_43' => ':link to sign up for Dwolla.',
|
||||
'partial_value' => 'Must be greater than zero and less than the total',
|
||||
'more_actions' => 'More Actions',
|
||||
|
||||
'pro_plan_title' => 'NINJA PRO',
|
||||
'pro_plan_call_to_action' => 'Upgrade Now!',
|
||||
'pro_plan_feature1' => 'Create Unlimited Clients',
|
||||
'pro_plan_feature2' => 'Access to 10 Beautiful Invoice Designs',
|
||||
'pro_plan_feature3' => 'Custom URLs - "YourBrand.InvoiceNinja.com"',
|
||||
'pro_plan_feature4' => 'Remove "Created by Invoice Ninja"',
|
||||
'pro_plan_feature5' => 'Multi-user Access & Activity Tracking',
|
||||
'pro_plan_feature6' => 'Create Quotes & Pro-forma Invoices',
|
||||
'pro_plan_feature7' => 'Customize Invoice Field Titles & Numbering',
|
||||
'pro_plan_feature8' => 'Option to Attach PDFs to Client Emails',
|
||||
|
||||
|
||||
);
|
||||
|
@ -671,5 +671,17 @@ return array(
|
||||
'gateway_help_43' => ':link to sign up for Dwolla.',
|
||||
'partial_value' => 'Must be greater than zero and less than the total',
|
||||
'more_actions' => 'More Actions',
|
||||
|
||||
'pro_plan_title' => 'NINJA PRO',
|
||||
'pro_plan_call_to_action' => 'Upgrade Now!',
|
||||
'pro_plan_feature1' => 'Create Unlimited Clients',
|
||||
'pro_plan_feature2' => 'Access to 10 Beautiful Invoice Designs',
|
||||
'pro_plan_feature3' => 'Custom URLs - "YourBrand.InvoiceNinja.com"',
|
||||
'pro_plan_feature4' => 'Remove "Created by Invoice Ninja"',
|
||||
'pro_plan_feature5' => 'Multi-user Access & Activity Tracking',
|
||||
'pro_plan_feature6' => 'Create Quotes & Pro-forma Invoices',
|
||||
'pro_plan_feature7' => 'Customize Invoice Field Titles & Numbering',
|
||||
'pro_plan_feature8' => 'Option to Attach PDFs to Client Emails',
|
||||
|
||||
|
||||
);
|
||||
|
@ -674,5 +674,17 @@ return array(
|
||||
'gateway_help_43' => ':link to sign up for Dwolla.',
|
||||
'partial_value' => 'Must be greater than zero and less than the total',
|
||||
'more_actions' => 'More Actions',
|
||||
|
||||
'pro_plan_title' => 'NINJA PRO',
|
||||
'pro_plan_call_to_action' => 'Upgrade Now!',
|
||||
'pro_plan_feature1' => 'Create Unlimited Clients',
|
||||
'pro_plan_feature2' => 'Access to 10 Beautiful Invoice Designs',
|
||||
'pro_plan_feature3' => 'Custom URLs - "YourBrand.InvoiceNinja.com"',
|
||||
'pro_plan_feature4' => 'Remove "Created by Invoice Ninja"',
|
||||
'pro_plan_feature5' => 'Multi-user Access & Activity Tracking',
|
||||
'pro_plan_feature6' => 'Create Quotes & Pro-forma Invoices',
|
||||
'pro_plan_feature7' => 'Customize Invoice Field Titles & Numbering',
|
||||
'pro_plan_feature8' => 'Option to Attach PDFs to Client Emails',
|
||||
|
||||
|
||||
);
|
||||
|
@ -111,20 +111,10 @@
|
||||
vals = [{!! json_encode($emailFooter) !!}, '{!! Auth::user()->account->getDisplayName() !!}', 'Client Name', formatMoney(100), '{!! NINJA_WEB_URL !!}', 'Contact Name'];
|
||||
|
||||
// Add any available payment method links
|
||||
<?php
|
||||
foreach([PAYMENT_TYPE_CREDIT_CARD, PAYMENT_TYPE_PAYPAL, PAYMENT_TYPE_BITCOIN] as $type) {
|
||||
if (Auth::user()->account->getGatewayByType($type)) {
|
||||
|
||||
// Changes "PAYMENT_TYPE_CREDIT_CARD" to "credit_card"
|
||||
$gateway_slug = strtolower(str_replace('PAYMENT_TYPE_', '', $type)).'_link';
|
||||
|
||||
echo "keys.push('$gateway_slug'); ";
|
||||
echo "vals.push('".URL::to("/payment/xxxxxx/{$type}")."'); ";
|
||||
echo "\n";
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
@foreach (\App\Models\Gateway::getPaymentTypeLinks() as $type)
|
||||
{!! "keys.push('" . $type.'_link' . "');" !!}
|
||||
{!! "vals.push('" . URL::to("/payment/xxxxxx/{$type}") . "');" !!}
|
||||
@endforeach
|
||||
|
||||
for (var i=0; i<keys.length; i++) {
|
||||
var regExp = new RegExp('\\$'+keys[i], 'g');
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
@if (!Auth::user()->account->isPro())
|
||||
<center>
|
||||
<div style="font-size:larger;" class="col-md-8 col-md-offset-2">{!! trans('texts.pro_plan_advanced_settings', ['link'=>'<a href="#" onclick="submitProPlan(\''.$feature.'\')">'.trans('texts.pro_plan.remove_logo_link').'</a>']) !!}</div>
|
||||
<div style="font-size:larger;" class="col-md-8 col-md-offset-2">{!! trans('texts.pro_plan_advanced_settings', ['link'=>'<a href="#" onclick="showProPlan(\''.$feature.'\')">'.trans('texts.pro_plan.remove_logo_link').'</a>']) !!}</div>
|
||||
<p/>
|
||||
</center>
|
||||
@endif
|
||||
|
@ -144,27 +144,35 @@
|
||||
$('#signUpModal').modal('show');
|
||||
}
|
||||
|
||||
NINJA.proPlanFeature = '';
|
||||
function showProPlan(feature) {
|
||||
$('#proPlanModal').modal('show');
|
||||
trackEvent('/account', '/show_pro_plan/' + feature);
|
||||
NINJA.proPlanFeature = feature;
|
||||
}
|
||||
|
||||
function hideProPlan() {
|
||||
$('#proPlanModal').modal('hide');
|
||||
}
|
||||
|
||||
function buyProduct(affiliateKey, productId) {
|
||||
window.open('{{ Utils::isNinjaDev() ? '' : NINJA_APP_URL }}/license?affiliate_key=' + affiliateKey + '&product_id=' + productId + '&return_url=' + window.location);
|
||||
}
|
||||
|
||||
@if (Auth::check() && !Auth::user()->isPro())
|
||||
function submitProPlan(feature) {
|
||||
trackEvent('/account', '/submit_pro_plan/' + feature);
|
||||
if (NINJA.isRegistered) {
|
||||
$('#proPlanDiv, #proPlanFooter').hide();
|
||||
$('#proPlanWorking').show();
|
||||
|
||||
function submitProPlan() {
|
||||
trackEvent('/account', '/submit_pro_plan/' + NINJA.proPlanFeature);
|
||||
if (NINJA.isRegistered) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '{{ URL::to('account/go_pro') }}',
|
||||
success: function(result) {
|
||||
NINJA.formIsChanged = false;
|
||||
window.location = '/view/' + result;
|
||||
window.location = '/payment/' + result;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$('#proPlanModal').modal('hide');
|
||||
$('#proPlanModal').modal('hide');
|
||||
$('#go_pro').val('true');
|
||||
showSignUp();
|
||||
}
|
||||
@ -321,7 +329,7 @@
|
||||
@if (!Auth::user()->registered)
|
||||
{!! Button::success(trans('texts.sign_up'))->withAttributes(array('id' => 'signUpButton', 'data-toggle'=>'modal', 'data-target'=>'#signUpModal'))->small() !!}
|
||||
@elseif (!Auth::user()->isPro())
|
||||
{!! Button::success(trans('texts.go_pro'))->withAttributes(array('id' => 'proPlanButton', 'onclick' => 'submitProPlan("")'))->small() !!}
|
||||
{!! Button::success(trans('texts.go_pro'))->withAttributes(array('id' => 'proPlanButton', 'onclick' => 'showProPlan("")'))->small() !!}
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@ -526,47 +534,36 @@
|
||||
|
||||
@if (Auth::check() && !Auth::user()->isPro())
|
||||
<div class="modal fade" id="proPlanModal" tabindex="-1" role="dialog" aria-labelledby="proPlanModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog medium-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h4 class="modal-title" id="proPlanModalLabel">{{ trans('texts.pro_plan_product') }}</h4>
|
||||
<div class="modal-dialog large-dialog">
|
||||
<div class="modal-content pro-plan-modal">
|
||||
|
||||
|
||||
<div class="pull-right">
|
||||
<img onclick="hideProPlan()" class="close" src="{{ asset('images/pro_plan/close.png') }}"/>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-7 left-side">
|
||||
<center>
|
||||
<h2>{{ trans('texts.pro_plan_title') }}</h2>
|
||||
<img class="img-responsive price" alt="Only $50 Per Year" src="{{ asset('images/pro_plan/price.png') }}"/>
|
||||
<a class="button" href="#" onclick="submitProPlan()">{{ trans('texts.pro_plan_call_to_action') }}</a>
|
||||
</center>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ul>
|
||||
<li>{{ trans('texts.pro_plan_feature1') }}</li>
|
||||
<li>{{ trans('texts.pro_plan_feature2') }}</li>
|
||||
<li>{{ trans('texts.pro_plan_feature3') }}</li>
|
||||
<li>{{ trans('texts.pro_plan_feature4') }}</li>
|
||||
<li>{{ trans('texts.pro_plan_feature5') }}</li>
|
||||
<li>{{ trans('texts.pro_plan_feature6') }}</li>
|
||||
<li>{{ trans('texts.pro_plan_feature7') }}</li>
|
||||
<li>{{ trans('texts.pro_plan_feature8') }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="background-color: #fff; padding-left: 16px; padding-right: 16px" id="proPlanDiv">
|
||||
<section class="plans">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2>Go Pro to Unlock Premium Invoice Ninja Features</h2>
|
||||
<p>We believe that the free version of Invoice Ninja is a truly awesome product loaded
|
||||
with the key features you need to bill your clients electronically. But for those who
|
||||
crave still more Ninja awesomeness, we've unmasked the Invoice Ninja Pro plan, which
|
||||
offers more versatility, power and customization options for just $50 per year. </p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('plans')
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div style="padding-left:40px;padding-right:40px;display:none;min-height:130px" id="proPlanWorking">
|
||||
<h3>{{ trans('texts.working') }}...</h3>
|
||||
<div class="progress progress-striped active">
|
||||
<div class="progress-bar" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="background-color: #fff; padding-right:20px;padding-left:20px; display:none" id="proPlanSuccess">
|
||||
<br/>
|
||||
{{ trans('texts.pro_plan_success') }}
|
||||
<br/>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer" style="margin-top: 0px" id="proPlanFooter">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('texts.close') }}</button>
|
||||
<button type="button" class="btn btn-primary" id="proPlanButton" onclick="submitProPlan()">{{ trans('texts.sign_up') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -357,7 +357,7 @@
|
||||
|
||||
@if (!Auth::user()->account->isPro())
|
||||
<div style="font-size:larger">
|
||||
{!! trans('texts.pro_plan.remove_logo', ['link'=>'<a href="#" onclick="submitProPlan(\'remove_logo\')">'.trans('texts.pro_plan.remove_logo_link').'</a>']) !!}
|
||||
{!! trans('texts.pro_plan.remove_logo', ['link'=>'<a href="#" onclick="showProPlan(\'remove_logo\')">'.trans('texts.pro_plan.remove_logo_link').'</a>']) !!}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
@ -35,7 +35,7 @@
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('texts.cancel') }}</button>
|
||||
|
||||
@if (Utils::isNinjaProd())
|
||||
<button type="button" class="btn btn-primary" onclick="submitProPlan('invoice_designs')">{{ trans('texts.go_pro') }}</button>
|
||||
<button type="button" class="btn btn-primary" onclick="showProPlan('invoice_designs')">{{ trans('texts.go_pro') }}</button>
|
||||
@else
|
||||
<button type="button" class="btn btn-primary" onclick="buyProduct('{{ INVOICE_DESIGNS_AFFILIATE_KEY }}', '{{ PRODUCT_INVOICE_DESIGNS }}')">{{ trans('texts.buy') }}</button>
|
||||
@endif
|
||||
|
Loading…
Reference in New Issue
Block a user