@@ -8,85 +8,85 @@ |
||
8 | 8 | * @version 1.0.17 |
9 | 9 | */ |
10 | 10 | |
11 | -defined( 'ABSPATH' ) || exit; |
|
11 | +defined('ABSPATH') || exit; |
|
12 | 12 | |
13 | 13 | return array( |
14 | 14 | |
15 | 15 | array( |
16 | 16 | 'field_type' => 'first_name', |
17 | 17 | 'name' => 'wpinv_first_name', |
18 | - 'placeholder' => __( 'First name', 'invoicing' ), |
|
19 | - 'field_label' => __( 'First name', 'invoicing' ), |
|
20 | - 'field_required' => (bool) wpinv_get_option( 'fname_mandatory', true ), |
|
21 | - 'field_required_msg' => __( 'Please enter your first name', 'invoicing' ), |
|
22 | - 'show_in' => array( 'email', 'checkout', 'details', 'quick_checkout' ), |
|
18 | + 'placeholder' => __('First name', 'invoicing'), |
|
19 | + 'field_label' => __('First name', 'invoicing'), |
|
20 | + 'field_required' => (bool) wpinv_get_option('fname_mandatory', true), |
|
21 | + 'field_required_msg' => __('Please enter your first name', 'invoicing'), |
|
22 | + 'show_in' => array('email', 'checkout', 'details', 'quick_checkout'), |
|
23 | 23 | ), |
24 | 24 | |
25 | 25 | array( |
26 | 26 | 'field_type' => 'last_name', |
27 | 27 | 'name' => 'wpinv_last_name', |
28 | - 'placeholder' => __( 'Last name', 'invoicing' ), |
|
29 | - 'field_label' => __( 'Last name', 'invoicing' ), |
|
30 | - 'field_required' => (bool) wpinv_get_option( 'lname_mandatory', true ), |
|
31 | - 'field_required_msg' => __( 'Please enter your last name', 'invoicing' ), |
|
32 | - 'show_in' => array( 'email', 'checkout', 'details', 'quick_checkout' ), |
|
28 | + 'placeholder' => __('Last name', 'invoicing'), |
|
29 | + 'field_label' => __('Last name', 'invoicing'), |
|
30 | + 'field_required' => (bool) wpinv_get_option('lname_mandatory', true), |
|
31 | + 'field_required_msg' => __('Please enter your last name', 'invoicing'), |
|
32 | + 'show_in' => array('email', 'checkout', 'details', 'quick_checkout'), |
|
33 | 33 | ), |
34 | 34 | |
35 | 35 | array( |
36 | 36 | 'field_type' => 'address', |
37 | 37 | 'name' => 'wpinv_address', |
38 | - 'placeholder' => __( 'Address', 'invoicing' ), |
|
39 | - 'field_label' => __( 'Address', 'invoicing' ), |
|
40 | - 'field_required' => (bool) wpinv_get_option( 'address_mandatory', true ), |
|
41 | - 'field_required_msg' => __( 'Please enter your address', 'invoicing' ), |
|
38 | + 'placeholder' => __('Address', 'invoicing'), |
|
39 | + 'field_label' => __('Address', 'invoicing'), |
|
40 | + 'field_required' => (bool) wpinv_get_option('address_mandatory', true), |
|
41 | + 'field_required_msg' => __('Please enter your address', 'invoicing'), |
|
42 | 42 | ), |
43 | 43 | |
44 | 44 | array( |
45 | 45 | 'field_type' => 'city', |
46 | 46 | 'name' => 'wpinv_city', |
47 | - 'placeholder' => __( 'City', 'invoicing' ), |
|
48 | - 'field_label' => __( 'City', 'invoicing' ), |
|
49 | - 'field_required' => (bool) wpinv_get_option( 'city_mandatory', true ), |
|
50 | - 'field_required_msg' => __( 'Please enter your billing city', 'invoicing' ), |
|
47 | + 'placeholder' => __('City', 'invoicing'), |
|
48 | + 'field_label' => __('City', 'invoicing'), |
|
49 | + 'field_required' => (bool) wpinv_get_option('city_mandatory', true), |
|
50 | + 'field_required_msg' => __('Please enter your billing city', 'invoicing'), |
|
51 | 51 | ), |
52 | 52 | |
53 | 53 | array( |
54 | 54 | 'name' => 'wpinv_country', |
55 | 55 | 'show_option_all' => false, |
56 | 56 | 'show_option_none' => false, |
57 | - 'field_label' => __( 'Country', 'invoicing' ), |
|
58 | - 'placeholder' => __( 'Choose a country', 'invoicing' ), |
|
59 | - 'field_required' => (bool) wpinv_get_option( 'country_mandatory', true ), |
|
57 | + 'field_label' => __('Country', 'invoicing'), |
|
58 | + 'placeholder' => __('Choose a country', 'invoicing'), |
|
59 | + 'field_required' => (bool) wpinv_get_option('country_mandatory', true), |
|
60 | 60 | 'field_type' => 'country', |
61 | 61 | 'input_class' => 'wpi-input form-control wpi_select2', |
62 | - 'field_required_msg' => __( 'Please chose a country', 'invoicing' ), |
|
62 | + 'field_required_msg' => __('Please chose a country', 'invoicing'), |
|
63 | 63 | ), |
64 | 64 | |
65 | 65 | array( |
66 | 66 | 'field_type' => 'state', |
67 | - 'field_required' => (bool) wpinv_get_option( 'state_mandatory', true ), |
|
68 | - 'field_label' => __( 'State / Province', 'invoicing' ), |
|
69 | - 'placeholder' => __( 'Choose a state', 'invoicing' ), |
|
67 | + 'field_required' => (bool) wpinv_get_option('state_mandatory', true), |
|
68 | + 'field_label' => __('State / Province', 'invoicing'), |
|
69 | + 'placeholder' => __('Choose a state', 'invoicing'), |
|
70 | 70 | 'name' => 'wpinv_state', |
71 | - 'field_required_msg' => __( 'Please set your state or province', 'invoicing' ), |
|
71 | + 'field_required_msg' => __('Please set your state or province', 'invoicing'), |
|
72 | 72 | ), |
73 | 73 | |
74 | 74 | array( |
75 | 75 | 'field_type' => 'zip', |
76 | 76 | 'name' => 'wpinv_zip', |
77 | - 'placeholder' => __( 'ZIP / Postcode', 'invoicing' ), |
|
78 | - 'field_label' => __( 'ZIP / Postcode', 'invoicing' ), |
|
79 | - 'field_required' => (bool) wpinv_get_option( 'zip_mandatory', true ), |
|
80 | - 'field_required_msg' => __( 'Please enter your postcode', 'invoicing' ), |
|
77 | + 'placeholder' => __('ZIP / Postcode', 'invoicing'), |
|
78 | + 'field_label' => __('ZIP / Postcode', 'invoicing'), |
|
79 | + 'field_required' => (bool) wpinv_get_option('zip_mandatory', true), |
|
80 | + 'field_required_msg' => __('Please enter your postcode', 'invoicing'), |
|
81 | 81 | ), |
82 | 82 | |
83 | 83 | array( |
84 | 84 | 'name' => 'wpinv_phone', |
85 | - 'placeholder' => __( 'Phone', 'invoicing' ), |
|
86 | - 'field_label' => __( 'Phone', 'invoicing' ), |
|
87 | - 'field_required' => (bool) wpinv_get_option( 'phone_mandatory', true ), |
|
85 | + 'placeholder' => __('Phone', 'invoicing'), |
|
86 | + 'field_label' => __('Phone', 'invoicing'), |
|
87 | + 'field_required' => (bool) wpinv_get_option('phone_mandatory', true), |
|
88 | 88 | 'field_type' => 'phone', |
89 | - 'field_required_msg' => __( 'Please enter your billing phone', 'invoicing' ), |
|
89 | + 'field_required_msg' => __('Please enter your billing phone', 'invoicing'), |
|
90 | 90 | ), |
91 | 91 | |
92 | 92 | ); |
93 | 93 | \ No newline at end of file |
@@ -8,202 +8,202 @@ discard block |
||
8 | 8 | * @version 1.0.17 |
9 | 9 | */ |
10 | 10 | |
11 | -defined( 'ABSPATH' ) || exit; |
|
11 | +defined('ABSPATH') || exit; |
|
12 | 12 | |
13 | -$pages = wpinv_get_pages( true ); |
|
13 | +$pages = wpinv_get_pages(true); |
|
14 | 14 | |
15 | 15 | // Prepage currency options. |
16 | 16 | $currencies = wpinv_get_currencies(); |
17 | 17 | |
18 | 18 | $currency_code_options = array(); |
19 | -foreach ( $currencies as $code => $name ) { |
|
20 | - $currency_code_options[ $code ] = $code . ' - ' . $name . ' (' . wpinv_currency_symbol( $code ) . ')'; |
|
19 | +foreach ($currencies as $code => $name) { |
|
20 | + $currency_code_options[$code] = $code . ' - ' . $name . ' (' . wpinv_currency_symbol($code) . ')'; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | $due_payment_options = array(); |
24 | -$due_payment_options[0] = __( 'Now', 'invoicing' ); |
|
25 | -for ( $i = 1; $i <= 30; $i++ ) { |
|
24 | +$due_payment_options[0] = __('Now', 'invoicing'); |
|
25 | +for ($i = 1; $i <= 30; $i++) { |
|
26 | 26 | $due_payment_options[$i] = $i; |
27 | 27 | } |
28 | 28 | |
29 | 29 | $invoice_number_padd_options = array(); |
30 | -for ( $i = 0; $i <= 20; $i++ ) { |
|
30 | +for ($i = 0; $i <= 20; $i++) { |
|
31 | 31 | $invoice_number_padd_options[$i] = $i; |
32 | 32 | } |
33 | 33 | |
34 | 34 | $currency_symbol = wpinv_currency_symbol(); |
35 | 35 | |
36 | 36 | $last_number = $reset_number = ''; |
37 | -if ( $last_invoice_number = get_option( 'wpinv_last_invoice_number' ) ) { |
|
38 | - $last_invoice_number = is_numeric( $last_invoice_number ) ? $last_invoice_number : wpinv_clean_invoice_number( $last_invoice_number ); |
|
37 | +if ($last_invoice_number = get_option('wpinv_last_invoice_number')) { |
|
38 | + $last_invoice_number = is_numeric($last_invoice_number) ? $last_invoice_number : wpinv_clean_invoice_number($last_invoice_number); |
|
39 | 39 | |
40 | - if ( !empty( $last_invoice_number ) ) { |
|
41 | - $last_number = ' ' . wp_sprintf( __( "( Last Invoice's sequential number: <b>%s</b> )", 'invoicing' ), $last_invoice_number ); |
|
40 | + if (!empty($last_invoice_number)) { |
|
41 | + $last_number = ' ' . wp_sprintf(__("( Last Invoice's sequential number: <b>%s</b> )", 'invoicing'), $last_invoice_number); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | $nonce = wp_create_nonce('reset_invoice_count'); |
45 | - $reset_number = '<a href="'.add_query_arg(array('reset_invoice_count' => 1, '_nonce' => $nonce)).'" class="btn button">'.__('Force Reset Sequence', 'invoicing' ). '</a>'; |
|
45 | + $reset_number = '<a href="' . add_query_arg(array('reset_invoice_count' => 1, '_nonce' => $nonce)) . '" class="btn button">' . __('Force Reset Sequence', 'invoicing') . '</a>'; |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | $alert_wrapper_start = '<p style="color: #F00">'; |
49 | 49 | $alert_wrapper_close = '</p>'; |
50 | 50 | |
51 | 51 | return array( |
52 | - 'general' => apply_filters( 'wpinv_settings_general', |
|
52 | + 'general' => apply_filters('wpinv_settings_general', |
|
53 | 53 | array( |
54 | 54 | 'main' => array( |
55 | 55 | 'location_settings' => array( |
56 | 56 | 'id' => 'location_settings', |
57 | - 'name' => '<h3>' . __( 'Default Location', 'invoicing' ) . '</h3>', |
|
57 | + 'name' => '<h3>' . __('Default Location', 'invoicing') . '</h3>', |
|
58 | 58 | 'desc' => '', |
59 | 59 | 'type' => 'header', |
60 | 60 | ), |
61 | 61 | 'default_country' => array( |
62 | 62 | 'id' => 'default_country', |
63 | - 'name' => __( 'Default Country', 'invoicing' ), |
|
64 | - 'desc' => __( 'Where does your store operate from?', 'invoicing' ), |
|
63 | + 'name' => __('Default Country', 'invoicing'), |
|
64 | + 'desc' => __('Where does your store operate from?', 'invoicing'), |
|
65 | 65 | 'type' => 'select', |
66 | 66 | 'options' => wpinv_get_country_list(), |
67 | 67 | 'std' => 'GB', |
68 | 68 | 'class' => 'wpi_select2', |
69 | - 'placeholder' => __( 'Select a country', 'invoicing' ), |
|
69 | + 'placeholder' => __('Select a country', 'invoicing'), |
|
70 | 70 | ), |
71 | 71 | 'default_state' => array( |
72 | 72 | 'id' => 'default_state', |
73 | - 'name' => __( 'Default State / Province', 'invoicing' ), |
|
74 | - 'desc' => __( 'What state / province does your store operate from?', 'invoicing' ), |
|
73 | + 'name' => __('Default State / Province', 'invoicing'), |
|
74 | + 'desc' => __('What state / province does your store operate from?', 'invoicing'), |
|
75 | 75 | 'type' => 'country_states', |
76 | 76 | 'class' => 'wpi_select2', |
77 | - 'placeholder' => __( 'Select a state', 'invoicing' ), |
|
77 | + 'placeholder' => __('Select a state', 'invoicing'), |
|
78 | 78 | ), |
79 | 79 | 'store_name' => array( |
80 | 80 | 'id' => 'store_name', |
81 | - 'name' => __( 'Store Name', 'invoicing' ), |
|
82 | - 'desc' => __( 'Store name to print on invoices.', 'invoicing' ), |
|
81 | + 'name' => __('Store Name', 'invoicing'), |
|
82 | + 'desc' => __('Store name to print on invoices.', 'invoicing'), |
|
83 | 83 | 'std' => get_option('blogname'), |
84 | 84 | 'type' => 'text', |
85 | 85 | ), |
86 | 86 | 'logo' => array( |
87 | 87 | 'id' => 'logo', |
88 | - 'name' => __( 'Logo URL', 'invoicing' ), |
|
89 | - 'desc' => __( 'Store logo to print on invoices.', 'invoicing' ), |
|
88 | + 'name' => __('Logo URL', 'invoicing'), |
|
89 | + 'desc' => __('Store logo to print on invoices.', 'invoicing'), |
|
90 | 90 | 'type' => 'text', |
91 | 91 | ), |
92 | 92 | 'store_address' => array( |
93 | 93 | 'id' => 'store_address', |
94 | - 'name' => __( 'Store Address', 'invoicing' ), |
|
95 | - 'desc' => __( 'Enter the store address to display on invoice', 'invoicing' ), |
|
94 | + 'name' => __('Store Address', 'invoicing'), |
|
95 | + 'desc' => __('Enter the store address to display on invoice', 'invoicing'), |
|
96 | 96 | 'type' => 'textarea', |
97 | 97 | ), |
98 | 98 | 'page_settings' => array( |
99 | 99 | 'id' => 'page_settings', |
100 | - 'name' => '<h3>' . __( 'Page Settings', 'invoicing' ) . '</h3>', |
|
100 | + 'name' => '<h3>' . __('Page Settings', 'invoicing') . '</h3>', |
|
101 | 101 | 'desc' => '', |
102 | 102 | 'type' => 'header', |
103 | 103 | ), |
104 | 104 | 'checkout_page' => array( |
105 | 105 | 'id' => 'checkout_page', |
106 | - 'name' => __( 'Checkout Page', 'invoicing' ), |
|
107 | - 'desc' => __( 'This is the checkout page where buyers will complete their payments. The <b>[wpinv_checkout]</b> short code must be on this page.', 'invoicing' ), |
|
106 | + 'name' => __('Checkout Page', 'invoicing'), |
|
107 | + 'desc' => __('This is the checkout page where buyers will complete their payments. The <b>[wpinv_checkout]</b> short code must be on this page.', 'invoicing'), |
|
108 | 108 | 'type' => 'select', |
109 | 109 | 'options' => $pages, |
110 | 110 | 'class' => 'wpi_select2', |
111 | - 'placeholder' => __( 'Select a page', 'invoicing' ), |
|
111 | + 'placeholder' => __('Select a page', 'invoicing'), |
|
112 | 112 | ), |
113 | 113 | 'tandc_page' => array( |
114 | 114 | 'id' => 'tandc_page', |
115 | - 'name' => __( 'Terms & Conditions', 'invoicing' ), |
|
116 | - 'desc' => __( 'If you select a "Terms & Conditions" page here the customer will be asked to accept them on checkout.', 'invoicing' ), |
|
115 | + 'name' => __('Terms & Conditions', 'invoicing'), |
|
116 | + 'desc' => __('If you select a "Terms & Conditions" page here the customer will be asked to accept them on checkout.', 'invoicing'), |
|
117 | 117 | 'type' => 'select', |
118 | - 'options' => wpinv_get_pages( true, __( 'Select a page', 'invoicing' )), |
|
118 | + 'options' => wpinv_get_pages(true, __('Select a page', 'invoicing')), |
|
119 | 119 | 'class' => 'wpi_select2', |
120 | - 'placeholder' => __( 'Select a page', 'invoicing' ), |
|
120 | + 'placeholder' => __('Select a page', 'invoicing'), |
|
121 | 121 | ), |
122 | 122 | 'success_page' => array( |
123 | 123 | 'id' => 'success_page', |
124 | - 'name' => __( 'Success Page', 'invoicing' ), |
|
125 | - 'desc' => __( 'This is the page buyers are sent to after completing their payments. The <b>[wpinv_receipt]</b> short code should be on this page.', 'invoicing' ), |
|
124 | + 'name' => __('Success Page', 'invoicing'), |
|
125 | + 'desc' => __('This is the page buyers are sent to after completing their payments. The <b>[wpinv_receipt]</b> short code should be on this page.', 'invoicing'), |
|
126 | 126 | 'type' => 'select', |
127 | 127 | 'options' => $pages, |
128 | 128 | 'class' => 'wpi_select2', |
129 | - 'placeholder' => __( 'Select a page', 'invoicing' ), |
|
129 | + 'placeholder' => __('Select a page', 'invoicing'), |
|
130 | 130 | ), |
131 | 131 | 'failure_page' => array( |
132 | 132 | 'id' => 'failure_page', |
133 | - 'name' => __( 'Failed Transaction Page', 'invoicing' ), |
|
134 | - 'desc' => __( 'This is the page buyers are sent to if their transaction is cancelled or fails.', 'invoicing' ), |
|
133 | + 'name' => __('Failed Transaction Page', 'invoicing'), |
|
134 | + 'desc' => __('This is the page buyers are sent to if their transaction is cancelled or fails.', 'invoicing'), |
|
135 | 135 | 'type' => 'select', |
136 | 136 | 'options' => $pages, |
137 | 137 | 'class' => 'wpi_select2', |
138 | - 'placeholder' => __( 'Select a page', 'invoicing' ), |
|
138 | + 'placeholder' => __('Select a page', 'invoicing'), |
|
139 | 139 | ), |
140 | 140 | 'invoice_history_page' => array( |
141 | 141 | 'id' => 'invoice_history_page', |
142 | - 'name' => __( 'Invoice History Page', 'invoicing' ), |
|
143 | - 'desc' => __( 'This page shows an invoice history for the current user. The <b>[wpinv_history]</b> short code should be on this page.', 'invoicing' ), |
|
142 | + 'name' => __('Invoice History Page', 'invoicing'), |
|
143 | + 'desc' => __('This page shows an invoice history for the current user. The <b>[wpinv_history]</b> short code should be on this page.', 'invoicing'), |
|
144 | 144 | 'type' => 'select', |
145 | 145 | 'options' => $pages, |
146 | 146 | 'class' => 'wpi_select2', |
147 | - 'placeholder' => __( 'Select a page', 'invoicing' ), |
|
147 | + 'placeholder' => __('Select a page', 'invoicing'), |
|
148 | 148 | ), |
149 | 149 | 'invoice_subscription_page' => array( |
150 | 150 | 'id' => 'invoice_subscription_page', |
151 | - 'name' => __( 'Invoice Subscriptions Page', 'invoicing' ), |
|
152 | - 'desc' => __( 'This page shows subscriptions history for the current user. The <b>[wpinv_subscriptions]</b> short code should be on this page.', 'invoicing' ), |
|
151 | + 'name' => __('Invoice Subscriptions Page', 'invoicing'), |
|
152 | + 'desc' => __('This page shows subscriptions history for the current user. The <b>[wpinv_subscriptions]</b> short code should be on this page.', 'invoicing'), |
|
153 | 153 | 'type' => 'select', |
154 | 154 | 'options' => $pages, |
155 | 155 | 'class' => 'wpi_select2', |
156 | - 'placeholder' => __( 'Select a page', 'invoicing' ), |
|
156 | + 'placeholder' => __('Select a page', 'invoicing'), |
|
157 | 157 | ), |
158 | 158 | ), |
159 | 159 | 'currency_section' => array( |
160 | 160 | 'currency_settings' => array( |
161 | 161 | 'id' => 'currency_settings', |
162 | - 'name' => '<h3>' . __( 'Currency Settings', 'invoicing' ) . '</h3>', |
|
162 | + 'name' => '<h3>' . __('Currency Settings', 'invoicing') . '</h3>', |
|
163 | 163 | 'desc' => '', |
164 | 164 | 'type' => 'header', |
165 | 165 | ), |
166 | 166 | 'currency' => array( |
167 | 167 | 'id' => 'currency', |
168 | - 'name' => __( 'Currency', 'invoicing' ), |
|
169 | - 'desc' => __( 'Choose your currency. Note that some payment gateways have currency restrictions.', 'invoicing' ), |
|
168 | + 'name' => __('Currency', 'invoicing'), |
|
169 | + 'desc' => __('Choose your currency. Note that some payment gateways have currency restrictions.', 'invoicing'), |
|
170 | 170 | 'type' => 'select', |
171 | 171 | 'class' => 'wpi_select2', |
172 | 172 | 'options' => $currency_code_options, |
173 | 173 | ), |
174 | 174 | 'currency_position' => array( |
175 | 175 | 'id' => 'currency_position', |
176 | - 'name' => __( 'Currency Position', 'invoicing' ), |
|
177 | - 'desc' => __( 'Choose the location of the currency sign.', 'invoicing' ), |
|
176 | + 'name' => __('Currency Position', 'invoicing'), |
|
177 | + 'desc' => __('Choose the location of the currency sign.', 'invoicing'), |
|
178 | 178 | 'type' => 'select', |
179 | 179 | 'class' => 'wpi_select2', |
180 | 180 | 'options' => array( |
181 | - 'left' => __( 'Left', 'invoicing' ) . ' (' . $currency_symbol . wpinv_format_amount( '99.99' ) . ')', |
|
182 | - 'right' => __( 'Right', 'invoicing' ) . ' ('. wpinv_format_amount( '99.99' ) . $currency_symbol . ')', |
|
183 | - 'left_space' => __( 'Left with space', 'invoicing' ) . ' (' . $currency_symbol . ' ' . wpinv_format_amount( '99.99' ) . ')', |
|
184 | - 'right_space' => __( 'Right with space', 'invoicing' ) . ' (' . wpinv_format_amount( '99.99' ) . ' ' . $currency_symbol . ')' |
|
181 | + 'left' => __('Left', 'invoicing') . ' (' . $currency_symbol . wpinv_format_amount('99.99') . ')', |
|
182 | + 'right' => __('Right', 'invoicing') . ' (' . wpinv_format_amount('99.99') . $currency_symbol . ')', |
|
183 | + 'left_space' => __('Left with space', 'invoicing') . ' (' . $currency_symbol . ' ' . wpinv_format_amount('99.99') . ')', |
|
184 | + 'right_space' => __('Right with space', 'invoicing') . ' (' . wpinv_format_amount('99.99') . ' ' . $currency_symbol . ')' |
|
185 | 185 | ) |
186 | 186 | ), |
187 | 187 | 'thousands_separator' => array( |
188 | 188 | 'id' => 'thousands_separator', |
189 | - 'name' => __( 'Thousands Separator', 'invoicing' ), |
|
190 | - 'desc' => __( 'The symbol (usually , or .) to separate thousands', 'invoicing' ), |
|
189 | + 'name' => __('Thousands Separator', 'invoicing'), |
|
190 | + 'desc' => __('The symbol (usually , or .) to separate thousands', 'invoicing'), |
|
191 | 191 | 'type' => 'text', |
192 | 192 | 'size' => 'small', |
193 | 193 | 'std' => ',', |
194 | 194 | ), |
195 | 195 | 'decimal_separator' => array( |
196 | 196 | 'id' => 'decimal_separator', |
197 | - 'name' => __( 'Decimal Separator', 'invoicing' ), |
|
198 | - 'desc' => __( 'The symbol (usually , or .) to separate decimal points', 'invoicing' ), |
|
197 | + 'name' => __('Decimal Separator', 'invoicing'), |
|
198 | + 'desc' => __('The symbol (usually , or .) to separate decimal points', 'invoicing'), |
|
199 | 199 | 'type' => 'text', |
200 | 200 | 'size' => 'small', |
201 | 201 | 'std' => '.', |
202 | 202 | ), |
203 | 203 | 'decimals' => array( |
204 | 204 | 'id' => 'decimals', |
205 | - 'name' => __( 'Number of Decimals', 'invoicing' ), |
|
206 | - 'desc' => __( 'This sets the number of decimal points shown in displayed prices.', 'invoicing' ), |
|
205 | + 'name' => __('Number of Decimals', 'invoicing'), |
|
206 | + 'desc' => __('This sets the number of decimal points shown in displayed prices.', 'invoicing'), |
|
207 | 207 | 'type' => 'number', |
208 | 208 | 'size' => 'small', |
209 | 209 | 'std' => '2', |
@@ -215,60 +215,60 @@ discard block |
||
215 | 215 | 'labels' => array( |
216 | 216 | 'labels' => array( |
217 | 217 | 'id' => 'labels_settings', |
218 | - 'name' => '<h3>' . __( 'Invoice Labels', 'invoicing' ) . '</h3>', |
|
218 | + 'name' => '<h3>' . __('Invoice Labels', 'invoicing') . '</h3>', |
|
219 | 219 | 'desc' => '', |
220 | 220 | 'type' => 'header', |
221 | 221 | ), |
222 | 222 | 'vat_name' => array( |
223 | 223 | 'id' => 'vat_name', |
224 | - 'name' => __( 'VAT Name', 'invoicing' ), |
|
225 | - 'desc' => __( 'Enter the VAT name', 'invoicing' ), |
|
224 | + 'name' => __('VAT Name', 'invoicing'), |
|
225 | + 'desc' => __('Enter the VAT name', 'invoicing'), |
|
226 | 226 | 'type' => 'text', |
227 | 227 | 'size' => 'regular', |
228 | 228 | 'std' => 'VAT' |
229 | 229 | ), |
230 | 230 | 'vat_invoice_notice_label' => array( |
231 | 231 | 'id' => 'vat_invoice_notice_label', |
232 | - 'name' => __( 'Invoice Notice Label', 'invoicing' ), |
|
233 | - 'desc' => __( 'Use this to add an invoice notice section (label) to your invoices', 'invoicing' ), |
|
232 | + 'name' => __('Invoice Notice Label', 'invoicing'), |
|
233 | + 'desc' => __('Use this to add an invoice notice section (label) to your invoices', 'invoicing'), |
|
234 | 234 | 'type' => 'text', |
235 | 235 | 'size' => 'regular', |
236 | 236 | ), |
237 | 237 | 'vat_invoice_notice' => array( |
238 | 238 | 'id' => 'vat_invoice_notice', |
239 | - 'name' => __( 'Invoice notice', 'invoicing' ), |
|
240 | - 'desc' => __( 'Use this to add an invoice notice section (description) to your invoices', 'invoicing' ), |
|
239 | + 'name' => __('Invoice notice', 'invoicing'), |
|
240 | + 'desc' => __('Use this to add an invoice notice section (description) to your invoices', 'invoicing'), |
|
241 | 241 | 'type' => 'text', |
242 | 242 | 'size' => 'regular', |
243 | 243 | ), |
244 | 244 | 'name_your_price' => array( |
245 | 245 | 'id' => 'name_your_price_settings', |
246 | - 'name' => '<h3>' . __( 'Name Your Price', 'invoicing' ) . '</h3>', |
|
246 | + 'name' => '<h3>' . __('Name Your Price', 'invoicing') . '</h3>', |
|
247 | 247 | 'desc' => '', |
248 | 248 | 'type' => 'header', |
249 | 249 | ), |
250 | 250 | 'suggested_price_text' => array( |
251 | 251 | 'id' => 'suggested_price_text', |
252 | - 'name' => __( 'Suggested Price Text', 'invoicing' ), |
|
253 | - 'desc' => __( "The label used to indicate an item's suggested price", 'invoicing' ), |
|
252 | + 'name' => __('Suggested Price Text', 'invoicing'), |
|
253 | + 'desc' => __("The label used to indicate an item's suggested price", 'invoicing'), |
|
254 | 254 | 'type' => 'text', |
255 | 255 | 'size' => 'regular', |
256 | - 'std' => __( 'Suggested Price:', 'invoicing' ), |
|
256 | + 'std' => __('Suggested Price:', 'invoicing'), |
|
257 | 257 | ), |
258 | 258 | 'minimum_price_text' => array( |
259 | 259 | 'id' => 'minimum_price_text', |
260 | - 'name' => __( 'Minimum Price Text', 'invoicing' ), |
|
261 | - 'desc' => __( "The label used to indicate an item's minimum price", 'invoicing' ), |
|
260 | + 'name' => __('Minimum Price Text', 'invoicing'), |
|
261 | + 'desc' => __("The label used to indicate an item's minimum price", 'invoicing'), |
|
262 | 262 | 'type' => 'text', |
263 | 263 | 'size' => 'regular', |
264 | - 'std' => __( 'Minimum Price:', 'invoicing' ), |
|
264 | + 'std' => __('Minimum Price:', 'invoicing'), |
|
265 | 265 | ), |
266 | 266 | 'name_your_price_text' => array( |
267 | 267 | 'id' => 'name_your_price_text', |
268 | - 'name' => __( 'Name Your Price Text', 'invoicing' ), |
|
268 | + 'name' => __('Name Your Price Text', 'invoicing'), |
|
269 | 269 | 'type' => 'text', |
270 | 270 | 'size' => 'regular', |
271 | - 'std' => __( 'Name Your Price', 'invoicing' ), |
|
271 | + 'std' => __('Name Your Price', 'invoicing'), |
|
272 | 272 | ), |
273 | 273 | ) |
274 | 274 | ) |
@@ -278,22 +278,22 @@ discard block |
||
278 | 278 | 'main' => array( |
279 | 279 | 'gateway_settings' => array( |
280 | 280 | 'id' => 'api_header', |
281 | - 'name' => '<h3>' . __( 'Gateway Settings', 'invoicing' ) . '</h3>', |
|
281 | + 'name' => '<h3>' . __('Gateway Settings', 'invoicing') . '</h3>', |
|
282 | 282 | 'desc' => '', |
283 | 283 | 'type' => 'header', |
284 | 284 | ), |
285 | 285 | 'gateways' => array( |
286 | 286 | 'id' => 'gateways', |
287 | - 'name' => __( 'Payment Gateways', 'invoicing' ), |
|
288 | - 'desc' => __( 'Choose the payment gateways you want to enable.', 'invoicing' ), |
|
287 | + 'name' => __('Payment Gateways', 'invoicing'), |
|
288 | + 'desc' => __('Choose the payment gateways you want to enable.', 'invoicing'), |
|
289 | 289 | 'type' => 'gateways', |
290 | 290 | 'std' => array('manual'=>1), |
291 | 291 | 'options' => wpinv_get_payment_gateways(), |
292 | 292 | ), |
293 | 293 | 'default_gateway' => array( |
294 | 294 | 'id' => 'default_gateway', |
295 | - 'name' => __( 'Default Gateway', 'invoicing' ), |
|
296 | - 'desc' => __( 'This gateway will be loaded automatically with the checkout page.', 'invoicing' ), |
|
295 | + 'name' => __('Default Gateway', 'invoicing'), |
|
296 | + 'desc' => __('This gateway will be loaded automatically with the checkout page.', 'invoicing'), |
|
297 | 297 | 'type' => 'gateway_select', |
298 | 298 | 'std' => 'manual', |
299 | 299 | 'class' => 'wpi_select2', |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | 'main' => array( |
309 | 309 | 'checkout_settings' => array( |
310 | 310 | 'id' => 'api_header', |
311 | - 'name' => '<h3>' . __( 'Checkout Fields', 'invoicing' ) . '</h3>', |
|
311 | + 'name' => '<h3>' . __('Checkout Fields', 'invoicing') . '</h3>', |
|
312 | 312 | 'desc' => '', |
313 | 313 | 'type' => 'header', |
314 | 314 | ), |
@@ -327,19 +327,19 @@ discard block |
||
327 | 327 | 'main' => array( |
328 | 328 | 'tax_settings' => array( |
329 | 329 | 'id' => 'tax_settings', |
330 | - 'name' => '<h3>' . __( 'Tax Settings', 'invoicing' ) . '</h3>', |
|
330 | + 'name' => '<h3>' . __('Tax Settings', 'invoicing') . '</h3>', |
|
331 | 331 | 'type' => 'header', |
332 | 332 | ), |
333 | 333 | 'enable_taxes' => array( |
334 | 334 | 'id' => 'enable_taxes', |
335 | - 'name' => __( 'Enable Taxes', 'invoicing' ), |
|
336 | - 'desc' => __( 'Check this to enable taxes on invoices.', 'invoicing' ), |
|
335 | + 'name' => __('Enable Taxes', 'invoicing'), |
|
336 | + 'desc' => __('Check this to enable taxes on invoices.', 'invoicing'), |
|
337 | 337 | 'type' => 'checkbox', |
338 | 338 | ), |
339 | 339 | 'tax_rate' => array( |
340 | 340 | 'id' => 'tax_rate', |
341 | - 'name' => __( 'Fallback Tax Rate', 'invoicing' ), |
|
342 | - 'desc' => __( 'Enter a percentage, such as 6.5. Customers not in a specific rate will be charged this rate.', 'invoicing' ), |
|
341 | + 'name' => __('Fallback Tax Rate', 'invoicing'), |
|
342 | + 'desc' => __('Enter a percentage, such as 6.5. Customers not in a specific rate will be charged this rate.', 'invoicing'), |
|
343 | 343 | 'type' => 'number', |
344 | 344 | 'size' => 'small', |
345 | 345 | 'min' => '0', |
@@ -351,8 +351,8 @@ discard block |
||
351 | 351 | 'rates' => array( |
352 | 352 | 'tax_rates' => array( |
353 | 353 | 'id' => 'tax_rates', |
354 | - 'name' => '<h3>' . __( 'Tax Rates', 'invoicing' ) . '</h3>', |
|
355 | - 'desc' => __( 'Enter tax rates for specific regions.', 'invoicing' ), |
|
354 | + 'name' => '<h3>' . __('Tax Rates', 'invoicing') . '</h3>', |
|
355 | + 'desc' => __('Enter tax rates for specific regions.', 'invoicing'), |
|
356 | 356 | 'type' => 'tax_rates', |
357 | 357 | ), |
358 | 358 | ) |
@@ -364,61 +364,61 @@ discard block |
||
364 | 364 | 'main' => array( |
365 | 365 | 'email_settings_header' => array( |
366 | 366 | 'id' => 'email_settings_header', |
367 | - 'name' => '<h3>' . __( 'Email Sender Options', 'invoicing' ) . '</h3>', |
|
367 | + 'name' => '<h3>' . __('Email Sender Options', 'invoicing') . '</h3>', |
|
368 | 368 | 'type' => 'header', |
369 | 369 | ), |
370 | 370 | 'email_from_name' => array( |
371 | 371 | 'id' => 'email_from_name', |
372 | - 'name' => __( 'From Name', 'invoicing' ), |
|
373 | - 'desc' => __( 'Enter the sender\'s name appears in outgoing invoice emails. This should be your site name.', 'invoicing' ), |
|
374 | - 'std' => esc_attr( get_bloginfo( 'name', 'display' ) ), |
|
372 | + 'name' => __('From Name', 'invoicing'), |
|
373 | + 'desc' => __('Enter the sender\'s name appears in outgoing invoice emails. This should be your site name.', 'invoicing'), |
|
374 | + 'std' => esc_attr(get_bloginfo('name', 'display')), |
|
375 | 375 | 'type' => 'text', |
376 | 376 | ), |
377 | 377 | 'email_from' => array( |
378 | 378 | 'id' => 'email_from', |
379 | - 'name' => __( 'From Email', 'invoicing' ), |
|
380 | - 'desc' => sprintf (__( 'Email address to send invoice emails from. This will act as the "from" and "reply-to" address. %s If emails are not being sent it may be that your hosting prevents emails being sent if the email domains do not match.%s', 'invoicing' ), $alert_wrapper_start, $alert_wrapper_close), |
|
381 | - 'std' => get_option( 'admin_email' ), |
|
379 | + 'name' => __('From Email', 'invoicing'), |
|
380 | + 'desc' => sprintf(__('Email address to send invoice emails from. This will act as the "from" and "reply-to" address. %s If emails are not being sent it may be that your hosting prevents emails being sent if the email domains do not match.%s', 'invoicing'), $alert_wrapper_start, $alert_wrapper_close), |
|
381 | + 'std' => get_option('admin_email'), |
|
382 | 382 | 'type' => 'text', |
383 | 383 | ), |
384 | 384 | 'overdue_settings_header' => array( |
385 | 385 | 'id' => 'overdue_settings_header', |
386 | - 'name' => '<h3>' . __( 'Due Date Settings', 'invoicing' ) . '</h3>', |
|
386 | + 'name' => '<h3>' . __('Due Date Settings', 'invoicing') . '</h3>', |
|
387 | 387 | 'type' => 'header', |
388 | 388 | ), |
389 | 389 | 'overdue_active' => array( |
390 | 390 | 'id' => 'overdue_active', |
391 | - 'name' => __( 'Enable Due Date', 'invoicing' ), |
|
392 | - 'desc' => __( 'Check this to enable due date option for invoices.', 'invoicing' ), |
|
391 | + 'name' => __('Enable Due Date', 'invoicing'), |
|
392 | + 'desc' => __('Check this to enable due date option for invoices.', 'invoicing'), |
|
393 | 393 | 'type' => 'checkbox', |
394 | 394 | 'std' => false, |
395 | 395 | ), |
396 | 396 | 'overdue_days' => array( |
397 | 397 | 'id' => 'overdue_days', |
398 | - 'name' => __( 'Default Due Date', 'invoicing' ), |
|
399 | - 'desc' => __( 'Number of days each Invoice is due after the created date. This will automatically set the date in the "Due Date" field. Can be overridden on individual Invoices.', 'invoicing' ), |
|
398 | + 'name' => __('Default Due Date', 'invoicing'), |
|
399 | + 'desc' => __('Number of days each Invoice is due after the created date. This will automatically set the date in the "Due Date" field. Can be overridden on individual Invoices.', 'invoicing'), |
|
400 | 400 | 'type' => 'select', |
401 | 401 | 'options' => $due_payment_options, |
402 | 402 | 'std' => 0, |
403 | - 'placeholder' => __( 'Select a page', 'invoicing' ), |
|
403 | + 'placeholder' => __('Select a page', 'invoicing'), |
|
404 | 404 | ), |
405 | 405 | 'email_template_header' => array( |
406 | 406 | 'id' => 'email_template_header', |
407 | - 'name' => '<h3>' . __( 'Email Template', 'invoicing' ) . '</h3>', |
|
407 | + 'name' => '<h3>' . __('Email Template', 'invoicing') . '</h3>', |
|
408 | 408 | 'type' => 'header', |
409 | 409 | ), |
410 | 410 | 'email_header_image' => array( |
411 | 411 | 'id' => 'email_header_image', |
412 | - 'name' => __( 'Header Image', 'invoicing' ), |
|
413 | - 'desc' => __( 'URL to an image you want to show in the email header. Upload images using the media uploader (Admin > Media).', 'invoicing' ), |
|
412 | + 'name' => __('Header Image', 'invoicing'), |
|
413 | + 'desc' => __('URL to an image you want to show in the email header. Upload images using the media uploader (Admin > Media).', 'invoicing'), |
|
414 | 414 | 'std' => '', |
415 | 415 | 'type' => 'text', |
416 | 416 | ), |
417 | 417 | 'email_footer_text' => array( |
418 | 418 | 'id' => 'email_footer_text', |
419 | - 'name' => __( 'Footer Text', 'invoicing' ), |
|
420 | - 'desc' => __( 'The text to appear in the footer of all invoice emails.', 'invoicing' ), |
|
421 | - 'std' => get_bloginfo( 'name', 'display' ) . ' - ' . __( 'Powered by GeoDirectory', 'invoicing' ), |
|
419 | + 'name' => __('Footer Text', 'invoicing'), |
|
420 | + 'desc' => __('The text to appear in the footer of all invoice emails.', 'invoicing'), |
|
421 | + 'std' => get_bloginfo('name', 'display') . ' - ' . __('Powered by GeoDirectory', 'invoicing'), |
|
422 | 422 | 'type' => 'textarea', |
423 | 423 | 'class' => 'regular-text', |
424 | 424 | 'rows' => 2, |
@@ -426,29 +426,29 @@ discard block |
||
426 | 426 | ), |
427 | 427 | 'email_base_color' => array( |
428 | 428 | 'id' => 'email_base_color', |
429 | - 'name' => __( 'Base Color', 'invoicing' ), |
|
430 | - 'desc' => __( 'The base color for invoice email template. Default <code>#557da2</code>.', 'invoicing' ), |
|
429 | + 'name' => __('Base Color', 'invoicing'), |
|
430 | + 'desc' => __('The base color for invoice email template. Default <code>#557da2</code>.', 'invoicing'), |
|
431 | 431 | 'std' => '#557da2', |
432 | 432 | 'type' => 'color', |
433 | 433 | ), |
434 | 434 | 'email_background_color' => array( |
435 | 435 | 'id' => 'email_background_color', |
436 | - 'name' => __( 'Background Color', 'invoicing' ), |
|
437 | - 'desc' => __( 'The background color of email template. Default <code>#f5f5f5</code>.', 'invoicing' ), |
|
436 | + 'name' => __('Background Color', 'invoicing'), |
|
437 | + 'desc' => __('The background color of email template. Default <code>#f5f5f5</code>.', 'invoicing'), |
|
438 | 438 | 'std' => '#f5f5f5', |
439 | 439 | 'type' => 'color', |
440 | 440 | ), |
441 | 441 | 'email_body_background_color' => array( |
442 | 442 | 'id' => 'email_body_background_color', |
443 | - 'name' => __( 'Body Background Color', 'invoicing' ), |
|
444 | - 'desc' => __( 'The main body background color of email template. Default <code>#fdfdfd</code>.', 'invoicing' ), |
|
443 | + 'name' => __('Body Background Color', 'invoicing'), |
|
444 | + 'desc' => __('The main body background color of email template. Default <code>#fdfdfd</code>.', 'invoicing'), |
|
445 | 445 | 'std' => '#fdfdfd', |
446 | 446 | 'type' => 'color', |
447 | 447 | ), |
448 | 448 | 'email_text_color' => array( |
449 | 449 | 'id' => 'email_text_color', |
450 | - 'name' => __( 'Body Text Color', 'invoicing' ), |
|
451 | - 'desc' => __( 'The main body text color. Default <code>#505050</code>.', 'invoicing' ), |
|
450 | + 'name' => __('Body Text Color', 'invoicing'), |
|
451 | + 'desc' => __('The main body text color. Default <code>#505050</code>.', 'invoicing'), |
|
452 | 452 | 'std' => '#505050', |
453 | 453 | 'type' => 'color', |
454 | 454 | ), |
@@ -467,26 +467,26 @@ discard block |
||
467 | 467 | 'main' => array( |
468 | 468 | 'invoicing_privacy_policy_settings' => array( |
469 | 469 | 'id' => 'invoicing_privacy_policy_settings', |
470 | - 'name' => '<h3>' . __( 'Privacy Policy', 'invoicing' ) . '</h3>', |
|
470 | + 'name' => '<h3>' . __('Privacy Policy', 'invoicing') . '</h3>', |
|
471 | 471 | 'type' => 'header', |
472 | 472 | ), |
473 | 473 | 'privacy_page' => array( |
474 | 474 | 'id' => 'privacy_page', |
475 | - 'name' => __( 'Privacy Page', 'invoicing' ), |
|
476 | - 'desc' => __( 'If no privacy policy page set in Settings->Privacy default settings, this page will be used on checkout page.', 'invoicing' ), |
|
475 | + 'name' => __('Privacy Page', 'invoicing'), |
|
476 | + 'desc' => __('If no privacy policy page set in Settings->Privacy default settings, this page will be used on checkout page.', 'invoicing'), |
|
477 | 477 | 'type' => 'select', |
478 | - 'options' => wpinv_get_pages( true, __( 'Select a page', 'invoicing' )), |
|
478 | + 'options' => wpinv_get_pages(true, __('Select a page', 'invoicing')), |
|
479 | 479 | 'class' => 'wpi_select2', |
480 | - 'placeholder' => __( 'Select a page', 'invoicing' ), |
|
480 | + 'placeholder' => __('Select a page', 'invoicing'), |
|
481 | 481 | ), |
482 | 482 | 'invoicing_privacy_checkout_message' => array( |
483 | 483 | 'id' => 'invoicing_privacy_checkout_message', |
484 | - 'name' => __( 'Checkout privacy policy', 'invoicing' ), |
|
485 | - 'desc' => __( 'Optionally add privacy policy message which will display on checkout page.', 'invoicing' ), |
|
484 | + 'name' => __('Checkout privacy policy', 'invoicing'), |
|
485 | + 'desc' => __('Optionally add privacy policy message which will display on checkout page.', 'invoicing'), |
|
486 | 486 | 'type' => 'textarea', |
487 | 487 | 'class'=> 'regular-text', |
488 | 488 | 'rows' => 4, |
489 | - 'std' => sprintf( __( 'Your personal data will be used to process your invoice, payment and for other purposes described in our %s.', 'invoicing' ), '[wpinv_privacy_policy]' ), |
|
489 | + 'std' => sprintf(__('Your personal data will be used to process your invoice, payment and for other purposes described in our %s.', 'invoicing'), '[wpinv_privacy_policy]'), |
|
490 | 490 | ), |
491 | 491 | ), |
492 | 492 | ) |
@@ -497,19 +497,19 @@ discard block |
||
497 | 497 | 'main' => array( |
498 | 498 | 'invoice_number_format_settings' => array( |
499 | 499 | 'id' => 'invoice_number_format_settings', |
500 | - 'name' => '<h3>' . __( 'Invoice Number', 'invoicing' ) . '</h3>', |
|
500 | + 'name' => '<h3>' . __('Invoice Number', 'invoicing') . '</h3>', |
|
501 | 501 | 'type' => 'header', |
502 | 502 | ), |
503 | 503 | 'sequential_invoice_number' => array( |
504 | 504 | 'id' => 'sequential_invoice_number', |
505 | - 'name' => __( 'Sequential Invoice Numbers', 'invoicing' ), |
|
506 | - 'desc' => __('Check this box to enable sequential invoice numbers.', 'invoicing' ) . $reset_number, |
|
505 | + 'name' => __('Sequential Invoice Numbers', 'invoicing'), |
|
506 | + 'desc' => __('Check this box to enable sequential invoice numbers.', 'invoicing') . $reset_number, |
|
507 | 507 | 'type' => 'checkbox', |
508 | 508 | ), |
509 | 509 | 'invoice_sequence_start' => array( |
510 | 510 | 'id' => 'invoice_sequence_start', |
511 | - 'name' => __( 'Sequential Starting Number', 'invoicing' ), |
|
512 | - 'desc' => __( 'The number at which the invoice number sequence should begin.', 'invoicing' ) . $last_number, |
|
511 | + 'name' => __('Sequential Starting Number', 'invoicing'), |
|
512 | + 'desc' => __('The number at which the invoice number sequence should begin.', 'invoicing') . $last_number, |
|
513 | 513 | 'type' => 'number', |
514 | 514 | 'size' => 'small', |
515 | 515 | 'std' => '1', |
@@ -517,8 +517,8 @@ discard block |
||
517 | 517 | ), |
518 | 518 | 'invoice_number_padd' => array( |
519 | 519 | 'id' => 'invoice_number_padd', |
520 | - 'name' => __( 'Minimum Digits', 'invoicing' ), |
|
521 | - 'desc' => __( 'If the invoice number has less digits than this number, it is left padded with 0s. Ex: invoice number 108 will padded to 00108 if digits set to 5. The default 0 means no padding.', 'invoicing' ), |
|
520 | + 'name' => __('Minimum Digits', 'invoicing'), |
|
521 | + 'desc' => __('If the invoice number has less digits than this number, it is left padded with 0s. Ex: invoice number 108 will padded to 00108 if digits set to 5. The default 0 means no padding.', 'invoicing'), |
|
522 | 522 | 'type' => 'select', |
523 | 523 | 'options' => $invoice_number_padd_options, |
524 | 524 | 'std' => 5, |
@@ -526,8 +526,8 @@ discard block |
||
526 | 526 | ), |
527 | 527 | 'invoice_number_prefix' => array( |
528 | 528 | 'id' => 'invoice_number_prefix', |
529 | - 'name' => __( 'Invoice Number Prefix', 'invoicing' ), |
|
530 | - 'desc' => __( 'Prefix for all invoice numbers. Ex: WPINV-', 'invoicing' ), |
|
529 | + 'name' => __('Invoice Number Prefix', 'invoicing'), |
|
530 | + 'desc' => __('Prefix for all invoice numbers. Ex: WPINV-', 'invoicing'), |
|
531 | 531 | 'type' => 'text', |
532 | 532 | 'size' => 'regular', |
533 | 533 | 'std' => 'WPINV-', |
@@ -535,32 +535,32 @@ discard block |
||
535 | 535 | ), |
536 | 536 | 'invoice_number_postfix' => array( |
537 | 537 | 'id' => 'invoice_number_postfix', |
538 | - 'name' => __( 'Invoice Number Postfix', 'invoicing' ), |
|
539 | - 'desc' => __( 'Postfix for all invoice numbers.', 'invoicing' ), |
|
538 | + 'name' => __('Invoice Number Postfix', 'invoicing'), |
|
539 | + 'desc' => __('Postfix for all invoice numbers.', 'invoicing'), |
|
540 | 540 | 'type' => 'text', |
541 | 541 | 'size' => 'regular', |
542 | 542 | 'std' => '' |
543 | 543 | ), |
544 | 544 | 'checkout_settings' => array( |
545 | 545 | 'id' => 'checkout_settings', |
546 | - 'name' => '<h3>' . __( 'Checkout Settings', 'invoicing' ) . '</h3>', |
|
546 | + 'name' => '<h3>' . __('Checkout Settings', 'invoicing') . '</h3>', |
|
547 | 547 | 'type' => 'header', |
548 | 548 | ), |
549 | 549 | 'login_to_checkout' => array( |
550 | 550 | 'id' => 'login_to_checkout', |
551 | - 'name' => __( 'Require Login To Checkout', 'invoicing' ), |
|
552 | - 'desc' => __( 'If ticked then user needs to be logged in to view or pay invoice, can only view or pay their own invoice. If unticked then anyone can view or pay the invoice.', 'invoicing' ), |
|
551 | + 'name' => __('Require Login To Checkout', 'invoicing'), |
|
552 | + 'desc' => __('If ticked then user needs to be logged in to view or pay invoice, can only view or pay their own invoice. If unticked then anyone can view or pay the invoice.', 'invoicing'), |
|
553 | 553 | 'type' => 'checkbox', |
554 | 554 | ), |
555 | 555 | 'uninstall_settings' => array( |
556 | 556 | 'id' => 'uninstall_settings', |
557 | - 'name' => '<h3>' . __( 'Uninstall Settings', 'invoicing' ) . '</h3>', |
|
557 | + 'name' => '<h3>' . __('Uninstall Settings', 'invoicing') . '</h3>', |
|
558 | 558 | 'type' => 'header', |
559 | 559 | ), |
560 | 560 | 'remove_data_on_unistall' => array( |
561 | 561 | 'id' => 'remove_data_on_unistall', |
562 | - 'name' => __( 'Remove Data on Uninstall?', 'invoicing' ), |
|
563 | - 'desc' => __( 'Check this box if you would like Invoicing plugin to completely remove all of its data when the plugin is deleted/uninstalled.', 'invoicing' ), |
|
562 | + 'name' => __('Remove Data on Uninstall?', 'invoicing'), |
|
563 | + 'desc' => __('Check this box if you would like Invoicing plugin to completely remove all of its data when the plugin is deleted/uninstalled.', 'invoicing'), |
|
564 | 564 | 'type' => 'checkbox', |
565 | 565 | 'std' => '' |
566 | 566 | ), |
@@ -568,26 +568,26 @@ discard block |
||
568 | 568 | 'fields' => array( |
569 | 569 | 'force_show_company' => array( |
570 | 570 | 'id' => 'force_show_company', |
571 | - 'name' => __( 'Force show company name at checkout.', 'invoicing' ), |
|
571 | + 'name' => __('Force show company name at checkout.', 'invoicing'), |
|
572 | 572 | 'type' => 'checkbox', |
573 | 573 | 'std' => false, |
574 | 574 | ), |
575 | 575 | 'address_autofill_settings' => array( |
576 | 576 | 'id' => 'address_autofill_settings', |
577 | - 'name' => '<h3>' . __( 'Google Address Auto Complete', 'invoicing' ) . '</h3>', |
|
577 | + 'name' => '<h3>' . __('Google Address Auto Complete', 'invoicing') . '</h3>', |
|
578 | 578 | 'type' => 'header', |
579 | 579 | ), |
580 | 580 | 'address_autofill_active' => array( |
581 | 581 | 'id' => 'address_autofill_active', |
582 | - 'name' => __( 'Enable/Disable', 'invoicing' ), |
|
583 | - 'desc' => __( 'Enable google address auto complete', 'invoicing' ), |
|
582 | + 'name' => __('Enable/Disable', 'invoicing'), |
|
583 | + 'desc' => __('Enable google address auto complete', 'invoicing'), |
|
584 | 584 | 'type' => 'checkbox', |
585 | 585 | 'std' => 0 |
586 | 586 | ), |
587 | 587 | 'address_autofill_api' => array( |
588 | 588 | 'id' => 'address_autofill_api', |
589 | - 'name' => __( 'Google Place API Key', 'invoicing' ), |
|
590 | - 'desc' => wp_sprintf(__( 'Enter google place API key. For more information go to google place API %sdocumenation%s', 'invoicing' ), '<a href="https://developers.google.com/maps/documentation/javascript/places-autocomplete" target="_blank">', '</a>' ), |
|
589 | + 'name' => __('Google Place API Key', 'invoicing'), |
|
590 | + 'desc' => wp_sprintf(__('Enter google place API key. For more information go to google place API %sdocumenation%s', 'invoicing'), '<a href="https://developers.google.com/maps/documentation/javascript/places-autocomplete" target="_blank">', '</a>'), |
|
591 | 591 | 'type' => 'text', |
592 | 592 | 'size' => 'regular', |
593 | 593 | 'std' => '' |
@@ -596,13 +596,13 @@ discard block |
||
596 | 596 | 'custom-css' => array( |
597 | 597 | 'css_settings' => array( |
598 | 598 | 'id' => 'css_settings', |
599 | - 'name' => '<h3>' . __( 'Custom CSS', 'invoicing' ) . '</h3>', |
|
599 | + 'name' => '<h3>' . __('Custom CSS', 'invoicing') . '</h3>', |
|
600 | 600 | 'type' => 'header', |
601 | 601 | ), |
602 | 602 | 'template_custom_css' => array( |
603 | 603 | 'id' => 'template_custom_css', |
604 | - 'name' => __( 'Invoice Template CSS', 'invoicing' ), |
|
605 | - 'desc' => __( 'Add CSS to modify appearance of the print invoice page.', 'invoicing' ), |
|
604 | + 'name' => __('Invoice Template CSS', 'invoicing'), |
|
605 | + 'desc' => __('Add CSS to modify appearance of the print invoice page.', 'invoicing'), |
|
606 | 606 | 'type' => 'textarea', |
607 | 607 | 'class'=> 'regular-text', |
608 | 608 | 'rows' => 10, |
@@ -616,8 +616,8 @@ discard block |
||
616 | 616 | 'main' => array( |
617 | 617 | 'tool_settings' => array( |
618 | 618 | 'id' => 'tool_settings', |
619 | - 'name' => '<h3>' . __( 'Diagnostic Tools', 'invoicing' ) . '</h3>', |
|
620 | - 'desc' => __( 'Invoicing diagnostic tools', 'invoicing' ), |
|
619 | + 'name' => '<h3>' . __('Diagnostic Tools', 'invoicing') . '</h3>', |
|
620 | + 'desc' => __('Invoicing diagnostic tools', 'invoicing'), |
|
621 | 621 | 'type' => 'tools', |
622 | 622 | ), |
623 | 623 | ), |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | // This template is responsible for editing the checkout fields. |
4 | -$sanitize_id = wpinv_sanitize_key( $args['id'] ); |
|
4 | +$sanitize_id = wpinv_sanitize_key($args['id']); |
|
5 | 5 | |
6 | 6 | ?> |
7 | 7 | <div class="wpinv-field-editor-main-wrapper"> |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | |
10 | 10 | <!-- Available field types header --> |
11 | 11 | <h3 class="wpinv-field-types-editor-header"> |
12 | - <span><?php _e( 'Available Fields', 'invoicing' ); ?></span> |
|
12 | + <span><?php _e('Available Fields', 'invoicing'); ?></span> |
|
13 | 13 | <button class="toggle-icon" @click.prevent="toggleFieldTypes"> |
14 | 14 | <span class="dashicons dashicons-arrow-down"></span> |
15 | 15 | <span class="dashicons dashicons-arrow-up" style="display:none"></span> |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | <!-- List of available field types --> |
20 | 20 | <div class="wpinv-field-types-editor-inside"> |
21 | 21 | <p class="description"> |
22 | - <?php _e( 'To add a field drag it to the list on the right or click on it. Only one of each predefined fields can be added.', 'invoicing' ); ?> |
|
22 | + <?php _e('To add a field drag it to the list on the right or click on it. Only one of each predefined fields can be added.', 'invoicing'); ?> |
|
23 | 23 | </p> |
24 | 24 | <draggable :list="fieldTypeKeys" :group="{ name: 'fields', pull: 'clone', put: false }" :sort="false" |
25 | 25 | :clone="addDraggedField" tag="ul" filter=".wpinv-undraggable"> |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | </div> |
32 | 32 | <div class="wpinv-fields-editor-wrapper"> |
33 | 33 | <h3 class="wpinv-field-editor-header"> |
34 | - <span><?php _e( 'List of fields that will appear on checkout pages', 'invoicing' ); ?></span></h3> |
|
35 | - <p><?php _e( 'Click to expand and view field related settings. You may drag and drop to arrange fields order on the checkout form.', 'invoicing' ); ?> |
|
34 | + <span><?php _e('List of fields that will appear on checkout pages', 'invoicing'); ?></span></h3> |
|
35 | + <p><?php _e('Click to expand and view field related settings. You may drag and drop to arrange fields order on the checkout form.', 'invoicing'); ?> |
|
36 | 36 | </p> |
37 | 37 | |
38 | 38 | <div class="wpinv-field-editor-inside"> |
@@ -54,19 +54,19 @@ discard block |
||
54 | 54 | <div class="wpinv-field-editor-field-body-inner"> |
55 | 55 | |
56 | 56 | <label class="wpinv-field-editor-text-wrapper"> |
57 | - <div class="label-text"><?php _e( 'Field label', 'invoicing' ); ?></div> |
|
57 | + <div class="label-text"><?php _e('Field label', 'invoicing'); ?></div> |
|
58 | 58 | <div class="input-field-wrapper"> |
59 | 59 | <input type="text" v-model="field.field_label"> |
60 | 60 | </div> |
61 | 61 | </label> |
62 | 62 | |
63 | 63 | <label class="wpinv-field-editor-text-wrapper"> |
64 | - <div class="label-text"><?php _e( 'Field key', 'invoicing' ); ?></div> |
|
64 | + <div class="label-text"><?php _e('Field key', 'invoicing'); ?></div> |
|
65 | 65 | <div class="input-field-wrapper"> |
66 | 66 | <input type="text" v-model="field.key" @input="syncKey(field)" |
67 | 67 | :disabled="isPredefined(field)"> |
68 | 68 | <p v-if="isDuplicateKey(field.key)" class="description wpinv-error"> |
69 | - <?php _e( 'Another field with this key already exists. All your fields must have a unique key.', 'invoicing' ); ?> |
|
69 | + <?php _e('Another field with this key already exists. All your fields must have a unique key.', 'invoicing'); ?> |
|
70 | 70 | </p> |
71 | 71 | </div> |
72 | 72 | </label> |
@@ -74,11 +74,11 @@ discard block |
||
74 | 74 | <label class="wpinv-field-editor-checkbox-wrapper"> |
75 | 75 | <input type="checkbox" v-model="field.field_required"> |
76 | 76 | <span |
77 | - class="label-text"><?php _e( 'Is this field required?', 'invoicing' ); ?></span> |
|
77 | + class="label-text"><?php _e('Is this field required?', 'invoicing'); ?></span> |
|
78 | 78 | </label> |
79 | 79 | |
80 | 80 | <label class="wpinv-field-editor-text-wrapper" v-if="field.field_required"> |
81 | - <div class="label-text"><?php _e( 'Required message', 'invoicing' ); ?></div> |
|
81 | + <div class="label-text"><?php _e('Required message', 'invoicing'); ?></div> |
|
82 | 82 | <div class="input-field-wrapper"> |
83 | 83 | <input type="text" v-model="field.field_required_msg"> |
84 | 84 | </div> |
@@ -86,21 +86,21 @@ discard block |
||
86 | 86 | |
87 | 87 | <div class="wpinv-advanced" style="display:none"> |
88 | 88 | <label class="wpinv-field-editor-text-wrapper"> |
89 | - <div class="label-text"><?php _e( 'Field name', 'invoicing' ); ?></div> |
|
89 | + <div class="label-text"><?php _e('Field name', 'invoicing'); ?></div> |
|
90 | 90 | <div class="input-field-wrapper"> |
91 | 91 | <input type="text" v-model="field.name" disabled> |
92 | 92 | </div> |
93 | 93 | </label> |
94 | 94 | |
95 | 95 | <label class="wpinv-field-editor-text-wrapper"> |
96 | - <div class="label-text"><?php _e( 'Field id', 'invoicing' ); ?></div> |
|
96 | + <div class="label-text"><?php _e('Field id', 'invoicing'); ?></div> |
|
97 | 97 | <div class="input-field-wrapper"> |
98 | 98 | <input type="text" v-model="field.id" disabled> |
99 | 99 | </div> |
100 | 100 | </label> |
101 | 101 | |
102 | 102 | <label class="wpinv-field-editor-text-wrapper"> |
103 | - <div class="label-text"><?php _e( 'Field placeholder', 'invoicing' ); ?> |
|
103 | + <div class="label-text"><?php _e('Field placeholder', 'invoicing'); ?> |
|
104 | 104 | </div> |
105 | 105 | <div class="input-field-wrapper"> |
106 | 106 | <input type="text" v-model="field.placeholder"> |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | </label> |
109 | 109 | |
110 | 110 | <label class="wpinv-field-editor-text-wrapper"> |
111 | - <div class="label-text"><?php _e( 'Field description', 'invoicing' ); ?> |
|
111 | + <div class="label-text"><?php _e('Field description', 'invoicing'); ?> |
|
112 | 112 | </div> |
113 | 113 | <div class="input-field-wrapper"> |
114 | 114 | <input type="text" v-model="field.field_description"> |
@@ -116,21 +116,21 @@ discard block |
||
116 | 116 | </label> |
117 | 117 | |
118 | 118 | <label class="wpinv-field-editor-text-wrapper"> |
119 | - <div class="label-text"><?php _e( 'Input Class', 'invoicing' ); ?></div> |
|
119 | + <div class="label-text"><?php _e('Input Class', 'invoicing'); ?></div> |
|
120 | 120 | <div class="input-field-wrapper"> |
121 | 121 | <input type="text" v-model="field.input_class"> |
122 | 122 | </div> |
123 | 123 | </label> |
124 | 124 | |
125 | 125 | <label class="wpinv-field-editor-text-wrapper"> |
126 | - <div class="label-text"><?php _e( 'Label Class', 'invoicing' ); ?></div> |
|
126 | + <div class="label-text"><?php _e('Label Class', 'invoicing'); ?></div> |
|
127 | 127 | <div class="input-field-wrapper"> |
128 | 128 | <input type="text" v-model="field.label_class"> |
129 | 129 | </div> |
130 | 130 | </label> |
131 | 131 | |
132 | 132 | <label class="wpinv-field-editor-text-wrapper"> |
133 | - <div class="label-text"><?php _e( 'Wrapper Class', 'invoicing' ); ?></div> |
|
133 | + <div class="label-text"><?php _e('Wrapper Class', 'invoicing'); ?></div> |
|
134 | 134 | <div class="input-field-wrapper"> |
135 | 135 | <input type="text" v-model="field.wrapper_class"> |
136 | 136 | </div> |
@@ -138,17 +138,17 @@ discard block |
||
138 | 138 | </div> |
139 | 139 | <div class="wpinv-field-editor-actions"> |
140 | 140 | <a href="#" class="wpinv-delete" |
141 | - @click.prevent="deleteField(field)"><?php _e( 'Delete', 'invoicing' ); ?></a> |
|
141 | + @click.prevent="deleteField(field)"><?php _e('Delete', 'invoicing'); ?></a> |
|
142 | 142 | | |
143 | 143 | <a href="#" class="wpinv-done" |
144 | - @click.prevent="togglePanel(field.key)"><?php _e( 'Done', 'invoicing' ); ?></a> |
|
144 | + @click.prevent="togglePanel(field.key)"><?php _e('Done', 'invoicing'); ?></a> |
|
145 | 145 | |
146 | 146 | <button class="wpinv-toggle-advanced button button-primary" |
147 | 147 | @click.prevent="showingAdvanced = !showingAdvanced"> |
148 | 148 | <span |
149 | - v-if="showingAdvanced"><?php _e( 'Hide Advanced', 'invoicing' ); ?></span> |
|
149 | + v-if="showingAdvanced"><?php _e('Hide Advanced', 'invoicing'); ?></span> |
|
150 | 150 | <span |
151 | - v-if="!showingAdvanced"><?php _e( 'Show Advanced', 'invoicing' ); ?></span> |
|
151 | + v-if="!showingAdvanced"><?php _e('Show Advanced', 'invoicing'); ?></span> |
|
152 | 152 | </button> |
153 | 153 | </div> |
154 | 154 | </div> |
@@ -157,14 +157,14 @@ discard block |
||
157 | 157 | </draggable> |
158 | 158 | <div style="margin-top: 10px;"> |
159 | 159 | <button class="button button-secondary" |
160 | - @click.prevent="resetFields"><?php _e( 'Reset Fields', 'invoicing' ); ?></button> |
|
160 | + @click.prevent="resetFields"><?php _e('Reset Fields', 'invoicing'); ?></button> |
|
161 | 161 | </div> |
162 | 162 | </div> |
163 | 163 | </div> |
164 | 164 | </div> |
165 | 165 | |
166 | - <textarea id="wpinv_settings[<?php echo esc_attr( $sanitize_id ); ?>]" |
|
167 | - name="wpinv_settings[<?php echo esc_attr( $sanitize_id ); ?>]" |
|
166 | + <textarea id="wpinv_settings[<?php echo esc_attr($sanitize_id); ?>]" |
|
167 | + name="wpinv_settings[<?php echo esc_attr($sanitize_id); ?>]" |
|
168 | 168 | v-model="fieldString" |
169 | 169 | style="display: none !important;"></textarea> |
170 | 170 | </div> |