@@ -7,24 +7,24 @@ |
||
7 | 7 | * @version 1.0.19 |
8 | 8 | */ |
9 | 9 | |
10 | -defined( 'ABSPATH' ) || exit; |
|
10 | +defined('ABSPATH') || exit; |
|
11 | 11 | |
12 | -$logo_width = wpinv_get_option( 'logo_width' ); |
|
13 | -$logo_height = wpinv_get_option( 'logo_height' ); |
|
12 | +$logo_width = wpinv_get_option('logo_width'); |
|
13 | +$logo_height = wpinv_get_option('logo_height'); |
|
14 | 14 | |
15 | 15 | ?> |
16 | -<a target="_blank" class="logo-link text-dark" href="<?php echo esc_url( wpinv_get_business_website() ); ?>"> |
|
16 | +<a target="_blank" class="logo-link text-dark" href="<?php echo esc_url(wpinv_get_business_website()); ?>"> |
|
17 | 17 | |
18 | - <?php if ( $logo = wpinv_get_business_logo() ) : ?> |
|
18 | + <?php if ($logo = wpinv_get_business_logo()) : ?> |
|
19 | 19 | |
20 | - <?php if ( ! empty( $logo_width ) && ! empty( $logo_height ) ) : ?> |
|
21 | - <img class="logo" style="max-width:100%; width:<?php echo absint( $logo_width ); ?>px; height:<?php echo absint( $logo_height ); ?>px;" src="<?php echo esc_url( $logo ); ?>"> |
|
20 | + <?php if (!empty($logo_width) && !empty($logo_height)) : ?> |
|
21 | + <img class="logo" style="max-width:100%; width:<?php echo absint($logo_width); ?>px; height:<?php echo absint($logo_height); ?>px;" src="<?php echo esc_url($logo); ?>"> |
|
22 | 22 | <?php else : ?> |
23 | - <img class="logo" style="max-width:100%;" src="<?php echo esc_url( $logo ); ?>"> |
|
23 | + <img class="logo" style="max-width:100%;" src="<?php echo esc_url($logo); ?>"> |
|
24 | 24 | <?php endif; ?> |
25 | 25 | |
26 | 26 | <?php else : ?> |
27 | - <h1 class="h3"><?php echo esc_html( wpinv_get_business_name() ); ?></h1> |
|
27 | + <h1 class="h3"><?php echo esc_html(wpinv_get_business_name()); ?></h1> |
|
28 | 28 | <?php endif; ?> |
29 | 29 | |
30 | 30 | </a> |
@@ -7,7 +7,7 @@ |
||
7 | 7 | * @version 1.0.19 |
8 | 8 | */ |
9 | 9 | |
10 | -defined( 'ABSPATH' ) || exit; |
|
10 | +defined('ABSPATH') || exit; |
|
11 | 11 | ?> |
12 | 12 | |
13 | 13 | <hr class="featurette-divider" /> |
@@ -8,7 +8,7 @@ |
||
8 | 8 | */ |
9 | 9 | |
10 | 10 | |
11 | -defined( 'ABSPATH' ) || exit; |
|
11 | +defined('ABSPATH') || exit; |
|
12 | 12 | |
13 | 13 | ?> |
14 | 14 | <component :is='form_element.level' v-html='form_element.text'></component> |
@@ -7,44 +7,44 @@ |
||
7 | 7 | * @version 1.0.19 |
8 | 8 | */ |
9 | 9 | |
10 | -defined( 'ABSPATH' ) || exit; |
|
10 | +defined('ABSPATH') || exit; |
|
11 | 11 | |
12 | -if ( empty( $form->get_items() ) ) { |
|
12 | +if (empty($form->get_items())) { |
|
13 | 13 | return; |
14 | 14 | } |
15 | 15 | |
16 | -if ( ! empty( $GLOBALS['getpaid_force_checkbox'] ) ) { |
|
16 | +if (!empty($GLOBALS['getpaid_force_checkbox'])) { |
|
17 | 17 | $items_type = 'checkbox'; |
18 | 18 | } |
19 | 19 | |
20 | -if ( empty( $items_type ) ) { |
|
20 | +if (empty($items_type)) { |
|
21 | 21 | $items_type = 'total'; |
22 | 22 | } |
23 | 23 | |
24 | -do_action( 'getpaid_before_payment_form_items', $form ); |
|
24 | +do_action('getpaid_before_payment_form_items', $form); |
|
25 | 25 | |
26 | -switch ( $items_type ) { |
|
26 | +switch ($items_type) { |
|
27 | 27 | case 'radio': |
28 | - wpinv_get_template( 'payment-forms/variations/radio.php', compact( 'form', 'items_type' ) ); |
|
28 | + wpinv_get_template('payment-forms/variations/radio.php', compact('form', 'items_type')); |
|
29 | 29 | break; |
30 | 30 | case 'checkbox': |
31 | - wpinv_get_template( 'payment-forms/variations/checkbox.php', compact( 'form', 'items_type' ) ); |
|
31 | + wpinv_get_template('payment-forms/variations/checkbox.php', compact('form', 'items_type')); |
|
32 | 32 | break; |
33 | 33 | case 'select': |
34 | - wpinv_get_template( 'payment-forms/variations/select.php', compact( 'form', 'items_type' ) ); |
|
34 | + wpinv_get_template('payment-forms/variations/select.php', compact('form', 'items_type')); |
|
35 | 35 | break; |
36 | 36 | } |
37 | 37 | |
38 | -do_action( 'getpaid_before_payment_form_cart', $form ); |
|
38 | +do_action('getpaid_before_payment_form_cart', $form); |
|
39 | 39 | |
40 | 40 | // Display the cart totals. |
41 | -if ( ! empty( $hide_cart ) ) { |
|
41 | +if (!empty($hide_cart)) { |
|
42 | 42 | echo '<div class="d-none">'; |
43 | 43 | } |
44 | 44 | |
45 | 45 | // Display the cart totals. |
46 | -wpinv_get_template( 'payment-forms/cart.php', compact( 'form', 'items_type' ) ); |
|
46 | +wpinv_get_template('payment-forms/cart.php', compact('form', 'items_type')); |
|
47 | 47 | |
48 | -if ( ! empty( $hide_cart ) ) { |
|
48 | +if (!empty($hide_cart)) { |
|
49 | 49 | echo '</div>'; |
50 | 50 | } |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | * |
7 | 7 | */ |
8 | 8 | |
9 | -defined( 'ABSPATH' ) || exit; |
|
9 | +defined('ABSPATH') || exit; |
|
10 | 10 | |
11 | 11 | /** |
12 | 12 | * Post types Class |
@@ -18,10 +18,10 @@ discard block |
||
18 | 18 | * Hook in methods. |
19 | 19 | */ |
20 | 20 | public function __construct() { |
21 | - add_action( 'init', array( __CLASS__, 'register_post_types' ), 1 ); |
|
22 | - add_action( 'init', array( __CLASS__, 'register_post_status' ), 4 ); |
|
23 | - add_action( 'getpaid_flush_rewrite_rules', array( __CLASS__, 'flush_rewrite_rules' ) ); |
|
24 | - add_action( 'getpaid_after_register_post_types', array( __CLASS__, 'maybe_flush_rewrite_rules' ) ); |
|
21 | + add_action('init', array(__CLASS__, 'register_post_types'), 1); |
|
22 | + add_action('init', array(__CLASS__, 'register_post_status'), 4); |
|
23 | + add_action('getpaid_flush_rewrite_rules', array(__CLASS__, 'flush_rewrite_rules')); |
|
24 | + add_action('getpaid_after_register_post_types', array(__CLASS__, 'maybe_flush_rewrite_rules')); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
@@ -29,14 +29,14 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public static function register_post_types() { |
31 | 31 | |
32 | - if ( ! is_blog_installed() || post_type_exists( 'wpi_item' ) ) { |
|
32 | + if (!is_blog_installed() || post_type_exists('wpi_item')) { |
|
33 | 33 | return; |
34 | 34 | } |
35 | 35 | |
36 | 36 | $capabilities = wpinv_current_user_can_manage_invoicing(); |
37 | 37 | |
38 | 38 | // Fires before registering post types. |
39 | - do_action( 'getpaid_register_post_types' ); |
|
39 | + do_action('getpaid_register_post_types'); |
|
40 | 40 | |
41 | 41 | // Register item post type. |
42 | 42 | register_post_type( |
@@ -45,29 +45,29 @@ discard block |
||
45 | 45 | 'wpinv_register_post_type_invoice_item', |
46 | 46 | array( |
47 | 47 | 'labels' => array( |
48 | - 'name' => _x( 'Items', 'post type general name', 'invoicing' ), |
|
49 | - 'singular_name' => _x( 'Item', 'post type singular name', 'invoicing' ), |
|
50 | - 'menu_name' => _x( 'Items', 'admin menu', 'invoicing' ), |
|
51 | - 'name_admin_bar' => _x( 'Item', 'add new on admin bar', 'invoicing' ), |
|
52 | - 'add_new' => _x( 'Add New', 'Item', 'invoicing' ), |
|
53 | - 'add_new_item' => __( 'Add New Item', 'invoicing' ), |
|
54 | - 'new_item' => __( 'New Item', 'invoicing' ), |
|
55 | - 'edit_item' => __( 'Edit Item', 'invoicing' ), |
|
56 | - 'view_item' => __( 'View Item', 'invoicing' ), |
|
57 | - 'all_items' => __( 'Items', 'invoicing' ), |
|
58 | - 'search_items' => __( 'Search items', 'invoicing' ), |
|
59 | - 'parent_item_colon' => __( 'Parent item:', 'invoicing' ), |
|
60 | - 'not_found' => __( 'No items found.', 'invoicing' ), |
|
61 | - 'not_found_in_trash' => __( 'No items found in trash.', 'invoicing' ), |
|
48 | + 'name' => _x('Items', 'post type general name', 'invoicing'), |
|
49 | + 'singular_name' => _x('Item', 'post type singular name', 'invoicing'), |
|
50 | + 'menu_name' => _x('Items', 'admin menu', 'invoicing'), |
|
51 | + 'name_admin_bar' => _x('Item', 'add new on admin bar', 'invoicing'), |
|
52 | + 'add_new' => _x('Add New', 'Item', 'invoicing'), |
|
53 | + 'add_new_item' => __('Add New Item', 'invoicing'), |
|
54 | + 'new_item' => __('New Item', 'invoicing'), |
|
55 | + 'edit_item' => __('Edit Item', 'invoicing'), |
|
56 | + 'view_item' => __('View Item', 'invoicing'), |
|
57 | + 'all_items' => __('Items', 'invoicing'), |
|
58 | + 'search_items' => __('Search items', 'invoicing'), |
|
59 | + 'parent_item_colon' => __('Parent item:', 'invoicing'), |
|
60 | + 'not_found' => __('No items found.', 'invoicing'), |
|
61 | + 'not_found_in_trash' => __('No items found in trash.', 'invoicing'), |
|
62 | 62 | ), |
63 | - 'description' => __( 'This is where you can add new invoice items.', 'invoicing' ), |
|
63 | + 'description' => __('This is where you can add new invoice items.', 'invoicing'), |
|
64 | 64 | 'public' => false, |
65 | 65 | 'has_archive' => false, |
66 | 66 | '_builtin' => false, |
67 | 67 | 'show_ui' => true, |
68 | 68 | 'show_in_menu' => wpinv_current_user_can_manage_invoicing() ? 'wpinv' : false, |
69 | 69 | 'show_in_nav_menus' => false, |
70 | - 'supports' => array( 'title', 'excerpt', 'thumbnail' ), |
|
70 | + 'supports' => array('title', 'excerpt', 'thumbnail'), |
|
71 | 71 | 'rewrite' => false, |
72 | 72 | 'query_var' => false, |
73 | 73 | 'map_meta_cap' => true, |
@@ -84,22 +84,22 @@ discard block |
||
84 | 84 | 'wpinv_register_post_type_payment_form', |
85 | 85 | array( |
86 | 86 | 'labels' => array( |
87 | - 'name' => _x( 'Payment Forms', 'post type general name', 'invoicing' ), |
|
88 | - 'singular_name' => _x( 'Payment Form', 'post type singular name', 'invoicing' ), |
|
89 | - 'menu_name' => _x( 'Payment Forms', 'admin menu', 'invoicing' ), |
|
90 | - 'name_admin_bar' => _x( 'Payment Form', 'add new on admin bar', 'invoicing' ), |
|
91 | - 'add_new' => _x( 'Add New', 'Payment Form', 'invoicing' ), |
|
92 | - 'add_new_item' => __( 'Add New Payment Form', 'invoicing' ), |
|
93 | - 'new_item' => __( 'New Payment Form', 'invoicing' ), |
|
94 | - 'edit_item' => __( 'Edit Payment Form', 'invoicing' ), |
|
95 | - 'view_item' => __( 'View Payment Form', 'invoicing' ), |
|
96 | - 'all_items' => __( 'Payment Forms', 'invoicing' ), |
|
97 | - 'search_items' => __( 'Search Payment Forms', 'invoicing' ), |
|
98 | - 'parent_item_colon' => __( 'Parent Payment Forms:', 'invoicing' ), |
|
99 | - 'not_found' => __( 'No payment forms found.', 'invoicing' ), |
|
100 | - 'not_found_in_trash' => __( 'No payment forms found in trash.', 'invoicing' ), |
|
87 | + 'name' => _x('Payment Forms', 'post type general name', 'invoicing'), |
|
88 | + 'singular_name' => _x('Payment Form', 'post type singular name', 'invoicing'), |
|
89 | + 'menu_name' => _x('Payment Forms', 'admin menu', 'invoicing'), |
|
90 | + 'name_admin_bar' => _x('Payment Form', 'add new on admin bar', 'invoicing'), |
|
91 | + 'add_new' => _x('Add New', 'Payment Form', 'invoicing'), |
|
92 | + 'add_new_item' => __('Add New Payment Form', 'invoicing'), |
|
93 | + 'new_item' => __('New Payment Form', 'invoicing'), |
|
94 | + 'edit_item' => __('Edit Payment Form', 'invoicing'), |
|
95 | + 'view_item' => __('View Payment Form', 'invoicing'), |
|
96 | + 'all_items' => __('Payment Forms', 'invoicing'), |
|
97 | + 'search_items' => __('Search Payment Forms', 'invoicing'), |
|
98 | + 'parent_item_colon' => __('Parent Payment Forms:', 'invoicing'), |
|
99 | + 'not_found' => __('No payment forms found.', 'invoicing'), |
|
100 | + 'not_found_in_trash' => __('No payment forms found in trash.', 'invoicing'), |
|
101 | 101 | ), |
102 | - 'description' => __( 'Add new payment forms.', 'invoicing' ), |
|
102 | + 'description' => __('Add new payment forms.', 'invoicing'), |
|
103 | 103 | 'public' => false, |
104 | 104 | 'show_ui' => true, |
105 | 105 | 'show_in_menu' => wpinv_current_user_can_manage_invoicing() ? 'wpinv' : false, |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | 'has_archive' => false, |
111 | 111 | 'hierarchical' => false, |
112 | 112 | 'menu_position' => null, |
113 | - 'supports' => array( 'title' ), |
|
113 | + 'supports' => array('title'), |
|
114 | 114 | 'menu_icon' => 'dashicons-media-form', |
115 | 115 | ) |
116 | 116 | ) |
@@ -123,32 +123,32 @@ discard block |
||
123 | 123 | 'wpinv_register_post_type_invoice', |
124 | 124 | array( |
125 | 125 | 'labels' => array( |
126 | - 'name' => __( 'Invoices', 'invoicing' ), |
|
127 | - 'singular_name' => __( 'Invoice', 'invoicing' ), |
|
128 | - 'all_items' => __( 'Invoices', 'invoicing' ), |
|
129 | - 'menu_name' => _x( 'Invoices', 'Admin menu name', 'invoicing' ), |
|
130 | - 'add_new' => __( 'Add New', 'invoicing' ), |
|
131 | - 'add_new_item' => __( 'Add new invoice', 'invoicing' ), |
|
132 | - 'edit' => __( 'Edit', 'invoicing' ), |
|
133 | - 'edit_item' => __( 'Edit invoice', 'invoicing' ), |
|
134 | - 'new_item' => __( 'New invoice', 'invoicing' ), |
|
135 | - 'view_item' => __( 'View invoice', 'invoicing' ), |
|
136 | - 'view_items' => __( 'View Invoices', 'invoicing' ), |
|
137 | - 'search_items' => __( 'Search invoices', 'invoicing' ), |
|
138 | - 'not_found' => __( 'No invoices found', 'invoicing' ), |
|
139 | - 'not_found_in_trash' => __( 'No invoices found in trash', 'invoicing' ), |
|
140 | - 'parent' => __( 'Parent invoice', 'invoicing' ), |
|
141 | - 'featured_image' => __( 'Invoice image', 'invoicing' ), |
|
142 | - 'set_featured_image' => __( 'Set invoice image', 'invoicing' ), |
|
143 | - 'remove_featured_image' => __( 'Remove invoice image', 'invoicing' ), |
|
144 | - 'use_featured_image' => __( 'Use as invoice image', 'invoicing' ), |
|
145 | - 'insert_into_item' => __( 'Insert into invoice', 'invoicing' ), |
|
146 | - 'uploaded_to_this_item' => __( 'Uploaded to this invoice', 'invoicing' ), |
|
147 | - 'filter_items_list' => __( 'Filter invoices', 'invoicing' ), |
|
148 | - 'items_list_navigation' => __( 'Invoices navigation', 'invoicing' ), |
|
149 | - 'items_list' => __( 'Invoices list', 'invoicing' ), |
|
126 | + 'name' => __('Invoices', 'invoicing'), |
|
127 | + 'singular_name' => __('Invoice', 'invoicing'), |
|
128 | + 'all_items' => __('Invoices', 'invoicing'), |
|
129 | + 'menu_name' => _x('Invoices', 'Admin menu name', 'invoicing'), |
|
130 | + 'add_new' => __('Add New', 'invoicing'), |
|
131 | + 'add_new_item' => __('Add new invoice', 'invoicing'), |
|
132 | + 'edit' => __('Edit', 'invoicing'), |
|
133 | + 'edit_item' => __('Edit invoice', 'invoicing'), |
|
134 | + 'new_item' => __('New invoice', 'invoicing'), |
|
135 | + 'view_item' => __('View invoice', 'invoicing'), |
|
136 | + 'view_items' => __('View Invoices', 'invoicing'), |
|
137 | + 'search_items' => __('Search invoices', 'invoicing'), |
|
138 | + 'not_found' => __('No invoices found', 'invoicing'), |
|
139 | + 'not_found_in_trash' => __('No invoices found in trash', 'invoicing'), |
|
140 | + 'parent' => __('Parent invoice', 'invoicing'), |
|
141 | + 'featured_image' => __('Invoice image', 'invoicing'), |
|
142 | + 'set_featured_image' => __('Set invoice image', 'invoicing'), |
|
143 | + 'remove_featured_image' => __('Remove invoice image', 'invoicing'), |
|
144 | + 'use_featured_image' => __('Use as invoice image', 'invoicing'), |
|
145 | + 'insert_into_item' => __('Insert into invoice', 'invoicing'), |
|
146 | + 'uploaded_to_this_item' => __('Uploaded to this invoice', 'invoicing'), |
|
147 | + 'filter_items_list' => __('Filter invoices', 'invoicing'), |
|
148 | + 'items_list_navigation' => __('Invoices navigation', 'invoicing'), |
|
149 | + 'items_list' => __('Invoices list', 'invoicing'), |
|
150 | 150 | ), |
151 | - 'description' => __( 'This is where invoices are stored.', 'invoicing' ), |
|
151 | + 'description' => __('This is where invoices are stored.', 'invoicing'), |
|
152 | 152 | 'public' => true, |
153 | 153 | 'has_archive' => false, |
154 | 154 | 'publicly_queryable' => true, |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | 'show_ui' => true, |
157 | 157 | 'show_in_menu' => wpinv_current_user_can_manage_invoicing() ? 'wpinv' : false, |
158 | 158 | 'show_in_nav_menus' => false, |
159 | - 'supports' => array( 'title', 'author', 'excerpt' ), |
|
159 | + 'supports' => array('title', 'author', 'excerpt'), |
|
160 | 160 | 'rewrite' => array( |
161 | 161 | 'slug' => 'invoice', |
162 | 162 | 'with_front' => false, |
@@ -179,32 +179,32 @@ discard block |
||
179 | 179 | 'wpinv_register_post_type_discount', |
180 | 180 | array( |
181 | 181 | 'labels' => array( |
182 | - 'name' => __( 'Discounts', 'invoicing' ), |
|
183 | - 'singular_name' => __( 'Discount', 'invoicing' ), |
|
184 | - 'all_items' => __( 'Discounts', 'invoicing' ), |
|
185 | - 'menu_name' => _x( 'Discounts', 'Admin menu name', 'invoicing' ), |
|
186 | - 'add_new' => __( 'Add New', 'invoicing' ), |
|
187 | - 'add_new_item' => __( 'Add new discount', 'invoicing' ), |
|
188 | - 'edit' => __( 'Edit', 'invoicing' ), |
|
189 | - 'edit_item' => __( 'Edit discount', 'invoicing' ), |
|
190 | - 'new_item' => __( 'New discount', 'invoicing' ), |
|
191 | - 'view_item' => __( 'View discount', 'invoicing' ), |
|
192 | - 'view_items' => __( 'View Discounts', 'invoicing' ), |
|
193 | - 'search_items' => __( 'Search discounts', 'invoicing' ), |
|
194 | - 'not_found' => __( 'No discounts found', 'invoicing' ), |
|
195 | - 'not_found_in_trash' => __( 'No discounts found in trash', 'invoicing' ), |
|
196 | - 'parent' => __( 'Parent discount', 'invoicing' ), |
|
197 | - 'featured_image' => __( 'Discount image', 'invoicing' ), |
|
198 | - 'set_featured_image' => __( 'Set discount image', 'invoicing' ), |
|
199 | - 'remove_featured_image' => __( 'Remove discount image', 'invoicing' ), |
|
200 | - 'use_featured_image' => __( 'Use as discount image', 'invoicing' ), |
|
201 | - 'insert_into_item' => __( 'Insert into discount', 'invoicing' ), |
|
202 | - 'uploaded_to_this_item' => __( 'Uploaded to this discount', 'invoicing' ), |
|
203 | - 'filter_items_list' => __( 'Filter discounts', 'invoicing' ), |
|
204 | - 'items_list_navigation' => __( 'Discount navigation', 'invoicing' ), |
|
205 | - 'items_list' => __( 'Discounts list', 'invoicing' ), |
|
182 | + 'name' => __('Discounts', 'invoicing'), |
|
183 | + 'singular_name' => __('Discount', 'invoicing'), |
|
184 | + 'all_items' => __('Discounts', 'invoicing'), |
|
185 | + 'menu_name' => _x('Discounts', 'Admin menu name', 'invoicing'), |
|
186 | + 'add_new' => __('Add New', 'invoicing'), |
|
187 | + 'add_new_item' => __('Add new discount', 'invoicing'), |
|
188 | + 'edit' => __('Edit', 'invoicing'), |
|
189 | + 'edit_item' => __('Edit discount', 'invoicing'), |
|
190 | + 'new_item' => __('New discount', 'invoicing'), |
|
191 | + 'view_item' => __('View discount', 'invoicing'), |
|
192 | + 'view_items' => __('View Discounts', 'invoicing'), |
|
193 | + 'search_items' => __('Search discounts', 'invoicing'), |
|
194 | + 'not_found' => __('No discounts found', 'invoicing'), |
|
195 | + 'not_found_in_trash' => __('No discounts found in trash', 'invoicing'), |
|
196 | + 'parent' => __('Parent discount', 'invoicing'), |
|
197 | + 'featured_image' => __('Discount image', 'invoicing'), |
|
198 | + 'set_featured_image' => __('Set discount image', 'invoicing'), |
|
199 | + 'remove_featured_image' => __('Remove discount image', 'invoicing'), |
|
200 | + 'use_featured_image' => __('Use as discount image', 'invoicing'), |
|
201 | + 'insert_into_item' => __('Insert into discount', 'invoicing'), |
|
202 | + 'uploaded_to_this_item' => __('Uploaded to this discount', 'invoicing'), |
|
203 | + 'filter_items_list' => __('Filter discounts', 'invoicing'), |
|
204 | + 'items_list_navigation' => __('Discount navigation', 'invoicing'), |
|
205 | + 'items_list' => __('Discounts list', 'invoicing'), |
|
206 | 206 | ), |
207 | - 'description' => __( 'This is where you can add new discounts that users can use in invoices.', 'invoicing' ), |
|
207 | + 'description' => __('This is where you can add new discounts that users can use in invoices.', 'invoicing'), |
|
208 | 208 | 'public' => false, |
209 | 209 | 'can_export' => true, |
210 | 210 | '_builtin' => false, |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | 'map_meta_cap' => true, |
218 | 218 | 'has_archive' => false, |
219 | 219 | 'hierarchical' => false, |
220 | - 'supports' => array( 'title', 'excerpt' ), |
|
220 | + 'supports' => array('title', 'excerpt'), |
|
221 | 221 | 'show_in_nav_menus' => false, |
222 | 222 | 'show_in_admin_bar' => true, |
223 | 223 | 'menu_position' => null, |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | ) |
226 | 226 | ); |
227 | 227 | |
228 | - do_action( 'getpaid_after_register_post_types' ); |
|
228 | + do_action('getpaid_after_register_post_types'); |
|
229 | 229 | } |
230 | 230 | |
231 | 231 | /** |
@@ -238,79 +238,79 @@ discard block |
||
238 | 238 | array( |
239 | 239 | |
240 | 240 | 'wpi-pending' => array( |
241 | - 'label' => _x( 'Pending Payment', 'Invoice status', 'invoicing' ), |
|
241 | + 'label' => _x('Pending Payment', 'Invoice status', 'invoicing'), |
|
242 | 242 | 'public' => true, |
243 | 243 | 'exclude_from_search' => true, |
244 | 244 | 'show_in_admin_all_list' => true, |
245 | 245 | 'show_in_admin_status_list' => true, |
246 | 246 | /* translators: %s: number of invoices */ |
247 | - 'label_count' => _n_noop( 'Pending Payment <span class="count">(%s)</span>', 'Pending Payment <span class="count">(%s)</span>', 'invoicing' ), |
|
247 | + 'label_count' => _n_noop('Pending Payment <span class="count">(%s)</span>', 'Pending Payment <span class="count">(%s)</span>', 'invoicing'), |
|
248 | 248 | ), |
249 | 249 | |
250 | 250 | 'wpi-processing' => array( |
251 | - 'label' => _x( 'Processing', 'Invoice status', 'invoicing' ), |
|
251 | + 'label' => _x('Processing', 'Invoice status', 'invoicing'), |
|
252 | 252 | 'public' => true, |
253 | 253 | 'exclude_from_search' => true, |
254 | 254 | 'show_in_admin_all_list' => true, |
255 | 255 | 'show_in_admin_status_list' => true, |
256 | 256 | /* translators: %s: number of invoices */ |
257 | - 'label_count' => _n_noop( 'Processing <span class="count">(%s)</span>', 'Processing <span class="count">(%s)</span>', 'invoicing' ), |
|
257 | + 'label_count' => _n_noop('Processing <span class="count">(%s)</span>', 'Processing <span class="count">(%s)</span>', 'invoicing'), |
|
258 | 258 | ), |
259 | 259 | |
260 | 260 | 'wpi-onhold' => array( |
261 | - 'label' => _x( 'On Hold', 'Invoice status', 'invoicing' ), |
|
261 | + 'label' => _x('On Hold', 'Invoice status', 'invoicing'), |
|
262 | 262 | 'public' => true, |
263 | 263 | 'exclude_from_search' => true, |
264 | 264 | 'show_in_admin_all_list' => true, |
265 | 265 | 'show_in_admin_status_list' => true, |
266 | 266 | /* translators: %s: number of invoices */ |
267 | - 'label_count' => _n_noop( 'On Hold <span class="count">(%s)</span>', 'On Hold <span class="count">(%s)</span>', 'invoicing' ), |
|
267 | + 'label_count' => _n_noop('On Hold <span class="count">(%s)</span>', 'On Hold <span class="count">(%s)</span>', 'invoicing'), |
|
268 | 268 | ), |
269 | 269 | |
270 | 270 | 'wpi-cancelled' => array( |
271 | - 'label' => _x( 'Cancelled', 'Invoice status', 'invoicing' ), |
|
271 | + 'label' => _x('Cancelled', 'Invoice status', 'invoicing'), |
|
272 | 272 | 'public' => true, |
273 | 273 | 'exclude_from_search' => true, |
274 | 274 | 'show_in_admin_all_list' => true, |
275 | 275 | 'show_in_admin_status_list' => true, |
276 | 276 | /* translators: %s: number of invoices */ |
277 | - 'label_count' => _n_noop( 'Cancelled <span class="count">(%s)</span>', 'Cancelled <span class="count">(%s)</span>', 'invoicing' ), |
|
277 | + 'label_count' => _n_noop('Cancelled <span class="count">(%s)</span>', 'Cancelled <span class="count">(%s)</span>', 'invoicing'), |
|
278 | 278 | ), |
279 | 279 | |
280 | 280 | 'wpi-refunded' => array( |
281 | - 'label' => _x( 'Refunded', 'Invoice status', 'invoicing' ), |
|
281 | + 'label' => _x('Refunded', 'Invoice status', 'invoicing'), |
|
282 | 282 | 'public' => true, |
283 | 283 | 'exclude_from_search' => true, |
284 | 284 | 'show_in_admin_all_list' => true, |
285 | 285 | 'show_in_admin_status_list' => true, |
286 | 286 | /* translators: %s: number of invoices */ |
287 | - 'label_count' => _n_noop( 'Refunded <span class="count">(%s)</span>', 'Refunded <span class="count">(%s)</span>', 'invoicing' ), |
|
287 | + 'label_count' => _n_noop('Refunded <span class="count">(%s)</span>', 'Refunded <span class="count">(%s)</span>', 'invoicing'), |
|
288 | 288 | ), |
289 | 289 | |
290 | 290 | 'wpi-failed' => array( |
291 | - 'label' => _x( 'Failed', 'Invoice status', 'invoicing' ), |
|
291 | + 'label' => _x('Failed', 'Invoice status', 'invoicing'), |
|
292 | 292 | 'public' => true, |
293 | 293 | 'exclude_from_search' => true, |
294 | 294 | 'show_in_admin_all_list' => true, |
295 | 295 | 'show_in_admin_status_list' => true, |
296 | 296 | /* translators: %s: number of invoices */ |
297 | - 'label_count' => _n_noop( 'Failed <span class="count">(%s)</span>', 'Failed <span class="count">(%s)</span>', 'invoicing' ), |
|
297 | + 'label_count' => _n_noop('Failed <span class="count">(%s)</span>', 'Failed <span class="count">(%s)</span>', 'invoicing'), |
|
298 | 298 | ), |
299 | 299 | |
300 | 300 | 'wpi-renewal' => array( |
301 | - 'label' => _x( 'Renewal', 'Invoice status', 'invoicing' ), |
|
301 | + 'label' => _x('Renewal', 'Invoice status', 'invoicing'), |
|
302 | 302 | 'public' => true, |
303 | 303 | 'exclude_from_search' => true, |
304 | 304 | 'show_in_admin_all_list' => true, |
305 | 305 | 'show_in_admin_status_list' => true, |
306 | 306 | /* translators: %s: number of invoices */ |
307 | - 'label_count' => _n_noop( 'Renewal <span class="count">(%s)</span>', 'Renewal <span class="count">(%s)</span>', 'invoicing' ), |
|
307 | + 'label_count' => _n_noop('Renewal <span class="count">(%s)</span>', 'Renewal <span class="count">(%s)</span>', 'invoicing'), |
|
308 | 308 | ), |
309 | 309 | ) |
310 | 310 | ); |
311 | 311 | |
312 | - foreach ( $invoice_statuses as $invoice_statuse => $args ) { |
|
313 | - register_post_status( $invoice_statuse, $args ); |
|
312 | + foreach ($invoice_statuses as $invoice_statuse => $args) { |
|
313 | + register_post_status($invoice_statuse, $args); |
|
314 | 314 | } |
315 | 315 | } |
316 | 316 | |
@@ -326,8 +326,8 @@ discard block |
||
326 | 326 | * |
327 | 327 | */ |
328 | 328 | public static function maybe_flush_rewrite_rules() { |
329 | - if ( ! get_option( 'getpaid_flushed_rewrite_rules' ) ) { |
|
330 | - update_option( 'getpaid_flushed_rewrite_rules', '1' ); |
|
329 | + if (!get_option('getpaid_flushed_rewrite_rules')) { |
|
330 | + update_option('getpaid_flushed_rewrite_rules', '1'); |
|
331 | 331 | self::flush_rewrite_rules(); |
332 | 332 | } |
333 | 333 | } |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | * GetPaid_Payment_Form_Data_Store class file. |
4 | 4 | * |
5 | 5 | */ |
6 | -if ( ! defined( 'ABSPATH' ) ) { |
|
6 | +if (!defined('ABSPATH')) { |
|
7 | 7 | exit; |
8 | 8 | } |
9 | 9 | |
@@ -56,37 +56,37 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @param GetPaid_Payment_Form $form Form object. |
58 | 58 | */ |
59 | - public function create( &$form ) { |
|
60 | - $form->set_version( WPINV_VERSION ); |
|
61 | - $form->set_date_created( current_time( 'mysql' ) ); |
|
59 | + public function create(&$form) { |
|
60 | + $form->set_version(WPINV_VERSION); |
|
61 | + $form->set_date_created(current_time('mysql')); |
|
62 | 62 | |
63 | 63 | // Create a new post. |
64 | 64 | $id = wp_insert_post( |
65 | 65 | apply_filters( |
66 | 66 | 'getpaid_new_payment_form_data', |
67 | 67 | array( |
68 | - 'post_date' => $form->get_date_created( 'edit' ), |
|
68 | + 'post_date' => $form->get_date_created('edit'), |
|
69 | 69 | 'post_type' => 'wpi_payment_form', |
70 | - 'post_status' => $this->get_post_status( $form ), |
|
70 | + 'post_status' => $this->get_post_status($form), |
|
71 | 71 | 'ping_status' => 'closed', |
72 | - 'post_author' => $form->get_author( 'edit' ), |
|
73 | - 'post_title' => $form->get_name( 'edit' ), |
|
72 | + 'post_author' => $form->get_author('edit'), |
|
73 | + 'post_title' => $form->get_name('edit'), |
|
74 | 74 | ) |
75 | 75 | ), |
76 | 76 | true |
77 | 77 | ); |
78 | 78 | |
79 | - if ( $id && ! is_wp_error( $id ) ) { |
|
80 | - $form->set_id( $id ); |
|
81 | - $this->update_post_meta( $form ); |
|
79 | + if ($id && !is_wp_error($id)) { |
|
80 | + $form->set_id($id); |
|
81 | + $this->update_post_meta($form); |
|
82 | 82 | $form->save_meta_data(); |
83 | 83 | $form->apply_changes(); |
84 | - $this->clear_caches( $form ); |
|
85 | - do_action( 'getpaid_create_payment_form', $form ); |
|
84 | + $this->clear_caches($form); |
|
85 | + do_action('getpaid_create_payment_form', $form); |
|
86 | 86 | return true; |
87 | 87 | } |
88 | 88 | |
89 | - if ( is_wp_error( $id ) ) { |
|
89 | + if (is_wp_error($id)) { |
|
90 | 90 | $form->last_error = $id->get_error_message(); |
91 | 91 | } |
92 | 92 | |
@@ -99,14 +99,14 @@ discard block |
||
99 | 99 | * @param GetPaid_Payment_Form $form Form object. |
100 | 100 | * |
101 | 101 | */ |
102 | - public function read( &$form ) { |
|
102 | + public function read(&$form) { |
|
103 | 103 | |
104 | 104 | $form->set_defaults(); |
105 | - $form_object = get_post( $form->get_id() ); |
|
105 | + $form_object = get_post($form->get_id()); |
|
106 | 106 | |
107 | - if ( ! $form->get_id() || ! $form_object || $form_object->post_type != 'wpi_payment_form' ) { |
|
108 | - $form->last_error = __( 'Invalid form.', 'invoicing' ); |
|
109 | - $form->set_id( 0 ); |
|
107 | + if (!$form->get_id() || !$form_object || $form_object->post_type != 'wpi_payment_form') { |
|
108 | + $form->last_error = __('Invalid form.', 'invoicing'); |
|
109 | + $form->set_id(0); |
|
110 | 110 | return false; |
111 | 111 | } |
112 | 112 | |
@@ -120,10 +120,10 @@ discard block |
||
120 | 120 | ) |
121 | 121 | ); |
122 | 122 | |
123 | - $this->read_object_data( $form, $form_object ); |
|
123 | + $this->read_object_data($form, $form_object); |
|
124 | 124 | $form->read_meta_data(); |
125 | - $form->set_object_read( true ); |
|
126 | - do_action( 'getpaid_read_payment_form', $form ); |
|
125 | + $form->set_object_read(true); |
|
126 | + do_action('getpaid_read_payment_form', $form); |
|
127 | 127 | |
128 | 128 | } |
129 | 129 | |
@@ -132,27 +132,27 @@ discard block |
||
132 | 132 | * |
133 | 133 | * @param GetPaid_Payment_Form $form Form object. |
134 | 134 | */ |
135 | - public function update( &$form ) { |
|
135 | + public function update(&$form) { |
|
136 | 136 | $form->save_meta_data(); |
137 | - $form->set_version( WPINV_VERSION ); |
|
137 | + $form->set_version(WPINV_VERSION); |
|
138 | 138 | |
139 | - if ( null === $form->get_date_created( 'edit' ) ) { |
|
140 | - $form->set_date_created( current_time( 'mysql' ) ); |
|
139 | + if (null === $form->get_date_created('edit')) { |
|
140 | + $form->set_date_created(current_time('mysql')); |
|
141 | 141 | } |
142 | 142 | |
143 | 143 | // Grab the current status so we can compare. |
144 | - $previous_status = get_post_status( $form->get_id() ); |
|
144 | + $previous_status = get_post_status($form->get_id()); |
|
145 | 145 | |
146 | 146 | $changes = $form->get_changes(); |
147 | 147 | |
148 | 148 | // Only update the post when the post data changes. |
149 | - if ( array_intersect( array( 'date_created', 'date_modified', 'status', 'name', 'author' ), array_keys( $changes ) ) ) { |
|
149 | + if (array_intersect(array('date_created', 'date_modified', 'status', 'name', 'author'), array_keys($changes))) { |
|
150 | 150 | $post_data = array( |
151 | - 'post_date' => $form->get_date_created( 'edit' ), |
|
152 | - 'post_status' => $form->get_status( 'edit' ), |
|
153 | - 'post_title' => $form->get_name( 'edit' ), |
|
154 | - 'post_author' => $form->get_author( 'edit' ), |
|
155 | - 'post_modified' => $form->get_date_modified( 'edit' ), |
|
151 | + 'post_date' => $form->get_date_created('edit'), |
|
152 | + 'post_status' => $form->get_status('edit'), |
|
153 | + 'post_title' => $form->get_name('edit'), |
|
154 | + 'post_author' => $form->get_author('edit'), |
|
155 | + 'post_modified' => $form->get_date_modified('edit'), |
|
156 | 156 | ); |
157 | 157 | |
158 | 158 | /** |
@@ -163,25 +163,25 @@ discard block |
||
163 | 163 | * This ensures hooks are fired by either WP itself (admin screen save), |
164 | 164 | * or an update purely from CRUD. |
165 | 165 | */ |
166 | - if ( doing_action( 'save_post' ) ) { |
|
167 | - $GLOBALS['wpdb']->update( $GLOBALS['wpdb']->posts, $post_data, array( 'ID' => $form->get_id() ) ); |
|
168 | - clean_post_cache( $form->get_id() ); |
|
166 | + if (doing_action('save_post')) { |
|
167 | + $GLOBALS['wpdb']->update($GLOBALS['wpdb']->posts, $post_data, array('ID' => $form->get_id())); |
|
168 | + clean_post_cache($form->get_id()); |
|
169 | 169 | } else { |
170 | - wp_update_post( array_merge( array( 'ID' => $form->get_id() ), $post_data ) ); |
|
170 | + wp_update_post(array_merge(array('ID' => $form->get_id()), $post_data)); |
|
171 | 171 | } |
172 | - $form->read_meta_data( true ); // Refresh internal meta data, in case things were hooked into `save_post` or another WP hook. |
|
172 | + $form->read_meta_data(true); // Refresh internal meta data, in case things were hooked into `save_post` or another WP hook. |
|
173 | 173 | } |
174 | - $this->update_post_meta( $form ); |
|
174 | + $this->update_post_meta($form); |
|
175 | 175 | $form->apply_changes(); |
176 | - $this->clear_caches( $form ); |
|
176 | + $this->clear_caches($form); |
|
177 | 177 | |
178 | 178 | // Fire a hook depending on the status - this should be considered a creation if it was previously draft status. |
179 | - $new_status = $form->get_status( 'edit' ); |
|
179 | + $new_status = $form->get_status('edit'); |
|
180 | 180 | |
181 | - if ( $new_status !== $previous_status && in_array( $previous_status, array( 'new', 'auto-draft', 'draft' ), true ) ) { |
|
182 | - do_action( 'getpaid_new_payment_form', $form ); |
|
181 | + if ($new_status !== $previous_status && in_array($previous_status, array('new', 'auto-draft', 'draft'), true)) { |
|
182 | + do_action('getpaid_new_payment_form', $form); |
|
183 | 183 | } else { |
184 | - do_action( 'getpaid_update_payment_form', $form ); |
|
184 | + do_action('getpaid_update_payment_form', $form); |
|
185 | 185 | } |
186 | 186 | |
187 | 187 | } |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | * GetPaid_Subscription_Data_Store class file. |
5 | 5 | * |
6 | 6 | */ |
7 | -if ( ! defined( 'ABSPATH' ) ) { |
|
7 | +if (!defined('ABSPATH')) { |
|
8 | 8 | exit; |
9 | 9 | } |
10 | 10 | |
@@ -50,29 +50,29 @@ discard block |
||
50 | 50 | * |
51 | 51 | * @param WPInv_Subscription $subscription Subscription object. |
52 | 52 | */ |
53 | - public function create( &$subscription ) { |
|
53 | + public function create(&$subscription) { |
|
54 | 54 | global $wpdb; |
55 | 55 | |
56 | 56 | $values = array(); |
57 | 57 | $formats = array(); |
58 | 58 | |
59 | 59 | $fields = $this->database_fields_to_data_type; |
60 | - unset( $fields['id'] ); |
|
60 | + unset($fields['id']); |
|
61 | 61 | |
62 | - foreach ( $fields as $key => $format ) { |
|
62 | + foreach ($fields as $key => $format) { |
|
63 | 63 | $method = "get_$key"; |
64 | - $values[ $key ] = $subscription->$method( 'edit' ); |
|
64 | + $values[$key] = $subscription->$method('edit'); |
|
65 | 65 | $formats[] = $format; |
66 | 66 | } |
67 | 67 | |
68 | - $result = $wpdb->insert( $wpdb->prefix . 'wpinv_subscriptions', $values, $formats ); |
|
68 | + $result = $wpdb->insert($wpdb->prefix . 'wpinv_subscriptions', $values, $formats); |
|
69 | 69 | |
70 | - if ( $result ) { |
|
71 | - $subscription->set_id( $wpdb->insert_id ); |
|
70 | + if ($result) { |
|
71 | + $subscription->set_id($wpdb->insert_id); |
|
72 | 72 | $subscription->apply_changes(); |
73 | 73 | $subscription->clear_cache(); |
74 | - update_post_meta( $subscription->get_parent_invoice_id(), '_wpinv_subscription_id', $subscription->get_id() ); |
|
75 | - do_action( 'getpaid_new_subscription', $subscription ); |
|
74 | + update_post_meta($subscription->get_parent_invoice_id(), '_wpinv_subscription_id', $subscription->get_id()); |
|
75 | + do_action('getpaid_new_subscription', $subscription); |
|
76 | 76 | return true; |
77 | 77 | } |
78 | 78 | |
@@ -85,22 +85,22 @@ discard block |
||
85 | 85 | * @param WPInv_Subscription $subscription Subscription object. |
86 | 86 | * |
87 | 87 | */ |
88 | - public function read( &$subscription ) { |
|
88 | + public function read(&$subscription) { |
|
89 | 89 | global $wpdb; |
90 | 90 | |
91 | 91 | $subscription->set_defaults(); |
92 | 92 | |
93 | - if ( ! $subscription->get_id() ) { |
|
94 | - $subscription->last_error = __( 'Invalid subscription ID.', 'invoicing' ); |
|
95 | - $subscription->set_id( 0 ); |
|
93 | + if (!$subscription->get_id()) { |
|
94 | + $subscription->last_error = __('Invalid subscription ID.', 'invoicing'); |
|
95 | + $subscription->set_id(0); |
|
96 | 96 | return false; |
97 | 97 | } |
98 | 98 | |
99 | 99 | // Maybe retrieve from the cache. |
100 | - $raw_subscription = wp_cache_get( $subscription->get_id(), 'getpaid_subscriptions' ); |
|
100 | + $raw_subscription = wp_cache_get($subscription->get_id(), 'getpaid_subscriptions'); |
|
101 | 101 | |
102 | 102 | // If not found, retrieve from the db. |
103 | - if ( false === $raw_subscription ) { |
|
103 | + if (false === $raw_subscription) { |
|
104 | 104 | |
105 | 105 | $raw_subscription = $wpdb->get_row( |
106 | 106 | $wpdb->prepare( |
@@ -110,23 +110,23 @@ discard block |
||
110 | 110 | ); |
111 | 111 | |
112 | 112 | // Update the cache with our data |
113 | - wp_cache_set( $subscription->get_id(), $raw_subscription, 'getpaid_subscriptions' ); |
|
113 | + wp_cache_set($subscription->get_id(), $raw_subscription, 'getpaid_subscriptions'); |
|
114 | 114 | |
115 | 115 | } |
116 | 116 | |
117 | - if ( ! $raw_subscription ) { |
|
118 | - $subscription->set_id( 0 ); |
|
119 | - $subscription->last_error = __( 'Invalid subscription ID.', 'invoicing' ); |
|
117 | + if (!$raw_subscription) { |
|
118 | + $subscription->set_id(0); |
|
119 | + $subscription->last_error = __('Invalid subscription ID.', 'invoicing'); |
|
120 | 120 | return false; |
121 | 121 | } |
122 | 122 | |
123 | - foreach ( array_keys( $this->database_fields_to_data_type ) as $key ) { |
|
124 | - $method = "set_$key"; |
|
125 | - $subscription->$method( $raw_subscription->$key ); |
|
123 | + foreach (array_keys($this->database_fields_to_data_type) as $key) { |
|
124 | + $method = "set_$key"; |
|
125 | + $subscription->$method($raw_subscription->$key); |
|
126 | 126 | } |
127 | 127 | |
128 | - $subscription->set_object_read( true ); |
|
129 | - do_action( 'getpaid_read_subscription', $subscription ); |
|
128 | + $subscription->set_object_read(true); |
|
129 | + do_action('getpaid_read_subscription', $subscription); |
|
130 | 130 | |
131 | 131 | } |
132 | 132 | |
@@ -135,22 +135,22 @@ discard block |
||
135 | 135 | * |
136 | 136 | * @param WPInv_Subscription $subscription Subscription object. |
137 | 137 | */ |
138 | - public function update( &$subscription ) { |
|
138 | + public function update(&$subscription) { |
|
139 | 139 | global $wpdb; |
140 | 140 | |
141 | 141 | $changes = $subscription->get_changes(); |
142 | 142 | $values = array(); |
143 | 143 | $formats = array(); |
144 | 144 | |
145 | - foreach ( $this->database_fields_to_data_type as $key => $format ) { |
|
146 | - if ( array_key_exists( $key, $changes ) ) { |
|
145 | + foreach ($this->database_fields_to_data_type as $key => $format) { |
|
146 | + if (array_key_exists($key, $changes)) { |
|
147 | 147 | $method = "get_$key"; |
148 | - $values[ $key ] = $subscription->$method( 'edit' ); |
|
148 | + $values[$key] = $subscription->$method('edit'); |
|
149 | 149 | $formats[] = $format; |
150 | 150 | } |
151 | 151 | } |
152 | 152 | |
153 | - if ( empty( $values ) ) { |
|
153 | + if (empty($values)) { |
|
154 | 154 | return; |
155 | 155 | } |
156 | 156 | |
@@ -170,11 +170,11 @@ discard block |
||
170 | 170 | // Delete cache. |
171 | 171 | $subscription->clear_cache(); |
172 | 172 | |
173 | - update_post_meta( $subscription->get_parent_invoice_id(), '_wpinv_subscr_profile_id', $subscription->get_profile_id() ); |
|
174 | - update_post_meta( $subscription->get_parent_invoice_id(), '_wpinv_subscription_id', $subscription->get_id() ); |
|
173 | + update_post_meta($subscription->get_parent_invoice_id(), '_wpinv_subscr_profile_id', $subscription->get_profile_id()); |
|
174 | + update_post_meta($subscription->get_parent_invoice_id(), '_wpinv_subscription_id', $subscription->get_id()); |
|
175 | 175 | |
176 | 176 | // Fire a hook. |
177 | - do_action( 'getpaid_update_subscription', $subscription ); |
|
177 | + do_action('getpaid_update_subscription', $subscription); |
|
178 | 178 | |
179 | 179 | } |
180 | 180 | |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * |
184 | 184 | * @param WPInv_Subscription $subscription |
185 | 185 | */ |
186 | - public function delete( &$subscription ) { |
|
186 | + public function delete(&$subscription) { |
|
187 | 187 | global $wpdb; |
188 | 188 | |
189 | 189 | $wpdb->query( |
@@ -194,16 +194,16 @@ discard block |
||
194 | 194 | ) |
195 | 195 | ); |
196 | 196 | |
197 | - delete_post_meta( $subscription->get_parent_invoice_id(), '_wpinv_subscr_profile_id' ); |
|
198 | - delete_post_meta( $subscription->get_parent_invoice_id(), '_wpinv_subscription_id' ); |
|
197 | + delete_post_meta($subscription->get_parent_invoice_id(), '_wpinv_subscr_profile_id'); |
|
198 | + delete_post_meta($subscription->get_parent_invoice_id(), '_wpinv_subscription_id'); |
|
199 | 199 | |
200 | 200 | // Delete cache. |
201 | 201 | $subscription->clear_cache(); |
202 | 202 | |
203 | 203 | // Fire a hook. |
204 | - do_action( 'getpaid_delete_subscription', $subscription ); |
|
204 | + do_action('getpaid_delete_subscription', $subscription); |
|
205 | 205 | |
206 | - $subscription->set_id( 0 ); |
|
206 | + $subscription->set_id(0); |
|
207 | 207 | } |
208 | 208 | |
209 | 209 | /* |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | * GetPaid_Discount_Data_Store class file. |
5 | 5 | * |
6 | 6 | */ |
7 | -if ( ! defined( 'ABSPATH' ) ) { |
|
7 | +if (!defined('ABSPATH')) { |
|
8 | 8 | exit; |
9 | 9 | } |
10 | 10 | |
@@ -73,38 +73,38 @@ discard block |
||
73 | 73 | * |
74 | 74 | * @param WPInv_Discount $discount Discount object. |
75 | 75 | */ |
76 | - public function create( &$discount ) { |
|
77 | - $discount->set_version( WPINV_VERSION ); |
|
78 | - $discount->set_date_created( current_time( 'mysql' ) ); |
|
76 | + public function create(&$discount) { |
|
77 | + $discount->set_version(WPINV_VERSION); |
|
78 | + $discount->set_date_created(current_time('mysql')); |
|
79 | 79 | |
80 | 80 | // Create a new post. |
81 | 81 | $id = wp_insert_post( |
82 | 82 | apply_filters( |
83 | 83 | 'getpaid_new_discount_data', |
84 | 84 | array( |
85 | - 'post_date' => $discount->get_date_created( 'edit' ), |
|
85 | + 'post_date' => $discount->get_date_created('edit'), |
|
86 | 86 | 'post_type' => 'wpi_discount', |
87 | - 'post_status' => $this->get_post_status( $discount ), |
|
87 | + 'post_status' => $this->get_post_status($discount), |
|
88 | 88 | 'ping_status' => 'closed', |
89 | - 'post_author' => $discount->get_author( 'edit' ), |
|
90 | - 'post_title' => $discount->get_name( 'edit' ), |
|
91 | - 'post_excerpt' => $discount->get_description( 'edit' ), |
|
89 | + 'post_author' => $discount->get_author('edit'), |
|
90 | + 'post_title' => $discount->get_name('edit'), |
|
91 | + 'post_excerpt' => $discount->get_description('edit'), |
|
92 | 92 | ) |
93 | 93 | ), |
94 | 94 | true |
95 | 95 | ); |
96 | 96 | |
97 | - if ( $id && ! is_wp_error( $id ) ) { |
|
98 | - $discount->set_id( $id ); |
|
99 | - $this->update_post_meta( $discount ); |
|
97 | + if ($id && !is_wp_error($id)) { |
|
98 | + $discount->set_id($id); |
|
99 | + $this->update_post_meta($discount); |
|
100 | 100 | $discount->save_meta_data(); |
101 | 101 | $discount->apply_changes(); |
102 | - $this->clear_caches( $discount ); |
|
103 | - do_action( 'getpaid_new_discount', $discount ); |
|
102 | + $this->clear_caches($discount); |
|
103 | + do_action('getpaid_new_discount', $discount); |
|
104 | 104 | return true; |
105 | 105 | } |
106 | 106 | |
107 | - if ( is_wp_error( $id ) ) { |
|
107 | + if (is_wp_error($id)) { |
|
108 | 108 | $discount->last_error = $id->get_error_message(); |
109 | 109 | } |
110 | 110 | |
@@ -117,14 +117,14 @@ discard block |
||
117 | 117 | * @param WPInv_Discount $discount Discount object. |
118 | 118 | * |
119 | 119 | */ |
120 | - public function read( &$discount ) { |
|
120 | + public function read(&$discount) { |
|
121 | 121 | |
122 | 122 | $discount->set_defaults(); |
123 | - $discount_object = get_post( $discount->get_id() ); |
|
123 | + $discount_object = get_post($discount->get_id()); |
|
124 | 124 | |
125 | - if ( ! $discount->get_id() || ! $discount_object || $discount_object->post_type != 'wpi_discount' ) { |
|
126 | - $discount->last_error = __( 'Invalid discount.', 'invoicing' ); |
|
127 | - $discount->set_id( 0 ); |
|
125 | + if (!$discount->get_id() || !$discount_object || $discount_object->post_type != 'wpi_discount') { |
|
126 | + $discount->last_error = __('Invalid discount.', 'invoicing'); |
|
127 | + $discount->set_id(0); |
|
128 | 128 | return false; |
129 | 129 | } |
130 | 130 | |
@@ -139,10 +139,10 @@ discard block |
||
139 | 139 | ) |
140 | 140 | ); |
141 | 141 | |
142 | - $this->read_object_data( $discount, $discount_object ); |
|
142 | + $this->read_object_data($discount, $discount_object); |
|
143 | 143 | $discount->read_meta_data(); |
144 | - $discount->set_object_read( true ); |
|
145 | - do_action( 'getpaid_read_discount', $discount ); |
|
144 | + $discount->set_object_read(true); |
|
145 | + do_action('getpaid_read_discount', $discount); |
|
146 | 146 | |
147 | 147 | } |
148 | 148 | |
@@ -151,28 +151,28 @@ discard block |
||
151 | 151 | * |
152 | 152 | * @param WPInv_Discount $discount Discount object. |
153 | 153 | */ |
154 | - public function update( &$discount ) { |
|
154 | + public function update(&$discount) { |
|
155 | 155 | $discount->save_meta_data(); |
156 | - $discount->set_version( WPINV_VERSION ); |
|
156 | + $discount->set_version(WPINV_VERSION); |
|
157 | 157 | |
158 | - if ( null === $discount->get_date_created( 'edit' ) ) { |
|
159 | - $discount->set_date_created( current_time( 'mysql' ) ); |
|
158 | + if (null === $discount->get_date_created('edit')) { |
|
159 | + $discount->set_date_created(current_time('mysql')); |
|
160 | 160 | } |
161 | 161 | |
162 | 162 | // Grab the current status so we can compare. |
163 | - $previous_status = get_post_status( $discount->get_id() ); |
|
163 | + $previous_status = get_post_status($discount->get_id()); |
|
164 | 164 | |
165 | 165 | $changes = $discount->get_changes(); |
166 | 166 | |
167 | 167 | // Only update the post when the post data changes. |
168 | - if ( array_intersect( array( 'date_created', 'date_modified', 'status', 'name', 'author', 'post_excerpt' ), array_keys( $changes ) ) ) { |
|
168 | + if (array_intersect(array('date_created', 'date_modified', 'status', 'name', 'author', 'post_excerpt'), array_keys($changes))) { |
|
169 | 169 | $post_data = array( |
170 | - 'post_date' => $discount->get_date_created( 'edit' ), |
|
171 | - 'post_status' => $discount->get_status( 'edit' ), |
|
172 | - 'post_title' => $discount->get_name( 'edit' ), |
|
173 | - 'post_author' => $discount->get_author( 'edit' ), |
|
174 | - 'post_modified' => $discount->get_date_modified( 'edit' ), |
|
175 | - 'post_excerpt' => $discount->get_description( 'edit' ), |
|
170 | + 'post_date' => $discount->get_date_created('edit'), |
|
171 | + 'post_status' => $discount->get_status('edit'), |
|
172 | + 'post_title' => $discount->get_name('edit'), |
|
173 | + 'post_author' => $discount->get_author('edit'), |
|
174 | + 'post_modified' => $discount->get_date_modified('edit'), |
|
175 | + 'post_excerpt' => $discount->get_description('edit'), |
|
176 | 176 | ); |
177 | 177 | |
178 | 178 | /** |
@@ -183,25 +183,25 @@ discard block |
||
183 | 183 | * This ensures hooks are fired by either WP itself (admin screen save), |
184 | 184 | * or an update purely from CRUD. |
185 | 185 | */ |
186 | - if ( doing_action( 'save_post' ) ) { |
|
187 | - $GLOBALS['wpdb']->update( $GLOBALS['wpdb']->posts, $post_data, array( 'ID' => $discount->get_id() ) ); |
|
188 | - clean_post_cache( $discount->get_id() ); |
|
186 | + if (doing_action('save_post')) { |
|
187 | + $GLOBALS['wpdb']->update($GLOBALS['wpdb']->posts, $post_data, array('ID' => $discount->get_id())); |
|
188 | + clean_post_cache($discount->get_id()); |
|
189 | 189 | } else { |
190 | - wp_update_post( array_merge( array( 'ID' => $discount->get_id() ), $post_data ) ); |
|
190 | + wp_update_post(array_merge(array('ID' => $discount->get_id()), $post_data)); |
|
191 | 191 | } |
192 | - $discount->read_meta_data( true ); // Refresh internal meta data, in case things were hooked into `save_post` or another WP hook. |
|
192 | + $discount->read_meta_data(true); // Refresh internal meta data, in case things were hooked into `save_post` or another WP hook. |
|
193 | 193 | } |
194 | - $this->update_post_meta( $discount ); |
|
194 | + $this->update_post_meta($discount); |
|
195 | 195 | $discount->apply_changes(); |
196 | - $this->clear_caches( $discount ); |
|
196 | + $this->clear_caches($discount); |
|
197 | 197 | |
198 | 198 | // Fire a hook depending on the status - this should be considered a creation if it was previously draft status. |
199 | - $new_status = $discount->get_status( 'edit' ); |
|
199 | + $new_status = $discount->get_status('edit'); |
|
200 | 200 | |
201 | - if ( $new_status !== $previous_status && in_array( $previous_status, array( 'new', 'auto-draft', 'draft' ), true ) ) { |
|
202 | - do_action( 'getpaid_new_discount', $discount ); |
|
201 | + if ($new_status !== $previous_status && in_array($previous_status, array('new', 'auto-draft', 'draft'), true)) { |
|
202 | + do_action('getpaid_new_discount', $discount); |
|
203 | 203 | } else { |
204 | - do_action( 'getpaid_update_discount', $discount ); |
|
204 | + do_action('getpaid_update_discount', $discount); |
|
205 | 205 | } |
206 | 206 | |
207 | 207 | } |
@@ -9,259 +9,259 @@ |
||
9 | 9 | * @version 1.0.14 |
10 | 10 | */ |
11 | 11 | |
12 | -defined( 'ABSPATH' ) || exit; |
|
12 | +defined('ABSPATH') || exit; |
|
13 | 13 | |
14 | 14 | return array( |
15 | - 'US' => __( 'United States', 'invoicing' ), |
|
16 | - 'CA' => __( 'Canada', 'invoicing' ), |
|
17 | - 'GB' => __( 'United Kingdom', 'invoicing' ), |
|
18 | - 'AF' => __( 'Afghanistan', 'invoicing' ), |
|
19 | - 'AX' => __( 'Aland Islands', 'invoicing' ), |
|
20 | - 'AL' => __( 'Albania', 'invoicing' ), |
|
21 | - 'DZ' => __( 'Algeria', 'invoicing' ), |
|
22 | - 'AS' => __( 'American Samoa', 'invoicing' ), |
|
23 | - 'AD' => __( 'Andorra', 'invoicing' ), |
|
24 | - 'AO' => __( 'Angola', 'invoicing' ), |
|
25 | - 'AI' => __( 'Anguilla', 'invoicing' ), |
|
26 | - 'AQ' => __( 'Antarctica', 'invoicing' ), |
|
27 | - 'AG' => __( 'Antigua and Barbuda', 'invoicing' ), |
|
28 | - 'AR' => __( 'Argentina', 'invoicing' ), |
|
29 | - 'AM' => __( 'Armenia', 'invoicing' ), |
|
30 | - 'AW' => __( 'Aruba', 'invoicing' ), |
|
31 | - 'AU' => __( 'Australia', 'invoicing' ), |
|
32 | - 'AT' => __( 'Austria', 'invoicing' ), |
|
33 | - 'AZ' => __( 'Azerbaijan', 'invoicing' ), |
|
34 | - 'BS' => __( 'Bahamas', 'invoicing' ), |
|
35 | - 'BH' => __( 'Bahrain', 'invoicing' ), |
|
36 | - 'BD' => __( 'Bangladesh', 'invoicing' ), |
|
37 | - 'BB' => __( 'Barbados', 'invoicing' ), |
|
38 | - 'BY' => __( 'Belarus', 'invoicing' ), |
|
39 | - 'BE' => __( 'Belgium', 'invoicing' ), |
|
40 | - 'BZ' => __( 'Belize', 'invoicing' ), |
|
41 | - 'BJ' => __( 'Benin', 'invoicing' ), |
|
42 | - 'BM' => __( 'Bermuda', 'invoicing' ), |
|
43 | - 'BT' => __( 'Bhutan', 'invoicing' ), |
|
44 | - 'BO' => __( 'Bolivia', 'invoicing' ), |
|
45 | - 'BQ' => __( 'Bonaire, Saint Eustatius and Saba', 'invoicing' ), |
|
46 | - 'BA' => __( 'Bosnia and Herzegovina', 'invoicing' ), |
|
47 | - 'BW' => __( 'Botswana', 'invoicing' ), |
|
48 | - 'BV' => __( 'Bouvet Island', 'invoicing' ), |
|
49 | - 'BR' => __( 'Brazil', 'invoicing' ), |
|
50 | - 'IO' => __( 'British Indian Ocean Territory', 'invoicing' ), |
|
51 | - 'BN' => __( 'Brunei Darrussalam', 'invoicing' ), |
|
52 | - 'BG' => __( 'Bulgaria', 'invoicing' ), |
|
53 | - 'BF' => __( 'Burkina Faso', 'invoicing' ), |
|
54 | - 'BI' => __( 'Burundi', 'invoicing' ), |
|
55 | - 'KH' => __( 'Cambodia', 'invoicing' ), |
|
56 | - 'CM' => __( 'Cameroon', 'invoicing' ), |
|
57 | - 'CV' => __( 'Cape Verde', 'invoicing' ), |
|
58 | - 'KY' => __( 'Cayman Islands', 'invoicing' ), |
|
59 | - 'CF' => __( 'Central African Republic', 'invoicing' ), |
|
60 | - 'TD' => __( 'Chad', 'invoicing' ), |
|
61 | - 'CL' => __( 'Chile', 'invoicing' ), |
|
62 | - 'CN' => __( 'China', 'invoicing' ), |
|
63 | - 'CX' => __( 'Christmas Island', 'invoicing' ), |
|
64 | - 'CC' => __( 'Cocos Islands', 'invoicing' ), |
|
65 | - 'CO' => __( 'Colombia', 'invoicing' ), |
|
66 | - 'KM' => __( 'Comoros', 'invoicing' ), |
|
67 | - 'CD' => __( 'Congo, Democratic People\'s Republic', 'invoicing' ), |
|
68 | - 'CG' => __( 'Congo, Republic of', 'invoicing' ), |
|
69 | - 'CK' => __( 'Cook Islands', 'invoicing' ), |
|
70 | - 'CR' => __( 'Costa Rica', 'invoicing' ), |
|
71 | - 'CI' => __( 'Cote d\'Ivoire', 'invoicing' ), |
|
72 | - 'HR' => __( 'Croatia/Hrvatska', 'invoicing' ), |
|
73 | - 'CU' => __( 'Cuba', 'invoicing' ), |
|
74 | - 'CW' => __( 'CuraÇao', 'invoicing' ), |
|
75 | - 'CY' => __( 'Cyprus', 'invoicing' ), |
|
76 | - 'CZ' => __( 'Czech Republic', 'invoicing' ), |
|
77 | - 'DK' => __( 'Denmark', 'invoicing' ), |
|
78 | - 'DJ' => __( 'Djibouti', 'invoicing' ), |
|
79 | - 'DM' => __( 'Dominica', 'invoicing' ), |
|
80 | - 'DO' => __( 'Dominican Republic', 'invoicing' ), |
|
81 | - 'TP' => __( 'East Timor', 'invoicing' ), |
|
82 | - 'EC' => __( 'Ecuador', 'invoicing' ), |
|
83 | - 'EG' => __( 'Egypt', 'invoicing' ), |
|
84 | - 'GQ' => __( 'Equatorial Guinea', 'invoicing' ), |
|
85 | - 'SV' => __( 'El Salvador', 'invoicing' ), |
|
86 | - 'ER' => __( 'Eritrea', 'invoicing' ), |
|
87 | - 'EE' => __( 'Estonia', 'invoicing' ), |
|
88 | - 'ET' => __( 'Ethiopia', 'invoicing' ), |
|
89 | - 'FK' => __( 'Falkland Islands', 'invoicing' ), |
|
90 | - 'FO' => __( 'Faroe Islands', 'invoicing' ), |
|
91 | - 'FJ' => __( 'Fiji', 'invoicing' ), |
|
92 | - 'FI' => __( 'Finland', 'invoicing' ), |
|
93 | - 'FR' => __( 'France', 'invoicing' ), |
|
94 | - 'GF' => __( 'French Guiana', 'invoicing' ), |
|
95 | - 'PF' => __( 'French Polynesia', 'invoicing' ), |
|
96 | - 'TF' => __( 'French Southern Territories', 'invoicing' ), |
|
97 | - 'GA' => __( 'Gabon', 'invoicing' ), |
|
98 | - 'GM' => __( 'Gambia', 'invoicing' ), |
|
99 | - 'GE' => __( 'Georgia', 'invoicing' ), |
|
100 | - 'DE' => __( 'Germany', 'invoicing' ), |
|
101 | - 'GR' => __( 'Greece', 'invoicing' ), |
|
102 | - 'GH' => __( 'Ghana', 'invoicing' ), |
|
103 | - 'GI' => __( 'Gibraltar', 'invoicing' ), |
|
104 | - 'GL' => __( 'Greenland', 'invoicing' ), |
|
105 | - 'GD' => __( 'Grenada', 'invoicing' ), |
|
106 | - 'GP' => __( 'Guadeloupe', 'invoicing' ), |
|
107 | - 'GU' => __( 'Guam', 'invoicing' ), |
|
108 | - 'GT' => __( 'Guatemala', 'invoicing' ), |
|
109 | - 'GG' => __( 'Guernsey', 'invoicing' ), |
|
110 | - 'GN' => __( 'Guinea', 'invoicing' ), |
|
111 | - 'GW' => __( 'Guinea-Bissau', 'invoicing' ), |
|
112 | - 'GY' => __( 'Guyana', 'invoicing' ), |
|
113 | - 'HT' => __( 'Haiti', 'invoicing' ), |
|
114 | - 'HM' => __( 'Heard and McDonald Islands', 'invoicing' ), |
|
115 | - 'VA' => __( 'Holy See (City Vatican State)', 'invoicing' ), |
|
116 | - 'HN' => __( 'Honduras', 'invoicing' ), |
|
117 | - 'HK' => __( 'Hong Kong', 'invoicing' ), |
|
118 | - 'HU' => __( 'Hungary', 'invoicing' ), |
|
119 | - 'IS' => __( 'Iceland', 'invoicing' ), |
|
120 | - 'IN' => __( 'India', 'invoicing' ), |
|
121 | - 'ID' => __( 'Indonesia', 'invoicing' ), |
|
122 | - 'IR' => __( 'Iran', 'invoicing' ), |
|
123 | - 'IQ' => __( 'Iraq', 'invoicing' ), |
|
124 | - 'IE' => __( 'Ireland', 'invoicing' ), |
|
125 | - 'IM' => __( 'Isle of Man', 'invoicing' ), |
|
126 | - 'IL' => __( 'Israel', 'invoicing' ), |
|
127 | - 'IT' => __( 'Italy', 'invoicing' ), |
|
128 | - 'JM' => __( 'Jamaica', 'invoicing' ), |
|
129 | - 'JP' => __( 'Japan', 'invoicing' ), |
|
130 | - 'JE' => __( 'Jersey', 'invoicing' ), |
|
131 | - 'JO' => __( 'Jordan', 'invoicing' ), |
|
132 | - 'KZ' => __( 'Kazakhstan', 'invoicing' ), |
|
133 | - 'KE' => __( 'Kenya', 'invoicing' ), |
|
134 | - 'KI' => __( 'Kiribati', 'invoicing' ), |
|
135 | - 'KW' => __( 'Kuwait', 'invoicing' ), |
|
136 | - 'KG' => __( 'Kyrgyzstan', 'invoicing' ), |
|
137 | - 'LA' => __( 'Lao People\'s Democratic Republic', 'invoicing' ), |
|
138 | - 'LV' => __( 'Latvia', 'invoicing' ), |
|
139 | - 'LB' => __( 'Lebanon', 'invoicing' ), |
|
140 | - 'LS' => __( 'Lesotho', 'invoicing' ), |
|
141 | - 'LR' => __( 'Liberia', 'invoicing' ), |
|
142 | - 'LY' => __( 'Libyan Arab Jamahiriya', 'invoicing' ), |
|
143 | - 'LI' => __( 'Liechtenstein', 'invoicing' ), |
|
144 | - 'LT' => __( 'Lithuania', 'invoicing' ), |
|
145 | - 'LU' => __( 'Luxembourg', 'invoicing' ), |
|
146 | - 'MO' => __( 'Macau', 'invoicing' ), |
|
147 | - 'MK' => __( 'Macedonia', 'invoicing' ), |
|
148 | - 'MG' => __( 'Madagascar', 'invoicing' ), |
|
149 | - 'MW' => __( 'Malawi', 'invoicing' ), |
|
150 | - 'MY' => __( 'Malaysia', 'invoicing' ), |
|
151 | - 'MV' => __( 'Maldives', 'invoicing' ), |
|
152 | - 'ML' => __( 'Mali', 'invoicing' ), |
|
153 | - 'MT' => __( 'Malta', 'invoicing' ), |
|
154 | - 'MH' => __( 'Marshall Islands', 'invoicing' ), |
|
155 | - 'MQ' => __( 'Martinique', 'invoicing' ), |
|
156 | - 'MR' => __( 'Mauritania', 'invoicing' ), |
|
157 | - 'MU' => __( 'Mauritius', 'invoicing' ), |
|
158 | - 'YT' => __( 'Mayotte', 'invoicing' ), |
|
159 | - 'MX' => __( 'Mexico', 'invoicing' ), |
|
160 | - 'FM' => __( 'Micronesia', 'invoicing' ), |
|
161 | - 'MD' => __( 'Moldova, Republic of', 'invoicing' ), |
|
162 | - 'MC' => __( 'Monaco', 'invoicing' ), |
|
163 | - 'MN' => __( 'Mongolia', 'invoicing' ), |
|
164 | - 'ME' => __( 'Montenegro', 'invoicing' ), |
|
165 | - 'MS' => __( 'Montserrat', 'invoicing' ), |
|
166 | - 'MA' => __( 'Morocco', 'invoicing' ), |
|
167 | - 'MZ' => __( 'Mozambique', 'invoicing' ), |
|
168 | - 'MM' => __( 'Myanmar', 'invoicing' ), |
|
169 | - 'NA' => __( 'Namibia', 'invoicing' ), |
|
170 | - 'NR' => __( 'Nauru', 'invoicing' ), |
|
171 | - 'NP' => __( 'Nepal', 'invoicing' ), |
|
172 | - 'NL' => __( 'Netherlands', 'invoicing' ), |
|
173 | - 'AN' => __( 'Netherlands Antilles', 'invoicing' ), |
|
174 | - 'NC' => __( 'New Caledonia', 'invoicing' ), |
|
175 | - 'NZ' => __( 'New Zealand', 'invoicing' ), |
|
176 | - 'NI' => __( 'Nicaragua', 'invoicing' ), |
|
177 | - 'NE' => __( 'Niger', 'invoicing' ), |
|
178 | - 'NG' => __( 'Nigeria', 'invoicing' ), |
|
179 | - 'NU' => __( 'Niue', 'invoicing' ), |
|
180 | - 'NF' => __( 'Norfolk Island', 'invoicing' ), |
|
181 | - 'KP' => __( 'North Korea', 'invoicing' ), |
|
182 | - 'MP' => __( 'Northern Mariana Islands', 'invoicing' ), |
|
183 | - 'NO' => __( 'Norway', 'invoicing' ), |
|
184 | - 'OM' => __( 'Oman', 'invoicing' ), |
|
185 | - 'PK' => __( 'Pakistan', 'invoicing' ), |
|
186 | - 'PW' => __( 'Palau', 'invoicing' ), |
|
187 | - 'PS' => __( 'Palestinian Territories', 'invoicing' ), |
|
188 | - 'PA' => __( 'Panama', 'invoicing' ), |
|
189 | - 'PG' => __( 'Papua New Guinea', 'invoicing' ), |
|
190 | - 'PY' => __( 'Paraguay', 'invoicing' ), |
|
191 | - 'PE' => __( 'Peru', 'invoicing' ), |
|
192 | - 'PH' => __( 'Philippines', 'invoicing' ), |
|
193 | - 'PN' => __( 'Pitcairn Island', 'invoicing' ), |
|
194 | - 'PL' => __( 'Poland', 'invoicing' ), |
|
195 | - 'PT' => __( 'Portugal', 'invoicing' ), |
|
196 | - 'PR' => __( 'Puerto Rico', 'invoicing' ), |
|
197 | - 'QA' => __( 'Qatar', 'invoicing' ), |
|
198 | - 'XK' => __( 'Republic of Kosovo', 'invoicing' ), |
|
199 | - 'RE' => __( 'Reunion Island', 'invoicing' ), |
|
200 | - 'RO' => __( 'Romania', 'invoicing' ), |
|
201 | - 'RU' => __( 'Russian Federation', 'invoicing' ), |
|
202 | - 'RW' => __( 'Rwanda', 'invoicing' ), |
|
203 | - 'BL' => __( 'Saint Barthélemy', 'invoicing' ), |
|
204 | - 'SH' => __( 'Saint Helena', 'invoicing' ), |
|
205 | - 'KN' => __( 'Saint Kitts and Nevis', 'invoicing' ), |
|
206 | - 'LC' => __( 'Saint Lucia', 'invoicing' ), |
|
207 | - 'MF' => __( 'Saint Martin (French)', 'invoicing' ), |
|
208 | - 'SX' => __( 'Saint Martin (Dutch)', 'invoicing' ), |
|
209 | - 'PM' => __( 'Saint Pierre and Miquelon', 'invoicing' ), |
|
210 | - 'VC' => __( 'Saint Vincent and the Grenadines', 'invoicing' ), |
|
211 | - 'SM' => __( 'San Marino', 'invoicing' ), |
|
212 | - 'ST' => __( 'São Tomé and Príncipe', 'invoicing' ), |
|
213 | - 'SA' => __( 'Saudi Arabia', 'invoicing' ), |
|
214 | - 'SN' => __( 'Senegal', 'invoicing' ), |
|
215 | - 'RS' => __( 'Serbia', 'invoicing' ), |
|
216 | - 'SC' => __( 'Seychelles', 'invoicing' ), |
|
217 | - 'SL' => __( 'Sierra Leone', 'invoicing' ), |
|
218 | - 'SG' => __( 'Singapore', 'invoicing' ), |
|
219 | - 'SK' => __( 'Slovak Republic', 'invoicing' ), |
|
220 | - 'SI' => __( 'Slovenia', 'invoicing' ), |
|
221 | - 'SB' => __( 'Solomon Islands', 'invoicing' ), |
|
222 | - 'SO' => __( 'Somalia', 'invoicing' ), |
|
223 | - 'ZA' => __( 'South Africa', 'invoicing' ), |
|
224 | - 'GS' => __( 'South Georgia', 'invoicing' ), |
|
225 | - 'KR' => __( 'South Korea', 'invoicing' ), |
|
226 | - 'SS' => __( 'South Sudan', 'invoicing' ), |
|
227 | - 'ES' => __( 'Spain', 'invoicing' ), |
|
228 | - 'LK' => __( 'Sri Lanka', 'invoicing' ), |
|
229 | - 'SD' => __( 'Sudan', 'invoicing' ), |
|
230 | - 'SR' => __( 'Suriname', 'invoicing' ), |
|
231 | - 'SJ' => __( 'Svalbard and Jan Mayen Islands', 'invoicing' ), |
|
232 | - 'SZ' => __( 'Swaziland', 'invoicing' ), |
|
233 | - 'SE' => __( 'Sweden', 'invoicing' ), |
|
234 | - 'CH' => __( 'Switzerland', 'invoicing' ), |
|
235 | - 'SY' => __( 'Syrian Arab Republic', 'invoicing' ), |
|
236 | - 'TW' => __( 'Taiwan', 'invoicing' ), |
|
237 | - 'TJ' => __( 'Tajikistan', 'invoicing' ), |
|
238 | - 'TZ' => __( 'Tanzania', 'invoicing' ), |
|
239 | - 'TH' => __( 'Thailand', 'invoicing' ), |
|
240 | - 'TL' => __( 'Timor-Leste', 'invoicing' ), |
|
241 | - 'TG' => __( 'Togo', 'invoicing' ), |
|
242 | - 'TK' => __( 'Tokelau', 'invoicing' ), |
|
243 | - 'TO' => __( 'Tonga', 'invoicing' ), |
|
244 | - 'TT' => __( 'Trinidad and Tobago', 'invoicing' ), |
|
245 | - 'TN' => __( 'Tunisia', 'invoicing' ), |
|
246 | - 'TR' => __( 'Turkey', 'invoicing' ), |
|
247 | - 'TM' => __( 'Turkmenistan', 'invoicing' ), |
|
248 | - 'TC' => __( 'Turks and Caicos Islands', 'invoicing' ), |
|
249 | - 'TV' => __( 'Tuvalu', 'invoicing' ), |
|
250 | - 'UG' => __( 'Uganda', 'invoicing' ), |
|
251 | - 'UA' => __( 'Ukraine', 'invoicing' ), |
|
252 | - 'AE' => __( 'United Arab Emirates', 'invoicing' ), |
|
253 | - 'UY' => __( 'Uruguay', 'invoicing' ), |
|
254 | - 'UM' => __( 'US Minor Outlying Islands', 'invoicing' ), |
|
255 | - 'UZ' => __( 'Uzbekistan', 'invoicing' ), |
|
256 | - 'VU' => __( 'Vanuatu', 'invoicing' ), |
|
257 | - 'VE' => __( 'Venezuela', 'invoicing' ), |
|
258 | - 'VN' => __( 'Vietnam', 'invoicing' ), |
|
259 | - 'VG' => __( 'Virgin Islands (British)', 'invoicing' ), |
|
260 | - 'VI' => __( 'Virgin Islands (USA)', 'invoicing' ), |
|
261 | - 'WF' => __( 'Wallis and Futuna Islands', 'invoicing' ), |
|
262 | - 'EH' => __( 'Western Sahara', 'invoicing' ), |
|
263 | - 'WS' => __( 'Western Samoa', 'invoicing' ), |
|
264 | - 'YE' => __( 'Yemen', 'invoicing' ), |
|
265 | - 'ZM' => __( 'Zambia', 'invoicing' ), |
|
266 | - 'ZW' => __( 'Zimbabwe', 'invoicing' ), |
|
15 | + 'US' => __('United States', 'invoicing'), |
|
16 | + 'CA' => __('Canada', 'invoicing'), |
|
17 | + 'GB' => __('United Kingdom', 'invoicing'), |
|
18 | + 'AF' => __('Afghanistan', 'invoicing'), |
|
19 | + 'AX' => __('Aland Islands', 'invoicing'), |
|
20 | + 'AL' => __('Albania', 'invoicing'), |
|
21 | + 'DZ' => __('Algeria', 'invoicing'), |
|
22 | + 'AS' => __('American Samoa', 'invoicing'), |
|
23 | + 'AD' => __('Andorra', 'invoicing'), |
|
24 | + 'AO' => __('Angola', 'invoicing'), |
|
25 | + 'AI' => __('Anguilla', 'invoicing'), |
|
26 | + 'AQ' => __('Antarctica', 'invoicing'), |
|
27 | + 'AG' => __('Antigua and Barbuda', 'invoicing'), |
|
28 | + 'AR' => __('Argentina', 'invoicing'), |
|
29 | + 'AM' => __('Armenia', 'invoicing'), |
|
30 | + 'AW' => __('Aruba', 'invoicing'), |
|
31 | + 'AU' => __('Australia', 'invoicing'), |
|
32 | + 'AT' => __('Austria', 'invoicing'), |
|
33 | + 'AZ' => __('Azerbaijan', 'invoicing'), |
|
34 | + 'BS' => __('Bahamas', 'invoicing'), |
|
35 | + 'BH' => __('Bahrain', 'invoicing'), |
|
36 | + 'BD' => __('Bangladesh', 'invoicing'), |
|
37 | + 'BB' => __('Barbados', 'invoicing'), |
|
38 | + 'BY' => __('Belarus', 'invoicing'), |
|
39 | + 'BE' => __('Belgium', 'invoicing'), |
|
40 | + 'BZ' => __('Belize', 'invoicing'), |
|
41 | + 'BJ' => __('Benin', 'invoicing'), |
|
42 | + 'BM' => __('Bermuda', 'invoicing'), |
|
43 | + 'BT' => __('Bhutan', 'invoicing'), |
|
44 | + 'BO' => __('Bolivia', 'invoicing'), |
|
45 | + 'BQ' => __('Bonaire, Saint Eustatius and Saba', 'invoicing'), |
|
46 | + 'BA' => __('Bosnia and Herzegovina', 'invoicing'), |
|
47 | + 'BW' => __('Botswana', 'invoicing'), |
|
48 | + 'BV' => __('Bouvet Island', 'invoicing'), |
|
49 | + 'BR' => __('Brazil', 'invoicing'), |
|
50 | + 'IO' => __('British Indian Ocean Territory', 'invoicing'), |
|
51 | + 'BN' => __('Brunei Darrussalam', 'invoicing'), |
|
52 | + 'BG' => __('Bulgaria', 'invoicing'), |
|
53 | + 'BF' => __('Burkina Faso', 'invoicing'), |
|
54 | + 'BI' => __('Burundi', 'invoicing'), |
|
55 | + 'KH' => __('Cambodia', 'invoicing'), |
|
56 | + 'CM' => __('Cameroon', 'invoicing'), |
|
57 | + 'CV' => __('Cape Verde', 'invoicing'), |
|
58 | + 'KY' => __('Cayman Islands', 'invoicing'), |
|
59 | + 'CF' => __('Central African Republic', 'invoicing'), |
|
60 | + 'TD' => __('Chad', 'invoicing'), |
|
61 | + 'CL' => __('Chile', 'invoicing'), |
|
62 | + 'CN' => __('China', 'invoicing'), |
|
63 | + 'CX' => __('Christmas Island', 'invoicing'), |
|
64 | + 'CC' => __('Cocos Islands', 'invoicing'), |
|
65 | + 'CO' => __('Colombia', 'invoicing'), |
|
66 | + 'KM' => __('Comoros', 'invoicing'), |
|
67 | + 'CD' => __('Congo, Democratic People\'s Republic', 'invoicing'), |
|
68 | + 'CG' => __('Congo, Republic of', 'invoicing'), |
|
69 | + 'CK' => __('Cook Islands', 'invoicing'), |
|
70 | + 'CR' => __('Costa Rica', 'invoicing'), |
|
71 | + 'CI' => __('Cote d\'Ivoire', 'invoicing'), |
|
72 | + 'HR' => __('Croatia/Hrvatska', 'invoicing'), |
|
73 | + 'CU' => __('Cuba', 'invoicing'), |
|
74 | + 'CW' => __('CuraÇao', 'invoicing'), |
|
75 | + 'CY' => __('Cyprus', 'invoicing'), |
|
76 | + 'CZ' => __('Czech Republic', 'invoicing'), |
|
77 | + 'DK' => __('Denmark', 'invoicing'), |
|
78 | + 'DJ' => __('Djibouti', 'invoicing'), |
|
79 | + 'DM' => __('Dominica', 'invoicing'), |
|
80 | + 'DO' => __('Dominican Republic', 'invoicing'), |
|
81 | + 'TP' => __('East Timor', 'invoicing'), |
|
82 | + 'EC' => __('Ecuador', 'invoicing'), |
|
83 | + 'EG' => __('Egypt', 'invoicing'), |
|
84 | + 'GQ' => __('Equatorial Guinea', 'invoicing'), |
|
85 | + 'SV' => __('El Salvador', 'invoicing'), |
|
86 | + 'ER' => __('Eritrea', 'invoicing'), |
|
87 | + 'EE' => __('Estonia', 'invoicing'), |
|
88 | + 'ET' => __('Ethiopia', 'invoicing'), |
|
89 | + 'FK' => __('Falkland Islands', 'invoicing'), |
|
90 | + 'FO' => __('Faroe Islands', 'invoicing'), |
|
91 | + 'FJ' => __('Fiji', 'invoicing'), |
|
92 | + 'FI' => __('Finland', 'invoicing'), |
|
93 | + 'FR' => __('France', 'invoicing'), |
|
94 | + 'GF' => __('French Guiana', 'invoicing'), |
|
95 | + 'PF' => __('French Polynesia', 'invoicing'), |
|
96 | + 'TF' => __('French Southern Territories', 'invoicing'), |
|
97 | + 'GA' => __('Gabon', 'invoicing'), |
|
98 | + 'GM' => __('Gambia', 'invoicing'), |
|
99 | + 'GE' => __('Georgia', 'invoicing'), |
|
100 | + 'DE' => __('Germany', 'invoicing'), |
|
101 | + 'GR' => __('Greece', 'invoicing'), |
|
102 | + 'GH' => __('Ghana', 'invoicing'), |
|
103 | + 'GI' => __('Gibraltar', 'invoicing'), |
|
104 | + 'GL' => __('Greenland', 'invoicing'), |
|
105 | + 'GD' => __('Grenada', 'invoicing'), |
|
106 | + 'GP' => __('Guadeloupe', 'invoicing'), |
|
107 | + 'GU' => __('Guam', 'invoicing'), |
|
108 | + 'GT' => __('Guatemala', 'invoicing'), |
|
109 | + 'GG' => __('Guernsey', 'invoicing'), |
|
110 | + 'GN' => __('Guinea', 'invoicing'), |
|
111 | + 'GW' => __('Guinea-Bissau', 'invoicing'), |
|
112 | + 'GY' => __('Guyana', 'invoicing'), |
|
113 | + 'HT' => __('Haiti', 'invoicing'), |
|
114 | + 'HM' => __('Heard and McDonald Islands', 'invoicing'), |
|
115 | + 'VA' => __('Holy See (City Vatican State)', 'invoicing'), |
|
116 | + 'HN' => __('Honduras', 'invoicing'), |
|
117 | + 'HK' => __('Hong Kong', 'invoicing'), |
|
118 | + 'HU' => __('Hungary', 'invoicing'), |
|
119 | + 'IS' => __('Iceland', 'invoicing'), |
|
120 | + 'IN' => __('India', 'invoicing'), |
|
121 | + 'ID' => __('Indonesia', 'invoicing'), |
|
122 | + 'IR' => __('Iran', 'invoicing'), |
|
123 | + 'IQ' => __('Iraq', 'invoicing'), |
|
124 | + 'IE' => __('Ireland', 'invoicing'), |
|
125 | + 'IM' => __('Isle of Man', 'invoicing'), |
|
126 | + 'IL' => __('Israel', 'invoicing'), |
|
127 | + 'IT' => __('Italy', 'invoicing'), |
|
128 | + 'JM' => __('Jamaica', 'invoicing'), |
|
129 | + 'JP' => __('Japan', 'invoicing'), |
|
130 | + 'JE' => __('Jersey', 'invoicing'), |
|
131 | + 'JO' => __('Jordan', 'invoicing'), |
|
132 | + 'KZ' => __('Kazakhstan', 'invoicing'), |
|
133 | + 'KE' => __('Kenya', 'invoicing'), |
|
134 | + 'KI' => __('Kiribati', 'invoicing'), |
|
135 | + 'KW' => __('Kuwait', 'invoicing'), |
|
136 | + 'KG' => __('Kyrgyzstan', 'invoicing'), |
|
137 | + 'LA' => __('Lao People\'s Democratic Republic', 'invoicing'), |
|
138 | + 'LV' => __('Latvia', 'invoicing'), |
|
139 | + 'LB' => __('Lebanon', 'invoicing'), |
|
140 | + 'LS' => __('Lesotho', 'invoicing'), |
|
141 | + 'LR' => __('Liberia', 'invoicing'), |
|
142 | + 'LY' => __('Libyan Arab Jamahiriya', 'invoicing'), |
|
143 | + 'LI' => __('Liechtenstein', 'invoicing'), |
|
144 | + 'LT' => __('Lithuania', 'invoicing'), |
|
145 | + 'LU' => __('Luxembourg', 'invoicing'), |
|
146 | + 'MO' => __('Macau', 'invoicing'), |
|
147 | + 'MK' => __('Macedonia', 'invoicing'), |
|
148 | + 'MG' => __('Madagascar', 'invoicing'), |
|
149 | + 'MW' => __('Malawi', 'invoicing'), |
|
150 | + 'MY' => __('Malaysia', 'invoicing'), |
|
151 | + 'MV' => __('Maldives', 'invoicing'), |
|
152 | + 'ML' => __('Mali', 'invoicing'), |
|
153 | + 'MT' => __('Malta', 'invoicing'), |
|
154 | + 'MH' => __('Marshall Islands', 'invoicing'), |
|
155 | + 'MQ' => __('Martinique', 'invoicing'), |
|
156 | + 'MR' => __('Mauritania', 'invoicing'), |
|
157 | + 'MU' => __('Mauritius', 'invoicing'), |
|
158 | + 'YT' => __('Mayotte', 'invoicing'), |
|
159 | + 'MX' => __('Mexico', 'invoicing'), |
|
160 | + 'FM' => __('Micronesia', 'invoicing'), |
|
161 | + 'MD' => __('Moldova, Republic of', 'invoicing'), |
|
162 | + 'MC' => __('Monaco', 'invoicing'), |
|
163 | + 'MN' => __('Mongolia', 'invoicing'), |
|
164 | + 'ME' => __('Montenegro', 'invoicing'), |
|
165 | + 'MS' => __('Montserrat', 'invoicing'), |
|
166 | + 'MA' => __('Morocco', 'invoicing'), |
|
167 | + 'MZ' => __('Mozambique', 'invoicing'), |
|
168 | + 'MM' => __('Myanmar', 'invoicing'), |
|
169 | + 'NA' => __('Namibia', 'invoicing'), |
|
170 | + 'NR' => __('Nauru', 'invoicing'), |
|
171 | + 'NP' => __('Nepal', 'invoicing'), |
|
172 | + 'NL' => __('Netherlands', 'invoicing'), |
|
173 | + 'AN' => __('Netherlands Antilles', 'invoicing'), |
|
174 | + 'NC' => __('New Caledonia', 'invoicing'), |
|
175 | + 'NZ' => __('New Zealand', 'invoicing'), |
|
176 | + 'NI' => __('Nicaragua', 'invoicing'), |
|
177 | + 'NE' => __('Niger', 'invoicing'), |
|
178 | + 'NG' => __('Nigeria', 'invoicing'), |
|
179 | + 'NU' => __('Niue', 'invoicing'), |
|
180 | + 'NF' => __('Norfolk Island', 'invoicing'), |
|
181 | + 'KP' => __('North Korea', 'invoicing'), |
|
182 | + 'MP' => __('Northern Mariana Islands', 'invoicing'), |
|
183 | + 'NO' => __('Norway', 'invoicing'), |
|
184 | + 'OM' => __('Oman', 'invoicing'), |
|
185 | + 'PK' => __('Pakistan', 'invoicing'), |
|
186 | + 'PW' => __('Palau', 'invoicing'), |
|
187 | + 'PS' => __('Palestinian Territories', 'invoicing'), |
|
188 | + 'PA' => __('Panama', 'invoicing'), |
|
189 | + 'PG' => __('Papua New Guinea', 'invoicing'), |
|
190 | + 'PY' => __('Paraguay', 'invoicing'), |
|
191 | + 'PE' => __('Peru', 'invoicing'), |
|
192 | + 'PH' => __('Philippines', 'invoicing'), |
|
193 | + 'PN' => __('Pitcairn Island', 'invoicing'), |
|
194 | + 'PL' => __('Poland', 'invoicing'), |
|
195 | + 'PT' => __('Portugal', 'invoicing'), |
|
196 | + 'PR' => __('Puerto Rico', 'invoicing'), |
|
197 | + 'QA' => __('Qatar', 'invoicing'), |
|
198 | + 'XK' => __('Republic of Kosovo', 'invoicing'), |
|
199 | + 'RE' => __('Reunion Island', 'invoicing'), |
|
200 | + 'RO' => __('Romania', 'invoicing'), |
|
201 | + 'RU' => __('Russian Federation', 'invoicing'), |
|
202 | + 'RW' => __('Rwanda', 'invoicing'), |
|
203 | + 'BL' => __('Saint Barthélemy', 'invoicing'), |
|
204 | + 'SH' => __('Saint Helena', 'invoicing'), |
|
205 | + 'KN' => __('Saint Kitts and Nevis', 'invoicing'), |
|
206 | + 'LC' => __('Saint Lucia', 'invoicing'), |
|
207 | + 'MF' => __('Saint Martin (French)', 'invoicing'), |
|
208 | + 'SX' => __('Saint Martin (Dutch)', 'invoicing'), |
|
209 | + 'PM' => __('Saint Pierre and Miquelon', 'invoicing'), |
|
210 | + 'VC' => __('Saint Vincent and the Grenadines', 'invoicing'), |
|
211 | + 'SM' => __('San Marino', 'invoicing'), |
|
212 | + 'ST' => __('São Tomé and Príncipe', 'invoicing'), |
|
213 | + 'SA' => __('Saudi Arabia', 'invoicing'), |
|
214 | + 'SN' => __('Senegal', 'invoicing'), |
|
215 | + 'RS' => __('Serbia', 'invoicing'), |
|
216 | + 'SC' => __('Seychelles', 'invoicing'), |
|
217 | + 'SL' => __('Sierra Leone', 'invoicing'), |
|
218 | + 'SG' => __('Singapore', 'invoicing'), |
|
219 | + 'SK' => __('Slovak Republic', 'invoicing'), |
|
220 | + 'SI' => __('Slovenia', 'invoicing'), |
|
221 | + 'SB' => __('Solomon Islands', 'invoicing'), |
|
222 | + 'SO' => __('Somalia', 'invoicing'), |
|
223 | + 'ZA' => __('South Africa', 'invoicing'), |
|
224 | + 'GS' => __('South Georgia', 'invoicing'), |
|
225 | + 'KR' => __('South Korea', 'invoicing'), |
|
226 | + 'SS' => __('South Sudan', 'invoicing'), |
|
227 | + 'ES' => __('Spain', 'invoicing'), |
|
228 | + 'LK' => __('Sri Lanka', 'invoicing'), |
|
229 | + 'SD' => __('Sudan', 'invoicing'), |
|
230 | + 'SR' => __('Suriname', 'invoicing'), |
|
231 | + 'SJ' => __('Svalbard and Jan Mayen Islands', 'invoicing'), |
|
232 | + 'SZ' => __('Swaziland', 'invoicing'), |
|
233 | + 'SE' => __('Sweden', 'invoicing'), |
|
234 | + 'CH' => __('Switzerland', 'invoicing'), |
|
235 | + 'SY' => __('Syrian Arab Republic', 'invoicing'), |
|
236 | + 'TW' => __('Taiwan', 'invoicing'), |
|
237 | + 'TJ' => __('Tajikistan', 'invoicing'), |
|
238 | + 'TZ' => __('Tanzania', 'invoicing'), |
|
239 | + 'TH' => __('Thailand', 'invoicing'), |
|
240 | + 'TL' => __('Timor-Leste', 'invoicing'), |
|
241 | + 'TG' => __('Togo', 'invoicing'), |
|
242 | + 'TK' => __('Tokelau', 'invoicing'), |
|
243 | + 'TO' => __('Tonga', 'invoicing'), |
|
244 | + 'TT' => __('Trinidad and Tobago', 'invoicing'), |
|
245 | + 'TN' => __('Tunisia', 'invoicing'), |
|
246 | + 'TR' => __('Turkey', 'invoicing'), |
|
247 | + 'TM' => __('Turkmenistan', 'invoicing'), |
|
248 | + 'TC' => __('Turks and Caicos Islands', 'invoicing'), |
|
249 | + 'TV' => __('Tuvalu', 'invoicing'), |
|
250 | + 'UG' => __('Uganda', 'invoicing'), |
|
251 | + 'UA' => __('Ukraine', 'invoicing'), |
|
252 | + 'AE' => __('United Arab Emirates', 'invoicing'), |
|
253 | + 'UY' => __('Uruguay', 'invoicing'), |
|
254 | + 'UM' => __('US Minor Outlying Islands', 'invoicing'), |
|
255 | + 'UZ' => __('Uzbekistan', 'invoicing'), |
|
256 | + 'VU' => __('Vanuatu', 'invoicing'), |
|
257 | + 'VE' => __('Venezuela', 'invoicing'), |
|
258 | + 'VN' => __('Vietnam', 'invoicing'), |
|
259 | + 'VG' => __('Virgin Islands (British)', 'invoicing'), |
|
260 | + 'VI' => __('Virgin Islands (USA)', 'invoicing'), |
|
261 | + 'WF' => __('Wallis and Futuna Islands', 'invoicing'), |
|
262 | + 'EH' => __('Western Sahara', 'invoicing'), |
|
263 | + 'WS' => __('Western Samoa', 'invoicing'), |
|
264 | + 'YE' => __('Yemen', 'invoicing'), |
|
265 | + 'ZM' => __('Zambia', 'invoicing'), |
|
266 | + 'ZW' => __('Zimbabwe', 'invoicing'), |
|
267 | 267 | ); |