@@ -65,18 +65,18 @@ discard block |
||
65 | 65 | * |
66 | 66 | * @param $args |
67 | 67 | */ |
68 | - public function __construct( $args ) { |
|
68 | + public function __construct($args) { |
|
69 | 69 | |
70 | 70 | // Only for admins. |
71 | - if ( ! is_admin() ) { |
|
71 | + if ( ! is_admin()) { |
|
72 | 72 | return; |
73 | 73 | } |
74 | 74 | |
75 | - foreach ( $args as $key => $arg ) { |
|
75 | + foreach ($args as $key => $arg) { |
|
76 | 76 | $this->$key = $arg; |
77 | 77 | } |
78 | 78 | |
79 | - add_action( 'admin_init', array( $this, 'init' ) ); |
|
79 | + add_action('admin_init', array($this, 'init')); |
|
80 | 80 | |
81 | 81 | |
82 | 82 | } |
@@ -87,19 +87,19 @@ discard block |
||
87 | 87 | function init() { |
88 | 88 | |
89 | 89 | // First get user's locale (4.7+). |
90 | - $this->locale = function_exists( 'get_user_locale' ) ? get_user_locale() : get_locale(); |
|
90 | + $this->locale = function_exists('get_user_locale') ? get_user_locale() : get_locale(); |
|
91 | 91 | |
92 | 92 | // This plugin is en_US native. |
93 | - if ( 'en_US' === $this->locale ) { |
|
93 | + if ('en_US' === $this->locale) { |
|
94 | 94 | return; |
95 | 95 | } |
96 | 96 | |
97 | 97 | if ( |
98 | 98 | ! $this->hide_promo() |
99 | - && ( ! empty( $_GET['post_type'] ) && 'give_forms' === $_GET['post_type'] ) |
|
100 | - && ( ! empty( $_GET['page'] ) && 'give-settings' === $_GET['page'] ) |
|
99 | + && ( ! empty($_GET['post_type']) && 'give_forms' === $_GET['post_type']) |
|
100 | + && ( ! empty($_GET['page']) && 'give-settings' === $_GET['page']) |
|
101 | 101 | ) { |
102 | - add_action( $this->hook, array( $this, 'promo' ) ); |
|
102 | + add_action($this->hook, array($this, 'promo')); |
|
103 | 103 | } |
104 | 104 | } |
105 | 105 | |
@@ -112,11 +112,11 @@ discard block |
||
112 | 112 | * @return bool |
113 | 113 | */ |
114 | 114 | private function hide_promo() { |
115 | - $hide_promo = Give_Cache::get( 'give_i18n_give_promo_hide', true ); |
|
116 | - if ( ! $hide_promo ) { |
|
117 | - if ( filter_input( INPUT_GET, 'remove_i18n_promo', FILTER_VALIDATE_INT ) === 1 ) { |
|
115 | + $hide_promo = Give_Cache::get('give_i18n_give_promo_hide', true); |
|
116 | + if ( ! $hide_promo) { |
|
117 | + if (filter_input(INPUT_GET, 'remove_i18n_promo', FILTER_VALIDATE_INT) === 1) { |
|
118 | 118 | // No expiration time, so this would normally not expire, but it wouldn't be copied to other sites etc. |
119 | - Give_Cache::set( 'give_i18n_give_promo_hide', true, null, true ); |
|
119 | + Give_Cache::set('give_i18n_give_promo_hide', true, null, true); |
|
120 | 120 | $hide_promo = true; |
121 | 121 | } |
122 | 122 | } |
@@ -135,20 +135,20 @@ discard block |
||
135 | 135 | $message = false; |
136 | 136 | |
137 | 137 | // Using a translation less than 90% complete. |
138 | - if ( $this->translation_exists && $this->translation_loaded && $this->percent_translated < 90 ) { |
|
139 | - $message = __( 'As you can see, there is a translation of this plugin in %1$s. This translation is currently %3$d%% complete. We need your help to make it complete and to fix any errors. Please register at %4$s to help %5$s to %1$s!', 'give' ); |
|
140 | - } elseif ( ! $this->translation_loaded && $this->translation_exists ) { |
|
141 | - $message = __( 'You\'re using WordPress in %1$s. While %2$s has been %3$d%% translated to %1$s, it has not been shipped with the plugin yet. You can help! Register at %4$s to help complete the translation to %1$s!', 'give' ); |
|
142 | - } elseif ( ! $this->translation_exists ) { |
|
143 | - $message = __( 'You\'re using WordPress in a language we don\'t support yet. We\'d love for %2$s to be translated in that language too, but unfortunately, it isn\'t right now. You can change that! Register at %4$s to help translate it!', 'give' ); |
|
138 | + if ($this->translation_exists && $this->translation_loaded && $this->percent_translated < 90) { |
|
139 | + $message = __('As you can see, there is a translation of this plugin in %1$s. This translation is currently %3$d%% complete. We need your help to make it complete and to fix any errors. Please register at %4$s to help %5$s to %1$s!', 'give'); |
|
140 | + } elseif ( ! $this->translation_loaded && $this->translation_exists) { |
|
141 | + $message = __('You\'re using WordPress in %1$s. While %2$s has been %3$d%% translated to %1$s, it has not been shipped with the plugin yet. You can help! Register at %4$s to help complete the translation to %1$s!', 'give'); |
|
142 | + } elseif ( ! $this->translation_exists) { |
|
143 | + $message = __('You\'re using WordPress in a language we don\'t support yet. We\'d love for %2$s to be translated in that language too, but unfortunately, it isn\'t right now. You can change that! Register at %4$s to help translate it!', 'give'); |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | // Links. |
147 | - $registration_link = sprintf( '<a href="%1$s" target="_blank">%2$s</a>', 'https://wordpress.org/support/register.php', esc_html__( 'WordPress.org', 'give' ) ); |
|
148 | - $translations_link = sprintf( '<a href="%1$s" target="_blank">%2$s</a>', 'https://translate.wordpress.org/projects/wp-plugins/give', esc_html__( 'complete the translation', 'give' ) ); |
|
147 | + $registration_link = sprintf('<a href="%1$s" target="_blank">%2$s</a>', 'https://wordpress.org/support/register.php', esc_html__('WordPress.org', 'give')); |
|
148 | + $translations_link = sprintf('<a href="%1$s" target="_blank">%2$s</a>', 'https://translate.wordpress.org/projects/wp-plugins/give', esc_html__('complete the translation', 'give')); |
|
149 | 149 | |
150 | 150 | // Message. |
151 | - $message = sprintf( $message, $this->locale_name, 'Give', $this->percent_translated, $registration_link, $translations_link ); |
|
151 | + $message = sprintf($message, $this->locale_name, 'Give', $this->percent_translated, $registration_link, $translations_link); |
|
152 | 152 | |
153 | 153 | return $message; |
154 | 154 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | $this->translation_details(); |
163 | 163 | $message = $this->promo_message(); |
164 | 164 | |
165 | - if ( $message ) { |
|
165 | + if ($message) { |
|
166 | 166 | $this->print_css(); |
167 | 167 | |
168 | 168 | ob_start(); |
@@ -173,12 +173,12 @@ discard block |
||
173 | 173 | style="font-size: 110px; text-decoration: none;"></span></a> |
174 | 174 | |
175 | 175 | <div class="give-i18n-notice-content"> |
176 | - <a href="<?php echo esc_url( add_query_arg( array( 'remove_i18n_promo' => '1' ) ) ); ?>" class="dismiss"><span class="dashicons dashicons-dismiss"></span></a> |
|
176 | + <a href="<?php echo esc_url(add_query_arg(array('remove_i18n_promo' => '1'))); ?>" class="dismiss"><span class="dashicons dashicons-dismiss"></span></a> |
|
177 | 177 | |
178 | - <h2 style="margin: 10px 0;"><?php printf( esc_html__( 'Help Translate Give to %s', 'give' ), $this->locale_name ); ?></h2> |
|
178 | + <h2 style="margin: 10px 0;"><?php printf(esc_html__('Help Translate Give to %s', 'give'), $this->locale_name); ?></h2> |
|
179 | 179 | <p><?php echo $message; ?></p> |
180 | 180 | <p> |
181 | - <a href="https://wordpress.org/support/register.php" target="_blank"><?php _e( 'Register now »', 'give' ); ?></a> |
|
181 | + <a href="https://wordpress.org/support/register.php" target="_blank"><?php _e('Register now »', 'give'); ?></a> |
|
182 | 182 | </p> |
183 | 183 | </div> |
184 | 184 | </div> |
@@ -187,12 +187,12 @@ discard block |
||
187 | 187 | $notice_html = ob_get_clean(); |
188 | 188 | |
189 | 189 | // Register notice. |
190 | - Give()->notices->register_notice( array( |
|
190 | + Give()->notices->register_notice(array( |
|
191 | 191 | 'id' => 'give-i18n-notice', |
192 | 192 | 'type' => 'updated', |
193 | 193 | 'description_html' => $notice_html, |
194 | 194 | 'show' => true, |
195 | - ) ); |
|
195 | + )); |
|
196 | 196 | } |
197 | 197 | } |
198 | 198 | |
@@ -274,11 +274,11 @@ discard block |
||
274 | 274 | */ |
275 | 275 | private function find_or_initialize_translation_details() { |
276 | 276 | |
277 | - $set = Give_Cache::get( "give_i18n_give_{$this->locale}", true ); |
|
277 | + $set = Give_Cache::get("give_i18n_give_{$this->locale}", true); |
|
278 | 278 | |
279 | - if ( ! $set ) { |
|
279 | + if ( ! $set) { |
|
280 | 280 | $set = $this->retrieve_translation_details(); |
281 | - Give_Cache::set( "give_i18n_give_{$this->locale}", $set, DAY_IN_SECONDS, true ); |
|
281 | + Give_Cache::set("give_i18n_give_{$this->locale}", $set, DAY_IN_SECONDS, true); |
|
282 | 282 | } |
283 | 283 | |
284 | 284 | return $set; |
@@ -292,10 +292,10 @@ discard block |
||
292 | 292 | private function translation_details() { |
293 | 293 | $set = $this->find_or_initialize_translation_details(); |
294 | 294 | |
295 | - $this->translation_exists = ! is_null( $set ); |
|
296 | - $this->translation_loaded = is_textdomain_loaded( 'give' ); |
|
295 | + $this->translation_exists = ! is_null($set); |
|
296 | + $this->translation_loaded = is_textdomain_loaded('give'); |
|
297 | 297 | |
298 | - $this->parse_translation_set( $set ); |
|
298 | + $this->parse_translation_set($set); |
|
299 | 299 | } |
300 | 300 | |
301 | 301 | /** |
@@ -307,26 +307,26 @@ discard block |
||
307 | 307 | */ |
308 | 308 | private function retrieve_translation_details() { |
309 | 309 | |
310 | - $api_url = trailingslashit( $this->glotpress_url ); |
|
310 | + $api_url = trailingslashit($this->glotpress_url); |
|
311 | 311 | |
312 | - $resp = wp_remote_get( $api_url ); |
|
312 | + $resp = wp_remote_get($api_url); |
|
313 | 313 | |
314 | - if ( is_wp_error( $resp ) || wp_remote_retrieve_response_code( $resp ) === '404' ) { |
|
314 | + if (is_wp_error($resp) || wp_remote_retrieve_response_code($resp) === '404') { |
|
315 | 315 | return null; |
316 | 316 | } |
317 | 317 | |
318 | - $body = wp_remote_retrieve_body( $resp ); |
|
319 | - unset( $resp ); |
|
318 | + $body = wp_remote_retrieve_body($resp); |
|
319 | + unset($resp); |
|
320 | 320 | |
321 | - if ( $body ) { |
|
322 | - $body = json_decode( $body ); |
|
321 | + if ($body) { |
|
322 | + $body = json_decode($body); |
|
323 | 323 | |
324 | - foreach ( $body->translation_sets as $set ) { |
|
325 | - if ( ! property_exists( $set, 'wp_locale' ) ) { |
|
324 | + foreach ($body->translation_sets as $set) { |
|
325 | + if ( ! property_exists($set, 'wp_locale')) { |
|
326 | 326 | continue; |
327 | 327 | } |
328 | 328 | |
329 | - if ( $this->locale == $set->wp_locale ) { |
|
329 | + if ($this->locale == $set->wp_locale) { |
|
330 | 330 | return $set; |
331 | 331 | } |
332 | 332 | } |
@@ -342,8 +342,8 @@ discard block |
||
342 | 342 | * |
343 | 343 | * @access private |
344 | 344 | */ |
345 | - private function parse_translation_set( $set ) { |
|
346 | - if ( $this->translation_exists && is_object( $set ) ) { |
|
345 | + private function parse_translation_set($set) { |
|
346 | + if ($this->translation_exists && is_object($set)) { |
|
347 | 347 | $this->locale_name = $set->name; |
348 | 348 | $this->percent_translated = $set->percent_translated; |
349 | 349 | } else { |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | } |
354 | 354 | } |
355 | 355 | |
356 | -$give_i18n = new Give_i18n_Banner( array( |
|
356 | +$give_i18n = new Give_i18n_Banner(array( |
|
357 | 357 | 'hook' => 'admin_notices', |
358 | 358 | 'glotpress_url' => 'https://translate.wordpress.org/api/projects/wp-plugins/give/stable/', |
359 | - ) ); |
|
359 | + )); |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | * Admin View: Imports |
4 | 4 | */ |
5 | 5 | |
6 | -if ( ! defined( 'ABSPATH' ) ) { |
|
6 | +if ( ! defined('ABSPATH')) { |
|
7 | 7 | exit; |
8 | 8 | } ?> |
9 | 9 | |
@@ -18,14 +18,14 @@ discard block |
||
18 | 18 | * |
19 | 19 | * @since 1.8.14 |
20 | 20 | */ |
21 | - do_action( 'give_tools_tab_import_content_top' ); |
|
21 | + do_action('give_tools_tab_import_content_top'); |
|
22 | 22 | ?> |
23 | 23 | |
24 | 24 | <table class="widefat import-options-table give-table striped"> |
25 | 25 | <thead> |
26 | 26 | <tr> |
27 | - <th scope="col"><?php esc_html_e( 'Import Type', 'give' ); ?></th> |
|
28 | - <th scope="col"><?php esc_html_e( 'Import Options', 'give' ); ?></th> |
|
27 | + <th scope="col"><?php esc_html_e('Import Type', 'give'); ?></th> |
|
28 | + <th scope="col"><?php esc_html_e('Import Options', 'give'); ?></th> |
|
29 | 29 | </tr> |
30 | 30 | </thead> |
31 | 31 | <tbody> |
@@ -38,19 +38,19 @@ discard block |
||
38 | 38 | * |
39 | 39 | * @since 1.8.14 |
40 | 40 | */ |
41 | - do_action( 'give_tools_tab_import_table_top' ); |
|
41 | + do_action('give_tools_tab_import_table_top'); |
|
42 | 42 | ?> |
43 | 43 | |
44 | 44 | <tr class="give-Import-pdf-sales-earnings"> |
45 | 45 | <td scope="row" class="row-title"> |
46 | 46 | <h3> |
47 | - <span><?php esc_html_e( 'Import Donations', 'give' ); ?></span> |
|
47 | + <span><?php esc_html_e('Import Donations', 'give'); ?></span> |
|
48 | 48 | </h3> |
49 | - <p><?php esc_html_e( 'Import a CSV of Donations.', 'give' ); ?></p> |
|
49 | + <p><?php esc_html_e('Import a CSV of Donations.', 'give'); ?></p> |
|
50 | 50 | </td> |
51 | 51 | <td> |
52 | - <a class="button" href="<?php echo add_query_arg( array( 'importer-type' => 'import_donations' ) ); ?>"> |
|
53 | - <?php esc_html_e( 'Import CSV', 'give' ); ?> |
|
52 | + <a class="button" href="<?php echo add_query_arg(array('importer-type' => 'import_donations')); ?>"> |
|
53 | + <?php esc_html_e('Import CSV', 'give'); ?> |
|
54 | 54 | </a> |
55 | 55 | </td> |
56 | 56 | </tr> |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * |
65 | 65 | * @since 1.8.14 |
66 | 66 | */ |
67 | - do_action( 'give_tools_tab_import_table_bottom' ); |
|
67 | + do_action('give_tools_tab_import_table_bottom'); |
|
68 | 68 | ?> |
69 | 69 | </tbody> |
70 | 70 | </table> |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * |
76 | 76 | * @since 1.8.14 |
77 | 77 | */ |
78 | - do_action( 'give_tools_tab_import_content_bottom' ); |
|
78 | + do_action('give_tools_tab_import_content_bottom'); |
|
79 | 79 | ?> |
80 | 80 | |
81 | 81 | </div> |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | * Admin View: Exports |
4 | 4 | */ |
5 | 5 | |
6 | -if ( ! defined( 'ABSPATH' ) ) { |
|
6 | +if ( ! defined('ABSPATH')) { |
|
7 | 7 | exit; |
8 | 8 | } ?> |
9 | 9 | |
@@ -18,14 +18,14 @@ discard block |
||
18 | 18 | * |
19 | 19 | * @since 1.0 |
20 | 20 | */ |
21 | - do_action( 'give_tools_tab_export_content_top' ); |
|
21 | + do_action('give_tools_tab_export_content_top'); |
|
22 | 22 | ?> |
23 | 23 | |
24 | 24 | <table class="widefat export-options-table give-table striped"> |
25 | 25 | <thead> |
26 | 26 | <tr> |
27 | - <th scope="col"><?php esc_html_e( 'Export Type', 'give' ); ?></th> |
|
28 | - <th scope="col"><?php esc_html_e( 'Export Options', 'give' ); ?></th> |
|
27 | + <th scope="col"><?php esc_html_e('Export Type', 'give'); ?></th> |
|
28 | + <th scope="col"><?php esc_html_e('Export Options', 'give'); ?></th> |
|
29 | 29 | </tr> |
30 | 30 | </thead> |
31 | 31 | <tbody> |
@@ -38,42 +38,42 @@ discard block |
||
38 | 38 | * |
39 | 39 | * @since 1.0 |
40 | 40 | */ |
41 | - do_action( 'give_tools_tab_export_table_top' ); |
|
41 | + do_action('give_tools_tab_export_table_top'); |
|
42 | 42 | ?> |
43 | 43 | <tr class="give-export-pdf-sales-earnings"> |
44 | 44 | <td scope="row" class="row-title"> |
45 | 45 | <h3> |
46 | - <span><?php esc_html_e( 'Export PDF of Donations and Income', 'give' ); ?></span> |
|
46 | + <span><?php esc_html_e('Export PDF of Donations and Income', 'give'); ?></span> |
|
47 | 47 | </h3> |
48 | - <p><?php esc_html_e( 'Download a PDF of Donations and Income reports for all forms for the current year.', 'give' ); ?></p> |
|
48 | + <p><?php esc_html_e('Download a PDF of Donations and Income reports for all forms for the current year.', 'give'); ?></p> |
|
49 | 49 | </td> |
50 | 50 | <td> |
51 | - <a class="button" href="<?php echo wp_nonce_url( add_query_arg( array( 'give-action' => 'generate_pdf' ) ), 'give_generate_pdf' ); ?>"> |
|
52 | - <?php esc_html_e( 'Generate PDF', 'give' ); ?> |
|
51 | + <a class="button" href="<?php echo wp_nonce_url(add_query_arg(array('give-action' => 'generate_pdf')), 'give_generate_pdf'); ?>"> |
|
52 | + <?php esc_html_e('Generate PDF', 'give'); ?> |
|
53 | 53 | </a> |
54 | 54 | </td> |
55 | 55 | </tr> |
56 | 56 | <tr class="give-export-sales-earnings"> |
57 | 57 | <td scope="row" class="row-title"> |
58 | 58 | <h3> |
59 | - <span><?php esc_html_e( 'Export Income and Donation Stats', 'give' ); ?></span> |
|
59 | + <span><?php esc_html_e('Export Income and Donation Stats', 'give'); ?></span> |
|
60 | 60 | </h3> |
61 | - <p><?php esc_html_e( 'Download a CSV of income and donations over time.', 'give' ); ?></p> |
|
61 | + <p><?php esc_html_e('Download a CSV of income and donations over time.', 'give'); ?></p> |
|
62 | 62 | </td> |
63 | 63 | <td> |
64 | 64 | <form method="post"> |
65 | 65 | <?php |
66 | 66 | printf( |
67 | 67 | /* translators: 1: start date dropdown 2: end date dropdown */ |
68 | - esc_html__( '%1$s to %2$s', 'give' ), |
|
69 | - Give()->html->year_dropdown( 'start_year' ) . ' ' . Give()->html->month_dropdown( 'start_month' ), |
|
70 | - Give()->html->year_dropdown( 'end_year' ) . ' ' . Give()->html->month_dropdown( 'end_month' ) |
|
68 | + esc_html__('%1$s to %2$s', 'give'), |
|
69 | + Give()->html->year_dropdown('start_year').' '.Give()->html->month_dropdown('start_month'), |
|
70 | + Give()->html->year_dropdown('end_year').' '.Give()->html->month_dropdown('end_month') |
|
71 | 71 | ); |
72 | 72 | ?> |
73 | 73 | <input type="hidden" name="give-action" |
74 | 74 | value="earnings_export"/> |
75 | 75 | <input type="submit" |
76 | - value="<?php esc_attr_e( 'Generate CSV', 'give' ); ?>" |
|
76 | + value="<?php esc_attr_e('Generate CSV', 'give'); ?>" |
|
77 | 77 | class="button-secondary"/> |
78 | 78 | </form> |
79 | 79 | </td> |
@@ -81,37 +81,37 @@ discard block |
||
81 | 81 | <tr class="give-export-payment-history"> |
82 | 82 | <td scope="row" class="row-title"> |
83 | 83 | <h3> |
84 | - <span><?php esc_html_e( 'Export Donation History', 'give' ); ?></span> |
|
84 | + <span><?php esc_html_e('Export Donation History', 'give'); ?></span> |
|
85 | 85 | </h3> |
86 | - <p><?php esc_html_e( 'Download a CSV of all donations recorded.', 'give' ); ?></p> |
|
86 | + <p><?php esc_html_e('Download a CSV of all donations recorded.', 'give'); ?></p> |
|
87 | 87 | </td> |
88 | 88 | <td> |
89 | 89 | <form id="give-export-payments" |
90 | 90 | class="give-export-form" method="post"> |
91 | 91 | <?php |
92 | - echo Give()->html->date_field( array( |
|
92 | + echo Give()->html->date_field(array( |
|
93 | 93 | 'id' => 'give-payment-export-start', |
94 | 94 | 'name' => 'start', |
95 | - 'placeholder' => esc_attr__( 'Start date', 'give' ), |
|
96 | - ) ); |
|
95 | + 'placeholder' => esc_attr__('Start date', 'give'), |
|
96 | + )); |
|
97 | 97 | |
98 | - echo Give()->html->date_field( array( |
|
98 | + echo Give()->html->date_field(array( |
|
99 | 99 | 'id' => 'give-payment-export-end', |
100 | 100 | 'name' => 'end', |
101 | - 'placeholder' => esc_attr__( 'End date', 'give' ), |
|
102 | - ) ); |
|
101 | + 'placeholder' => esc_attr__('End date', 'give'), |
|
102 | + )); |
|
103 | 103 | ?> |
104 | 104 | <select name="status"> |
105 | - <option value="any"><?php esc_html_e( 'All Statuses', 'give' ); ?></option> |
|
105 | + <option value="any"><?php esc_html_e('All Statuses', 'give'); ?></option> |
|
106 | 106 | <?php |
107 | 107 | $statuses = give_get_payment_statuses(); |
108 | - foreach ( $statuses as $status => $label ) { |
|
109 | - echo '<option value="' . $status . '">' . $label . '</option>'; |
|
108 | + foreach ($statuses as $status => $label) { |
|
109 | + echo '<option value="'.$status.'">'.$label.'</option>'; |
|
110 | 110 | } |
111 | 111 | ?> |
112 | 112 | </select> |
113 | 113 | <?php |
114 | - if ( give_is_setting_enabled( give_get_option( 'categories' ) ) ) { |
|
114 | + if (give_is_setting_enabled(give_get_option('categories'))) { |
|
115 | 115 | echo Give()->html->category_dropdown( |
116 | 116 | 'give_forms_categories[]', |
117 | 117 | 0, |
@@ -121,12 +121,12 @@ discard block |
||
121 | 121 | 'multiple' => true, |
122 | 122 | 'selected' => array(), |
123 | 123 | 'show_option_all' => false, |
124 | - 'placeholder' => __( 'Choose one or more from categories', 'give' ), |
|
124 | + 'placeholder' => __('Choose one or more from categories', 'give'), |
|
125 | 125 | ) |
126 | 126 | ); |
127 | 127 | } |
128 | 128 | |
129 | - if ( give_is_setting_enabled( give_get_option( 'tags' ) ) ) { |
|
129 | + if (give_is_setting_enabled(give_get_option('tags'))) { |
|
130 | 130 | echo Give()->html->tags_dropdown( |
131 | 131 | 'give_forms_tags[]', |
132 | 132 | 0, |
@@ -136,18 +136,18 @@ discard block |
||
136 | 136 | 'multiple' => true, |
137 | 137 | 'selected' => array(), |
138 | 138 | 'show_option_all' => false, |
139 | - 'placeholder' => __( 'Choose one or more from tags', 'give' ), |
|
139 | + 'placeholder' => __('Choose one or more from tags', 'give'), |
|
140 | 140 | ) |
141 | 141 | ); |
142 | 142 | } |
143 | 143 | |
144 | - wp_nonce_field( 'give_ajax_export', 'give_ajax_export' ); |
|
144 | + wp_nonce_field('give_ajax_export', 'give_ajax_export'); |
|
145 | 145 | ?> |
146 | 146 | <input type="hidden" name="give-export-class" |
147 | 147 | value="Give_Batch_Payments_Export"/> |
148 | 148 | <span> |
149 | 149 | <input type="submit" |
150 | - value="<?php esc_attr_e( 'Generate CSV', 'give' ); ?>" |
|
150 | + value="<?php esc_attr_e('Generate CSV', 'give'); ?>" |
|
151 | 151 | class="button-secondary"/> |
152 | 152 | <span class="spinner"></span> |
153 | 153 | </span> |
@@ -157,9 +157,9 @@ discard block |
||
157 | 157 | <tr class="give-export-donors"> |
158 | 158 | <td scope="row" class="row-title"> |
159 | 159 | <h3> |
160 | - <span><?php esc_html_e( 'Export Donors in CSV', 'give' ); ?></span> |
|
160 | + <span><?php esc_html_e('Export Donors in CSV', 'give'); ?></span> |
|
161 | 161 | </h3> |
162 | - <p><?php esc_html_e( 'Download an export of donors for all donation forms or only those who have given to a particular form.', 'give' ); ?></p> |
|
162 | + <p><?php esc_html_e('Download an export of donors for all donation forms or only those who have given to a particular form.', 'give'); ?></p> |
|
163 | 163 | </td> |
164 | 164 | <td> |
165 | 165 | <form method="post" id="give_donor_export" |
@@ -167,99 +167,99 @@ discard block |
||
167 | 167 | |
168 | 168 | <?php |
169 | 169 | // Start Date form field for donors |
170 | - echo Give()->html->date_field( array( |
|
170 | + echo Give()->html->date_field(array( |
|
171 | 171 | 'id' => 'give_donor_export_start_date', |
172 | 172 | 'name' => 'donor_export_start_date', |
173 | - 'placeholder' => esc_attr__( 'Start date', 'give' ), |
|
174 | - ) ); |
|
173 | + 'placeholder' => esc_attr__('Start date', 'give'), |
|
174 | + )); |
|
175 | 175 | |
176 | 176 | // End Date form field for donors |
177 | - echo Give()->html->date_field( array( |
|
177 | + echo Give()->html->date_field(array( |
|
178 | 178 | 'id' => 'give_donor_export_end_date', |
179 | 179 | 'name' => 'donor_export_end_date', |
180 | - 'placeholder' => esc_attr__( 'End date', 'give' ), |
|
181 | - ) ); |
|
180 | + 'placeholder' => esc_attr__('End date', 'give'), |
|
181 | + )); |
|
182 | 182 | |
183 | 183 | // Donation forms dropdown for donors export |
184 | - echo Give()->html->forms_dropdown( array( |
|
184 | + echo Give()->html->forms_dropdown(array( |
|
185 | 185 | 'name' => 'forms', |
186 | 186 | 'id' => 'give_donor_export_form', |
187 | 187 | 'chosen' => true, |
188 | - ) ); |
|
188 | + )); |
|
189 | 189 | ?> |
190 | 190 | |
191 | 191 | <input type="submit" |
192 | - value="<?php esc_attr_e( 'Generate CSV', 'give' ); ?>" |
|
192 | + value="<?php esc_attr_e('Generate CSV', 'give'); ?>" |
|
193 | 193 | class="button-secondary"/> |
194 | 194 | |
195 | 195 | <div id="export-donor-options-wrap" |
196 | 196 | class="give-clearfix"> |
197 | - <p><?php esc_html_e( 'Export Columns:', 'give' ); ?></p> |
|
197 | + <p><?php esc_html_e('Export Columns:', 'give'); ?></p> |
|
198 | 198 | <ul id="give-export-option-ul"> |
199 | 199 | <li> |
200 | 200 | <label for="give-export-fullname"> |
201 | 201 | <input type="checkbox" checked |
202 | 202 | name="give_export_option[full_name]" |
203 | - id="give-export-fullname"><?php esc_html_e( 'Name', 'give' ); ?> |
|
203 | + id="give-export-fullname"><?php esc_html_e('Name', 'give'); ?> |
|
204 | 204 | </label> |
205 | 205 | </li> |
206 | 206 | <li> |
207 | 207 | <label for="give-export-email"> |
208 | 208 | <input type="checkbox" checked |
209 | 209 | name="give_export_option[email]" |
210 | - id="give-export-email"><?php esc_html_e( 'Email', 'give' ); ?> |
|
210 | + id="give-export-email"><?php esc_html_e('Email', 'give'); ?> |
|
211 | 211 | </label> |
212 | 212 | </li> |
213 | 213 | <li> |
214 | 214 | <label for="give-export-address"> |
215 | 215 | <input type="checkbox" checked |
216 | 216 | name="give_export_option[address]" |
217 | - id="give-export-address"><?php esc_html_e( 'Address', 'give' ); ?> |
|
217 | + id="give-export-address"><?php esc_html_e('Address', 'give'); ?> |
|
218 | 218 | </label> |
219 | 219 | </li> |
220 | 220 | <li> |
221 | 221 | <label for="give-export-userid"> |
222 | 222 | <input type="checkbox" checked |
223 | 223 | name="give_export_option[userid]" |
224 | - id="give-export-userid"><?php esc_html_e( 'User ID', 'give' ); ?> |
|
224 | + id="give-export-userid"><?php esc_html_e('User ID', 'give'); ?> |
|
225 | 225 | </label> |
226 | 226 | </li> |
227 | 227 | <li> |
228 | 228 | <label for="give-export-donation-form"> |
229 | 229 | <input type="checkbox" checked |
230 | 230 | name="give_export_option[donation_form]" |
231 | - id="give-export-donation-form"><?php esc_html_e( 'Donation Form', 'give' ); ?> |
|
231 | + id="give-export-donation-form"><?php esc_html_e('Donation Form', 'give'); ?> |
|
232 | 232 | </label> |
233 | 233 | </li> |
234 | 234 | <li> |
235 | 235 | <label for="give-export-first-donation-date"> |
236 | 236 | <input type="checkbox" checked |
237 | 237 | name="give_export_option[date_first_donated]" |
238 | - id="give-export-first-donation-date"><?php esc_html_e( 'First Donation Date', 'give' ); ?> |
|
238 | + id="give-export-first-donation-date"><?php esc_html_e('First Donation Date', 'give'); ?> |
|
239 | 239 | </label> |
240 | 240 | </li> |
241 | 241 | <li> |
242 | 242 | <label for="give-export-donation-number"> |
243 | 243 | <input type="checkbox" checked |
244 | 244 | name="give_export_option[donations]" |
245 | - id="give-export-donation-number"><?php esc_html_e( 'Number of Donations', 'give' ); ?> |
|
245 | + id="give-export-donation-number"><?php esc_html_e('Number of Donations', 'give'); ?> |
|
246 | 246 | </label> |
247 | 247 | </li> |
248 | 248 | <li> |
249 | 249 | <label for="give-export-donation-sum"> |
250 | 250 | <input type="checkbox" checked |
251 | 251 | name="give_export_option[donation_sum]" |
252 | - id="give-export-donation-sum"><?php esc_html_e( 'Total Donated', 'give' ); ?> |
|
252 | + id="give-export-donation-sum"><?php esc_html_e('Total Donated', 'give'); ?> |
|
253 | 253 | </label> |
254 | 254 | </li> |
255 | 255 | </ul> |
256 | 256 | </div> |
257 | - <?php wp_nonce_field( 'give_ajax_export', 'give_ajax_export' ); ?> |
|
257 | + <?php wp_nonce_field('give_ajax_export', 'give_ajax_export'); ?> |
|
258 | 258 | <input type="hidden" name="give-export-class" |
259 | 259 | value="Give_Batch_Donors_Export"/> |
260 | 260 | <input type="hidden" |
261 | 261 | name="give_export_option[query_id]" |
262 | - value="<?php echo uniqid( 'give_' ); ?>"/> |
|
262 | + value="<?php echo uniqid('give_'); ?>"/> |
|
263 | 263 | </form> |
264 | 264 | </td> |
265 | 265 | </tr> |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | * |
273 | 273 | * @since 1.0 |
274 | 274 | */ |
275 | - do_action( 'give_tools_tab_export_table_bottom' ); |
|
275 | + do_action('give_tools_tab_export_table_bottom'); |
|
276 | 276 | ?> |
277 | 277 | </tbody> |
278 | 278 | </table> |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | * |
284 | 284 | * @since 1.0 |
285 | 285 | */ |
286 | - do_action( 'give_tools_tab_export_content_bottom' ); |
|
286 | + do_action('give_tools_tab_export_content_bottom'); |
|
287 | 287 | ?> |
288 | 288 | |
289 | 289 | </div> |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | */ |
11 | 11 | |
12 | 12 | // Exit if accessed directly. |
13 | -if ( ! defined( 'ABSPATH' ) ) { |
|
13 | +if ( ! defined('ABSPATH')) { |
|
14 | 14 | exit; |
15 | 15 | } |
16 | 16 | |
@@ -24,9 +24,9 @@ discard block |
||
24 | 24 | */ |
25 | 25 | function give_donors_page() { |
26 | 26 | $default_views = give_donor_views(); |
27 | - $requested_view = isset( $_GET['view'] ) ? sanitize_text_field( $_GET['view'] ) : 'donors'; |
|
28 | - if ( array_key_exists( $requested_view, $default_views ) && function_exists( $default_views[ $requested_view ] ) ) { |
|
29 | - give_render_donor_view( $requested_view, $default_views ); |
|
27 | + $requested_view = isset($_GET['view']) ? sanitize_text_field($_GET['view']) : 'donors'; |
|
28 | + if (array_key_exists($requested_view, $default_views) && function_exists($default_views[$requested_view])) { |
|
29 | + give_render_donor_view($requested_view, $default_views); |
|
30 | 30 | } else { |
31 | 31 | give_donors_list(); |
32 | 32 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | $views = array(); |
44 | 44 | |
45 | - return apply_filters( 'give_donor_views', $views ); |
|
45 | + return apply_filters('give_donor_views', $views); |
|
46 | 46 | |
47 | 47 | } |
48 | 48 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | $tabs = array(); |
58 | 58 | |
59 | - return apply_filters( 'give_donor_tabs', $tabs ); |
|
59 | + return apply_filters('give_donor_tabs', $tabs); |
|
60 | 60 | |
61 | 61 | } |
62 | 62 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * @return void |
68 | 68 | */ |
69 | 69 | function give_donors_list() { |
70 | - include dirname( __FILE__ ) . '/class-donor-table.php'; |
|
70 | + include dirname(__FILE__).'/class-donor-table.php'; |
|
71 | 71 | |
72 | 72 | $donors_table = new Give_Donor_List_Table(); |
73 | 73 | $donors_table->prepare_items(); |
@@ -80,12 +80,12 @@ discard block |
||
80 | 80 | * |
81 | 81 | * @since 1.0 |
82 | 82 | */ |
83 | - do_action( 'give_donors_table_top' ); |
|
83 | + do_action('give_donors_table_top'); |
|
84 | 84 | ?> |
85 | 85 | |
86 | 86 | <hr class="wp-header-end"> |
87 | 87 | |
88 | - <form id="give-donors-filter" method="get" action="<?php echo admin_url( 'edit.php?post_type=give_forms&page=give-donors' ); ?>"> |
|
88 | + <form id="give-donors-filter" method="get" action="<?php echo admin_url('edit.php?post_type=give_forms&page=give-donors'); ?>"> |
|
89 | 89 | <?php $donors_table->display(); ?> |
90 | 90 | <input type="hidden" name="post_type" value="give_forms" /> |
91 | 91 | <input type="hidden" name="page" value="give-donors" /> |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * |
98 | 98 | * @since 1.0 |
99 | 99 | */ |
100 | - do_action( 'give_donors_table_bottom' ); |
|
100 | + do_action('give_donors_table_bottom'); |
|
101 | 101 | ?> |
102 | 102 | </div> |
103 | 103 | <?php |
@@ -113,33 +113,33 @@ discard block |
||
113 | 113 | * |
114 | 114 | * @return void |
115 | 115 | */ |
116 | -function give_render_donor_view( $view, $callbacks ) { |
|
116 | +function give_render_donor_view($view, $callbacks) { |
|
117 | 117 | |
118 | 118 | $render = true; |
119 | 119 | |
120 | - $donor_view_role = apply_filters( 'give_view_donors_role', 'view_give_reports' ); |
|
120 | + $donor_view_role = apply_filters('give_view_donors_role', 'view_give_reports'); |
|
121 | 121 | |
122 | - if ( ! current_user_can( $donor_view_role ) ) { |
|
123 | - give_set_error( 'give-no-access', __( 'You are not permitted to view this data.', 'give' ) ); |
|
122 | + if ( ! current_user_can($donor_view_role)) { |
|
123 | + give_set_error('give-no-access', __('You are not permitted to view this data.', 'give')); |
|
124 | 124 | $render = false; |
125 | 125 | } |
126 | 126 | |
127 | - if ( ! isset( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |
|
128 | - give_set_error( 'give-invalid_donor', __( 'Invalid Donor ID.', 'give' ) ); |
|
127 | + if ( ! isset($_GET['id']) || ! is_numeric($_GET['id'])) { |
|
128 | + give_set_error('give-invalid_donor', __('Invalid Donor ID.', 'give')); |
|
129 | 129 | $render = false; |
130 | 130 | } |
131 | 131 | |
132 | 132 | $donor_id = (int) $_GET['id']; |
133 | - $reconnect_user_id = ! empty( $_GET['user_id'] ) ? (int) $_GET['user_id'] : ''; |
|
134 | - $donor = new Give_Donor( $donor_id ); |
|
133 | + $reconnect_user_id = ! empty($_GET['user_id']) ? (int) $_GET['user_id'] : ''; |
|
134 | + $donor = new Give_Donor($donor_id); |
|
135 | 135 | |
136 | 136 | // Reconnect User with Donor profile. |
137 | - if( $reconnect_user_id ) { |
|
138 | - give_connect_user_donor_profile( $donor, array( 'user_id' => $reconnect_user_id ), array() ); |
|
137 | + if ($reconnect_user_id) { |
|
138 | + give_connect_user_donor_profile($donor, array('user_id' => $reconnect_user_id), array()); |
|
139 | 139 | } |
140 | 140 | |
141 | - if ( empty( $donor->id ) ) { |
|
142 | - give_set_error( 'give-invalid_donor', __( 'Invalid Donor ID.', 'give' ) ); |
|
141 | + if (empty($donor->id)) { |
|
142 | + give_set_error('give-invalid_donor', __('Invalid Donor ID.', 'give')); |
|
143 | 143 | $render = false; |
144 | 144 | } |
145 | 145 | |
@@ -148,9 +148,9 @@ discard block |
||
148 | 148 | |
149 | 149 | <div class='wrap'> |
150 | 150 | |
151 | - <?php if ( give_get_errors() ) : ?> |
|
151 | + <?php if (give_get_errors()) : ?> |
|
152 | 152 | <div class="error settings-error"> |
153 | - <?php Give()->notices->render_frontend_notices( 0 ); ?> |
|
153 | + <?php Give()->notices->render_frontend_notices(0); ?> |
|
154 | 154 | </div> |
155 | 155 | <?php endif; ?> |
156 | 156 | |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | <?php |
159 | 159 | printf( |
160 | 160 | /* translators: %s: donor number */ |
161 | - esc_html__( 'Donor %s', 'give' ), |
|
161 | + esc_html__('Donor %s', 'give'), |
|
162 | 162 | $donor_id |
163 | 163 | ); |
164 | 164 | ?> |
@@ -166,26 +166,26 @@ discard block |
||
166 | 166 | |
167 | 167 | <hr class="wp-header-end"> |
168 | 168 | |
169 | - <?php if ( $donor && $render ) : ?> |
|
169 | + <?php if ($donor && $render) : ?> |
|
170 | 170 | |
171 | 171 | <h2 class="nav-tab-wrapper"> |
172 | 172 | <?php |
173 | - foreach ( $donor_tabs as $key => $tab ) : |
|
173 | + foreach ($donor_tabs as $key => $tab) : |
|
174 | 174 | $active = $key === $view ? true : false; |
175 | 175 | $class = $active ? 'nav-tab nav-tab-active' : 'nav-tab'; |
176 | 176 | printf( |
177 | - '<a href="%1$s" class="%2$s"><span class="dashicons %3$s"></span>%4$s</a>' . "\n", |
|
178 | - esc_url( admin_url( 'edit.php?post_type=give_forms&page=give-donors&view=' . $key . '&id=' . $donor->id ) ), |
|
179 | - esc_attr( $class ), |
|
180 | - sanitize_html_class( $tab['dashicon'] ), |
|
181 | - esc_html( $tab['title'] ) |
|
177 | + '<a href="%1$s" class="%2$s"><span class="dashicons %3$s"></span>%4$s</a>'."\n", |
|
178 | + esc_url(admin_url('edit.php?post_type=give_forms&page=give-donors&view='.$key.'&id='.$donor->id)), |
|
179 | + esc_attr($class), |
|
180 | + sanitize_html_class($tab['dashicon']), |
|
181 | + esc_html($tab['title']) |
|
182 | 182 | ); |
183 | 183 | endforeach; |
184 | 184 | ?> |
185 | 185 | </h2> |
186 | 186 | |
187 | 187 | <div id="give-donor-card-wrapper"> |
188 | - <?php $callbacks[ $view ]( $donor ) ?> |
|
188 | + <?php $callbacks[$view]($donor) ?> |
|
189 | 189 | </div> |
190 | 190 | |
191 | 191 | <?php endif; ?> |
@@ -205,9 +205,9 @@ discard block |
||
205 | 205 | * |
206 | 206 | * @return void |
207 | 207 | */ |
208 | -function give_donor_view( $donor ) { |
|
208 | +function give_donor_view($donor) { |
|
209 | 209 | |
210 | - $donor_edit_role = apply_filters( 'give_edit_donors_role', 'edit_give_payments' ); |
|
210 | + $donor_edit_role = apply_filters('give_edit_donors_role', 'edit_give_payments'); |
|
211 | 211 | |
212 | 212 | /** |
213 | 213 | * Fires in donor profile screen, above the donor card. |
@@ -216,32 +216,32 @@ discard block |
||
216 | 216 | * |
217 | 217 | * @param object $donor The donor object being displayed. |
218 | 218 | */ |
219 | - do_action( 'give_donor_card_top', $donor ); |
|
219 | + do_action('give_donor_card_top', $donor); |
|
220 | 220 | ?> |
221 | 221 | |
222 | 222 | <div id="donor-summary" class="info-wrapper donor-section postbox"> |
223 | 223 | |
224 | - <form id="edit-donor-info" method="post" action="<?php echo admin_url( 'edit.php?post_type=give_forms&page=give-donors&view=overview&id=' . $donor->id ); ?>"> |
|
224 | + <form id="edit-donor-info" method="post" action="<?php echo admin_url('edit.php?post_type=give_forms&page=give-donors&view=overview&id='.$donor->id); ?>"> |
|
225 | 225 | |
226 | 226 | <div class="donor-info"> |
227 | 227 | |
228 | 228 | <div class="donor-bio-header clearfix"> |
229 | 229 | |
230 | 230 | <div class="avatar-wrap left" id="donor-avatar"> |
231 | - <?php echo get_avatar( $donor->email ); ?> |
|
231 | + <?php echo get_avatar($donor->email); ?> |
|
232 | 232 | </div> |
233 | 233 | |
234 | 234 | <div id="donor-name-wrap" class="left"> |
235 | 235 | <span class="donor-id">#<?php echo $donor->id; ?></span> |
236 | - <span class="donor-name info-item edit-item"><input size="15" data-key="name" name="customerinfo[name]" type="text" value="<?php echo esc_attr( $donor->name ); ?>" placeholder="<?php _e( 'Donor Name', 'give' ); ?>" /></span> |
|
236 | + <span class="donor-name info-item edit-item"><input size="15" data-key="name" name="customerinfo[name]" type="text" value="<?php echo esc_attr($donor->name); ?>" placeholder="<?php _e('Donor Name', 'give'); ?>" /></span> |
|
237 | 237 | <span class="donor-name info-item editable"><span data-key="name"><?php echo $donor->name; ?></span></span> |
238 | 238 | </div> |
239 | 239 | <p class="donor-since info-item"> |
240 | - <?php _e( 'Donor since', 'give' ); ?> |
|
241 | - <?php echo date_i18n( give_date_format(), strtotime( $donor->date_created ) ) ?> |
|
240 | + <?php _e('Donor since', 'give'); ?> |
|
241 | + <?php echo date_i18n(give_date_format(), strtotime($donor->date_created)) ?> |
|
242 | 242 | </p> |
243 | - <?php if ( current_user_can( $donor_edit_role ) ) : ?> |
|
244 | - <a href="#" id="edit-donor" class="button info-item editable donor-edit-link"><?php _e( 'Edit Donor', 'give' ); ?></a> |
|
243 | + <?php if (current_user_can($donor_edit_role)) : ?> |
|
244 | + <a href="#" id="edit-donor" class="button info-item editable donor-edit-link"><?php _e('Edit Donor', 'give'); ?></a> |
|
245 | 245 | <?php endif; ?> |
246 | 246 | </div> |
247 | 247 | <!-- /donor-bio-header --> |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | <table class="widefat"> |
252 | 252 | <tbody> |
253 | 253 | <tr class="alternate"> |
254 | - <th scope="col"><label for="tablecell"><?php _e( 'User:', 'give' ); ?></label></th> |
|
254 | + <th scope="col"><label for="tablecell"><?php _e('User:', 'give'); ?></label></th> |
|
255 | 255 | <td> |
256 | 256 | <span class="donor-user-id info-item edit-item"> |
257 | 257 | <?php |
@@ -268,48 +268,48 @@ discard block |
||
268 | 268 | 'data' => $data_atts, |
269 | 269 | ); |
270 | 270 | |
271 | - if ( ! empty( $user_id ) ) { |
|
272 | - $userdata = get_userdata( $user_id ); |
|
271 | + if ( ! empty($user_id)) { |
|
272 | + $userdata = get_userdata($user_id); |
|
273 | 273 | $user_args['selected'] = $user_id; |
274 | 274 | } |
275 | 275 | |
276 | - echo Give()->html->ajax_user_search( $user_args ); |
|
276 | + echo Give()->html->ajax_user_search($user_args); |
|
277 | 277 | ?> |
278 | 278 | </span> |
279 | 279 | |
280 | 280 | <span class="donor-user-id info-item editable"> |
281 | - <?php if ( ! empty( $userdata ) ) { ?> |
|
282 | - <span data-key="user_id">#<?php echo $donor->user_id . ' - ' . $userdata->display_name; ?></span> |
|
281 | + <?php if ( ! empty($userdata)) { ?> |
|
282 | + <span data-key="user_id">#<?php echo $donor->user_id.' - '.$userdata->display_name; ?></span> |
|
283 | 283 | <?php } else { ?> |
284 | - <span data-key="user_id"><?php _e( 'None', 'give' ); ?></span> |
|
284 | + <span data-key="user_id"><?php _e('None', 'give'); ?></span> |
|
285 | 285 | <?php } ?> |
286 | - <?php if ( current_user_can( $donor_edit_role ) && intval( $donor->user_id ) > 0 ) { ?> |
|
286 | + <?php if (current_user_can($donor_edit_role) && intval($donor->user_id) > 0) { ?> |
|
287 | 287 | <span class="disconnect-user"> |
288 | 288 | - |
289 | - <a id="disconnect-donor" href="#disconnect" aria-label="<?php _e( 'Disconnects the current user ID from this donor record.', 'give' ); ?>"> |
|
290 | - <?php _e( 'Disconnect User', 'give' ); ?> |
|
289 | + <a id="disconnect-donor" href="#disconnect" aria-label="<?php _e('Disconnects the current user ID from this donor record.', 'give'); ?>"> |
|
290 | + <?php _e('Disconnect User', 'give'); ?> |
|
291 | 291 | </a> |
292 | 292 | </span> |
293 | 293 | <span class="view-user-profile"> |
294 | 294 | | |
295 | - <a id="view-user-profile" href="<?php echo 'user-edit.php?user_id=' . $donor->user_id; ?>" aria-label="<?php _e( 'View User Profile of current user ID.', 'give' ); ?>"> |
|
296 | - <?php _e( 'View User Profile', 'give' ); ?> |
|
295 | + <a id="view-user-profile" href="<?php echo 'user-edit.php?user_id='.$donor->user_id; ?>" aria-label="<?php _e('View User Profile of current user ID.', 'give'); ?>"> |
|
296 | + <?php _e('View User Profile', 'give'); ?> |
|
297 | 297 | </a> |
298 | 298 | </span> |
299 | 299 | <?php } ?> |
300 | 300 | </span> |
301 | 301 | </td> |
302 | 302 | </tr> |
303 | - <?php if ( isset( $donor->user_id ) && $donor->user_id > 0 ) : ?> |
|
303 | + <?php if (isset($donor->user_id) && $donor->user_id > 0) : ?> |
|
304 | 304 | |
305 | 305 | <tr> |
306 | - <th scope="col"><?php _e( 'Address:', 'give' ); ?></th> |
|
306 | + <th scope="col"><?php _e('Address:', 'give'); ?></th> |
|
307 | 307 | <td class="row-title"> |
308 | 308 | |
309 | 309 | <div class="donor-address-wrapper"> |
310 | 310 | |
311 | 311 | <?php |
312 | - $address = get_user_meta( $donor->user_id, '_give_user_address', true ); |
|
312 | + $address = get_user_meta($donor->user_id, '_give_user_address', true); |
|
313 | 313 | $defaults = array( |
314 | 314 | 'line1' => '', |
315 | 315 | 'line2' => '', |
@@ -319,10 +319,10 @@ discard block |
||
319 | 319 | 'zip' => '', |
320 | 320 | ); |
321 | 321 | |
322 | - $address = wp_parse_args( $address, $defaults ); |
|
322 | + $address = wp_parse_args($address, $defaults); |
|
323 | 323 | ?> |
324 | 324 | |
325 | - <?php if ( ! empty( $address ) ) { ?> |
|
325 | + <?php if ( ! empty($address)) { ?> |
|
326 | 326 | <span class="donor-address info-item editable"> |
327 | 327 | <span class="info-item" data-key="line1"><?php echo $address['line1']; ?></span> |
328 | 328 | <span class="info-item" data-key="line2"><?php echo $address['line2']; ?></span> |
@@ -339,8 +339,8 @@ discard block |
||
339 | 339 | |
340 | 340 | // For State. |
341 | 341 | $selected_state = give_get_state(); |
342 | - $states = give_get_states( $selected_country ); |
|
343 | - $selected_state = ( isset( $address['state'] ) ? $address['state'] : $selected_state ); |
|
342 | + $states = give_get_states($selected_country); |
|
343 | + $selected_state = (isset($address['state']) ? $address['state'] : $selected_state); |
|
344 | 344 | |
345 | 345 | // Get the country list that does not have any states init. |
346 | 346 | $no_states_country = give_no_states_country_list(); |
@@ -348,32 +348,32 @@ discard block |
||
348 | 348 | <span class="donor-address info-item edit-item"> |
349 | 349 | <select data-key="country" name="customerinfo[country]" id="billing_country" class="billing_country give-select edit-item"> |
350 | 350 | <?php |
351 | - foreach ( $countries as $country_code => $country ) { |
|
352 | - echo '<option value="' . esc_attr( $country_code ) . '"' . selected( $country_code, $selected_country, false ) . '>' . $country . '</option>'; |
|
351 | + foreach ($countries as $country_code => $country) { |
|
352 | + echo '<option value="'.esc_attr($country_code).'"'.selected($country_code, $selected_country, false).'>'.$country.'</option>'; |
|
353 | 353 | } |
354 | 354 | ?> |
355 | 355 | </select> |
356 | - <input class="info-item" type="text" data-key="line1" name="customerinfo[line1]" placeholder="<?php _e( 'Address 1', 'give' ); ?>" value="<?php echo $address['line1']; ?>" /> |
|
357 | - <input class="info-item" type="text" data-key="line2" name="customerinfo[line2]" placeholder="<?php _e( 'Address 2', 'give' ); ?>" value="<?php echo $address['line2']; ?>" /> |
|
356 | + <input class="info-item" type="text" data-key="line1" name="customerinfo[line1]" placeholder="<?php _e('Address 1', 'give'); ?>" value="<?php echo $address['line1']; ?>" /> |
|
357 | + <input class="info-item" type="text" data-key="line2" name="customerinfo[line2]" placeholder="<?php _e('Address 2', 'give'); ?>" value="<?php echo $address['line2']; ?>" /> |
|
358 | 358 | <?php |
359 | - if ( ! empty( $states ) ) { |
|
359 | + if ( ! empty($states)) { |
|
360 | 360 | ?> |
361 | 361 | <select data-key="state" name="customerinfo[state]" id="card_state" class="card_state give-select info-item"> |
362 | 362 | <?php |
363 | - foreach ( $states as $state_code => $state ) { |
|
364 | - echo '<option value="' . $state_code . '"' . selected( $state_code, $selected_state, false ) . '>' . $state . '</option>'; |
|
363 | + foreach ($states as $state_code => $state) { |
|
364 | + echo '<option value="'.$state_code.'"'.selected($state_code, $selected_state, false).'>'.$state.'</option>'; |
|
365 | 365 | } |
366 | 366 | ?> |
367 | 367 | </select> |
368 | 368 | <?php |
369 | 369 | } else { |
370 | 370 | ?> |
371 | - <input type="text" size="6" data-key="state" name="customerinfo[state]" id="card_state" class="card_state give-input info-item <?php echo ( ! empty( $selected_country ) && array_key_exists( $selected_country, $no_states_country ) ? 'give-hidden' : '' ); ?>" placeholder="<?php _e( 'State / Province / County', 'give' ); ?>" /> |
|
371 | + <input type="text" size="6" data-key="state" name="customerinfo[state]" id="card_state" class="card_state give-input info-item <?php echo ( ! empty($selected_country) && array_key_exists($selected_country, $no_states_country) ? 'give-hidden' : ''); ?>" placeholder="<?php _e('State / Province / County', 'give'); ?>" /> |
|
372 | 372 | <?php |
373 | 373 | } |
374 | 374 | ?> |
375 | - <input class="info-item" type="text" data-key="city" name="customerinfo[city]" placeholder="<?php _e( 'City', 'give' ); ?>" value="<?php echo $address['city']; ?>" /> |
|
376 | - <input class="info-item" type="text" data-key="zip" name="customerinfo[zip]" placeholder="<?php _e( 'Zip / Postal Code', 'give' ); ?>" value="<?php echo $address['zip']; ?>" /> |
|
375 | + <input class="info-item" type="text" data-key="city" name="customerinfo[city]" placeholder="<?php _e('City', 'give'); ?>" value="<?php echo $address['city']; ?>" /> |
|
376 | + <input class="info-item" type="text" data-key="zip" name="customerinfo[zip]" placeholder="<?php _e('Zip / Postal Code', 'give'); ?>" value="<?php echo $address['zip']; ?>" /> |
|
377 | 377 | </span> |
378 | 378 | |
379 | 379 | </div> |
@@ -389,10 +389,10 @@ discard block |
||
389 | 389 | |
390 | 390 | <span id="donor-edit-actions" class="edit-item"> |
391 | 391 | <input type="hidden" data-key="id" name="customerinfo[id]" value="<?php echo $donor->id; ?>" /> |
392 | - <?php wp_nonce_field( 'edit-donor', '_wpnonce', false, true ); ?> |
|
392 | + <?php wp_nonce_field('edit-donor', '_wpnonce', false, true); ?> |
|
393 | 393 | <input type="hidden" name="give_action" value="edit-donor" /> |
394 | - <input type="submit" id="give-edit-donor-save" class="button-secondary" value="<?php _e( 'Update Donor', 'give' ); ?>" /> |
|
395 | - <a id="give-edit-donor-cancel" href="" class="delete"><?php _e( 'Cancel', 'give' ); ?></a> |
|
394 | + <input type="submit" id="give-edit-donor-save" class="button-secondary" value="<?php _e('Update Donor', 'give'); ?>" /> |
|
395 | + <a id="give-edit-donor-cancel" href="" class="delete"><?php _e('Cancel', 'give'); ?></a> |
|
396 | 396 | </span> |
397 | 397 | |
398 | 398 | </form> |
@@ -407,24 +407,24 @@ discard block |
||
407 | 407 | * |
408 | 408 | * @param object $donor The donor object being displayed. |
409 | 409 | */ |
410 | - do_action( 'give_donor_before_stats', $donor ); |
|
410 | + do_action('give_donor_before_stats', $donor); |
|
411 | 411 | ?> |
412 | 412 | |
413 | 413 | <div id="donor-stats-wrapper" class="donor-section postbox clear"> |
414 | 414 | <ul> |
415 | 415 | <li> |
416 | - <a href="<?php echo admin_url( 'edit.php?post_type=give_forms&page=give-payment-history&donor=' . absint( $donor->id ) ); ?>"> |
|
416 | + <a href="<?php echo admin_url('edit.php?post_type=give_forms&page=give-payment-history&donor='.absint($donor->id)); ?>"> |
|
417 | 417 | <span class="dashicons dashicons-heart"></span> |
418 | 418 | <?php |
419 | 419 | // Completed Donations. |
420 | - $completed_donations_text = sprintf( _n( '%d Completed Donation', '%d Completed Donations', $donor->purchase_count, 'give' ), $donor->purchase_count ); |
|
421 | - echo apply_filters( 'give_donor_completed_donations', $completed_donations_text, $donor ); |
|
420 | + $completed_donations_text = sprintf(_n('%d Completed Donation', '%d Completed Donations', $donor->purchase_count, 'give'), $donor->purchase_count); |
|
421 | + echo apply_filters('give_donor_completed_donations', $completed_donations_text, $donor); |
|
422 | 422 | ?> |
423 | 423 | </a> |
424 | 424 | </li> |
425 | 425 | <li> |
426 | 426 | <span class="dashicons dashicons-chart-area"></span> |
427 | - <?php echo give_currency_filter( give_format_amount( $donor->purchase_value, array( 'sanitize' => false ) ) ); ?> <?php _e( 'Lifetime Donations', 'give' ); ?> |
|
427 | + <?php echo give_currency_filter(give_format_amount($donor->purchase_value, array('sanitize' => false))); ?> <?php _e('Lifetime Donations', 'give'); ?> |
|
428 | 428 | </li> |
429 | 429 | <?php |
430 | 430 | /** |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | * |
437 | 437 | * @param object $donor The donor object being displayed. |
438 | 438 | */ |
439 | - do_action( 'give_donor_stats_list', $donor ); |
|
439 | + do_action('give_donor_stats_list', $donor); |
|
440 | 440 | ?> |
441 | 441 | </ul> |
442 | 442 | </div> |
@@ -449,7 +449,7 @@ discard block |
||
449 | 449 | * |
450 | 450 | * @param object $donor The donor object being displayed. |
451 | 451 | */ |
452 | - do_action( 'give_donor_before_tables_wrapper', $donor ); |
|
452 | + do_action('give_donor_before_tables_wrapper', $donor); |
|
453 | 453 | ?> |
454 | 454 | |
455 | 455 | <div id="donor-tables-wrapper" class="donor-section"> |
@@ -462,46 +462,46 @@ discard block |
||
462 | 462 | * |
463 | 463 | * @param object $donor The donor object being displayed. |
464 | 464 | */ |
465 | - do_action( 'give_donor_before_tables', $donor ); |
|
465 | + do_action('give_donor_before_tables', $donor); |
|
466 | 466 | ?> |
467 | 467 | |
468 | - <h3><?php _e( 'Donor Emails', 'give' ); ?></h3> |
|
468 | + <h3><?php _e('Donor Emails', 'give'); ?></h3> |
|
469 | 469 | |
470 | 470 | <table class="wp-list-table widefat striped emails"> |
471 | 471 | <thead> |
472 | 472 | <tr> |
473 | - <th><?php _e( 'Email', 'give' ); ?></th> |
|
474 | - <th><?php _e( 'Actions', 'give' ); ?></th> |
|
473 | + <th><?php _e('Email', 'give'); ?></th> |
|
474 | + <th><?php _e('Actions', 'give'); ?></th> |
|
475 | 475 | </tr> |
476 | 476 | </thead> |
477 | 477 | |
478 | 478 | <tbody> |
479 | - <?php if ( ! empty( $donor->emails ) ) { ?> |
|
479 | + <?php if ( ! empty($donor->emails)) { ?> |
|
480 | 480 | |
481 | - <?php foreach ( $donor->emails as $key => $email ) : ?> |
|
481 | + <?php foreach ($donor->emails as $key => $email) : ?> |
|
482 | 482 | <tr data-key="<?php echo $key; ?>"> |
483 | 483 | <td> |
484 | 484 | <?php echo $email; ?> |
485 | - <?php if ( 'primary' === $key ) : ?> |
|
485 | + <?php if ('primary' === $key) : ?> |
|
486 | 486 | <span class="dashicons dashicons-star-filled primary-email-icon"></span> |
487 | 487 | <?php endif; ?> |
488 | 488 | </td> |
489 | 489 | <td> |
490 | - <?php if ( 'primary' !== $key ) : ?> |
|
490 | + <?php if ('primary' !== $key) : ?> |
|
491 | 491 | <?php |
492 | - $base_url = admin_url( 'edit.php?post_type=give_forms&page=give-donors&view=overview&id=' . $donor->id ); |
|
493 | - $promote_url = wp_nonce_url( add_query_arg( array( |
|
494 | - 'email' => rawurlencode( $email ), |
|
492 | + $base_url = admin_url('edit.php?post_type=give_forms&page=give-donors&view=overview&id='.$donor->id); |
|
493 | + $promote_url = wp_nonce_url(add_query_arg(array( |
|
494 | + 'email' => rawurlencode($email), |
|
495 | 495 | 'give_action' => 'set_donor_primary_email', |
496 | - ), $base_url ), 'give-set-donor-primary-email' ); |
|
497 | - $remove_url = wp_nonce_url( add_query_arg( array( |
|
498 | - 'email' => rawurlencode( $email ), |
|
496 | + ), $base_url), 'give-set-donor-primary-email'); |
|
497 | + $remove_url = wp_nonce_url(add_query_arg(array( |
|
498 | + 'email' => rawurlencode($email), |
|
499 | 499 | 'give_action' => 'remove_donor_email', |
500 | - ), $base_url ), 'give-remove-donor-email' ); |
|
500 | + ), $base_url), 'give-remove-donor-email'); |
|
501 | 501 | ?> |
502 | - <a href="<?php echo $promote_url; ?>"><?php _e( 'Make Primary', 'give' ); ?></a> |
|
502 | + <a href="<?php echo $promote_url; ?>"><?php _e('Make Primary', 'give'); ?></a> |
|
503 | 503 | | |
504 | - <a href="<?php echo $remove_url; ?>" class="delete"><?php _e( 'Remove', 'give' ); ?></a> |
|
504 | + <a href="<?php echo $remove_url; ?>" class="delete"><?php _e('Remove', 'give'); ?></a> |
|
505 | 505 | <?php endif; ?> |
506 | 506 | </td> |
507 | 507 | </tr> |
@@ -511,59 +511,59 @@ discard block |
||
511 | 511 | <td colspan="2" class="add-donor-email-td"> |
512 | 512 | <div class="add-donor-email-wrapper"> |
513 | 513 | <input type="hidden" name="donor-id" value="<?php echo $donor->id; ?>" /> |
514 | - <?php wp_nonce_field( 'give_add_donor_email', 'add_email_nonce', false, true ); ?> |
|
515 | - <input type="email" name="additional-email" value="" placeholder="<?php _e( 'Email Address', 'give' ); ?>" /> |
|
516 | - <input type="checkbox" name="make-additional-primary" value="1" id="make-additional-primary" /> <label for="make-additional-primary"><?php _e( 'Make Primary', 'give' ); ?></label> |
|
517 | - <button class="button-secondary give-add-donor-email" id="add-donor-email"><?php _e( 'Add Email', 'give' ); ?></button> |
|
514 | + <?php wp_nonce_field('give_add_donor_email', 'add_email_nonce', false, true); ?> |
|
515 | + <input type="email" name="additional-email" value="" placeholder="<?php _e('Email Address', 'give'); ?>" /> |
|
516 | + <input type="checkbox" name="make-additional-primary" value="1" id="make-additional-primary" /> <label for="make-additional-primary"><?php _e('Make Primary', 'give'); ?></label> |
|
517 | + <button class="button-secondary give-add-donor-email" id="add-donor-email"><?php _e('Add Email', 'give'); ?></button> |
|
518 | 518 | <span class="spinner"></span> |
519 | 519 | </div> |
520 | 520 | <div class="notice-wrap"></div> |
521 | 521 | </td> |
522 | 522 | </tr> |
523 | 523 | <?php } else { ?> |
524 | - <tr><td colspan="2"><?php _e( 'No Emails Found', 'give' ); ?></td></tr> |
|
524 | + <tr><td colspan="2"><?php _e('No Emails Found', 'give'); ?></td></tr> |
|
525 | 525 | <?php }// End if(). |
526 | 526 | ?> |
527 | 527 | </tbody> |
528 | 528 | </table> |
529 | 529 | |
530 | - <h3><?php _e( 'Recent Donations', 'give' ); ?></h3> |
|
530 | + <h3><?php _e('Recent Donations', 'give'); ?></h3> |
|
531 | 531 | <?php |
532 | - $payment_ids = explode( ',', $donor->payment_ids ); |
|
533 | - $payments = give_get_payments( array( |
|
532 | + $payment_ids = explode(',', $donor->payment_ids); |
|
533 | + $payments = give_get_payments(array( |
|
534 | 534 | 'post__in' => $payment_ids, |
535 | - ) ); |
|
536 | - $payments = array_slice( $payments, 0, 10 ); |
|
535 | + )); |
|
536 | + $payments = array_slice($payments, 0, 10); |
|
537 | 537 | ?> |
538 | 538 | <table class="wp-list-table widefat striped payments"> |
539 | 539 | <thead> |
540 | 540 | <tr> |
541 | - <th scope="col"><?php _e( 'ID', 'give' ); ?></th> |
|
542 | - <th scope="col"><?php _e( 'Amount', 'give' ); ?></th> |
|
543 | - <th scope="col"><?php _e( 'Date', 'give' ); ?></th> |
|
544 | - <th scope="col"><?php _e( 'Status', 'give' ); ?></th> |
|
545 | - <th scope="col"><?php _e( 'Actions', 'give' ); ?></th> |
|
541 | + <th scope="col"><?php _e('ID', 'give'); ?></th> |
|
542 | + <th scope="col"><?php _e('Amount', 'give'); ?></th> |
|
543 | + <th scope="col"><?php _e('Date', 'give'); ?></th> |
|
544 | + <th scope="col"><?php _e('Status', 'give'); ?></th> |
|
545 | + <th scope="col"><?php _e('Actions', 'give'); ?></th> |
|
546 | 546 | </tr> |
547 | 547 | </thead> |
548 | 548 | <tbody> |
549 | - <?php if ( ! empty( $payments ) ) { ?> |
|
550 | - <?php foreach ( $payments as $payment ) : ?> |
|
549 | + <?php if ( ! empty($payments)) { ?> |
|
550 | + <?php foreach ($payments as $payment) : ?> |
|
551 | 551 | <tr> |
552 | 552 | <td><?php echo $payment->ID; ?></td> |
553 | - <td><?php echo give_payment_amount( $payment->ID ); ?></td> |
|
554 | - <td><?php echo date_i18n( give_date_format(), strtotime( $payment->post_date ) ); ?></td> |
|
555 | - <td><?php echo give_get_payment_status( $payment, true ); ?></td> |
|
553 | + <td><?php echo give_payment_amount($payment->ID); ?></td> |
|
554 | + <td><?php echo date_i18n(give_date_format(), strtotime($payment->post_date)); ?></td> |
|
555 | + <td><?php echo give_get_payment_status($payment, true); ?></td> |
|
556 | 556 | <td> |
557 | 557 | <?php |
558 | 558 | printf( |
559 | 559 | '<a href="%1$s" aria-label="%2$s">%3$s</a>', |
560 | - admin_url( 'edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id=' . $payment->ID ), |
|
560 | + admin_url('edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id='.$payment->ID), |
|
561 | 561 | sprintf( |
562 | 562 | /* translators: %s: Donation ID */ |
563 | - esc_attr__( 'View Donation %s.', 'give' ), |
|
563 | + esc_attr__('View Donation %s.', 'give'), |
|
564 | 564 | $payment->ID |
565 | 565 | ), |
566 | - __( 'View Donation', 'give' ) |
|
566 | + __('View Donation', 'give') |
|
567 | 567 | ); |
568 | 568 | ?> |
569 | 569 | |
@@ -578,47 +578,47 @@ discard block |
||
578 | 578 | * @param object $donor The donor object being displayed. |
579 | 579 | * @param object $payment The payment object being displayed. |
580 | 580 | */ |
581 | - do_action( 'give_donor_recent_purchases_actions', $donor, $payment ); |
|
581 | + do_action('give_donor_recent_purchases_actions', $donor, $payment); |
|
582 | 582 | ?> |
583 | 583 | </td> |
584 | 584 | </tr> |
585 | 585 | <?php endforeach; ?> |
586 | 586 | <?php } else { ?> |
587 | 587 | <tr> |
588 | - <td colspan="5"><?php _e( 'No donations found.', 'give' ); ?></td> |
|
588 | + <td colspan="5"><?php _e('No donations found.', 'give'); ?></td> |
|
589 | 589 | </tr> |
590 | 590 | <?php }// End if(). |
591 | 591 | ?> |
592 | 592 | </tbody> |
593 | 593 | </table> |
594 | 594 | |
595 | - <h3><?php _e( 'Completed Forms', 'give' ); ?></h3> |
|
595 | + <h3><?php _e('Completed Forms', 'give'); ?></h3> |
|
596 | 596 | <?php |
597 | - $donations = give_get_users_completed_donations( $donor->email ); |
|
597 | + $donations = give_get_users_completed_donations($donor->email); |
|
598 | 598 | ?> |
599 | 599 | <table class="wp-list-table widefat striped donations"> |
600 | 600 | <thead> |
601 | 601 | <tr> |
602 | - <th scope="col"><?php _e( 'Form', 'give' ); ?></th> |
|
603 | - <th scope="col" width="120px"><?php _e( 'Actions', 'give' ); ?></th> |
|
602 | + <th scope="col"><?php _e('Form', 'give'); ?></th> |
|
603 | + <th scope="col" width="120px"><?php _e('Actions', 'give'); ?></th> |
|
604 | 604 | </tr> |
605 | 605 | </thead> |
606 | 606 | <tbody> |
607 | - <?php if ( ! empty( $donations ) ) { ?> |
|
608 | - <?php foreach ( $donations as $donation ) : ?> |
|
607 | + <?php if ( ! empty($donations)) { ?> |
|
608 | + <?php foreach ($donations as $donation) : ?> |
|
609 | 609 | <tr> |
610 | 610 | <td><?php echo $donation->post_title; ?></td> |
611 | 611 | <td> |
612 | 612 | <?php |
613 | 613 | printf( |
614 | 614 | '<a href="%1$s" aria-label="%2$s">%3$s</a>', |
615 | - esc_url( admin_url( 'post.php?action=edit&post=' . $donation->ID ) ), |
|
615 | + esc_url(admin_url('post.php?action=edit&post='.$donation->ID)), |
|
616 | 616 | sprintf( |
617 | 617 | /* translators: %s: form name */ |
618 | - esc_attr__( 'View Form %s.', 'give' ), |
|
618 | + esc_attr__('View Form %s.', 'give'), |
|
619 | 619 | $donation->post_title |
620 | 620 | ), |
621 | - __( 'View Form', 'give' ) |
|
621 | + __('View Form', 'give') |
|
622 | 622 | ); |
623 | 623 | ?> |
624 | 624 | </td> |
@@ -626,7 +626,7 @@ discard block |
||
626 | 626 | <?php endforeach; ?> |
627 | 627 | <?php } else { ?> |
628 | 628 | <tr> |
629 | - <td colspan="2"><?php _e( 'No completed donations found.', 'give' ); ?></td> |
|
629 | + <td colspan="2"><?php _e('No completed donations found.', 'give'); ?></td> |
|
630 | 630 | </tr> |
631 | 631 | <?php } ?> |
632 | 632 | </tbody> |
@@ -640,7 +640,7 @@ discard block |
||
640 | 640 | * |
641 | 641 | * @param object $donor The donor object being displayed. |
642 | 642 | */ |
643 | - do_action( 'give_donor_after_tables', $donor ); |
|
643 | + do_action('give_donor_after_tables', $donor); |
|
644 | 644 | ?> |
645 | 645 | |
646 | 646 | </div> |
@@ -653,7 +653,7 @@ discard block |
||
653 | 653 | * |
654 | 654 | * @param object $donor The donor object being displayed. |
655 | 655 | */ |
656 | - do_action( 'give_donor_card_bottom', $donor ); |
|
656 | + do_action('give_donor_card_bottom', $donor); |
|
657 | 657 | |
658 | 658 | } |
659 | 659 | |
@@ -666,30 +666,30 @@ discard block |
||
666 | 666 | * |
667 | 667 | * @return void |
668 | 668 | */ |
669 | -function give_donor_notes_view( $donor ) { |
|
669 | +function give_donor_notes_view($donor) { |
|
670 | 670 | |
671 | - $paged = isset( $_GET['paged'] ) && is_numeric( $_GET['paged'] ) ? $_GET['paged'] : 1; |
|
672 | - $paged = absint( $paged ); |
|
671 | + $paged = isset($_GET['paged']) && is_numeric($_GET['paged']) ? $_GET['paged'] : 1; |
|
672 | + $paged = absint($paged); |
|
673 | 673 | $note_count = $donor->get_notes_count(); |
674 | - $per_page = apply_filters( 'give_donor_notes_per_page', 20 ); |
|
675 | - $total_pages = ceil( $note_count / $per_page ); |
|
676 | - $donor_notes = $donor->get_notes( $per_page, $paged ); |
|
674 | + $per_page = apply_filters('give_donor_notes_per_page', 20); |
|
675 | + $total_pages = ceil($note_count / $per_page); |
|
676 | + $donor_notes = $donor->get_notes($per_page, $paged); |
|
677 | 677 | ?> |
678 | 678 | |
679 | 679 | <div id="donor-notes-wrapper"> |
680 | 680 | <div class="donor-notes-header"> |
681 | - <?php echo get_avatar( $donor->email, 30 ); ?> <span><?php echo $donor->name; ?></span> |
|
681 | + <?php echo get_avatar($donor->email, 30); ?> <span><?php echo $donor->name; ?></span> |
|
682 | 682 | </div> |
683 | - <h3><?php _e( 'Notes', 'give' ); ?></h3> |
|
683 | + <h3><?php _e('Notes', 'give'); ?></h3> |
|
684 | 684 | |
685 | - <?php if ( 1 == $paged ) : ?> |
|
685 | + <?php if (1 == $paged) : ?> |
|
686 | 686 | <div style="display: block; margin-bottom: 55px;"> |
687 | - <form id="give-add-donor-note" method="post" action="<?php echo admin_url( 'edit.php?post_type=give_forms&page=give-donors&view=notes&id=' . $donor->id ); ?>"> |
|
687 | + <form id="give-add-donor-note" method="post" action="<?php echo admin_url('edit.php?post_type=give_forms&page=give-donors&view=notes&id='.$donor->id); ?>"> |
|
688 | 688 | <textarea id="donor-note" name="donor_note" class="donor-note-input" rows="10"></textarea> |
689 | 689 | <br /> |
690 | 690 | <input type="hidden" id="donor-id" name="customer_id" value="<?php echo $donor->id; ?>" /> |
691 | 691 | <input type="hidden" name="give_action" value="add-donor-note" /> |
692 | - <?php wp_nonce_field( 'add-donor-note', 'add_donor_note_nonce', true, true ); ?> |
|
692 | + <?php wp_nonce_field('add-donor-note', 'add_donor_note_nonce', true, true); ?> |
|
693 | 693 | <input id="add-donor-note" class="right button-primary" type="submit" value="Add Note" /> |
694 | 694 | </form> |
695 | 695 | </div> |
@@ -704,26 +704,26 @@ discard block |
||
704 | 704 | 'show_all' => true, |
705 | 705 | ); |
706 | 706 | |
707 | - echo paginate_links( $pagination_args ); |
|
707 | + echo paginate_links($pagination_args); |
|
708 | 708 | ?> |
709 | 709 | |
710 | 710 | <div id="give-donor-notes" class="postbox"> |
711 | - <?php if ( count( $donor_notes ) > 0 ) { ?> |
|
712 | - <?php foreach ( $donor_notes as $key => $note ) : ?> |
|
711 | + <?php if (count($donor_notes) > 0) { ?> |
|
712 | + <?php foreach ($donor_notes as $key => $note) : ?> |
|
713 | 713 | <div class="donor-note-wrapper dashboard-comment-wrap comment-item"> |
714 | 714 | <span class="note-content-wrap"> |
715 | - <?php echo stripslashes( $note ); ?> |
|
715 | + <?php echo stripslashes($note); ?> |
|
716 | 716 | </span> |
717 | 717 | </div> |
718 | 718 | <?php endforeach; ?> |
719 | 719 | <?php } else { ?> |
720 | 720 | <div class="give-no-donor-notes"> |
721 | - <?php _e( 'No donor notes found.', 'give' ); ?> |
|
721 | + <?php _e('No donor notes found.', 'give'); ?> |
|
722 | 722 | </div> |
723 | 723 | <?php } ?> |
724 | 724 | </div> |
725 | 725 | |
726 | - <?php echo paginate_links( $pagination_args ); ?> |
|
726 | + <?php echo paginate_links($pagination_args); ?> |
|
727 | 727 | |
728 | 728 | </div> |
729 | 729 | |
@@ -739,9 +739,9 @@ discard block |
||
739 | 739 | * |
740 | 740 | * @return void |
741 | 741 | */ |
742 | -function give_donor_delete_view( $donor ) { |
|
742 | +function give_donor_delete_view($donor) { |
|
743 | 743 | |
744 | - $donor_edit_role = apply_filters( 'give_edit_donors_role', 'edit_give_payments' ); |
|
744 | + $donor_edit_role = apply_filters('give_edit_donors_role', 'edit_give_payments'); |
|
745 | 745 | |
746 | 746 | /** |
747 | 747 | * Fires in donor delete screen, above the content. |
@@ -750,15 +750,15 @@ discard block |
||
750 | 750 | * |
751 | 751 | * @param object $donor The donor object being displayed. |
752 | 752 | */ |
753 | - do_action( 'give_donor_delete_top', $donor ); |
|
753 | + do_action('give_donor_delete_top', $donor); |
|
754 | 754 | ?> |
755 | 755 | |
756 | 756 | <div class="info-wrapper donor-section"> |
757 | 757 | |
758 | - <form id="delete-donor" method="post" action="<?php echo admin_url( 'edit.php?post_type=give_forms&page=give-donors&view=delete&id=' . $donor->id ); ?>"> |
|
758 | + <form id="delete-donor" method="post" action="<?php echo admin_url('edit.php?post_type=give_forms&page=give-donors&view=delete&id='.$donor->id); ?>"> |
|
759 | 759 | |
760 | 760 | <div class="donor-notes-header"> |
761 | - <?php echo get_avatar( $donor->email, 30 ); ?> <span><?php echo $donor->name; ?></span> |
|
761 | + <?php echo get_avatar($donor->email, 30); ?> <span><?php echo $donor->name; ?></span> |
|
762 | 762 | </div> |
763 | 763 | |
764 | 764 | |
@@ -766,20 +766,20 @@ discard block |
||
766 | 766 | |
767 | 767 | <span class="delete-donor-options"> |
768 | 768 | <p> |
769 | - <?php echo Give()->html->checkbox( array( |
|
769 | + <?php echo Give()->html->checkbox(array( |
|
770 | 770 | 'name' => 'give-donor-delete-confirm', |
771 | - ) ); ?> |
|
772 | - <label for="give-donor-delete-confirm"><?php _e( 'Are you sure you want to delete this donor?', 'give' ); ?></label> |
|
771 | + )); ?> |
|
772 | + <label for="give-donor-delete-confirm"><?php _e('Are you sure you want to delete this donor?', 'give'); ?></label> |
|
773 | 773 | </p> |
774 | 774 | |
775 | 775 | <p> |
776 | - <?php echo Give()->html->checkbox( array( |
|
776 | + <?php echo Give()->html->checkbox(array( |
|
777 | 777 | 'name' => 'give-donor-delete-records', |
778 | 778 | 'options' => array( |
779 | 779 | 'disabled' => true, |
780 | 780 | ), |
781 | - ) ); ?> |
|
782 | - <label for="give-donor-delete-records"><?php _e( 'Delete all associated donations and records?', 'give' ); ?></label> |
|
781 | + )); ?> |
|
782 | + <label for="give-donor-delete-records"><?php _e('Delete all associated donations and records?', 'give'); ?></label> |
|
783 | 783 | </p> |
784 | 784 | |
785 | 785 | <?php |
@@ -792,16 +792,16 @@ discard block |
||
792 | 792 | * |
793 | 793 | * @param object $donor The donor object being displayed. |
794 | 794 | */ |
795 | - do_action( 'give_donor_delete_inputs', $donor ); |
|
795 | + do_action('give_donor_delete_inputs', $donor); |
|
796 | 796 | ?> |
797 | 797 | </span> |
798 | 798 | |
799 | 799 | <span id="donor-edit-actions"> |
800 | 800 | <input type="hidden" name="customer_id" value="<?php echo $donor->id; ?>" /> |
801 | - <?php wp_nonce_field( 'delete-donor', '_wpnonce', false, true ); ?> |
|
801 | + <?php wp_nonce_field('delete-donor', '_wpnonce', false, true); ?> |
|
802 | 802 | <input type="hidden" name="give_action" value="delete-donor" /> |
803 | - <input type="submit" disabled="disabled" id="give-delete-donor" class="button-primary" value="<?php _e( 'Delete Donor', 'give' ); ?>" /> |
|
804 | - <a id="give-delete-donor-cancel" href="<?php echo admin_url( 'edit.php?post_type=give_forms&page=give-donors&view=overview&id=' . $donor->id ); ?>" class="delete"><?php _e( 'Cancel', 'give' ); ?></a> |
|
803 | + <input type="submit" disabled="disabled" id="give-delete-donor" class="button-primary" value="<?php _e('Delete Donor', 'give'); ?>" /> |
|
804 | + <a id="give-delete-donor-cancel" href="<?php echo admin_url('edit.php?post_type=give_forms&page=give-donors&view=overview&id='.$donor->id); ?>" class="delete"><?php _e('Cancel', 'give'); ?></a> |
|
805 | 805 | </span> |
806 | 806 | |
807 | 807 | </div> |
@@ -817,5 +817,5 @@ discard block |
||
817 | 817 | * |
818 | 818 | * @param object $donor The donor object being displayed. |
819 | 819 | */ |
820 | - do_action( 'give_donor_delete_bottom', $donor ); |
|
820 | + do_action('give_donor_delete_bottom', $donor); |
|
821 | 821 | } |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | */ |
11 | 11 | |
12 | 12 | // Exit if accessed directly. |
13 | -if ( ! defined( 'ABSPATH' ) ) { |
|
13 | +if ( ! defined('ABSPATH')) { |
|
14 | 14 | exit; |
15 | 15 | } |
16 | 16 | |
@@ -25,26 +25,26 @@ discard block |
||
25 | 25 | */ |
26 | 26 | function give_load_scripts() { |
27 | 27 | |
28 | - $js_dir = GIVE_PLUGIN_URL . 'assets/js/frontend/'; |
|
29 | - $js_plugins = GIVE_PLUGIN_URL . 'assets/js/plugins/'; |
|
30 | - $scripts_footer = ( give_is_setting_enabled( give_get_option( 'scripts_footer' ) ) ) ? true : false; |
|
28 | + $js_dir = GIVE_PLUGIN_URL.'assets/js/frontend/'; |
|
29 | + $js_plugins = GIVE_PLUGIN_URL.'assets/js/plugins/'; |
|
30 | + $scripts_footer = (give_is_setting_enabled(give_get_option('scripts_footer'))) ? true : false; |
|
31 | 31 | |
32 | 32 | // Use minified libraries if SCRIPT_DEBUG is turned off. |
33 | - $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; |
|
33 | + $suffix = (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) ? '' : '.min'; |
|
34 | 34 | |
35 | 35 | // Localize / PHP to AJAX vars. |
36 | - $localize_give_vars = apply_filters( 'give_global_script_vars', array( |
|
36 | + $localize_give_vars = apply_filters('give_global_script_vars', array( |
|
37 | 37 | 'ajaxurl' => give_get_ajax_url(), |
38 | - 'checkout_nonce' => wp_create_nonce( 'give_checkout_nonce' ), |
|
38 | + 'checkout_nonce' => wp_create_nonce('give_checkout_nonce'), |
|
39 | 39 | 'currency' => give_get_currency(), |
40 | - 'currency_sign' => give_currency_filter( '' ), |
|
40 | + 'currency_sign' => give_currency_filter(''), |
|
41 | 41 | 'currency_pos' => give_get_currency_position(), |
42 | 42 | 'thousands_separator' => give_get_price_thousand_separator(), |
43 | 43 | 'decimal_separator' => give_get_price_decimal_separator(), |
44 | - 'no_gateway' => __( 'Please select a payment method.', 'give' ), |
|
45 | - 'bad_minimum' => __( 'The minimum custom donation amount for this form is', 'give' ), |
|
46 | - 'general_loading' => __( 'Loading...', 'give' ), |
|
47 | - 'purchase_loading' => __( 'Please Wait...', 'give' ), |
|
44 | + 'no_gateway' => __('Please select a payment method.', 'give'), |
|
45 | + 'bad_minimum' => __('The minimum custom donation amount for this form is', 'give'), |
|
46 | + 'general_loading' => __('Loading...', 'give'), |
|
47 | + 'purchase_loading' => __('Please Wait...', 'give'), |
|
48 | 48 | 'number_decimals' => give_get_price_decimals(), |
49 | 49 | 'give_version' => GIVE_VERSION, |
50 | 50 | 'magnific_options' => apply_filters( |
@@ -58,81 +58,81 @@ discard block |
||
58 | 58 | 'give_form_translation_js', |
59 | 59 | array( |
60 | 60 | // Field name Validation message. |
61 | - 'payment-mode' => __( 'Please select payment mode.', 'give' ), |
|
62 | - 'give_first' => __( 'Please enter your first name.', 'give' ), |
|
63 | - 'give_email' => __( 'Please enter a valid email address.', 'give' ), |
|
64 | - 'give_user_login' => __( 'Invalid username. Only lowercase letters (a-z) and numbers are allowed.', 'give' ), |
|
65 | - 'give_user_pass' => __( 'Enter a password.', 'give' ), |
|
66 | - 'give_user_pass_confirm' => __( 'Enter the password confirmation.', 'give' ), |
|
67 | - 'give_agree_to_terms' => __( 'You must agree to the terms and conditions.', 'give' ), |
|
61 | + 'payment-mode' => __('Please select payment mode.', 'give'), |
|
62 | + 'give_first' => __('Please enter your first name.', 'give'), |
|
63 | + 'give_email' => __('Please enter a valid email address.', 'give'), |
|
64 | + 'give_user_login' => __('Invalid username. Only lowercase letters (a-z) and numbers are allowed.', 'give'), |
|
65 | + 'give_user_pass' => __('Enter a password.', 'give'), |
|
66 | + 'give_user_pass_confirm' => __('Enter the password confirmation.', 'give'), |
|
67 | + 'give_agree_to_terms' => __('You must agree to the terms and conditions.', 'give'), |
|
68 | 68 | ) |
69 | 69 | ), |
70 | - ) ); |
|
70 | + )); |
|
71 | 71 | |
72 | - $localize_give_ajax = apply_filters( 'give_global_ajax_vars', array( |
|
72 | + $localize_give_ajax = apply_filters('give_global_ajax_vars', array( |
|
73 | 73 | 'ajaxurl' => give_get_ajax_url(), |
74 | - 'loading' => __( 'Loading', 'give' ), |
|
74 | + 'loading' => __('Loading', 'give'), |
|
75 | 75 | // General loading message. |
76 | - 'select_option' => __( 'Please select an option', 'give' ), |
|
76 | + 'select_option' => __('Please select an option', 'give'), |
|
77 | 77 | // Variable pricing error with multi-donation option enabled. |
78 | - 'default_gateway' => give_get_default_gateway( null ), |
|
79 | - 'permalinks' => get_option( 'permalink_structure' ) ? '1' : '0', |
|
78 | + 'default_gateway' => give_get_default_gateway(null), |
|
79 | + 'permalinks' => get_option('permalink_structure') ? '1' : '0', |
|
80 | 80 | 'number_decimals' => give_get_price_decimals(), |
81 | - ) ); |
|
81 | + )); |
|
82 | 82 | |
83 | 83 | // DEBUG is On. |
84 | - if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) { |
|
84 | + if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) { |
|
85 | 85 | |
86 | - if ( give_is_cc_verify_enabled() ) { |
|
87 | - wp_register_script( 'give-cc-validator', $js_plugins . 'jquery.payment' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer ); |
|
88 | - wp_enqueue_script( 'give-cc-validator' ); |
|
86 | + if (give_is_cc_verify_enabled()) { |
|
87 | + wp_register_script('give-cc-validator', $js_plugins.'jquery.payment'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer); |
|
88 | + wp_enqueue_script('give-cc-validator'); |
|
89 | 89 | } |
90 | 90 | |
91 | - wp_register_script( 'give-float-labels', $js_plugins . 'float-labels' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer ); |
|
92 | - wp_enqueue_script( 'give-float-labels' ); |
|
91 | + wp_register_script('give-float-labels', $js_plugins.'float-labels'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer); |
|
92 | + wp_enqueue_script('give-float-labels'); |
|
93 | 93 | |
94 | - wp_register_script( 'give-blockui', $js_plugins . 'jquery.blockUI' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer ); |
|
95 | - wp_enqueue_script( 'give-blockui' ); |
|
94 | + wp_register_script('give-blockui', $js_plugins.'jquery.blockUI'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer); |
|
95 | + wp_enqueue_script('give-blockui'); |
|
96 | 96 | |
97 | - wp_register_script( 'give-qtip', $js_plugins . 'jquery.qtip' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer ); |
|
98 | - wp_enqueue_script( 'give-qtip' ); |
|
97 | + wp_register_script('give-qtip', $js_plugins.'jquery.qtip'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer); |
|
98 | + wp_enqueue_script('give-qtip'); |
|
99 | 99 | |
100 | - wp_register_script( 'give-accounting', $js_plugins . 'accounting' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer ); |
|
101 | - wp_enqueue_script( 'give-accounting' ); |
|
100 | + wp_register_script('give-accounting', $js_plugins.'accounting'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer); |
|
101 | + wp_enqueue_script('give-accounting'); |
|
102 | 102 | |
103 | - wp_register_script( 'give-magnific', $js_plugins . 'jquery.magnific-popup' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer ); |
|
104 | - wp_enqueue_script( 'give-magnific' ); |
|
103 | + wp_register_script('give-magnific', $js_plugins.'jquery.magnific-popup'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer); |
|
104 | + wp_enqueue_script('give-magnific'); |
|
105 | 105 | |
106 | - wp_register_script( 'give-checkout-global', $js_dir . 'give-checkout-global' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer ); |
|
107 | - wp_enqueue_script( 'give-checkout-global' ); |
|
106 | + wp_register_script('give-checkout-global', $js_dir.'give-checkout-global'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer); |
|
107 | + wp_enqueue_script('give-checkout-global'); |
|
108 | 108 | |
109 | 109 | // General scripts. |
110 | - wp_register_script( 'give-scripts', $js_dir . 'give' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer ); |
|
111 | - wp_enqueue_script( 'give-scripts' ); |
|
110 | + wp_register_script('give-scripts', $js_dir.'give'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer); |
|
111 | + wp_enqueue_script('give-scripts'); |
|
112 | 112 | |
113 | 113 | // Load AJAX scripts, if enabled. |
114 | - wp_register_script( 'give-ajax', $js_dir . 'give-ajax' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer ); |
|
115 | - wp_enqueue_script( 'give-ajax' ); |
|
114 | + wp_register_script('give-ajax', $js_dir.'give-ajax'.$suffix.'.js', array('jquery'), GIVE_VERSION, $scripts_footer); |
|
115 | + wp_enqueue_script('give-ajax'); |
|
116 | 116 | |
117 | 117 | // Localize / Pass AJAX vars from PHP, |
118 | - wp_localize_script( 'give-checkout-global', 'give_global_vars', $localize_give_vars ); |
|
119 | - wp_localize_script( 'give-ajax', 'give_scripts', $localize_give_ajax ); |
|
118 | + wp_localize_script('give-checkout-global', 'give_global_vars', $localize_give_vars); |
|
119 | + wp_localize_script('give-ajax', 'give_scripts', $localize_give_ajax); |
|
120 | 120 | |
121 | 121 | } else { |
122 | 122 | |
123 | 123 | // DEBUG is OFF (one JS file to rule them all!). |
124 | - wp_register_script( 'give', $js_dir . 'give.all.min.js', array( 'jquery' ), GIVE_VERSION, $scripts_footer ); |
|
125 | - wp_enqueue_script( 'give' ); |
|
124 | + wp_register_script('give', $js_dir.'give.all.min.js', array('jquery'), GIVE_VERSION, $scripts_footer); |
|
125 | + wp_enqueue_script('give'); |
|
126 | 126 | |
127 | 127 | // Localize / Pass AJAX vars from PHP. |
128 | - wp_localize_script( 'give', 'give_global_vars', $localize_give_vars ); |
|
129 | - wp_localize_script( 'give', 'give_scripts', $localize_give_ajax ); |
|
128 | + wp_localize_script('give', 'give_global_vars', $localize_give_vars); |
|
129 | + wp_localize_script('give', 'give_scripts', $localize_give_ajax); |
|
130 | 130 | |
131 | 131 | } |
132 | 132 | |
133 | 133 | } |
134 | 134 | |
135 | -add_action( 'wp_enqueue_scripts', 'give_load_scripts' ); |
|
135 | +add_action('wp_enqueue_scripts', 'give_load_scripts'); |
|
136 | 136 | |
137 | 137 | /** |
138 | 138 | * Register styles. |
@@ -145,16 +145,16 @@ discard block |
||
145 | 145 | */ |
146 | 146 | function give_register_styles() { |
147 | 147 | |
148 | - if ( ! give_is_setting_enabled( give_get_option( 'css' ) ) ) { |
|
148 | + if ( ! give_is_setting_enabled(give_get_option('css'))) { |
|
149 | 149 | return; |
150 | 150 | } |
151 | 151 | |
152 | - wp_register_style( 'give-styles', give_get_stylesheet_uri(), array(), GIVE_VERSION, 'all' ); |
|
153 | - wp_enqueue_style( 'give-styles' ); |
|
152 | + wp_register_style('give-styles', give_get_stylesheet_uri(), array(), GIVE_VERSION, 'all'); |
|
153 | + wp_enqueue_style('give-styles'); |
|
154 | 154 | |
155 | 155 | } |
156 | 156 | |
157 | -add_action( 'wp_enqueue_scripts', 'give_register_styles' ); |
|
157 | +add_action('wp_enqueue_scripts', 'give_register_styles'); |
|
158 | 158 | |
159 | 159 | |
160 | 160 | /** |
@@ -167,19 +167,19 @@ discard block |
||
167 | 167 | function give_get_stylesheet_uri() { |
168 | 168 | |
169 | 169 | // Use minified libraries if SCRIPT_DEBUG is turned off. |
170 | - $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; |
|
170 | + $suffix = (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) ? '' : '.min'; |
|
171 | 171 | |
172 | 172 | // LTR or RTL files. |
173 | - $direction = ( is_rtl() ) ? '-rtl' : ''; |
|
173 | + $direction = (is_rtl()) ? '-rtl' : ''; |
|
174 | 174 | |
175 | - $file = 'give' . $direction . $suffix . '.css'; |
|
175 | + $file = 'give'.$direction.$suffix.'.css'; |
|
176 | 176 | $templates_dir = give_get_theme_template_dir_name(); |
177 | 177 | |
178 | - $child_theme_style_sheet = trailingslashit( get_stylesheet_directory() ) . $templates_dir . $file; |
|
179 | - $child_theme_style_sheet_2 = trailingslashit( get_stylesheet_directory() ) . $templates_dir . 'give' . $direction . '.css'; |
|
180 | - $parent_theme_style_sheet = trailingslashit( get_template_directory() ) . $templates_dir . $file; |
|
181 | - $parent_theme_style_sheet_2 = trailingslashit( get_template_directory() ) . $templates_dir . 'give' . $direction . '.css'; |
|
182 | - $give_plugin_style_sheet = trailingslashit( give_get_templates_dir() ) . $file; |
|
178 | + $child_theme_style_sheet = trailingslashit(get_stylesheet_directory()).$templates_dir.$file; |
|
179 | + $child_theme_style_sheet_2 = trailingslashit(get_stylesheet_directory()).$templates_dir.'give'.$direction.'.css'; |
|
180 | + $parent_theme_style_sheet = trailingslashit(get_template_directory()).$templates_dir.$file; |
|
181 | + $parent_theme_style_sheet_2 = trailingslashit(get_template_directory()).$templates_dir.'give'.$direction.'.css'; |
|
182 | + $give_plugin_style_sheet = trailingslashit(give_get_templates_dir()).$file; |
|
183 | 183 | |
184 | 184 | $uri = false; |
185 | 185 | |
@@ -189,23 +189,23 @@ discard block |
||
189 | 189 | * followed by non minified version, even if SCRIPT_DEBUG is not enabled. |
190 | 190 | * This allows users to copy just give.css to their theme. |
191 | 191 | */ |
192 | - if ( file_exists( $child_theme_style_sheet ) || ( ! empty( $suffix ) && ( $nonmin = file_exists( $child_theme_style_sheet_2 ) ) ) ) { |
|
193 | - if ( ! empty( $nonmin ) ) { |
|
194 | - $uri = trailingslashit( get_stylesheet_directory_uri() ) . $templates_dir . 'give' . $direction . '.css'; |
|
192 | + if (file_exists($child_theme_style_sheet) || ( ! empty($suffix) && ($nonmin = file_exists($child_theme_style_sheet_2)))) { |
|
193 | + if ( ! empty($nonmin)) { |
|
194 | + $uri = trailingslashit(get_stylesheet_directory_uri()).$templates_dir.'give'.$direction.'.css'; |
|
195 | 195 | } else { |
196 | - $uri = trailingslashit( get_stylesheet_directory_uri() ) . $templates_dir . $file; |
|
196 | + $uri = trailingslashit(get_stylesheet_directory_uri()).$templates_dir.$file; |
|
197 | 197 | } |
198 | - } elseif ( file_exists( $parent_theme_style_sheet ) || ( ! empty( $suffix ) && ( $nonmin = file_exists( $parent_theme_style_sheet_2 ) ) ) ) { |
|
199 | - if ( ! empty( $nonmin ) ) { |
|
200 | - $uri = trailingslashit( get_template_directory_uri() ) . $templates_dir . 'give' . $direction . '.css'; |
|
198 | + } elseif (file_exists($parent_theme_style_sheet) || ( ! empty($suffix) && ($nonmin = file_exists($parent_theme_style_sheet_2)))) { |
|
199 | + if ( ! empty($nonmin)) { |
|
200 | + $uri = trailingslashit(get_template_directory_uri()).$templates_dir.'give'.$direction.'.css'; |
|
201 | 201 | } else { |
202 | - $uri = trailingslashit( get_template_directory_uri() ) . $templates_dir . $file; |
|
202 | + $uri = trailingslashit(get_template_directory_uri()).$templates_dir.$file; |
|
203 | 203 | } |
204 | - } elseif ( file_exists( $give_plugin_style_sheet ) || file_exists( $give_plugin_style_sheet ) ) { |
|
205 | - $uri = trailingslashit( give_get_templates_url() ) . $file; |
|
204 | + } elseif (file_exists($give_plugin_style_sheet) || file_exists($give_plugin_style_sheet)) { |
|
205 | + $uri = trailingslashit(give_get_templates_url()).$file; |
|
206 | 206 | } |
207 | 207 | |
208 | - return apply_filters( 'give_get_stylesheet_uri', $uri ); |
|
208 | + return apply_filters('give_get_stylesheet_uri', $uri); |
|
209 | 209 | |
210 | 210 | } |
211 | 211 | |
@@ -222,79 +222,79 @@ discard block |
||
222 | 222 | * |
223 | 223 | * @return void |
224 | 224 | */ |
225 | -function give_load_admin_scripts( $hook ) { |
|
225 | +function give_load_admin_scripts($hook) { |
|
226 | 226 | |
227 | 227 | global $post, $post_type; |
228 | 228 | |
229 | 229 | $give_options = give_get_settings(); |
230 | 230 | |
231 | 231 | // Directories of assets. |
232 | - $js_dir = GIVE_PLUGIN_URL . 'assets/js/admin/'; |
|
233 | - $js_plugins = GIVE_PLUGIN_URL . 'assets/js/plugins/'; |
|
234 | - $css_dir = GIVE_PLUGIN_URL . 'assets/css/'; |
|
232 | + $js_dir = GIVE_PLUGIN_URL.'assets/js/admin/'; |
|
233 | + $js_plugins = GIVE_PLUGIN_URL.'assets/js/plugins/'; |
|
234 | + $css_dir = GIVE_PLUGIN_URL.'assets/css/'; |
|
235 | 235 | |
236 | 236 | // Use minified libraries if SCRIPT_DEBUG is turned off. |
237 | - $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; |
|
237 | + $suffix = (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) ? '' : '.min'; |
|
238 | 238 | |
239 | 239 | // LTR or RTL files. |
240 | - $direction = ( is_rtl() ) ? '-rtl' : ''; |
|
240 | + $direction = (is_rtl()) ? '-rtl' : ''; |
|
241 | 241 | |
242 | 242 | // Global Admin. |
243 | - wp_register_style( 'give-admin-bar-notification', $css_dir . 'adminbar-style.css' ); |
|
244 | - wp_enqueue_style( 'give-admin-bar-notification' ); |
|
243 | + wp_register_style('give-admin-bar-notification', $css_dir.'adminbar-style.css'); |
|
244 | + wp_enqueue_style('give-admin-bar-notification'); |
|
245 | 245 | |
246 | 246 | // Give Admin Only. |
247 | - if ( ! apply_filters( 'give_load_admin_scripts', give_is_admin_page(), $hook ) ) { |
|
247 | + if ( ! apply_filters('give_load_admin_scripts', give_is_admin_page(), $hook)) { |
|
248 | 248 | return; |
249 | 249 | } |
250 | 250 | |
251 | 251 | // CSS. |
252 | - wp_register_style( 'jquery-ui-css', $css_dir . 'jquery-ui-fresh' . $suffix . '.css' ); |
|
253 | - wp_enqueue_style( 'jquery-ui-css' ); |
|
254 | - wp_register_style( 'give-admin', $css_dir . 'give-admin' . $direction . $suffix . '.css', array(), GIVE_VERSION ); |
|
255 | - wp_enqueue_style( 'give-admin' ); |
|
256 | - wp_register_style( 'jquery-chosen', $css_dir . 'chosen' . $suffix . '.css', array(), GIVE_VERSION ); |
|
257 | - wp_enqueue_style( 'jquery-chosen' ); |
|
258 | - wp_enqueue_style( 'thickbox' ); |
|
259 | - wp_enqueue_style( 'wp-color-picker' ); |
|
252 | + wp_register_style('jquery-ui-css', $css_dir.'jquery-ui-fresh'.$suffix.'.css'); |
|
253 | + wp_enqueue_style('jquery-ui-css'); |
|
254 | + wp_register_style('give-admin', $css_dir.'give-admin'.$direction.$suffix.'.css', array(), GIVE_VERSION); |
|
255 | + wp_enqueue_style('give-admin'); |
|
256 | + wp_register_style('jquery-chosen', $css_dir.'chosen'.$suffix.'.css', array(), GIVE_VERSION); |
|
257 | + wp_enqueue_style('jquery-chosen'); |
|
258 | + wp_enqueue_style('thickbox'); |
|
259 | + wp_enqueue_style('wp-color-picker'); |
|
260 | 260 | |
261 | 261 | |
262 | 262 | // JS. |
263 | - wp_register_script( 'give-selector-cache', $js_plugins . 'selector-cache' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, false ); |
|
264 | - wp_enqueue_script( 'give-selector-cache' ); |
|
263 | + wp_register_script('give-selector-cache', $js_plugins.'selector-cache'.$suffix.'.js', array('jquery'), GIVE_VERSION, false); |
|
264 | + wp_enqueue_script('give-selector-cache'); |
|
265 | 265 | |
266 | - wp_register_script( 'jquery-chosen', $js_plugins . 'chosen.jquery' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION ); |
|
267 | - wp_enqueue_script( 'jquery-chosen' ); |
|
266 | + wp_register_script('jquery-chosen', $js_plugins.'chosen.jquery'.$suffix.'.js', array('jquery'), GIVE_VERSION); |
|
267 | + wp_enqueue_script('jquery-chosen'); |
|
268 | 268 | |
269 | - wp_register_script( 'give-accounting', $js_plugins . 'accounting' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, false ); |
|
270 | - wp_enqueue_script( 'give-accounting' ); |
|
269 | + wp_register_script('give-accounting', $js_plugins.'accounting'.$suffix.'.js', array('jquery'), GIVE_VERSION, false); |
|
270 | + wp_enqueue_script('give-accounting'); |
|
271 | 271 | |
272 | - wp_enqueue_script( 'wp-color-picker' ); |
|
273 | - wp_enqueue_script( 'jquery-ui-datepicker' ); |
|
274 | - wp_enqueue_script( 'thickbox' ); |
|
272 | + wp_enqueue_script('wp-color-picker'); |
|
273 | + wp_enqueue_script('jquery-ui-datepicker'); |
|
274 | + wp_enqueue_script('thickbox'); |
|
275 | 275 | |
276 | - wp_register_script( 'give-admin-scripts', $js_dir . 'admin-scripts' . $suffix . '.js', array( 'jquery', 'jquery-ui-datepicker', 'wp-color-picker', 'jquery-query' ), GIVE_VERSION, false ); |
|
277 | - wp_enqueue_script( 'give-admin-scripts' ); |
|
276 | + wp_register_script('give-admin-scripts', $js_dir.'admin-scripts'.$suffix.'.js', array('jquery', 'jquery-ui-datepicker', 'wp-color-picker', 'jquery-query'), GIVE_VERSION, false); |
|
277 | + wp_enqueue_script('give-admin-scripts'); |
|
278 | 278 | |
279 | - wp_register_script( 'jquery-flot', $js_plugins . 'jquery.flot' . $suffix . '.js' ); |
|
280 | - wp_enqueue_script( 'jquery-flot' ); |
|
279 | + wp_register_script('jquery-flot', $js_plugins.'jquery.flot'.$suffix.'.js'); |
|
280 | + wp_enqueue_script('jquery-flot'); |
|
281 | 281 | |
282 | - wp_register_script( 'give-qtip', $js_plugins . 'jquery.qtip' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, false ); |
|
283 | - wp_enqueue_script( 'give-qtip' ); |
|
282 | + wp_register_script('give-qtip', $js_plugins.'jquery.qtip'.$suffix.'.js', array('jquery'), GIVE_VERSION, false); |
|
283 | + wp_enqueue_script('give-qtip'); |
|
284 | 284 | |
285 | - wp_register_script( 'give-repeatable-fields', $js_plugins . 'repeatable-fields' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, false ); |
|
286 | - wp_enqueue_script( 'give-repeatable-fields' ); |
|
285 | + wp_register_script('give-repeatable-fields', $js_plugins.'repeatable-fields'.$suffix.'.js', array('jquery'), GIVE_VERSION, false); |
|
286 | + wp_enqueue_script('give-repeatable-fields'); |
|
287 | 287 | |
288 | 288 | // Forms CPT Script. |
289 | - if ( $post_type === 'give_forms' ) { |
|
290 | - wp_register_script( 'give-admin-forms-scripts', $js_dir . 'admin-forms' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, false ); |
|
291 | - wp_enqueue_script( 'give-admin-forms-scripts' ); |
|
289 | + if ($post_type === 'give_forms') { |
|
290 | + wp_register_script('give-admin-forms-scripts', $js_dir.'admin-forms'.$suffix.'.js', array('jquery'), GIVE_VERSION, false); |
|
291 | + wp_enqueue_script('give-admin-forms-scripts'); |
|
292 | 292 | } |
293 | 293 | |
294 | 294 | // Settings Scripts. |
295 | - if ( isset( $_GET['page'] ) && $_GET['page'] == 'give-settings' ) { |
|
296 | - wp_register_script( 'give-admin-settings-scripts', $js_dir . 'admin-settings' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, false ); |
|
297 | - wp_enqueue_script( 'give-admin-settings-scripts' ); |
|
295 | + if (isset($_GET['page']) && $_GET['page'] == 'give-settings') { |
|
296 | + wp_register_script('give-admin-settings-scripts', $js_dir.'admin-settings'.$suffix.'.js', array('jquery'), GIVE_VERSION, false); |
|
297 | + wp_enqueue_script('give-admin-settings-scripts'); |
|
298 | 298 | } |
299 | 299 | |
300 | 300 | // Price Separators. |
@@ -302,88 +302,88 @@ discard block |
||
302 | 302 | $decimal_separator = give_get_price_decimal_separator(); |
303 | 303 | |
304 | 304 | // Localize strings & variables for JS. |
305 | - wp_localize_script( 'give-admin-scripts', 'give_vars', array( |
|
306 | - 'post_id' => isset( $post->ID ) ? $post->ID : null, |
|
305 | + wp_localize_script('give-admin-scripts', 'give_vars', array( |
|
306 | + 'post_id' => isset($post->ID) ? $post->ID : null, |
|
307 | 307 | 'give_version' => GIVE_VERSION, |
308 | 308 | 'thousands_separator' => $thousand_separator, |
309 | 309 | 'decimal_separator' => $decimal_separator, |
310 | - 'quick_edit_warning' => __( 'Not available for variable priced forms.', 'give' ), |
|
311 | - 'delete_payment' => __( 'Are you sure you want to delete this payment?', 'give' ), |
|
312 | - 'delete_payment_note' => __( 'Are you sure you want to delete this note?', 'give' ), |
|
313 | - 'revoke_api_key' => __( 'Are you sure you want to revoke this API key?', 'give' ), |
|
314 | - 'regenerate_api_key' => __( 'Are you sure you want to regenerate this API key?', 'give' ), |
|
315 | - 'resend_receipt' => __( 'Are you sure you want to resend the donation receipt?', 'give' ), |
|
316 | - 'disconnect_user' => __( 'Are you sure you want to disconnect the user from this donor?', 'give' ), |
|
317 | - 'one_option' => __( 'Choose a form', 'give' ), |
|
318 | - 'one_or_more_option' => __( 'Choose one or more forms', 'give' ), |
|
319 | - 'currency_sign' => give_currency_filter( '' ), |
|
320 | - 'currency_pos' => isset( $give_options['currency_position'] ) ? $give_options['currency_position'] : 'before', |
|
310 | + 'quick_edit_warning' => __('Not available for variable priced forms.', 'give'), |
|
311 | + 'delete_payment' => __('Are you sure you want to delete this payment?', 'give'), |
|
312 | + 'delete_payment_note' => __('Are you sure you want to delete this note?', 'give'), |
|
313 | + 'revoke_api_key' => __('Are you sure you want to revoke this API key?', 'give'), |
|
314 | + 'regenerate_api_key' => __('Are you sure you want to regenerate this API key?', 'give'), |
|
315 | + 'resend_receipt' => __('Are you sure you want to resend the donation receipt?', 'give'), |
|
316 | + 'disconnect_user' => __('Are you sure you want to disconnect the user from this donor?', 'give'), |
|
317 | + 'one_option' => __('Choose a form', 'give'), |
|
318 | + 'one_or_more_option' => __('Choose one or more forms', 'give'), |
|
319 | + 'currency_sign' => give_currency_filter(''), |
|
320 | + 'currency_pos' => isset($give_options['currency_position']) ? $give_options['currency_position'] : 'before', |
|
321 | 321 | 'currency_decimals' => give_get_price_decimals(), |
322 | - 'batch_export_no_class' => __( 'You must choose a method.', 'give' ), |
|
323 | - 'batch_export_no_reqs' => __( 'Required fields not completed.', 'give' ), |
|
324 | - 'reset_stats_warn' => __( 'Are you sure you want to reset Give? This process is <strong><em>not reversible</em></strong> and will delete all data regardless of test or live mode. Please be sure you have a recent backup before proceeding.', 'give' ), |
|
325 | - 'delete_test_donor' => __( 'Are you sure you want to delete all the test donors? This process will also delete test donations as well.', 'give' ), |
|
326 | - 'delete_import_donor' => __( 'Are you sure you want to delete all the imported donors? This process will also delete imported donations as well.', 'give' ), |
|
327 | - 'price_format_guide' => sprintf( __( 'Please enter amount in monetary decimal ( %1$s ) format without thousand separator ( %2$s ) .', 'give' ), $decimal_separator, $thousand_separator ), |
|
322 | + 'batch_export_no_class' => __('You must choose a method.', 'give'), |
|
323 | + 'batch_export_no_reqs' => __('Required fields not completed.', 'give'), |
|
324 | + 'reset_stats_warn' => __('Are you sure you want to reset Give? This process is <strong><em>not reversible</em></strong> and will delete all data regardless of test or live mode. Please be sure you have a recent backup before proceeding.', 'give'), |
|
325 | + 'delete_test_donor' => __('Are you sure you want to delete all the test donors? This process will also delete test donations as well.', 'give'), |
|
326 | + 'delete_import_donor' => __('Are you sure you want to delete all the imported donors? This process will also delete imported donations as well.', 'give'), |
|
327 | + 'price_format_guide' => sprintf(__('Please enter amount in monetary decimal ( %1$s ) format without thousand separator ( %2$s ) .', 'give'), $decimal_separator, $thousand_separator), |
|
328 | 328 | /* translators : %s: Donation form options metabox */ |
329 | - 'confirm_before_remove_row_text' => __( 'Do you want to delete this level?', 'give' ), |
|
330 | - 'matched_success_failure_page' => __( 'You cannot set the success and failed pages to the same page', 'give' ), |
|
331 | - 'dismiss_notice_text' => __( 'Dismiss this notice.', 'give' ), |
|
332 | - 'search_placeholder' => __( 'Type to search all forms', 'give' ), |
|
333 | - 'search_placeholder_donor' => __( 'Type to search all donors', 'give' ), |
|
334 | - 'search_placeholder_country' => __( 'Type to search all countries', 'give' ), |
|
335 | - 'search_placeholder_state' => __( 'Type to search all states/provinces', 'give' ), |
|
329 | + 'confirm_before_remove_row_text' => __('Do you want to delete this level?', 'give'), |
|
330 | + 'matched_success_failure_page' => __('You cannot set the success and failed pages to the same page', 'give'), |
|
331 | + 'dismiss_notice_text' => __('Dismiss this notice.', 'give'), |
|
332 | + 'search_placeholder' => __('Type to search all forms', 'give'), |
|
333 | + 'search_placeholder_donor' => __('Type to search all donors', 'give'), |
|
334 | + 'search_placeholder_country' => __('Type to search all countries', 'give'), |
|
335 | + 'search_placeholder_state' => __('Type to search all states/provinces', 'give'), |
|
336 | 336 | 'donors_bulk_action' => array( |
337 | 337 | 'delete' => array( |
338 | - 'zero' => __( 'You must choose at least one or more donors to delete.', 'give' ), |
|
339 | - 'single' => __( 'Are you sure you want to permanently delete this donor and associated records?', 'give' ), |
|
340 | - 'multiple' => __( 'Are you sure you want to permanently delete the selected {donor_count} donors and associated records?', 'give' ), |
|
338 | + 'zero' => __('You must choose at least one or more donors to delete.', 'give'), |
|
339 | + 'single' => __('Are you sure you want to permanently delete this donor and associated records?', 'give'), |
|
340 | + 'multiple' => __('Are you sure you want to permanently delete the selected {donor_count} donors and associated records?', 'give'), |
|
341 | 341 | ), |
342 | 342 | ), |
343 | 343 | 'donations_bulk_action' => array( |
344 | 344 | 'delete' => array( |
345 | - 'zero' => __( 'You must choose at least one or more donations to delete.', 'give' ), |
|
346 | - 'single' => __( 'Are you sure you want to permanently delete this donation?', 'give' ), |
|
347 | - 'multiple' => __( 'Are you sure you want to permanently delete the selected {payment_count} donations?', 'give' ), |
|
345 | + 'zero' => __('You must choose at least one or more donations to delete.', 'give'), |
|
346 | + 'single' => __('Are you sure you want to permanently delete this donation?', 'give'), |
|
347 | + 'multiple' => __('Are you sure you want to permanently delete the selected {payment_count} donations?', 'give'), |
|
348 | 348 | ), |
349 | 349 | 'resend-receipt' => array( |
350 | - 'zero' => __( 'You must choose at least one or more recipients to resend the email receipt.', 'give' ), |
|
351 | - 'single' => __( 'Are you sure you want to resend the email receipt to this recipient?', 'give' ), |
|
352 | - 'multiple' => __( 'Are you sure you want to resend the emails receipt to {payment_count} recipients?', 'give' ), |
|
350 | + 'zero' => __('You must choose at least one or more recipients to resend the email receipt.', 'give'), |
|
351 | + 'single' => __('Are you sure you want to resend the email receipt to this recipient?', 'give'), |
|
352 | + 'multiple' => __('Are you sure you want to resend the emails receipt to {payment_count} recipients?', 'give'), |
|
353 | 353 | ), |
354 | 354 | 'set-to-status' => array( |
355 | - 'zero' => __( 'You must choose at least one or more donations to set status to {status}.', 'give' ), |
|
356 | - 'single' => __( 'Are you sure you want to set status of this donation to {status}?', 'give' ), |
|
357 | - 'multiple' => __( 'Are you sure you want to set status of {payment_count} donations to {status}?', 'give' ), |
|
355 | + 'zero' => __('You must choose at least one or more donations to set status to {status}.', 'give'), |
|
356 | + 'single' => __('Are you sure you want to set status of this donation to {status}?', 'give'), |
|
357 | + 'multiple' => __('Are you sure you want to set status of {payment_count} donations to {status}?', 'give'), |
|
358 | 358 | ), |
359 | 359 | ), |
360 | 360 | 'metabox_fields' => array( |
361 | 361 | 'media' => array( |
362 | - 'button_title' => __( 'Choose Image', 'give' ), |
|
362 | + 'button_title' => __('Choose Image', 'give'), |
|
363 | 363 | ), |
364 | 364 | 'file' => array( |
365 | - 'button_title' => __( 'Choose File', 'give' ), |
|
365 | + 'button_title' => __('Choose File', 'give'), |
|
366 | 366 | ), |
367 | 367 | ), |
368 | 368 | 'chosen' => array( |
369 | - 'no_results_msg' => __( 'No results match {search_term}', 'give' ), |
|
370 | - 'ajax_search_msg' => __( 'Searching results for match {search_term}', 'give' ), |
|
369 | + 'no_results_msg' => __('No results match {search_term}', 'give'), |
|
370 | + 'ajax_search_msg' => __('Searching results for match {search_term}', 'give'), |
|
371 | 371 | ), |
372 | - 'db_update_confirmation_msg_button' => __( 'Run Updates', 'give' ), |
|
373 | - 'db_update_confirmation_msg' => __( 'The following process will make updates to your site\'s database. Please create a database backup before proceeding with updates.', 'give' ), |
|
374 | - 'error_message' => __( 'Something went wrong kindly try again!', 'give' ), |
|
372 | + 'db_update_confirmation_msg_button' => __('Run Updates', 'give'), |
|
373 | + 'db_update_confirmation_msg' => __('The following process will make updates to your site\'s database. Please create a database backup before proceeding with updates.', 'give'), |
|
374 | + 'error_message' => __('Something went wrong kindly try again!', 'give'), |
|
375 | 375 | 'give_donation_import' => 'give_donation_import', |
376 | - 'setting_not_save_message' => __( 'Changes you made may not be saved.', 'give' ), |
|
377 | - ) ); |
|
376 | + 'setting_not_save_message' => __('Changes you made may not be saved.', 'give'), |
|
377 | + )); |
|
378 | 378 | |
379 | - if ( function_exists( 'wp_enqueue_media' ) && version_compare( get_bloginfo( 'version' ), '3.5', '>=' ) ) { |
|
379 | + if (function_exists('wp_enqueue_media') && version_compare(get_bloginfo('version'), '3.5', '>=')) { |
|
380 | 380 | // call for new media manager. |
381 | 381 | wp_enqueue_media(); |
382 | 382 | } |
383 | 383 | |
384 | 384 | } |
385 | 385 | |
386 | -add_action( 'admin_enqueue_scripts', 'give_load_admin_scripts', 100 ); |
|
386 | +add_action('admin_enqueue_scripts', 'give_load_admin_scripts', 100); |
|
387 | 387 | |
388 | 388 | /** |
389 | 389 | * Admin Give Icon |
@@ -398,13 +398,13 @@ discard block |
||
398 | 398 | ?> |
399 | 399 | <style type="text/css" media="screen"> |
400 | 400 | |
401 | - <?php if ( version_compare( get_bloginfo( 'version' ), '3.8-RC', '>=' ) || version_compare( get_bloginfo( 'version' ), '3.8', '>=' ) ) { ?> |
|
401 | + <?php if (version_compare(get_bloginfo('version'), '3.8-RC', '>=') || version_compare(get_bloginfo('version'), '3.8', '>=')) { ?> |
|
402 | 402 | @font-face { |
403 | 403 | font-family: 'give-icomoon'; |
404 | - src: url('<?php echo GIVE_PLUGIN_URL . '/assets/fonts/icomoon.eot?ngjl88'; ?>'); |
|
405 | - src: url('<?php echo GIVE_PLUGIN_URL . '/assets/fonts/icomoon.eot?#iefixngjl88'?>') format('embedded-opentype'), |
|
406 | - url('<?php echo GIVE_PLUGIN_URL . '/assets/fonts/icomoon.woff?ngjl88'; ?>') format('woff'), |
|
407 | - url('<?php echo GIVE_PLUGIN_URL . '/assets/fonts/icomoon.svg?ngjl88#icomoon'; ?>') format('svg'); |
|
404 | + src: url('<?php echo GIVE_PLUGIN_URL.'/assets/fonts/icomoon.eot?ngjl88'; ?>'); |
|
405 | + src: url('<?php echo GIVE_PLUGIN_URL.'/assets/fonts/icomoon.eot?#iefixngjl88'?>') format('embedded-opentype'), |
|
406 | + url('<?php echo GIVE_PLUGIN_URL.'/assets/fonts/icomoon.woff?ngjl88'; ?>') format('woff'), |
|
407 | + url('<?php echo GIVE_PLUGIN_URL.'/assets/fonts/icomoon.svg?ngjl88#icomoon'; ?>') format('svg'); |
|
408 | 408 | font-weight: normal; |
409 | 409 | font-style: normal; |
410 | 410 | } |
@@ -423,4 +423,4 @@ discard block |
||
423 | 423 | <?php |
424 | 424 | } |
425 | 425 | |
426 | -add_action( 'admin_head', 'give_admin_icon' ); |
|
426 | +add_action('admin_head', 'give_admin_icon'); |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | */ |
11 | 11 | |
12 | 12 | // Exit if accessed directly. |
13 | -if ( ! defined( 'ABSPATH' ) ) { |
|
13 | +if ( ! defined('ABSPATH')) { |
|
14 | 14 | exit; |
15 | 15 | } |
16 | 16 | |
@@ -22,9 +22,9 @@ discard block |
||
22 | 22 | */ |
23 | 23 | function give_get_country() { |
24 | 24 | $give_options = give_get_settings(); |
25 | - $country = isset( $give_options['base_country'] ) ? $give_options['base_country'] : 'US'; |
|
25 | + $country = isset($give_options['base_country']) ? $give_options['base_country'] : 'US'; |
|
26 | 26 | |
27 | - return apply_filters( 'give_give_country', $country ); |
|
27 | + return apply_filters('give_give_country', $country); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | /** |
@@ -35,9 +35,9 @@ discard block |
||
35 | 35 | */ |
36 | 36 | function give_get_state() { |
37 | 37 | $give_options = give_get_settings(); |
38 | - $state = isset( $give_options['base_state'] ) ? $give_options['base_state'] : false; |
|
38 | + $state = isset($give_options['base_state']) ? $give_options['base_state'] : false; |
|
39 | 39 | |
40 | - return apply_filters( 'give_give_state', $state ); |
|
40 | + return apply_filters('give_give_state', $state); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
@@ -49,12 +49,12 @@ discard block |
||
49 | 49 | * |
50 | 50 | * @return mixed A list of states for the site's base country. |
51 | 51 | */ |
52 | -function give_get_states( $country = null ) { |
|
52 | +function give_get_states($country = null) { |
|
53 | 53 | // If Country have no states return empty array. |
54 | 54 | $states = array(); |
55 | 55 | |
56 | 56 | // Check if Country Code is empty or not. |
57 | - if ( empty( $country ) ) { |
|
57 | + if (empty($country)) { |
|
58 | 58 | // Get defalut country code that is being set by the admin. |
59 | 59 | $country = give_get_country(); |
60 | 60 | } |
@@ -63,8 +63,8 @@ discard block |
||
63 | 63 | $states_list = give_states_list(); |
64 | 64 | |
65 | 65 | // Check if $country code exists in the array key. |
66 | - if ( array_key_exists( $country, $states_list ) ) { |
|
67 | - $states = $states_list[ $country ]; |
|
66 | + if (array_key_exists($country, $states_list)) { |
|
67 | + $states = $states_list[$country]; |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * |
73 | 73 | * @param string $query Database count query |
74 | 74 | */ |
75 | - return (array) apply_filters( 'give_give_states', $states ); |
|
75 | + return (array) apply_filters('give_give_states', $states); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
@@ -84,253 +84,253 @@ discard block |
||
84 | 84 | function give_get_country_list() { |
85 | 85 | $countries = array( |
86 | 86 | '' => '', |
87 | - 'US' => esc_html__( 'United States', 'give' ), |
|
88 | - 'CA' => esc_html__( 'Canada', 'give' ), |
|
89 | - 'GB' => esc_html__( 'United Kingdom', 'give' ), |
|
90 | - 'AF' => esc_html__( 'Afghanistan', 'give' ), |
|
91 | - 'AL' => esc_html__( 'Albania', 'give' ), |
|
92 | - 'DZ' => esc_html__( 'Algeria', 'give' ), |
|
93 | - 'AS' => esc_html__( 'American Samoa', 'give' ), |
|
94 | - 'AD' => esc_html__( 'Andorra', 'give' ), |
|
95 | - 'AO' => esc_html__( 'Angola', 'give' ), |
|
96 | - 'AI' => esc_html__( 'Anguilla', 'give' ), |
|
97 | - 'AQ' => esc_html__( 'Antarctica', 'give' ), |
|
98 | - 'AG' => esc_html__( 'Antigua and Barbuda', 'give' ), |
|
99 | - 'AR' => esc_html__( 'Argentina', 'give' ), |
|
100 | - 'AM' => esc_html__( 'Armenia', 'give' ), |
|
101 | - 'AW' => esc_html__( 'Aruba', 'give' ), |
|
102 | - 'AU' => esc_html__( 'Australia', 'give' ), |
|
103 | - 'AT' => esc_html__( 'Austria', 'give' ), |
|
104 | - 'AZ' => esc_html__( 'Azerbaijan', 'give' ), |
|
105 | - 'BS' => esc_html__( 'Bahamas', 'give' ), |
|
106 | - 'BH' => esc_html__( 'Bahrain', 'give' ), |
|
107 | - 'BD' => esc_html__( 'Bangladesh', 'give' ), |
|
108 | - 'BB' => esc_html__( 'Barbados', 'give' ), |
|
109 | - 'BY' => esc_html__( 'Belarus', 'give' ), |
|
110 | - 'BE' => esc_html__( 'Belgium', 'give' ), |
|
111 | - 'BZ' => esc_html__( 'Belize', 'give' ), |
|
112 | - 'BJ' => esc_html__( 'Benin', 'give' ), |
|
113 | - 'BM' => esc_html__( 'Bermuda', 'give' ), |
|
114 | - 'BT' => esc_html__( 'Bhutan', 'give' ), |
|
115 | - 'BO' => esc_html__( 'Bolivia', 'give' ), |
|
116 | - 'BA' => esc_html__( 'Bosnia and Herzegovina', 'give' ), |
|
117 | - 'BW' => esc_html__( 'Botswana', 'give' ), |
|
118 | - 'BV' => esc_html__( 'Bouvet Island', 'give' ), |
|
119 | - 'BR' => esc_html__( 'Brazil', 'give' ), |
|
120 | - 'IO' => esc_html__( 'British Indian Ocean Territory', 'give' ), |
|
121 | - 'BN' => esc_html__( 'Brunei Darrussalam', 'give' ), |
|
122 | - 'BG' => esc_html__( 'Bulgaria', 'give' ), |
|
123 | - 'BF' => esc_html__( 'Burkina Faso', 'give' ), |
|
124 | - 'BI' => esc_html__( 'Burundi', 'give' ), |
|
125 | - 'KH' => esc_html__( 'Cambodia', 'give' ), |
|
126 | - 'CM' => esc_html__( 'Cameroon', 'give' ), |
|
127 | - 'CV' => esc_html__( 'Cape Verde', 'give' ), |
|
128 | - 'KY' => esc_html__( 'Cayman Islands', 'give' ), |
|
129 | - 'CF' => esc_html__( 'Central African Republic', 'give' ), |
|
130 | - 'TD' => esc_html__( 'Chad', 'give' ), |
|
131 | - 'CL' => esc_html__( 'Chile', 'give' ), |
|
132 | - 'CN' => esc_html__( 'China', 'give' ), |
|
133 | - 'CX' => esc_html__( 'Christmas Island', 'give' ), |
|
134 | - 'CC' => esc_html__( 'Cocos Islands', 'give' ), |
|
135 | - 'CO' => esc_html__( 'Colombia', 'give' ), |
|
136 | - 'KM' => esc_html__( 'Comoros', 'give' ), |
|
137 | - 'CD' => esc_html__( 'Congo, Democratic People\'s Republic', 'give' ), |
|
138 | - 'CG' => esc_html__( 'Congo, Republic of', 'give' ), |
|
139 | - 'CK' => esc_html__( 'Cook Islands', 'give' ), |
|
140 | - 'CR' => esc_html__( 'Costa Rica', 'give' ), |
|
141 | - 'CI' => esc_html__( 'Cote d\'Ivoire', 'give' ), |
|
142 | - 'HR' => esc_html__( 'Croatia/Hrvatska', 'give' ), |
|
143 | - 'CU' => esc_html__( 'Cuba', 'give' ), |
|
144 | - 'CY' => esc_html__( 'Cyprus Island', 'give' ), |
|
145 | - 'CZ' => esc_html__( 'Czech Republic', 'give' ), |
|
146 | - 'DK' => esc_html__( 'Denmark', 'give' ), |
|
147 | - 'DJ' => esc_html__( 'Djibouti', 'give' ), |
|
148 | - 'DM' => esc_html__( 'Dominica', 'give' ), |
|
149 | - 'DO' => esc_html__( 'Dominican Republic', 'give' ), |
|
150 | - 'TP' => esc_html__( 'East Timor', 'give' ), |
|
151 | - 'EC' => esc_html__( 'Ecuador', 'give' ), |
|
152 | - 'EG' => esc_html__( 'Egypt', 'give' ), |
|
153 | - 'GQ' => esc_html__( 'Equatorial Guinea', 'give' ), |
|
154 | - 'SV' => esc_html__( 'El Salvador', 'give' ), |
|
155 | - 'ER' => esc_html__( 'Eritrea', 'give' ), |
|
156 | - 'EE' => esc_html__( 'Estonia', 'give' ), |
|
157 | - 'ET' => esc_html__( 'Ethiopia', 'give' ), |
|
158 | - 'FK' => esc_html__( 'Falkland Islands', 'give' ), |
|
159 | - 'FO' => esc_html__( 'Faroe Islands', 'give' ), |
|
160 | - 'FJ' => esc_html__( 'Fiji', 'give' ), |
|
161 | - 'FI' => esc_html__( 'Finland', 'give' ), |
|
162 | - 'FR' => esc_html__( 'France', 'give' ), |
|
163 | - 'GF' => esc_html__( 'French Guiana', 'give' ), |
|
164 | - 'PF' => esc_html__( 'French Polynesia', 'give' ), |
|
165 | - 'TF' => esc_html__( 'French Southern Territories', 'give' ), |
|
166 | - 'GA' => esc_html__( 'Gabon', 'give' ), |
|
167 | - 'GM' => esc_html__( 'Gambia', 'give' ), |
|
168 | - 'GE' => esc_html__( 'Georgia', 'give' ), |
|
169 | - 'DE' => esc_html__( 'Germany', 'give' ), |
|
170 | - 'GR' => esc_html__( 'Greece', 'give' ), |
|
171 | - 'GH' => esc_html__( 'Ghana', 'give' ), |
|
172 | - 'GI' => esc_html__( 'Gibraltar', 'give' ), |
|
173 | - 'GL' => esc_html__( 'Greenland', 'give' ), |
|
174 | - 'GD' => esc_html__( 'Grenada', 'give' ), |
|
175 | - 'GP' => esc_html__( 'Guadeloupe', 'give' ), |
|
176 | - 'GU' => esc_html__( 'Guam', 'give' ), |
|
177 | - 'GT' => esc_html__( 'Guatemala', 'give' ), |
|
178 | - 'GG' => esc_html__( 'Guernsey', 'give' ), |
|
179 | - 'GN' => esc_html__( 'Guinea', 'give' ), |
|
180 | - 'GW' => esc_html__( 'Guinea-Bissau', 'give' ), |
|
181 | - 'GY' => esc_html__( 'Guyana', 'give' ), |
|
182 | - 'HT' => esc_html__( 'Haiti', 'give' ), |
|
183 | - 'HM' => esc_html__( 'Heard and McDonald Islands', 'give' ), |
|
184 | - 'VA' => esc_html__( 'Holy See (City Vatican State)', 'give' ), |
|
185 | - 'HN' => esc_html__( 'Honduras', 'give' ), |
|
186 | - 'HK' => esc_html__( 'Hong Kong', 'give' ), |
|
187 | - 'HU' => esc_html__( 'Hungary', 'give' ), |
|
188 | - 'IS' => esc_html__( 'Iceland', 'give' ), |
|
189 | - 'IN' => esc_html__( 'India', 'give' ), |
|
190 | - 'ID' => esc_html__( 'Indonesia', 'give' ), |
|
191 | - 'IR' => esc_html__( 'Iran', 'give' ), |
|
192 | - 'IQ' => esc_html__( 'Iraq', 'give' ), |
|
193 | - 'IE' => esc_html__( 'Ireland', 'give' ), |
|
194 | - 'IM' => esc_html__( 'Isle of Man', 'give' ), |
|
195 | - 'IL' => esc_html__( 'Israel', 'give' ), |
|
196 | - 'IT' => esc_html__( 'Italy', 'give' ), |
|
197 | - 'JM' => esc_html__( 'Jamaica', 'give' ), |
|
198 | - 'JP' => esc_html__( 'Japan', 'give' ), |
|
199 | - 'JE' => esc_html__( 'Jersey', 'give' ), |
|
200 | - 'JO' => esc_html__( 'Jordan', 'give' ), |
|
201 | - 'KZ' => esc_html__( 'Kazakhstan', 'give' ), |
|
202 | - 'KE' => esc_html__( 'Kenya', 'give' ), |
|
203 | - 'KI' => esc_html__( 'Kiribati', 'give' ), |
|
204 | - 'KW' => esc_html__( 'Kuwait', 'give' ), |
|
205 | - 'KG' => esc_html__( 'Kyrgyzstan', 'give' ), |
|
206 | - 'LA' => esc_html__( 'Lao People\'s Democratic Republic', 'give' ), |
|
207 | - 'LV' => esc_html__( 'Latvia', 'give' ), |
|
208 | - 'LB' => esc_html__( 'Lebanon', 'give' ), |
|
209 | - 'LS' => esc_html__( 'Lesotho', 'give' ), |
|
210 | - 'LR' => esc_html__( 'Liberia', 'give' ), |
|
211 | - 'LY' => esc_html__( 'Libyan Arab Jamahiriya', 'give' ), |
|
212 | - 'LI' => esc_html__( 'Liechtenstein', 'give' ), |
|
213 | - 'LT' => esc_html__( 'Lithuania', 'give' ), |
|
214 | - 'LU' => esc_html__( 'Luxembourg', 'give' ), |
|
215 | - 'MO' => esc_html__( 'Macau', 'give' ), |
|
216 | - 'MK' => esc_html__( 'Macedonia', 'give' ), |
|
217 | - 'MG' => esc_html__( 'Madagascar', 'give' ), |
|
218 | - 'MW' => esc_html__( 'Malawi', 'give' ), |
|
219 | - 'MY' => esc_html__( 'Malaysia', 'give' ), |
|
220 | - 'MV' => esc_html__( 'Maldives', 'give' ), |
|
221 | - 'ML' => esc_html__( 'Mali', 'give' ), |
|
222 | - 'MT' => esc_html__( 'Malta', 'give' ), |
|
223 | - 'MH' => esc_html__( 'Marshall Islands', 'give' ), |
|
224 | - 'MQ' => esc_html__( 'Martinique', 'give' ), |
|
225 | - 'MR' => esc_html__( 'Mauritania', 'give' ), |
|
226 | - 'MU' => esc_html__( 'Mauritius', 'give' ), |
|
227 | - 'YT' => esc_html__( 'Mayotte', 'give' ), |
|
228 | - 'MX' => esc_html__( 'Mexico', 'give' ), |
|
229 | - 'FM' => esc_html__( 'Micronesia', 'give' ), |
|
230 | - 'MD' => esc_html__( 'Moldova, Republic of', 'give' ), |
|
231 | - 'MC' => esc_html__( 'Monaco', 'give' ), |
|
232 | - 'MN' => esc_html__( 'Mongolia', 'give' ), |
|
233 | - 'ME' => esc_html__( 'Montenegro', 'give' ), |
|
234 | - 'MS' => esc_html__( 'Montserrat', 'give' ), |
|
235 | - 'MA' => esc_html__( 'Morocco', 'give' ), |
|
236 | - 'MZ' => esc_html__( 'Mozambique', 'give' ), |
|
237 | - 'MM' => esc_html__( 'Myanmar', 'give' ), |
|
238 | - 'NA' => esc_html__( 'Namibia', 'give' ), |
|
239 | - 'NR' => esc_html__( 'Nauru', 'give' ), |
|
240 | - 'NP' => esc_html__( 'Nepal', 'give' ), |
|
241 | - 'NL' => esc_html__( 'Netherlands', 'give' ), |
|
242 | - 'AN' => esc_html__( 'Netherlands Antilles', 'give' ), |
|
243 | - 'NC' => esc_html__( 'New Caledonia', 'give' ), |
|
244 | - 'NZ' => esc_html__( 'New Zealand', 'give' ), |
|
245 | - 'NI' => esc_html__( 'Nicaragua', 'give' ), |
|
246 | - 'NE' => esc_html__( 'Niger', 'give' ), |
|
247 | - 'NG' => esc_html__( 'Nigeria', 'give' ), |
|
248 | - 'NU' => esc_html__( 'Niue', 'give' ), |
|
249 | - 'NF' => esc_html__( 'Norfolk Island', 'give' ), |
|
250 | - 'KP' => esc_html__( 'North Korea', 'give' ), |
|
251 | - 'MP' => esc_html__( 'Northern Mariana Islands', 'give' ), |
|
252 | - 'NO' => esc_html__( 'Norway', 'give' ), |
|
253 | - 'OM' => esc_html__( 'Oman', 'give' ), |
|
254 | - 'PK' => esc_html__( 'Pakistan', 'give' ), |
|
255 | - 'PW' => esc_html__( 'Palau', 'give' ), |
|
256 | - 'PS' => esc_html__( 'Palestinian Territories', 'give' ), |
|
257 | - 'PA' => esc_html__( 'Panama', 'give' ), |
|
258 | - 'PG' => esc_html__( 'Papua New Guinea', 'give' ), |
|
259 | - 'PY' => esc_html__( 'Paraguay', 'give' ), |
|
260 | - 'PE' => esc_html__( 'Peru', 'give' ), |
|
261 | - 'PH' => esc_html__( 'Philippines', 'give' ), |
|
262 | - 'PN' => esc_html__( 'Pitcairn Island', 'give' ), |
|
263 | - 'PL' => esc_html__( 'Poland', 'give' ), |
|
264 | - 'PT' => esc_html__( 'Portugal', 'give' ), |
|
265 | - 'PR' => esc_html__( 'Puerto Rico', 'give' ), |
|
266 | - 'QA' => esc_html__( 'Qatar', 'give' ), |
|
267 | - 'RE' => esc_html__( 'Reunion Island', 'give' ), |
|
268 | - 'RO' => esc_html__( 'Romania', 'give' ), |
|
269 | - 'RU' => esc_html__( 'Russian Federation', 'give' ), |
|
270 | - 'RW' => esc_html__( 'Rwanda', 'give' ), |
|
271 | - 'SH' => esc_html__( 'Saint Helena', 'give' ), |
|
272 | - 'KN' => esc_html__( 'Saint Kitts and Nevis', 'give' ), |
|
273 | - 'LC' => esc_html__( 'Saint Lucia', 'give' ), |
|
274 | - 'PM' => esc_html__( 'Saint Pierre and Miquelon', 'give' ), |
|
275 | - 'VC' => esc_html__( 'Saint Vincent and the Grenadines', 'give' ), |
|
276 | - 'SM' => esc_html__( 'San Marino', 'give' ), |
|
277 | - 'ST' => esc_html__( 'Sao Tome and Principe', 'give' ), |
|
278 | - 'SA' => esc_html__( 'Saudi Arabia', 'give' ), |
|
279 | - 'SN' => esc_html__( 'Senegal', 'give' ), |
|
280 | - 'RS' => esc_html__( 'Serbia', 'give' ), |
|
281 | - 'SC' => esc_html__( 'Seychelles', 'give' ), |
|
282 | - 'SL' => esc_html__( 'Sierra Leone', 'give' ), |
|
283 | - 'SG' => esc_html__( 'Singapore', 'give' ), |
|
284 | - 'SK' => esc_html__( 'Slovak Republic', 'give' ), |
|
285 | - 'SI' => esc_html__( 'Slovenia', 'give' ), |
|
286 | - 'SB' => esc_html__( 'Solomon Islands', 'give' ), |
|
287 | - 'SO' => esc_html__( 'Somalia', 'give' ), |
|
288 | - 'ZA' => esc_html__( 'South Africa', 'give' ), |
|
289 | - 'GS' => esc_html__( 'South Georgia', 'give' ), |
|
290 | - 'KR' => esc_html__( 'South Korea', 'give' ), |
|
291 | - 'ES' => esc_html__( 'Spain', 'give' ), |
|
292 | - 'LK' => esc_html__( 'Sri Lanka', 'give' ), |
|
293 | - 'SD' => esc_html__( 'Sudan', 'give' ), |
|
294 | - 'SR' => esc_html__( 'Suriname', 'give' ), |
|
295 | - 'SJ' => esc_html__( 'Svalbard and Jan Mayen Islands', 'give' ), |
|
296 | - 'SZ' => esc_html__( 'Swaziland', 'give' ), |
|
297 | - 'SE' => esc_html__( 'Sweden', 'give' ), |
|
298 | - 'CH' => esc_html__( 'Switzerland', 'give' ), |
|
299 | - 'SY' => esc_html__( 'Syrian Arab Republic', 'give' ), |
|
300 | - 'TW' => esc_html__( 'Taiwan', 'give' ), |
|
301 | - 'TJ' => esc_html__( 'Tajikistan', 'give' ), |
|
302 | - 'TZ' => esc_html__( 'Tanzania', 'give' ), |
|
303 | - 'TG' => esc_html__( 'Togo', 'give' ), |
|
304 | - 'TK' => esc_html__( 'Tokelau', 'give' ), |
|
305 | - 'TO' => esc_html__( 'Tonga', 'give' ), |
|
306 | - 'TH' => esc_html__( 'Thailand', 'give' ), |
|
307 | - 'TT' => esc_html__( 'Trinidad and Tobago', 'give' ), |
|
308 | - 'TN' => esc_html__( 'Tunisia', 'give' ), |
|
309 | - 'TR' => esc_html__( 'Turkey', 'give' ), |
|
310 | - 'TM' => esc_html__( 'Turkmenistan', 'give' ), |
|
311 | - 'TC' => esc_html__( 'Turks and Caicos Islands', 'give' ), |
|
312 | - 'TV' => esc_html__( 'Tuvalu', 'give' ), |
|
313 | - 'UG' => esc_html__( 'Uganda', 'give' ), |
|
314 | - 'UA' => esc_html__( 'Ukraine', 'give' ), |
|
315 | - 'AE' => esc_html__( 'United Arab Emirates', 'give' ), |
|
316 | - 'UY' => esc_html__( 'Uruguay', 'give' ), |
|
317 | - 'UM' => esc_html__( 'US Minor Outlying Islands', 'give' ), |
|
318 | - 'UZ' => esc_html__( 'Uzbekistan', 'give' ), |
|
319 | - 'VU' => esc_html__( 'Vanuatu', 'give' ), |
|
320 | - 'VE' => esc_html__( 'Venezuela', 'give' ), |
|
321 | - 'VN' => esc_html__( 'Vietnam', 'give' ), |
|
322 | - 'VG' => esc_html__( 'Virgin Islands (British)', 'give' ), |
|
323 | - 'VI' => esc_html__( 'Virgin Islands (USA)', 'give' ), |
|
324 | - 'WF' => esc_html__( 'Wallis and Futuna Islands', 'give' ), |
|
325 | - 'EH' => esc_html__( 'Western Sahara', 'give' ), |
|
326 | - 'WS' => esc_html__( 'Western Samoa', 'give' ), |
|
327 | - 'YE' => esc_html__( 'Yemen', 'give' ), |
|
328 | - 'YU' => esc_html__( 'Yugoslavia', 'give' ), |
|
329 | - 'ZM' => esc_html__( 'Zambia', 'give' ), |
|
330 | - 'ZW' => esc_html__( 'Zimbabwe', 'give' ), |
|
87 | + 'US' => esc_html__('United States', 'give'), |
|
88 | + 'CA' => esc_html__('Canada', 'give'), |
|
89 | + 'GB' => esc_html__('United Kingdom', 'give'), |
|
90 | + 'AF' => esc_html__('Afghanistan', 'give'), |
|
91 | + 'AL' => esc_html__('Albania', 'give'), |
|
92 | + 'DZ' => esc_html__('Algeria', 'give'), |
|
93 | + 'AS' => esc_html__('American Samoa', 'give'), |
|
94 | + 'AD' => esc_html__('Andorra', 'give'), |
|
95 | + 'AO' => esc_html__('Angola', 'give'), |
|
96 | + 'AI' => esc_html__('Anguilla', 'give'), |
|
97 | + 'AQ' => esc_html__('Antarctica', 'give'), |
|
98 | + 'AG' => esc_html__('Antigua and Barbuda', 'give'), |
|
99 | + 'AR' => esc_html__('Argentina', 'give'), |
|
100 | + 'AM' => esc_html__('Armenia', 'give'), |
|
101 | + 'AW' => esc_html__('Aruba', 'give'), |
|
102 | + 'AU' => esc_html__('Australia', 'give'), |
|
103 | + 'AT' => esc_html__('Austria', 'give'), |
|
104 | + 'AZ' => esc_html__('Azerbaijan', 'give'), |
|
105 | + 'BS' => esc_html__('Bahamas', 'give'), |
|
106 | + 'BH' => esc_html__('Bahrain', 'give'), |
|
107 | + 'BD' => esc_html__('Bangladesh', 'give'), |
|
108 | + 'BB' => esc_html__('Barbados', 'give'), |
|
109 | + 'BY' => esc_html__('Belarus', 'give'), |
|
110 | + 'BE' => esc_html__('Belgium', 'give'), |
|
111 | + 'BZ' => esc_html__('Belize', 'give'), |
|
112 | + 'BJ' => esc_html__('Benin', 'give'), |
|
113 | + 'BM' => esc_html__('Bermuda', 'give'), |
|
114 | + 'BT' => esc_html__('Bhutan', 'give'), |
|
115 | + 'BO' => esc_html__('Bolivia', 'give'), |
|
116 | + 'BA' => esc_html__('Bosnia and Herzegovina', 'give'), |
|
117 | + 'BW' => esc_html__('Botswana', 'give'), |
|
118 | + 'BV' => esc_html__('Bouvet Island', 'give'), |
|
119 | + 'BR' => esc_html__('Brazil', 'give'), |
|
120 | + 'IO' => esc_html__('British Indian Ocean Territory', 'give'), |
|
121 | + 'BN' => esc_html__('Brunei Darrussalam', 'give'), |
|
122 | + 'BG' => esc_html__('Bulgaria', 'give'), |
|
123 | + 'BF' => esc_html__('Burkina Faso', 'give'), |
|
124 | + 'BI' => esc_html__('Burundi', 'give'), |
|
125 | + 'KH' => esc_html__('Cambodia', 'give'), |
|
126 | + 'CM' => esc_html__('Cameroon', 'give'), |
|
127 | + 'CV' => esc_html__('Cape Verde', 'give'), |
|
128 | + 'KY' => esc_html__('Cayman Islands', 'give'), |
|
129 | + 'CF' => esc_html__('Central African Republic', 'give'), |
|
130 | + 'TD' => esc_html__('Chad', 'give'), |
|
131 | + 'CL' => esc_html__('Chile', 'give'), |
|
132 | + 'CN' => esc_html__('China', 'give'), |
|
133 | + 'CX' => esc_html__('Christmas Island', 'give'), |
|
134 | + 'CC' => esc_html__('Cocos Islands', 'give'), |
|
135 | + 'CO' => esc_html__('Colombia', 'give'), |
|
136 | + 'KM' => esc_html__('Comoros', 'give'), |
|
137 | + 'CD' => esc_html__('Congo, Democratic People\'s Republic', 'give'), |
|
138 | + 'CG' => esc_html__('Congo, Republic of', 'give'), |
|
139 | + 'CK' => esc_html__('Cook Islands', 'give'), |
|
140 | + 'CR' => esc_html__('Costa Rica', 'give'), |
|
141 | + 'CI' => esc_html__('Cote d\'Ivoire', 'give'), |
|
142 | + 'HR' => esc_html__('Croatia/Hrvatska', 'give'), |
|
143 | + 'CU' => esc_html__('Cuba', 'give'), |
|
144 | + 'CY' => esc_html__('Cyprus Island', 'give'), |
|
145 | + 'CZ' => esc_html__('Czech Republic', 'give'), |
|
146 | + 'DK' => esc_html__('Denmark', 'give'), |
|
147 | + 'DJ' => esc_html__('Djibouti', 'give'), |
|
148 | + 'DM' => esc_html__('Dominica', 'give'), |
|
149 | + 'DO' => esc_html__('Dominican Republic', 'give'), |
|
150 | + 'TP' => esc_html__('East Timor', 'give'), |
|
151 | + 'EC' => esc_html__('Ecuador', 'give'), |
|
152 | + 'EG' => esc_html__('Egypt', 'give'), |
|
153 | + 'GQ' => esc_html__('Equatorial Guinea', 'give'), |
|
154 | + 'SV' => esc_html__('El Salvador', 'give'), |
|
155 | + 'ER' => esc_html__('Eritrea', 'give'), |
|
156 | + 'EE' => esc_html__('Estonia', 'give'), |
|
157 | + 'ET' => esc_html__('Ethiopia', 'give'), |
|
158 | + 'FK' => esc_html__('Falkland Islands', 'give'), |
|
159 | + 'FO' => esc_html__('Faroe Islands', 'give'), |
|
160 | + 'FJ' => esc_html__('Fiji', 'give'), |
|
161 | + 'FI' => esc_html__('Finland', 'give'), |
|
162 | + 'FR' => esc_html__('France', 'give'), |
|
163 | + 'GF' => esc_html__('French Guiana', 'give'), |
|
164 | + 'PF' => esc_html__('French Polynesia', 'give'), |
|
165 | + 'TF' => esc_html__('French Southern Territories', 'give'), |
|
166 | + 'GA' => esc_html__('Gabon', 'give'), |
|
167 | + 'GM' => esc_html__('Gambia', 'give'), |
|
168 | + 'GE' => esc_html__('Georgia', 'give'), |
|
169 | + 'DE' => esc_html__('Germany', 'give'), |
|
170 | + 'GR' => esc_html__('Greece', 'give'), |
|
171 | + 'GH' => esc_html__('Ghana', 'give'), |
|
172 | + 'GI' => esc_html__('Gibraltar', 'give'), |
|
173 | + 'GL' => esc_html__('Greenland', 'give'), |
|
174 | + 'GD' => esc_html__('Grenada', 'give'), |
|
175 | + 'GP' => esc_html__('Guadeloupe', 'give'), |
|
176 | + 'GU' => esc_html__('Guam', 'give'), |
|
177 | + 'GT' => esc_html__('Guatemala', 'give'), |
|
178 | + 'GG' => esc_html__('Guernsey', 'give'), |
|
179 | + 'GN' => esc_html__('Guinea', 'give'), |
|
180 | + 'GW' => esc_html__('Guinea-Bissau', 'give'), |
|
181 | + 'GY' => esc_html__('Guyana', 'give'), |
|
182 | + 'HT' => esc_html__('Haiti', 'give'), |
|
183 | + 'HM' => esc_html__('Heard and McDonald Islands', 'give'), |
|
184 | + 'VA' => esc_html__('Holy See (City Vatican State)', 'give'), |
|
185 | + 'HN' => esc_html__('Honduras', 'give'), |
|
186 | + 'HK' => esc_html__('Hong Kong', 'give'), |
|
187 | + 'HU' => esc_html__('Hungary', 'give'), |
|
188 | + 'IS' => esc_html__('Iceland', 'give'), |
|
189 | + 'IN' => esc_html__('India', 'give'), |
|
190 | + 'ID' => esc_html__('Indonesia', 'give'), |
|
191 | + 'IR' => esc_html__('Iran', 'give'), |
|
192 | + 'IQ' => esc_html__('Iraq', 'give'), |
|
193 | + 'IE' => esc_html__('Ireland', 'give'), |
|
194 | + 'IM' => esc_html__('Isle of Man', 'give'), |
|
195 | + 'IL' => esc_html__('Israel', 'give'), |
|
196 | + 'IT' => esc_html__('Italy', 'give'), |
|
197 | + 'JM' => esc_html__('Jamaica', 'give'), |
|
198 | + 'JP' => esc_html__('Japan', 'give'), |
|
199 | + 'JE' => esc_html__('Jersey', 'give'), |
|
200 | + 'JO' => esc_html__('Jordan', 'give'), |
|
201 | + 'KZ' => esc_html__('Kazakhstan', 'give'), |
|
202 | + 'KE' => esc_html__('Kenya', 'give'), |
|
203 | + 'KI' => esc_html__('Kiribati', 'give'), |
|
204 | + 'KW' => esc_html__('Kuwait', 'give'), |
|
205 | + 'KG' => esc_html__('Kyrgyzstan', 'give'), |
|
206 | + 'LA' => esc_html__('Lao People\'s Democratic Republic', 'give'), |
|
207 | + 'LV' => esc_html__('Latvia', 'give'), |
|
208 | + 'LB' => esc_html__('Lebanon', 'give'), |
|
209 | + 'LS' => esc_html__('Lesotho', 'give'), |
|
210 | + 'LR' => esc_html__('Liberia', 'give'), |
|
211 | + 'LY' => esc_html__('Libyan Arab Jamahiriya', 'give'), |
|
212 | + 'LI' => esc_html__('Liechtenstein', 'give'), |
|
213 | + 'LT' => esc_html__('Lithuania', 'give'), |
|
214 | + 'LU' => esc_html__('Luxembourg', 'give'), |
|
215 | + 'MO' => esc_html__('Macau', 'give'), |
|
216 | + 'MK' => esc_html__('Macedonia', 'give'), |
|
217 | + 'MG' => esc_html__('Madagascar', 'give'), |
|
218 | + 'MW' => esc_html__('Malawi', 'give'), |
|
219 | + 'MY' => esc_html__('Malaysia', 'give'), |
|
220 | + 'MV' => esc_html__('Maldives', 'give'), |
|
221 | + 'ML' => esc_html__('Mali', 'give'), |
|
222 | + 'MT' => esc_html__('Malta', 'give'), |
|
223 | + 'MH' => esc_html__('Marshall Islands', 'give'), |
|
224 | + 'MQ' => esc_html__('Martinique', 'give'), |
|
225 | + 'MR' => esc_html__('Mauritania', 'give'), |
|
226 | + 'MU' => esc_html__('Mauritius', 'give'), |
|
227 | + 'YT' => esc_html__('Mayotte', 'give'), |
|
228 | + 'MX' => esc_html__('Mexico', 'give'), |
|
229 | + 'FM' => esc_html__('Micronesia', 'give'), |
|
230 | + 'MD' => esc_html__('Moldova, Republic of', 'give'), |
|
231 | + 'MC' => esc_html__('Monaco', 'give'), |
|
232 | + 'MN' => esc_html__('Mongolia', 'give'), |
|
233 | + 'ME' => esc_html__('Montenegro', 'give'), |
|
234 | + 'MS' => esc_html__('Montserrat', 'give'), |
|
235 | + 'MA' => esc_html__('Morocco', 'give'), |
|
236 | + 'MZ' => esc_html__('Mozambique', 'give'), |
|
237 | + 'MM' => esc_html__('Myanmar', 'give'), |
|
238 | + 'NA' => esc_html__('Namibia', 'give'), |
|
239 | + 'NR' => esc_html__('Nauru', 'give'), |
|
240 | + 'NP' => esc_html__('Nepal', 'give'), |
|
241 | + 'NL' => esc_html__('Netherlands', 'give'), |
|
242 | + 'AN' => esc_html__('Netherlands Antilles', 'give'), |
|
243 | + 'NC' => esc_html__('New Caledonia', 'give'), |
|
244 | + 'NZ' => esc_html__('New Zealand', 'give'), |
|
245 | + 'NI' => esc_html__('Nicaragua', 'give'), |
|
246 | + 'NE' => esc_html__('Niger', 'give'), |
|
247 | + 'NG' => esc_html__('Nigeria', 'give'), |
|
248 | + 'NU' => esc_html__('Niue', 'give'), |
|
249 | + 'NF' => esc_html__('Norfolk Island', 'give'), |
|
250 | + 'KP' => esc_html__('North Korea', 'give'), |
|
251 | + 'MP' => esc_html__('Northern Mariana Islands', 'give'), |
|
252 | + 'NO' => esc_html__('Norway', 'give'), |
|
253 | + 'OM' => esc_html__('Oman', 'give'), |
|
254 | + 'PK' => esc_html__('Pakistan', 'give'), |
|
255 | + 'PW' => esc_html__('Palau', 'give'), |
|
256 | + 'PS' => esc_html__('Palestinian Territories', 'give'), |
|
257 | + 'PA' => esc_html__('Panama', 'give'), |
|
258 | + 'PG' => esc_html__('Papua New Guinea', 'give'), |
|
259 | + 'PY' => esc_html__('Paraguay', 'give'), |
|
260 | + 'PE' => esc_html__('Peru', 'give'), |
|
261 | + 'PH' => esc_html__('Philippines', 'give'), |
|
262 | + 'PN' => esc_html__('Pitcairn Island', 'give'), |
|
263 | + 'PL' => esc_html__('Poland', 'give'), |
|
264 | + 'PT' => esc_html__('Portugal', 'give'), |
|
265 | + 'PR' => esc_html__('Puerto Rico', 'give'), |
|
266 | + 'QA' => esc_html__('Qatar', 'give'), |
|
267 | + 'RE' => esc_html__('Reunion Island', 'give'), |
|
268 | + 'RO' => esc_html__('Romania', 'give'), |
|
269 | + 'RU' => esc_html__('Russian Federation', 'give'), |
|
270 | + 'RW' => esc_html__('Rwanda', 'give'), |
|
271 | + 'SH' => esc_html__('Saint Helena', 'give'), |
|
272 | + 'KN' => esc_html__('Saint Kitts and Nevis', 'give'), |
|
273 | + 'LC' => esc_html__('Saint Lucia', 'give'), |
|
274 | + 'PM' => esc_html__('Saint Pierre and Miquelon', 'give'), |
|
275 | + 'VC' => esc_html__('Saint Vincent and the Grenadines', 'give'), |
|
276 | + 'SM' => esc_html__('San Marino', 'give'), |
|
277 | + 'ST' => esc_html__('Sao Tome and Principe', 'give'), |
|
278 | + 'SA' => esc_html__('Saudi Arabia', 'give'), |
|
279 | + 'SN' => esc_html__('Senegal', 'give'), |
|
280 | + 'RS' => esc_html__('Serbia', 'give'), |
|
281 | + 'SC' => esc_html__('Seychelles', 'give'), |
|
282 | + 'SL' => esc_html__('Sierra Leone', 'give'), |
|
283 | + 'SG' => esc_html__('Singapore', 'give'), |
|
284 | + 'SK' => esc_html__('Slovak Republic', 'give'), |
|
285 | + 'SI' => esc_html__('Slovenia', 'give'), |
|
286 | + 'SB' => esc_html__('Solomon Islands', 'give'), |
|
287 | + 'SO' => esc_html__('Somalia', 'give'), |
|
288 | + 'ZA' => esc_html__('South Africa', 'give'), |
|
289 | + 'GS' => esc_html__('South Georgia', 'give'), |
|
290 | + 'KR' => esc_html__('South Korea', 'give'), |
|
291 | + 'ES' => esc_html__('Spain', 'give'), |
|
292 | + 'LK' => esc_html__('Sri Lanka', 'give'), |
|
293 | + 'SD' => esc_html__('Sudan', 'give'), |
|
294 | + 'SR' => esc_html__('Suriname', 'give'), |
|
295 | + 'SJ' => esc_html__('Svalbard and Jan Mayen Islands', 'give'), |
|
296 | + 'SZ' => esc_html__('Swaziland', 'give'), |
|
297 | + 'SE' => esc_html__('Sweden', 'give'), |
|
298 | + 'CH' => esc_html__('Switzerland', 'give'), |
|
299 | + 'SY' => esc_html__('Syrian Arab Republic', 'give'), |
|
300 | + 'TW' => esc_html__('Taiwan', 'give'), |
|
301 | + 'TJ' => esc_html__('Tajikistan', 'give'), |
|
302 | + 'TZ' => esc_html__('Tanzania', 'give'), |
|
303 | + 'TG' => esc_html__('Togo', 'give'), |
|
304 | + 'TK' => esc_html__('Tokelau', 'give'), |
|
305 | + 'TO' => esc_html__('Tonga', 'give'), |
|
306 | + 'TH' => esc_html__('Thailand', 'give'), |
|
307 | + 'TT' => esc_html__('Trinidad and Tobago', 'give'), |
|
308 | + 'TN' => esc_html__('Tunisia', 'give'), |
|
309 | + 'TR' => esc_html__('Turkey', 'give'), |
|
310 | + 'TM' => esc_html__('Turkmenistan', 'give'), |
|
311 | + 'TC' => esc_html__('Turks and Caicos Islands', 'give'), |
|
312 | + 'TV' => esc_html__('Tuvalu', 'give'), |
|
313 | + 'UG' => esc_html__('Uganda', 'give'), |
|
314 | + 'UA' => esc_html__('Ukraine', 'give'), |
|
315 | + 'AE' => esc_html__('United Arab Emirates', 'give'), |
|
316 | + 'UY' => esc_html__('Uruguay', 'give'), |
|
317 | + 'UM' => esc_html__('US Minor Outlying Islands', 'give'), |
|
318 | + 'UZ' => esc_html__('Uzbekistan', 'give'), |
|
319 | + 'VU' => esc_html__('Vanuatu', 'give'), |
|
320 | + 'VE' => esc_html__('Venezuela', 'give'), |
|
321 | + 'VN' => esc_html__('Vietnam', 'give'), |
|
322 | + 'VG' => esc_html__('Virgin Islands (British)', 'give'), |
|
323 | + 'VI' => esc_html__('Virgin Islands (USA)', 'give'), |
|
324 | + 'WF' => esc_html__('Wallis and Futuna Islands', 'give'), |
|
325 | + 'EH' => esc_html__('Western Sahara', 'give'), |
|
326 | + 'WS' => esc_html__('Western Samoa', 'give'), |
|
327 | + 'YE' => esc_html__('Yemen', 'give'), |
|
328 | + 'YU' => esc_html__('Yugoslavia', 'give'), |
|
329 | + 'ZM' => esc_html__('Zambia', 'give'), |
|
330 | + 'ZW' => esc_html__('Zimbabwe', 'give'), |
|
331 | 331 | ); |
332 | 332 | |
333 | - return (array) apply_filters( 'give_countries', $countries ); |
|
333 | + return (array) apply_filters('give_countries', $countries); |
|
334 | 334 | } |
335 | 335 | |
336 | 336 | /** |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | * |
385 | 385 | * @param array $states Contain the list of states in array key format where key of the array is there respected country code. |
386 | 386 | */ |
387 | - return (array) apply_filters( 'give_states_list', $states ); |
|
387 | + return (array) apply_filters('give_states_list', $states); |
|
388 | 388 | } |
389 | 389 | |
390 | 390 | /** |
@@ -399,9 +399,9 @@ discard block |
||
399 | 399 | function give_no_states_country_list() { |
400 | 400 | $country_list = array(); |
401 | 401 | $locale = give_get_country_locale(); |
402 | - foreach ( $locale as $key => $value ) { |
|
403 | - if ( ! empty( $value['state'] ) && isset( $value['state']['hidden'] ) && true === $value['state']['hidden'] ) { |
|
404 | - $country_list[ $key ] = $value['state']; |
|
402 | + foreach ($locale as $key => $value) { |
|
403 | + if ( ! empty($value['state']) && isset($value['state']['hidden']) && true === $value['state']['hidden']) { |
|
404 | + $country_list[$key] = $value['state']; |
|
405 | 405 | } |
406 | 406 | } |
407 | 407 | |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | * |
413 | 413 | * @param array $country Contain key as there country code & value as there country name. |
414 | 414 | */ |
415 | - return (array) apply_filters( 'give_no_states_country_list', $country_list ); |
|
415 | + return (array) apply_filters('give_no_states_country_list', $country_list); |
|
416 | 416 | } |
417 | 417 | |
418 | 418 | /** |
@@ -427,9 +427,9 @@ discard block |
||
427 | 427 | function give_states_not_required_country_list() { |
428 | 428 | $country_list = array(); |
429 | 429 | $locale = give_get_country_locale(); |
430 | - foreach ( $locale as $key => $value ) { |
|
431 | - if ( ! empty( $value['state'] ) && isset( $value['state']['required'] ) && false === $value['state']['required'] ) { |
|
432 | - $country_list[ $key ] = $value['state']; |
|
430 | + foreach ($locale as $key => $value) { |
|
431 | + if ( ! empty($value['state']) && isset($value['state']['required']) && false === $value['state']['required']) { |
|
432 | + $country_list[$key] = $value['state']; |
|
433 | 433 | } |
434 | 434 | } |
435 | 435 | |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | * |
441 | 441 | * @param array $country Contain key as there country code & value as there country name. |
442 | 442 | */ |
443 | - return (array) apply_filters( 'give_states_not_required_country_list', $country_list ); |
|
443 | + return (array) apply_filters('give_states_not_required_country_list', $country_list); |
|
444 | 444 | } |
445 | 445 | |
446 | 446 | /** |
@@ -452,11 +452,11 @@ discard block |
||
452 | 452 | * |
453 | 453 | * @return string|bool |
454 | 454 | */ |
455 | -function give_get_country_name_by_key( $key ) { |
|
455 | +function give_get_country_name_by_key($key) { |
|
456 | 456 | $country_list = give_get_country_list(); |
457 | 457 | |
458 | - if ( array_key_exists( $key, $country_list ) ) { |
|
459 | - return $country_list[ $key ]; |
|
458 | + if (array_key_exists($key, $country_list)) { |
|
459 | + return $country_list[$key]; |
|
460 | 460 | } |
461 | 461 | |
462 | 462 | return false; |
@@ -471,14 +471,14 @@ discard block |
||
471 | 471 | */ |
472 | 472 | function give_get_states_label() { |
473 | 473 | $country_states_label = array(); |
474 | - $default_label = __( 'State', 'give' ); |
|
474 | + $default_label = __('State', 'give'); |
|
475 | 475 | $locale = give_get_country_locale(); |
476 | - foreach ( $locale as $key => $value ) { |
|
476 | + foreach ($locale as $key => $value) { |
|
477 | 477 | $label = $default_label; |
478 | - if ( ! empty( $value['state'] ) && ! empty( $value['state']['label'] ) ) { |
|
478 | + if ( ! empty($value['state']) && ! empty($value['state']['label'])) { |
|
479 | 479 | $label = $value['state']['label']; |
480 | 480 | } |
481 | - $country_states_label[ $key ] = $label; |
|
481 | + $country_states_label[$key] = $label; |
|
482 | 482 | } |
483 | 483 | |
484 | 484 | /** |
@@ -488,7 +488,7 @@ discard block |
||
488 | 488 | * |
489 | 489 | * @param array $country Contain key as there country code & value as there country name. |
490 | 490 | */ |
491 | - return (array) apply_filters( 'give_get_states_label', $country_states_label ); |
|
491 | + return (array) apply_filters('give_get_states_label', $country_states_label); |
|
492 | 492 | } |
493 | 493 | |
494 | 494 | /** |
@@ -499,7 +499,7 @@ discard block |
||
499 | 499 | * @return array |
500 | 500 | */ |
501 | 501 | function give_get_country_locale() { |
502 | - return (array) apply_filters( 'give_get_country_locale', array( |
|
502 | + return (array) apply_filters('give_get_country_locale', array( |
|
503 | 503 | 'AE' => array( |
504 | 504 | 'state' => array( |
505 | 505 | 'required' => false, |
@@ -519,7 +519,7 @@ discard block |
||
519 | 519 | ), |
520 | 520 | 'AU' => array( |
521 | 521 | 'state' => array( |
522 | - 'label' => __( 'State', 'give' ), |
|
522 | + 'label' => __('State', 'give'), |
|
523 | 523 | ), |
524 | 524 | ), |
525 | 525 | 'AX' => array( |
@@ -529,13 +529,13 @@ discard block |
||
529 | 529 | ), |
530 | 530 | 'BD' => array( |
531 | 531 | 'state' => array( |
532 | - 'label' => __( 'District', 'give' ), |
|
532 | + 'label' => __('District', 'give'), |
|
533 | 533 | ), |
534 | 534 | ), |
535 | 535 | 'BE' => array( |
536 | 536 | 'state' => array( |
537 | 537 | 'required' => false, |
538 | - 'label' => __( 'Province', 'give' ), |
|
538 | + 'label' => __('Province', 'give'), |
|
539 | 539 | 'hidden' => true, |
540 | 540 | ), |
541 | 541 | ), |
@@ -546,24 +546,24 @@ discard block |
||
546 | 546 | ), |
547 | 547 | 'CA' => array( |
548 | 548 | 'state' => array( |
549 | - 'label' => __( 'Province', 'give' ), |
|
549 | + 'label' => __('Province', 'give'), |
|
550 | 550 | ), |
551 | 551 | ), |
552 | 552 | 'CH' => array( |
553 | 553 | 'state' => array( |
554 | - 'label' => __( 'Canton', 'give' ), |
|
554 | + 'label' => __('Canton', 'give'), |
|
555 | 555 | 'required' => false, |
556 | 556 | 'hidden' => true, |
557 | 557 | ), |
558 | 558 | ), |
559 | 559 | 'CL' => array( |
560 | 560 | 'state' => array( |
561 | - 'label' => __( 'Region', 'give' ), |
|
561 | + 'label' => __('Region', 'give'), |
|
562 | 562 | ), |
563 | 563 | ), |
564 | 564 | 'CN' => array( |
565 | 565 | 'state' => array( |
566 | - 'label' => __( 'Province', 'give' ), |
|
566 | + 'label' => __('Province', 'give'), |
|
567 | 567 | ), |
568 | 568 | ), |
569 | 569 | 'CZ' => array( |
@@ -614,23 +614,23 @@ discard block |
||
614 | 614 | ), |
615 | 615 | 'HK' => array( |
616 | 616 | 'state' => array( |
617 | - 'label' => __( 'Region', 'give' ), |
|
617 | + 'label' => __('Region', 'give'), |
|
618 | 618 | ), |
619 | 619 | ), |
620 | 620 | 'HU' => array( |
621 | 621 | 'state' => array( |
622 | - 'label' => __( 'County', 'give' ), |
|
622 | + 'label' => __('County', 'give'), |
|
623 | 623 | 'hidden' => true, |
624 | 624 | ), |
625 | 625 | ), |
626 | 626 | 'ID' => array( |
627 | 627 | 'state' => array( |
628 | - 'label' => __( 'Province', 'give' ), |
|
628 | + 'label' => __('Province', 'give'), |
|
629 | 629 | ), |
630 | 630 | ), |
631 | 631 | 'IE' => array( |
632 | 632 | 'state' => array( |
633 | - 'label' => __( 'County', 'give' ), |
|
633 | + 'label' => __('County', 'give'), |
|
634 | 634 | ), |
635 | 635 | ), |
636 | 636 | 'IS' => array( |
@@ -647,12 +647,12 @@ discard block |
||
647 | 647 | 'IT' => array( |
648 | 648 | 'state' => array( |
649 | 649 | 'required' => true, |
650 | - 'label' => __( 'Province', 'give' ), |
|
650 | + 'label' => __('Province', 'give'), |
|
651 | 651 | ), |
652 | 652 | ), |
653 | 653 | 'JP' => array( |
654 | 654 | 'state' => array( |
655 | - 'label' => __( 'Prefecture', 'give' ), |
|
655 | + 'label' => __('Prefecture', 'give'), |
|
656 | 656 | ), |
657 | 657 | ), |
658 | 658 | 'KR' => array( |
@@ -678,13 +678,13 @@ discard block |
||
678 | 678 | 'NL' => array( |
679 | 679 | 'state' => array( |
680 | 680 | 'required' => false, |
681 | - 'label' => __( 'Province', 'give' ), |
|
681 | + 'label' => __('Province', 'give'), |
|
682 | 682 | 'hidden' => true, |
683 | 683 | ), |
684 | 684 | ), |
685 | 685 | 'NZ' => array( |
686 | 686 | 'state' => array( |
687 | - 'label' => __( 'Region', 'give' ), |
|
687 | + 'label' => __('Region', 'give'), |
|
688 | 688 | ), |
689 | 689 | ), |
690 | 690 | 'NO' => array( |
@@ -695,7 +695,7 @@ discard block |
||
695 | 695 | ), |
696 | 696 | 'NP' => array( |
697 | 697 | 'state' => array( |
698 | - 'label' => __( 'State / Zone', 'give' ), |
|
698 | + 'label' => __('State / Zone', 'give'), |
|
699 | 699 | ), |
700 | 700 | ), |
701 | 701 | 'PL' => array( |
@@ -739,12 +739,12 @@ discard block |
||
739 | 739 | ), |
740 | 740 | 'ES' => array( |
741 | 741 | 'state' => array( |
742 | - 'label' => __( 'Province', 'give' ), |
|
742 | + 'label' => __('Province', 'give'), |
|
743 | 743 | ), |
744 | 744 | ), |
745 | 745 | 'LI' => array( |
746 | 746 | 'state' => array( |
747 | - 'label' => __( 'Municipality', 'give' ), |
|
747 | + 'label' => __('Municipality', 'give'), |
|
748 | 748 | 'required' => false, |
749 | 749 | 'hidden' => true, |
750 | 750 | ), |
@@ -762,17 +762,17 @@ discard block |
||
762 | 762 | ), |
763 | 763 | 'TR' => array( |
764 | 764 | 'state' => array( |
765 | - 'label' => __( 'Province', 'give' ), |
|
765 | + 'label' => __('Province', 'give'), |
|
766 | 766 | ), |
767 | 767 | ), |
768 | 768 | 'US' => array( |
769 | 769 | 'state' => array( |
770 | - 'label' => __( 'State', 'give' ), |
|
770 | + 'label' => __('State', 'give'), |
|
771 | 771 | ), |
772 | 772 | ), |
773 | 773 | 'GB' => array( |
774 | 774 | 'state' => array( |
775 | - 'label' => __( 'County', 'give' ), |
|
775 | + 'label' => __('County', 'give'), |
|
776 | 776 | 'required' => false, |
777 | 777 | ), |
778 | 778 | ), |
@@ -789,10 +789,10 @@ discard block |
||
789 | 789 | ), |
790 | 790 | 'ZA' => array( |
791 | 791 | 'state' => array( |
792 | - 'label' => __( 'Province', 'give' ), |
|
792 | + 'label' => __('Province', 'give'), |
|
793 | 793 | ), |
794 | 794 | ), |
795 | - ) ); |
|
795 | + )); |
|
796 | 796 | } |
797 | 797 | |
798 | 798 | /** |
@@ -804,90 +804,90 @@ discard block |
||
804 | 804 | function give_get_turkey_states_list() { |
805 | 805 | $states = array( |
806 | 806 | '' => '', |
807 | - 'TR01' => __( 'Adana', 'give' ), |
|
808 | - 'TR02' => __( 'Adıyaman', 'give' ), |
|
809 | - 'TR03' => __( 'Afyon', 'give' ), |
|
810 | - 'TR04' => __( 'Ağrı', 'give' ), |
|
811 | - 'TR05' => __( 'Amasya', 'give' ), |
|
812 | - 'TR06' => __( 'Ankara', 'give' ), |
|
813 | - 'TR07' => __( 'Antalya', 'give' ), |
|
814 | - 'TR08' => __( 'Artvin', 'give' ), |
|
815 | - 'TR09' => __( 'Aydın', 'give' ), |
|
816 | - 'TR10' => __( 'Balıkesir', 'give' ), |
|
817 | - 'TR11' => __( 'Bilecik', 'give' ), |
|
818 | - 'TR12' => __( 'Bingöl', 'give' ), |
|
819 | - 'TR13' => __( 'Bitlis', 'give' ), |
|
820 | - 'TR14' => __( 'Bolu', 'give' ), |
|
821 | - 'TR15' => __( 'Burdur', 'give' ), |
|
822 | - 'TR16' => __( 'Bursa', 'give' ), |
|
823 | - 'TR17' => __( 'Çanakkale', 'give' ), |
|
824 | - 'TR18' => __( 'Çankırı', 'give' ), |
|
825 | - 'TR19' => __( 'Çorum', 'give' ), |
|
826 | - 'TR20' => __( 'Denizli', 'give' ), |
|
827 | - 'TR21' => __( 'Diyarbakır', 'give' ), |
|
828 | - 'TR22' => __( 'Edirne', 'give' ), |
|
829 | - 'TR23' => __( 'Elazığ', 'give' ), |
|
830 | - 'TR24' => __( 'Erzincan', 'give' ), |
|
831 | - 'TR25' => __( 'Erzurum', 'give' ), |
|
832 | - 'TR26' => __( 'Eskişehir', 'give' ), |
|
833 | - 'TR27' => __( 'Gaziantep', 'give' ), |
|
834 | - 'TR28' => __( 'Giresun', 'give' ), |
|
835 | - 'TR29' => __( 'Gümüşhane', 'give' ), |
|
836 | - 'TR30' => __( 'Hakkari', 'give' ), |
|
837 | - 'TR31' => __( 'Hatay', 'give' ), |
|
838 | - 'TR32' => __( 'Isparta', 'give' ), |
|
839 | - 'TR33' => __( 'İçel', 'give' ), |
|
840 | - 'TR34' => __( 'İstanbul', 'give' ), |
|
841 | - 'TR35' => __( 'İzmir', 'give' ), |
|
842 | - 'TR36' => __( 'Kars', 'give' ), |
|
843 | - 'TR37' => __( 'Kastamonu', 'give' ), |
|
844 | - 'TR38' => __( 'Kayseri', 'give' ), |
|
845 | - 'TR39' => __( 'Kırklareli', 'give' ), |
|
846 | - 'TR40' => __( 'Kırşehir', 'give' ), |
|
847 | - 'TR41' => __( 'Kocaeli', 'give' ), |
|
848 | - 'TR42' => __( 'Konya', 'give' ), |
|
849 | - 'TR43' => __( 'Kütahya', 'give' ), |
|
850 | - 'TR44' => __( 'Malatya', 'give' ), |
|
851 | - 'TR45' => __( 'Manisa', 'give' ), |
|
852 | - 'TR46' => __( 'Kahramanmaraş', 'give' ), |
|
853 | - 'TR47' => __( 'Mardin', 'give' ), |
|
854 | - 'TR48' => __( 'Muğla', 'give' ), |
|
855 | - 'TR49' => __( 'Muş', 'give' ), |
|
856 | - 'TR50' => __( 'Nevşehir', 'give' ), |
|
857 | - 'TR51' => __( 'Niğde', 'give' ), |
|
858 | - 'TR52' => __( 'Ordu', 'give' ), |
|
859 | - 'TR53' => __( 'Rize', 'give' ), |
|
860 | - 'TR54' => __( 'Sakarya', 'give' ), |
|
861 | - 'TR55' => __( 'Samsun', 'give' ), |
|
862 | - 'TR56' => __( 'Siirt', 'give' ), |
|
863 | - 'TR57' => __( 'Sinop', 'give' ), |
|
864 | - 'TR58' => __( 'Sivas', 'give' ), |
|
865 | - 'TR59' => __( 'Tekirdağ', 'give' ), |
|
866 | - 'TR60' => __( 'Tokat', 'give' ), |
|
867 | - 'TR61' => __( 'Trabzon', 'give' ), |
|
868 | - 'TR62' => __( 'Tunceli', 'give' ), |
|
869 | - 'TR63' => __( 'Şanlıurfa', 'give' ), |
|
870 | - 'TR64' => __( 'Uşak', 'give' ), |
|
871 | - 'TR65' => __( 'Van', 'give' ), |
|
872 | - 'TR66' => __( 'Yozgat', 'give' ), |
|
873 | - 'TR67' => __( 'Zonguldak', 'give' ), |
|
874 | - 'TR68' => __( 'Aksaray', 'give' ), |
|
875 | - 'TR69' => __( 'Bayburt', 'give' ), |
|
876 | - 'TR70' => __( 'Karaman', 'give' ), |
|
877 | - 'TR71' => __( 'Kırıkkale', 'give' ), |
|
878 | - 'TR72' => __( 'Batman', 'give' ), |
|
879 | - 'TR73' => __( 'Şırnak', 'give' ), |
|
880 | - 'TR74' => __( 'Bartın', 'give' ), |
|
881 | - 'TR75' => __( 'Ardahan', 'give' ), |
|
882 | - 'TR76' => __( 'Iğdır', 'give' ), |
|
883 | - 'TR77' => __( 'Yalova', 'give' ), |
|
884 | - 'TR78' => __( 'Karabük', 'give' ), |
|
885 | - 'TR79' => __( 'Kilis', 'give' ), |
|
886 | - 'TR80' => __( 'Osmaniye', 'give' ), |
|
887 | - 'TR81' => __( 'Düzce', 'give' ), |
|
807 | + 'TR01' => __('Adana', 'give'), |
|
808 | + 'TR02' => __('Adıyaman', 'give'), |
|
809 | + 'TR03' => __('Afyon', 'give'), |
|
810 | + 'TR04' => __('Ağrı', 'give'), |
|
811 | + 'TR05' => __('Amasya', 'give'), |
|
812 | + 'TR06' => __('Ankara', 'give'), |
|
813 | + 'TR07' => __('Antalya', 'give'), |
|
814 | + 'TR08' => __('Artvin', 'give'), |
|
815 | + 'TR09' => __('Aydın', 'give'), |
|
816 | + 'TR10' => __('Balıkesir', 'give'), |
|
817 | + 'TR11' => __('Bilecik', 'give'), |
|
818 | + 'TR12' => __('Bingöl', 'give'), |
|
819 | + 'TR13' => __('Bitlis', 'give'), |
|
820 | + 'TR14' => __('Bolu', 'give'), |
|
821 | + 'TR15' => __('Burdur', 'give'), |
|
822 | + 'TR16' => __('Bursa', 'give'), |
|
823 | + 'TR17' => __('Çanakkale', 'give'), |
|
824 | + 'TR18' => __('Çankırı', 'give'), |
|
825 | + 'TR19' => __('Çorum', 'give'), |
|
826 | + 'TR20' => __('Denizli', 'give'), |
|
827 | + 'TR21' => __('Diyarbakır', 'give'), |
|
828 | + 'TR22' => __('Edirne', 'give'), |
|
829 | + 'TR23' => __('Elazığ', 'give'), |
|
830 | + 'TR24' => __('Erzincan', 'give'), |
|
831 | + 'TR25' => __('Erzurum', 'give'), |
|
832 | + 'TR26' => __('Eskişehir', 'give'), |
|
833 | + 'TR27' => __('Gaziantep', 'give'), |
|
834 | + 'TR28' => __('Giresun', 'give'), |
|
835 | + 'TR29' => __('Gümüşhane', 'give'), |
|
836 | + 'TR30' => __('Hakkari', 'give'), |
|
837 | + 'TR31' => __('Hatay', 'give'), |
|
838 | + 'TR32' => __('Isparta', 'give'), |
|
839 | + 'TR33' => __('İçel', 'give'), |
|
840 | + 'TR34' => __('İstanbul', 'give'), |
|
841 | + 'TR35' => __('İzmir', 'give'), |
|
842 | + 'TR36' => __('Kars', 'give'), |
|
843 | + 'TR37' => __('Kastamonu', 'give'), |
|
844 | + 'TR38' => __('Kayseri', 'give'), |
|
845 | + 'TR39' => __('Kırklareli', 'give'), |
|
846 | + 'TR40' => __('Kırşehir', 'give'), |
|
847 | + 'TR41' => __('Kocaeli', 'give'), |
|
848 | + 'TR42' => __('Konya', 'give'), |
|
849 | + 'TR43' => __('Kütahya', 'give'), |
|
850 | + 'TR44' => __('Malatya', 'give'), |
|
851 | + 'TR45' => __('Manisa', 'give'), |
|
852 | + 'TR46' => __('Kahramanmaraş', 'give'), |
|
853 | + 'TR47' => __('Mardin', 'give'), |
|
854 | + 'TR48' => __('Muğla', 'give'), |
|
855 | + 'TR49' => __('Muş', 'give'), |
|
856 | + 'TR50' => __('Nevşehir', 'give'), |
|
857 | + 'TR51' => __('Niğde', 'give'), |
|
858 | + 'TR52' => __('Ordu', 'give'), |
|
859 | + 'TR53' => __('Rize', 'give'), |
|
860 | + 'TR54' => __('Sakarya', 'give'), |
|
861 | + 'TR55' => __('Samsun', 'give'), |
|
862 | + 'TR56' => __('Siirt', 'give'), |
|
863 | + 'TR57' => __('Sinop', 'give'), |
|
864 | + 'TR58' => __('Sivas', 'give'), |
|
865 | + 'TR59' => __('Tekirdağ', 'give'), |
|
866 | + 'TR60' => __('Tokat', 'give'), |
|
867 | + 'TR61' => __('Trabzon', 'give'), |
|
868 | + 'TR62' => __('Tunceli', 'give'), |
|
869 | + 'TR63' => __('Şanlıurfa', 'give'), |
|
870 | + 'TR64' => __('Uşak', 'give'), |
|
871 | + 'TR65' => __('Van', 'give'), |
|
872 | + 'TR66' => __('Yozgat', 'give'), |
|
873 | + 'TR67' => __('Zonguldak', 'give'), |
|
874 | + 'TR68' => __('Aksaray', 'give'), |
|
875 | + 'TR69' => __('Bayburt', 'give'), |
|
876 | + 'TR70' => __('Karaman', 'give'), |
|
877 | + 'TR71' => __('Kırıkkale', 'give'), |
|
878 | + 'TR72' => __('Batman', 'give'), |
|
879 | + 'TR73' => __('Şırnak', 'give'), |
|
880 | + 'TR74' => __('Bartın', 'give'), |
|
881 | + 'TR75' => __('Ardahan', 'give'), |
|
882 | + 'TR76' => __('Iğdır', 'give'), |
|
883 | + 'TR77' => __('Yalova', 'give'), |
|
884 | + 'TR78' => __('Karabük', 'give'), |
|
885 | + 'TR79' => __('Kilis', 'give'), |
|
886 | + 'TR80' => __('Osmaniye', 'give'), |
|
887 | + 'TR81' => __('Düzce', 'give'), |
|
888 | 888 | ); |
889 | 889 | |
890 | - return apply_filters( 'give_turkey_states', $states ); |
|
890 | + return apply_filters('give_turkey_states', $states); |
|
891 | 891 | } |
892 | 892 | |
893 | 893 | /** |
@@ -899,51 +899,51 @@ discard block |
||
899 | 899 | function give_get_romania_states_list() { |
900 | 900 | $states = array( |
901 | 901 | '' => '', |
902 | - 'AB' => __( 'Alba', 'give' ), |
|
903 | - 'AR' => __( 'Arad', 'give' ), |
|
904 | - 'AG' => __( 'Arges', 'give' ), |
|
905 | - 'BC' => __( 'Bacau', 'give' ), |
|
906 | - 'BH' => __( 'Bihor', 'give' ), |
|
907 | - 'BN' => __( 'Bistrita-Nasaud', 'give' ), |
|
908 | - 'BT' => __( 'Botosani', 'give' ), |
|
909 | - 'BR' => __( 'Braila', 'give' ), |
|
910 | - 'BV' => __( 'Brasov', 'give' ), |
|
911 | - 'B' => __( 'Bucuresti', 'give' ), |
|
912 | - 'BZ' => __( 'Buzau', 'give' ), |
|
913 | - 'CL' => __( 'Calarasi', 'give' ), |
|
914 | - 'CS' => __( 'Caras-Severin', 'give' ), |
|
915 | - 'CJ' => __( 'Cluj', 'give' ), |
|
916 | - 'CT' => __( 'Constanta', 'give' ), |
|
917 | - 'CV' => __( 'Covasna', 'give' ), |
|
918 | - 'DB' => __( 'Dambovita', 'give' ), |
|
919 | - 'DJ' => __( 'Dolj', 'give' ), |
|
920 | - 'GL' => __( 'Galati', 'give' ), |
|
921 | - 'GR' => __( 'Giurgiu', 'give' ), |
|
922 | - 'GJ' => __( 'Gorj', 'give' ), |
|
923 | - 'HR' => __( 'Harghita', 'give' ), |
|
924 | - 'HD' => __( 'Hunedoara', 'give' ), |
|
925 | - 'IL' => __( 'Ialomita', 'give' ), |
|
926 | - 'IS' => __( 'Iasi', 'give' ), |
|
927 | - 'IF' => __( 'Ilfov', 'give' ), |
|
928 | - 'MM' => __( 'Maramures', 'give' ), |
|
929 | - 'MH' => __( 'Mehedinti', 'give' ), |
|
930 | - 'MS' => __( 'Mures', 'give' ), |
|
931 | - 'NT' => __( 'Neamt', 'give' ), |
|
932 | - 'OT' => __( 'Olt', 'give' ), |
|
933 | - 'PH' => __( 'Prahova', 'give' ), |
|
934 | - 'SJ' => __( 'Salaj', 'give' ), |
|
935 | - 'SM' => __( 'Satu Mare', 'give' ), |
|
936 | - 'SB' => __( 'Sibiu', 'give' ), |
|
937 | - 'SV' => __( 'Suceava', 'give' ), |
|
938 | - 'TR' => __( 'Teleorman', 'give' ), |
|
939 | - 'TM' => __( 'Timis', 'give' ), |
|
940 | - 'TL' => __( 'Tulcea', 'give' ), |
|
941 | - 'VL' => __( 'Valcea', 'give' ), |
|
942 | - 'VS' => __( 'Vaslui', 'give' ), |
|
943 | - 'VN' => __( 'Vrancea', 'give' ), |
|
902 | + 'AB' => __('Alba', 'give'), |
|
903 | + 'AR' => __('Arad', 'give'), |
|
904 | + 'AG' => __('Arges', 'give'), |
|
905 | + 'BC' => __('Bacau', 'give'), |
|
906 | + 'BH' => __('Bihor', 'give'), |
|
907 | + 'BN' => __('Bistrita-Nasaud', 'give'), |
|
908 | + 'BT' => __('Botosani', 'give'), |
|
909 | + 'BR' => __('Braila', 'give'), |
|
910 | + 'BV' => __('Brasov', 'give'), |
|
911 | + 'B' => __('Bucuresti', 'give'), |
|
912 | + 'BZ' => __('Buzau', 'give'), |
|
913 | + 'CL' => __('Calarasi', 'give'), |
|
914 | + 'CS' => __('Caras-Severin', 'give'), |
|
915 | + 'CJ' => __('Cluj', 'give'), |
|
916 | + 'CT' => __('Constanta', 'give'), |
|
917 | + 'CV' => __('Covasna', 'give'), |
|
918 | + 'DB' => __('Dambovita', 'give'), |
|
919 | + 'DJ' => __('Dolj', 'give'), |
|
920 | + 'GL' => __('Galati', 'give'), |
|
921 | + 'GR' => __('Giurgiu', 'give'), |
|
922 | + 'GJ' => __('Gorj', 'give'), |
|
923 | + 'HR' => __('Harghita', 'give'), |
|
924 | + 'HD' => __('Hunedoara', 'give'), |
|
925 | + 'IL' => __('Ialomita', 'give'), |
|
926 | + 'IS' => __('Iasi', 'give'), |
|
927 | + 'IF' => __('Ilfov', 'give'), |
|
928 | + 'MM' => __('Maramures', 'give'), |
|
929 | + 'MH' => __('Mehedinti', 'give'), |
|
930 | + 'MS' => __('Mures', 'give'), |
|
931 | + 'NT' => __('Neamt', 'give'), |
|
932 | + 'OT' => __('Olt', 'give'), |
|
933 | + 'PH' => __('Prahova', 'give'), |
|
934 | + 'SJ' => __('Salaj', 'give'), |
|
935 | + 'SM' => __('Satu Mare', 'give'), |
|
936 | + 'SB' => __('Sibiu', 'give'), |
|
937 | + 'SV' => __('Suceava', 'give'), |
|
938 | + 'TR' => __('Teleorman', 'give'), |
|
939 | + 'TM' => __('Timis', 'give'), |
|
940 | + 'TL' => __('Tulcea', 'give'), |
|
941 | + 'VL' => __('Valcea', 'give'), |
|
942 | + 'VS' => __('Vaslui', 'give'), |
|
943 | + 'VN' => __('Vrancea', 'give'), |
|
944 | 944 | ); |
945 | 945 | |
946 | - return apply_filters( 'give_romania_states', $states ); |
|
946 | + return apply_filters('give_romania_states', $states); |
|
947 | 947 | } |
948 | 948 | |
949 | 949 | /** |
@@ -955,17 +955,17 @@ discard block |
||
955 | 955 | function give_get_pakistan_states_list() { |
956 | 956 | $states = array( |
957 | 957 | '' => '', |
958 | - 'JK' => __( 'Azad Kashmir', 'give' ), |
|
959 | - 'BA' => __( 'Balochistan', 'give' ), |
|
960 | - 'TA' => __( 'FATA', 'give' ), |
|
961 | - 'GB' => __( 'Gilgit Baltistan', 'give' ), |
|
962 | - 'IS' => __( 'Islamabad Capital Territory', 'give' ), |
|
963 | - 'KP' => __( 'Khyber Pakhtunkhwa', 'give' ), |
|
964 | - 'PB' => __( 'Punjab', 'give' ), |
|
965 | - 'SD' => __( 'Sindh', 'give' ), |
|
958 | + 'JK' => __('Azad Kashmir', 'give'), |
|
959 | + 'BA' => __('Balochistan', 'give'), |
|
960 | + 'TA' => __('FATA', 'give'), |
|
961 | + 'GB' => __('Gilgit Baltistan', 'give'), |
|
962 | + 'IS' => __('Islamabad Capital Territory', 'give'), |
|
963 | + 'KP' => __('Khyber Pakhtunkhwa', 'give'), |
|
964 | + 'PB' => __('Punjab', 'give'), |
|
965 | + 'SD' => __('Sindh', 'give'), |
|
966 | 966 | ); |
967 | 967 | |
968 | - return apply_filters( 'give_pakistan_states', $states ); |
|
968 | + return apply_filters('give_pakistan_states', $states); |
|
969 | 969 | } |
970 | 970 | |
971 | 971 | /** |
@@ -977,91 +977,91 @@ discard block |
||
977 | 977 | function give_get_philippines_states_list() { |
978 | 978 | $states = array( |
979 | 979 | '' => '', |
980 | - 'ABR' => __( 'Abra', 'give' ), |
|
981 | - 'AGN' => __( 'Agusan del Norte', 'give' ), |
|
982 | - 'AGS' => __( 'Agusan del Sur', 'give' ), |
|
983 | - 'AKL' => __( 'Aklan', 'give' ), |
|
984 | - 'ALB' => __( 'Albay', 'give' ), |
|
985 | - 'ANT' => __( 'Antique', 'give' ), |
|
986 | - 'APA' => __( 'Apayao', 'give' ), |
|
987 | - 'AUR' => __( 'Aurora', 'give' ), |
|
988 | - 'BAS' => __( 'Basilan', 'give' ), |
|
989 | - 'BAN' => __( 'Bataan', 'give' ), |
|
990 | - 'BTN' => __( 'Batanes', 'give' ), |
|
991 | - 'BTG' => __( 'Batangas', 'give' ), |
|
992 | - 'BEN' => __( 'Benguet', 'give' ), |
|
993 | - 'BIL' => __( 'Biliran', 'give' ), |
|
994 | - 'BOH' => __( 'Bohol', 'give' ), |
|
995 | - 'BUK' => __( 'Bukidnon', 'give' ), |
|
996 | - 'BUL' => __( 'Bulacan', 'give' ), |
|
997 | - 'CAG' => __( 'Cagayan', 'give' ), |
|
998 | - 'CAN' => __( 'Camarines Norte', 'give' ), |
|
999 | - 'CAS' => __( 'Camarines Sur', 'give' ), |
|
1000 | - 'CAM' => __( 'Camiguin', 'give' ), |
|
1001 | - 'CAP' => __( 'Capiz', 'give' ), |
|
1002 | - 'CAT' => __( 'Catanduanes', 'give' ), |
|
1003 | - 'CAV' => __( 'Cavite', 'give' ), |
|
1004 | - 'CEB' => __( 'Cebu', 'give' ), |
|
1005 | - 'COM' => __( 'Compostela Valley', 'give' ), |
|
1006 | - 'NCO' => __( 'Cotabato', 'give' ), |
|
1007 | - 'DAV' => __( 'Davao del Norte', 'give' ), |
|
1008 | - 'DAS' => __( 'Davao del Sur', 'give' ), |
|
1009 | - 'DAC' => __( 'Davao Occidental', 'give' ), // TODO: Needs to be updated when ISO code is assigned |
|
1010 | - 'DAO' => __( 'Davao Oriental', 'give' ), |
|
1011 | - 'DIN' => __( 'Dinagat Islands', 'give' ), |
|
1012 | - 'EAS' => __( 'Eastern Samar', 'give' ), |
|
1013 | - 'GUI' => __( 'Guimaras', 'give' ), |
|
1014 | - 'IFU' => __( 'Ifugao', 'give' ), |
|
1015 | - 'ILN' => __( 'Ilocos Norte', 'give' ), |
|
1016 | - 'ILS' => __( 'Ilocos Sur', 'give' ), |
|
1017 | - 'ILI' => __( 'Iloilo', 'give' ), |
|
1018 | - 'ISA' => __( 'Isabela', 'give' ), |
|
1019 | - 'KAL' => __( 'Kalinga', 'give' ), |
|
1020 | - 'LUN' => __( 'La Union', 'give' ), |
|
1021 | - 'LAG' => __( 'Laguna', 'give' ), |
|
1022 | - 'LAN' => __( 'Lanao del Norte', 'give' ), |
|
1023 | - 'LAS' => __( 'Lanao del Sur', 'give' ), |
|
1024 | - 'LEY' => __( 'Leyte', 'give' ), |
|
1025 | - 'MAG' => __( 'Maguindanao', 'give' ), |
|
1026 | - 'MAD' => __( 'Marinduque', 'give' ), |
|
1027 | - 'MAS' => __( 'Masbate', 'give' ), |
|
1028 | - 'MSC' => __( 'Misamis Occidental', 'give' ), |
|
1029 | - 'MSR' => __( 'Misamis Oriental', 'give' ), |
|
1030 | - 'MOU' => __( 'Mountain Province', 'give' ), |
|
1031 | - 'NEC' => __( 'Negros Occidental', 'give' ), |
|
1032 | - 'NER' => __( 'Negros Oriental', 'give' ), |
|
1033 | - 'NSA' => __( 'Northern Samar', 'give' ), |
|
1034 | - 'NUE' => __( 'Nueva Ecija', 'give' ), |
|
1035 | - 'NUV' => __( 'Nueva Vizcaya', 'give' ), |
|
1036 | - 'MDC' => __( 'Occidental Mindoro', 'give' ), |
|
1037 | - 'MDR' => __( 'Oriental Mindoro', 'give' ), |
|
1038 | - 'PLW' => __( 'Palawan', 'give' ), |
|
1039 | - 'PAM' => __( 'Pampanga', 'give' ), |
|
1040 | - 'PAN' => __( 'Pangasinan', 'give' ), |
|
1041 | - 'QUE' => __( 'Quezon', 'give' ), |
|
1042 | - 'QUI' => __( 'Quirino', 'give' ), |
|
1043 | - 'RIZ' => __( 'Rizal', 'give' ), |
|
1044 | - 'ROM' => __( 'Romblon', 'give' ), |
|
1045 | - 'WSA' => __( 'Samar', 'give' ), |
|
1046 | - 'SAR' => __( 'Sarangani', 'give' ), |
|
1047 | - 'SIQ' => __( 'Siquijor', 'give' ), |
|
1048 | - 'SOR' => __( 'Sorsogon', 'give' ), |
|
1049 | - 'SCO' => __( 'South Cotabato', 'give' ), |
|
1050 | - 'SLE' => __( 'Southern Leyte', 'give' ), |
|
1051 | - 'SUK' => __( 'Sultan Kudarat', 'give' ), |
|
1052 | - 'SLU' => __( 'Sulu', 'give' ), |
|
1053 | - 'SUN' => __( 'Surigao del Norte', 'give' ), |
|
1054 | - 'SUR' => __( 'Surigao del Sur', 'give' ), |
|
1055 | - 'TAR' => __( 'Tarlac', 'give' ), |
|
1056 | - 'TAW' => __( 'Tawi-Tawi', 'give' ), |
|
1057 | - 'ZMB' => __( 'Zambales', 'give' ), |
|
1058 | - 'ZAN' => __( 'Zamboanga del Norte', 'give' ), |
|
1059 | - 'ZAS' => __( 'Zamboanga del Sur', 'give' ), |
|
1060 | - 'ZSI' => __( 'Zamboanga Sibugay', 'give' ), |
|
1061 | - '00' => __( 'Metro Manila', 'give' ), |
|
980 | + 'ABR' => __('Abra', 'give'), |
|
981 | + 'AGN' => __('Agusan del Norte', 'give'), |
|
982 | + 'AGS' => __('Agusan del Sur', 'give'), |
|
983 | + 'AKL' => __('Aklan', 'give'), |
|
984 | + 'ALB' => __('Albay', 'give'), |
|
985 | + 'ANT' => __('Antique', 'give'), |
|
986 | + 'APA' => __('Apayao', 'give'), |
|
987 | + 'AUR' => __('Aurora', 'give'), |
|
988 | + 'BAS' => __('Basilan', 'give'), |
|
989 | + 'BAN' => __('Bataan', 'give'), |
|
990 | + 'BTN' => __('Batanes', 'give'), |
|
991 | + 'BTG' => __('Batangas', 'give'), |
|
992 | + 'BEN' => __('Benguet', 'give'), |
|
993 | + 'BIL' => __('Biliran', 'give'), |
|
994 | + 'BOH' => __('Bohol', 'give'), |
|
995 | + 'BUK' => __('Bukidnon', 'give'), |
|
996 | + 'BUL' => __('Bulacan', 'give'), |
|
997 | + 'CAG' => __('Cagayan', 'give'), |
|
998 | + 'CAN' => __('Camarines Norte', 'give'), |
|
999 | + 'CAS' => __('Camarines Sur', 'give'), |
|
1000 | + 'CAM' => __('Camiguin', 'give'), |
|
1001 | + 'CAP' => __('Capiz', 'give'), |
|
1002 | + 'CAT' => __('Catanduanes', 'give'), |
|
1003 | + 'CAV' => __('Cavite', 'give'), |
|
1004 | + 'CEB' => __('Cebu', 'give'), |
|
1005 | + 'COM' => __('Compostela Valley', 'give'), |
|
1006 | + 'NCO' => __('Cotabato', 'give'), |
|
1007 | + 'DAV' => __('Davao del Norte', 'give'), |
|
1008 | + 'DAS' => __('Davao del Sur', 'give'), |
|
1009 | + 'DAC' => __('Davao Occidental', 'give'), // TODO: Needs to be updated when ISO code is assigned |
|
1010 | + 'DAO' => __('Davao Oriental', 'give'), |
|
1011 | + 'DIN' => __('Dinagat Islands', 'give'), |
|
1012 | + 'EAS' => __('Eastern Samar', 'give'), |
|
1013 | + 'GUI' => __('Guimaras', 'give'), |
|
1014 | + 'IFU' => __('Ifugao', 'give'), |
|
1015 | + 'ILN' => __('Ilocos Norte', 'give'), |
|
1016 | + 'ILS' => __('Ilocos Sur', 'give'), |
|
1017 | + 'ILI' => __('Iloilo', 'give'), |
|
1018 | + 'ISA' => __('Isabela', 'give'), |
|
1019 | + 'KAL' => __('Kalinga', 'give'), |
|
1020 | + 'LUN' => __('La Union', 'give'), |
|
1021 | + 'LAG' => __('Laguna', 'give'), |
|
1022 | + 'LAN' => __('Lanao del Norte', 'give'), |
|
1023 | + 'LAS' => __('Lanao del Sur', 'give'), |
|
1024 | + 'LEY' => __('Leyte', 'give'), |
|
1025 | + 'MAG' => __('Maguindanao', 'give'), |
|
1026 | + 'MAD' => __('Marinduque', 'give'), |
|
1027 | + 'MAS' => __('Masbate', 'give'), |
|
1028 | + 'MSC' => __('Misamis Occidental', 'give'), |
|
1029 | + 'MSR' => __('Misamis Oriental', 'give'), |
|
1030 | + 'MOU' => __('Mountain Province', 'give'), |
|
1031 | + 'NEC' => __('Negros Occidental', 'give'), |
|
1032 | + 'NER' => __('Negros Oriental', 'give'), |
|
1033 | + 'NSA' => __('Northern Samar', 'give'), |
|
1034 | + 'NUE' => __('Nueva Ecija', 'give'), |
|
1035 | + 'NUV' => __('Nueva Vizcaya', 'give'), |
|
1036 | + 'MDC' => __('Occidental Mindoro', 'give'), |
|
1037 | + 'MDR' => __('Oriental Mindoro', 'give'), |
|
1038 | + 'PLW' => __('Palawan', 'give'), |
|
1039 | + 'PAM' => __('Pampanga', 'give'), |
|
1040 | + 'PAN' => __('Pangasinan', 'give'), |
|
1041 | + 'QUE' => __('Quezon', 'give'), |
|
1042 | + 'QUI' => __('Quirino', 'give'), |
|
1043 | + 'RIZ' => __('Rizal', 'give'), |
|
1044 | + 'ROM' => __('Romblon', 'give'), |
|
1045 | + 'WSA' => __('Samar', 'give'), |
|
1046 | + 'SAR' => __('Sarangani', 'give'), |
|
1047 | + 'SIQ' => __('Siquijor', 'give'), |
|
1048 | + 'SOR' => __('Sorsogon', 'give'), |
|
1049 | + 'SCO' => __('South Cotabato', 'give'), |
|
1050 | + 'SLE' => __('Southern Leyte', 'give'), |
|
1051 | + 'SUK' => __('Sultan Kudarat', 'give'), |
|
1052 | + 'SLU' => __('Sulu', 'give'), |
|
1053 | + 'SUN' => __('Surigao del Norte', 'give'), |
|
1054 | + 'SUR' => __('Surigao del Sur', 'give'), |
|
1055 | + 'TAR' => __('Tarlac', 'give'), |
|
1056 | + 'TAW' => __('Tawi-Tawi', 'give'), |
|
1057 | + 'ZMB' => __('Zambales', 'give'), |
|
1058 | + 'ZAN' => __('Zamboanga del Norte', 'give'), |
|
1059 | + 'ZAS' => __('Zamboanga del Sur', 'give'), |
|
1060 | + 'ZSI' => __('Zamboanga Sibugay', 'give'), |
|
1061 | + '00' => __('Metro Manila', 'give'), |
|
1062 | 1062 | ); |
1063 | 1063 | |
1064 | - return apply_filters( 'give_philippines_states', $states ); |
|
1064 | + return apply_filters('give_philippines_states', $states); |
|
1065 | 1065 | } |
1066 | 1066 | |
1067 | 1067 | /** |
@@ -1073,35 +1073,35 @@ discard block |
||
1073 | 1073 | function give_get_peru_states_list() { |
1074 | 1074 | $states = array( |
1075 | 1075 | '' => '', |
1076 | - 'CAL' => __( 'El Callao', 'give' ), |
|
1077 | - 'LMA' => __( 'Municipalidad Metropolitana de Lima', 'give' ), |
|
1078 | - 'AMA' => __( 'Amazonas', 'give' ), |
|
1079 | - 'ANC' => __( 'Ancash', 'give' ), |
|
1080 | - 'APU' => __( 'Apurímac', 'give' ), |
|
1081 | - 'ARE' => __( 'Arequipa', 'give' ), |
|
1082 | - 'AYA' => __( 'Ayacucho', 'give' ), |
|
1083 | - 'CAJ' => __( 'Cajamarca', 'give' ), |
|
1084 | - 'CUS' => __( 'Cusco', 'give' ), |
|
1085 | - 'HUV' => __( 'Huancavelica', 'give' ), |
|
1086 | - 'HUC' => __( 'Huánuco', 'give' ), |
|
1087 | - 'ICA' => __( 'Ica', 'give' ), |
|
1088 | - 'JUN' => __( 'Junín', 'give' ), |
|
1089 | - 'LAL' => __( 'La Libertad', 'give' ), |
|
1090 | - 'LAM' => __( 'Lambayeque', 'give' ), |
|
1091 | - 'LIM' => __( 'Lima', 'give' ), |
|
1092 | - 'LOR' => __( 'Loreto', 'give' ), |
|
1093 | - 'MDD' => __( 'Madre de Dios', 'give' ), |
|
1094 | - 'MOQ' => __( 'Moquegua', 'give' ), |
|
1095 | - 'PAS' => __( 'Pasco', 'give' ), |
|
1096 | - 'PIU' => __( 'Piura', 'give' ), |
|
1097 | - 'PUN' => __( 'Puno', 'give' ), |
|
1098 | - 'SAM' => __( 'San Martín', 'give' ), |
|
1099 | - 'TAC' => __( 'Tacna', 'give' ), |
|
1100 | - 'TUM' => __( 'Tumbes', 'give' ), |
|
1101 | - 'UCA' => __( 'Ucayali', 'give' ), |
|
1076 | + 'CAL' => __('El Callao', 'give'), |
|
1077 | + 'LMA' => __('Municipalidad Metropolitana de Lima', 'give'), |
|
1078 | + 'AMA' => __('Amazonas', 'give'), |
|
1079 | + 'ANC' => __('Ancash', 'give'), |
|
1080 | + 'APU' => __('Apurímac', 'give'), |
|
1081 | + 'ARE' => __('Arequipa', 'give'), |
|
1082 | + 'AYA' => __('Ayacucho', 'give'), |
|
1083 | + 'CAJ' => __('Cajamarca', 'give'), |
|
1084 | + 'CUS' => __('Cusco', 'give'), |
|
1085 | + 'HUV' => __('Huancavelica', 'give'), |
|
1086 | + 'HUC' => __('Huánuco', 'give'), |
|
1087 | + 'ICA' => __('Ica', 'give'), |
|
1088 | + 'JUN' => __('Junín', 'give'), |
|
1089 | + 'LAL' => __('La Libertad', 'give'), |
|
1090 | + 'LAM' => __('Lambayeque', 'give'), |
|
1091 | + 'LIM' => __('Lima', 'give'), |
|
1092 | + 'LOR' => __('Loreto', 'give'), |
|
1093 | + 'MDD' => __('Madre de Dios', 'give'), |
|
1094 | + 'MOQ' => __('Moquegua', 'give'), |
|
1095 | + 'PAS' => __('Pasco', 'give'), |
|
1096 | + 'PIU' => __('Piura', 'give'), |
|
1097 | + 'PUN' => __('Puno', 'give'), |
|
1098 | + 'SAM' => __('San Martín', 'give'), |
|
1099 | + 'TAC' => __('Tacna', 'give'), |
|
1100 | + 'TUM' => __('Tumbes', 'give'), |
|
1101 | + 'UCA' => __('Ucayali', 'give'), |
|
1102 | 1102 | ); |
1103 | 1103 | |
1104 | - return apply_filters( 'give_peru_states', $states ); |
|
1104 | + return apply_filters('give_peru_states', $states); |
|
1105 | 1105 | } |
1106 | 1106 | |
1107 | 1107 | /** |
@@ -1113,23 +1113,23 @@ discard block |
||
1113 | 1113 | function give_get_nepal_states_list() { |
1114 | 1114 | $states = array( |
1115 | 1115 | '' => '', |
1116 | - 'BAG' => __( 'Bagmati', 'give' ), |
|
1117 | - 'BHE' => __( 'Bheri', 'give' ), |
|
1118 | - 'DHA' => __( 'Dhaulagiri', 'give' ), |
|
1119 | - 'GAN' => __( 'Gandaki', 'give' ), |
|
1120 | - 'JAN' => __( 'Janakpur', 'give' ), |
|
1121 | - 'KAR' => __( 'Karnali', 'give' ), |
|
1122 | - 'KOS' => __( 'Koshi', 'give' ), |
|
1123 | - 'LUM' => __( 'Lumbini', 'give' ), |
|
1124 | - 'MAH' => __( 'Mahakali', 'give' ), |
|
1125 | - 'MEC' => __( 'Mechi', 'give' ), |
|
1126 | - 'NAR' => __( 'Narayani', 'give' ), |
|
1127 | - 'RAP' => __( 'Rapti', 'give' ), |
|
1128 | - 'SAG' => __( 'Sagarmatha', 'give' ), |
|
1129 | - 'SET' => __( 'Seti', 'give' ), |
|
1116 | + 'BAG' => __('Bagmati', 'give'), |
|
1117 | + 'BHE' => __('Bheri', 'give'), |
|
1118 | + 'DHA' => __('Dhaulagiri', 'give'), |
|
1119 | + 'GAN' => __('Gandaki', 'give'), |
|
1120 | + 'JAN' => __('Janakpur', 'give'), |
|
1121 | + 'KAR' => __('Karnali', 'give'), |
|
1122 | + 'KOS' => __('Koshi', 'give'), |
|
1123 | + 'LUM' => __('Lumbini', 'give'), |
|
1124 | + 'MAH' => __('Mahakali', 'give'), |
|
1125 | + 'MEC' => __('Mechi', 'give'), |
|
1126 | + 'NAR' => __('Narayani', 'give'), |
|
1127 | + 'RAP' => __('Rapti', 'give'), |
|
1128 | + 'SAG' => __('Sagarmatha', 'give'), |
|
1129 | + 'SET' => __('Seti', 'give'), |
|
1130 | 1130 | ); |
1131 | 1131 | |
1132 | - return apply_filters( 'give_nepal_states', $states ); |
|
1132 | + return apply_filters('give_nepal_states', $states); |
|
1133 | 1133 | } |
1134 | 1134 | |
1135 | 1135 | /** |
@@ -1141,46 +1141,46 @@ discard block |
||
1141 | 1141 | function give_get_nigerian_states_list() { |
1142 | 1142 | $states = array( |
1143 | 1143 | '' => '', |
1144 | - 'AB' => __( 'Abia', 'give' ), |
|
1145 | - 'FC' => __( 'Abuja', 'give' ), |
|
1146 | - 'AD' => __( 'Adamawa', 'give' ), |
|
1147 | - 'AK' => __( 'Akwa Ibom', 'give' ), |
|
1148 | - 'AN' => __( 'Anambra', 'give' ), |
|
1149 | - 'BA' => __( 'Bauchi', 'give' ), |
|
1150 | - 'BY' => __( 'Bayelsa', 'give' ), |
|
1151 | - 'BE' => __( 'Benue', 'give' ), |
|
1152 | - 'BO' => __( 'Borno', 'give' ), |
|
1153 | - 'CR' => __( 'Cross River', 'give' ), |
|
1154 | - 'DE' => __( 'Delta', 'give' ), |
|
1155 | - 'EB' => __( 'Ebonyi', 'give' ), |
|
1156 | - 'ED' => __( 'Edo', 'give' ), |
|
1157 | - 'EK' => __( 'Ekiti', 'give' ), |
|
1158 | - 'EN' => __( 'Enugu', 'give' ), |
|
1159 | - 'GO' => __( 'Gombe', 'give' ), |
|
1160 | - 'IM' => __( 'Imo', 'give' ), |
|
1161 | - 'JI' => __( 'Jigawa', 'give' ), |
|
1162 | - 'KD' => __( 'Kaduna', 'give' ), |
|
1163 | - 'KN' => __( 'Kano', 'give' ), |
|
1164 | - 'KT' => __( 'Katsina', 'give' ), |
|
1165 | - 'KE' => __( 'Kebbi', 'give' ), |
|
1166 | - 'KO' => __( 'Kogi', 'give' ), |
|
1167 | - 'KW' => __( 'Kwara', 'give' ), |
|
1168 | - 'LA' => __( 'Lagos', 'give' ), |
|
1169 | - 'NA' => __( 'Nasarawa', 'give' ), |
|
1170 | - 'NI' => __( 'Niger', 'give' ), |
|
1171 | - 'OG' => __( 'Ogun', 'give' ), |
|
1172 | - 'ON' => __( 'Ondo', 'give' ), |
|
1173 | - 'OS' => __( 'Osun', 'give' ), |
|
1174 | - 'OY' => __( 'Oyo', 'give' ), |
|
1175 | - 'PL' => __( 'Plateau', 'give' ), |
|
1176 | - 'RI' => __( 'Rivers', 'give' ), |
|
1177 | - 'SO' => __( 'Sokoto', 'give' ), |
|
1178 | - 'TA' => __( 'Taraba', 'give' ), |
|
1179 | - 'YO' => __( 'Yobe', 'give' ), |
|
1180 | - 'ZA' => __( 'Zamfara', 'give' ), |
|
1144 | + 'AB' => __('Abia', 'give'), |
|
1145 | + 'FC' => __('Abuja', 'give'), |
|
1146 | + 'AD' => __('Adamawa', 'give'), |
|
1147 | + 'AK' => __('Akwa Ibom', 'give'), |
|
1148 | + 'AN' => __('Anambra', 'give'), |
|
1149 | + 'BA' => __('Bauchi', 'give'), |
|
1150 | + 'BY' => __('Bayelsa', 'give'), |
|
1151 | + 'BE' => __('Benue', 'give'), |
|
1152 | + 'BO' => __('Borno', 'give'), |
|
1153 | + 'CR' => __('Cross River', 'give'), |
|
1154 | + 'DE' => __('Delta', 'give'), |
|
1155 | + 'EB' => __('Ebonyi', 'give'), |
|
1156 | + 'ED' => __('Edo', 'give'), |
|
1157 | + 'EK' => __('Ekiti', 'give'), |
|
1158 | + 'EN' => __('Enugu', 'give'), |
|
1159 | + 'GO' => __('Gombe', 'give'), |
|
1160 | + 'IM' => __('Imo', 'give'), |
|
1161 | + 'JI' => __('Jigawa', 'give'), |
|
1162 | + 'KD' => __('Kaduna', 'give'), |
|
1163 | + 'KN' => __('Kano', 'give'), |
|
1164 | + 'KT' => __('Katsina', 'give'), |
|
1165 | + 'KE' => __('Kebbi', 'give'), |
|
1166 | + 'KO' => __('Kogi', 'give'), |
|
1167 | + 'KW' => __('Kwara', 'give'), |
|
1168 | + 'LA' => __('Lagos', 'give'), |
|
1169 | + 'NA' => __('Nasarawa', 'give'), |
|
1170 | + 'NI' => __('Niger', 'give'), |
|
1171 | + 'OG' => __('Ogun', 'give'), |
|
1172 | + 'ON' => __('Ondo', 'give'), |
|
1173 | + 'OS' => __('Osun', 'give'), |
|
1174 | + 'OY' => __('Oyo', 'give'), |
|
1175 | + 'PL' => __('Plateau', 'give'), |
|
1176 | + 'RI' => __('Rivers', 'give'), |
|
1177 | + 'SO' => __('Sokoto', 'give'), |
|
1178 | + 'TA' => __('Taraba', 'give'), |
|
1179 | + 'YO' => __('Yobe', 'give'), |
|
1180 | + 'ZA' => __('Zamfara', 'give'), |
|
1181 | 1181 | ); |
1182 | 1182 | |
1183 | - return apply_filters( 'give_nigerian_states', $states ); |
|
1183 | + return apply_filters('give_nigerian_states', $states); |
|
1184 | 1184 | } |
1185 | 1185 | |
1186 | 1186 | /** |
@@ -1192,41 +1192,41 @@ discard block |
||
1192 | 1192 | function give_get_mexico_states_list() { |
1193 | 1193 | $states = array( |
1194 | 1194 | '' => '', |
1195 | - 'Distrito Federal' => __( 'Distrito Federal', 'give' ), |
|
1196 | - 'Jalisco' => __( 'Jalisco', 'give' ), |
|
1197 | - 'Nuevo Leon' => __( 'Nuevo León', 'give' ), |
|
1198 | - 'Aguascalientes' => __( 'Aguascalientes', 'give' ), |
|
1199 | - 'Baja California' => __( 'Baja California', 'give' ), |
|
1200 | - 'Baja California Sur' => __( 'Baja California Sur', 'give' ), |
|
1201 | - 'Campeche' => __( 'Campeche', 'give' ), |
|
1202 | - 'Chiapas' => __( 'Chiapas', 'give' ), |
|
1203 | - 'Chihuahua' => __( 'Chihuahua', 'give' ), |
|
1204 | - 'Coahuila' => __( 'Coahuila', 'give' ), |
|
1205 | - 'Colima' => __( 'Colima', 'give' ), |
|
1206 | - 'Durango' => __( 'Durango', 'give' ), |
|
1207 | - 'Guanajuato' => __( 'Guanajuato', 'give' ), |
|
1208 | - 'Guerrero' => __( 'Guerrero', 'give' ), |
|
1209 | - 'Hidalgo' => __( 'Hidalgo', 'give' ), |
|
1210 | - 'Estado de Mexico' => __( 'Edo. de México', 'give' ), |
|
1211 | - 'Michoacan' => __( 'Michoacán', 'give' ), |
|
1212 | - 'Morelos' => __( 'Morelos', 'give' ), |
|
1213 | - 'Nayarit' => __( 'Nayarit', 'give' ), |
|
1214 | - 'Oaxaca' => __( 'Oaxaca', 'give' ), |
|
1215 | - 'Puebla' => __( 'Puebla', 'give' ), |
|
1216 | - 'Queretaro' => __( 'Querétaro', 'give' ), |
|
1217 | - 'Quintana Roo' => __( 'Quintana Roo', 'give' ), |
|
1218 | - 'San Luis Potosi' => __( 'San Luis Potosí', 'give' ), |
|
1219 | - 'Sinaloa' => __( 'Sinaloa', 'give' ), |
|
1220 | - 'Sonora' => __( 'Sonora', 'give' ), |
|
1221 | - 'Tabasco' => __( 'Tabasco', 'give' ), |
|
1222 | - 'Tamaulipas' => __( 'Tamaulipas', 'give' ), |
|
1223 | - 'Tlaxcala' => __( 'Tlaxcala', 'give' ), |
|
1224 | - 'Veracruz' => __( 'Veracruz', 'give' ), |
|
1225 | - 'Yucatan' => __( 'Yucatán', 'give' ), |
|
1226 | - 'Zacatecas' => __( 'Zacatecas', 'give' ), |
|
1195 | + 'Distrito Federal' => __('Distrito Federal', 'give'), |
|
1196 | + 'Jalisco' => __('Jalisco', 'give'), |
|
1197 | + 'Nuevo Leon' => __('Nuevo León', 'give'), |
|
1198 | + 'Aguascalientes' => __('Aguascalientes', 'give'), |
|
1199 | + 'Baja California' => __('Baja California', 'give'), |
|
1200 | + 'Baja California Sur' => __('Baja California Sur', 'give'), |
|
1201 | + 'Campeche' => __('Campeche', 'give'), |
|
1202 | + 'Chiapas' => __('Chiapas', 'give'), |
|
1203 | + 'Chihuahua' => __('Chihuahua', 'give'), |
|
1204 | + 'Coahuila' => __('Coahuila', 'give'), |
|
1205 | + 'Colima' => __('Colima', 'give'), |
|
1206 | + 'Durango' => __('Durango', 'give'), |
|
1207 | + 'Guanajuato' => __('Guanajuato', 'give'), |
|
1208 | + 'Guerrero' => __('Guerrero', 'give'), |
|
1209 | + 'Hidalgo' => __('Hidalgo', 'give'), |
|
1210 | + 'Estado de Mexico' => __('Edo. de México', 'give'), |
|
1211 | + 'Michoacan' => __('Michoacán', 'give'), |
|
1212 | + 'Morelos' => __('Morelos', 'give'), |
|
1213 | + 'Nayarit' => __('Nayarit', 'give'), |
|
1214 | + 'Oaxaca' => __('Oaxaca', 'give'), |
|
1215 | + 'Puebla' => __('Puebla', 'give'), |
|
1216 | + 'Queretaro' => __('Querétaro', 'give'), |
|
1217 | + 'Quintana Roo' => __('Quintana Roo', 'give'), |
|
1218 | + 'San Luis Potosi' => __('San Luis Potosí', 'give'), |
|
1219 | + 'Sinaloa' => __('Sinaloa', 'give'), |
|
1220 | + 'Sonora' => __('Sonora', 'give'), |
|
1221 | + 'Tabasco' => __('Tabasco', 'give'), |
|
1222 | + 'Tamaulipas' => __('Tamaulipas', 'give'), |
|
1223 | + 'Tlaxcala' => __('Tlaxcala', 'give'), |
|
1224 | + 'Veracruz' => __('Veracruz', 'give'), |
|
1225 | + 'Yucatan' => __('Yucatán', 'give'), |
|
1226 | + 'Zacatecas' => __('Zacatecas', 'give'), |
|
1227 | 1227 | ); |
1228 | 1228 | |
1229 | - return apply_filters( 'give_mexico_states', $states ); |
|
1229 | + return apply_filters('give_mexico_states', $states); |
|
1230 | 1230 | } |
1231 | 1231 | |
1232 | 1232 | /** |
@@ -1238,56 +1238,56 @@ discard block |
||
1238 | 1238 | function give_get_japan_states_list() { |
1239 | 1239 | $states = array( |
1240 | 1240 | '' => '', |
1241 | - 'JP01' => __( 'Hokkaido', 'give' ), |
|
1242 | - 'JP02' => __( 'Aomori', 'give' ), |
|
1243 | - 'JP03' => __( 'Iwate', 'give' ), |
|
1244 | - 'JP04' => __( 'Miyagi', 'give' ), |
|
1245 | - 'JP05' => __( 'Akita', 'give' ), |
|
1246 | - 'JP06' => __( 'Yamagata', 'give' ), |
|
1247 | - 'JP07' => __( 'Fukushima', 'give' ), |
|
1248 | - 'JP08' => __( 'Ibaraki', 'give' ), |
|
1249 | - 'JP09' => __( 'Tochigi', 'give' ), |
|
1250 | - 'JP10' => __( 'Gunma', 'give' ), |
|
1251 | - 'JP11' => __( 'Saitama', 'give' ), |
|
1252 | - 'JP12' => __( 'Chiba', 'give' ), |
|
1253 | - 'JP13' => __( 'Tokyo', 'give' ), |
|
1254 | - 'JP14' => __( 'Kanagawa', 'give' ), |
|
1255 | - 'JP15' => __( 'Niigata', 'give' ), |
|
1256 | - 'JP16' => __( 'Toyama', 'give' ), |
|
1257 | - 'JP17' => __( 'Ishikawa', 'give' ), |
|
1258 | - 'JP18' => __( 'Fukui', 'give' ), |
|
1259 | - 'JP19' => __( 'Yamanashi', 'give' ), |
|
1260 | - 'JP20' => __( 'Nagano', 'give' ), |
|
1261 | - 'JP21' => __( 'Gifu', 'give' ), |
|
1262 | - 'JP22' => __( 'Shizuoka', 'give' ), |
|
1263 | - 'JP23' => __( 'Aichi', 'give' ), |
|
1264 | - 'JP24' => __( 'Mie', 'give' ), |
|
1265 | - 'JP25' => __( 'Shiga', 'give' ), |
|
1266 | - 'JP26' => __( 'Kyoto', 'give' ), |
|
1267 | - 'JP27' => __( 'Osaka', 'give' ), |
|
1268 | - 'JP28' => __( 'Hyogo', 'give' ), |
|
1269 | - 'JP29' => __( 'Nara', 'give' ), |
|
1270 | - 'JP30' => __( 'Wakayama', 'give' ), |
|
1271 | - 'JP31' => __( 'Tottori', 'give' ), |
|
1272 | - 'JP32' => __( 'Shimane', 'give' ), |
|
1273 | - 'JP33' => __( 'Okayama', 'give' ), |
|
1274 | - 'JP34' => __( 'Hiroshima', 'give' ), |
|
1275 | - 'JP35' => __( 'Yamaguchi', 'give' ), |
|
1276 | - 'JP36' => __( 'Tokushima', 'give' ), |
|
1277 | - 'JP37' => __( 'Kagawa', 'give' ), |
|
1278 | - 'JP38' => __( 'Ehime', 'give' ), |
|
1279 | - 'JP39' => __( 'Kochi', 'give' ), |
|
1280 | - 'JP40' => __( 'Fukuoka', 'give' ), |
|
1281 | - 'JP41' => __( 'Saga', 'give' ), |
|
1282 | - 'JP42' => __( 'Nagasaki', 'give' ), |
|
1283 | - 'JP43' => __( 'Kumamoto', 'give' ), |
|
1284 | - 'JP44' => __( 'Oita', 'give' ), |
|
1285 | - 'JP45' => __( 'Miyazaki', 'give' ), |
|
1286 | - 'JP46' => __( 'Kagoshima', 'give' ), |
|
1287 | - 'JP47' => __( 'Okinawa', 'give' ), |
|
1241 | + 'JP01' => __('Hokkaido', 'give'), |
|
1242 | + 'JP02' => __('Aomori', 'give'), |
|
1243 | + 'JP03' => __('Iwate', 'give'), |
|
1244 | + 'JP04' => __('Miyagi', 'give'), |
|
1245 | + 'JP05' => __('Akita', 'give'), |
|
1246 | + 'JP06' => __('Yamagata', 'give'), |
|
1247 | + 'JP07' => __('Fukushima', 'give'), |
|
1248 | + 'JP08' => __('Ibaraki', 'give'), |
|
1249 | + 'JP09' => __('Tochigi', 'give'), |
|
1250 | + 'JP10' => __('Gunma', 'give'), |
|
1251 | + 'JP11' => __('Saitama', 'give'), |
|
1252 | + 'JP12' => __('Chiba', 'give'), |
|
1253 | + 'JP13' => __('Tokyo', 'give'), |
|
1254 | + 'JP14' => __('Kanagawa', 'give'), |
|
1255 | + 'JP15' => __('Niigata', 'give'), |
|
1256 | + 'JP16' => __('Toyama', 'give'), |
|
1257 | + 'JP17' => __('Ishikawa', 'give'), |
|
1258 | + 'JP18' => __('Fukui', 'give'), |
|
1259 | + 'JP19' => __('Yamanashi', 'give'), |
|
1260 | + 'JP20' => __('Nagano', 'give'), |
|
1261 | + 'JP21' => __('Gifu', 'give'), |
|
1262 | + 'JP22' => __('Shizuoka', 'give'), |
|
1263 | + 'JP23' => __('Aichi', 'give'), |
|
1264 | + 'JP24' => __('Mie', 'give'), |
|
1265 | + 'JP25' => __('Shiga', 'give'), |
|
1266 | + 'JP26' => __('Kyoto', 'give'), |
|
1267 | + 'JP27' => __('Osaka', 'give'), |
|
1268 | + 'JP28' => __('Hyogo', 'give'), |
|
1269 | + 'JP29' => __('Nara', 'give'), |
|
1270 | + 'JP30' => __('Wakayama', 'give'), |
|
1271 | + 'JP31' => __('Tottori', 'give'), |
|
1272 | + 'JP32' => __('Shimane', 'give'), |
|
1273 | + 'JP33' => __('Okayama', 'give'), |
|
1274 | + 'JP34' => __('Hiroshima', 'give'), |
|
1275 | + 'JP35' => __('Yamaguchi', 'give'), |
|
1276 | + 'JP36' => __('Tokushima', 'give'), |
|
1277 | + 'JP37' => __('Kagawa', 'give'), |
|
1278 | + 'JP38' => __('Ehime', 'give'), |
|
1279 | + 'JP39' => __('Kochi', 'give'), |
|
1280 | + 'JP40' => __('Fukuoka', 'give'), |
|
1281 | + 'JP41' => __('Saga', 'give'), |
|
1282 | + 'JP42' => __('Nagasaki', 'give'), |
|
1283 | + 'JP43' => __('Kumamoto', 'give'), |
|
1284 | + 'JP44' => __('Oita', 'give'), |
|
1285 | + 'JP45' => __('Miyazaki', 'give'), |
|
1286 | + 'JP46' => __('Kagoshima', 'give'), |
|
1287 | + 'JP47' => __('Okinawa', 'give'), |
|
1288 | 1288 | ); |
1289 | 1289 | |
1290 | - return apply_filters( 'give_japan_states', $states ); |
|
1290 | + return apply_filters('give_japan_states', $states); |
|
1291 | 1291 | } |
1292 | 1292 | |
1293 | 1293 | /** |
@@ -1299,119 +1299,119 @@ discard block |
||
1299 | 1299 | function give_get_italy_states_list() { |
1300 | 1300 | $states = array( |
1301 | 1301 | '' => '', |
1302 | - 'AG' => __( 'Agrigento', 'give' ), |
|
1303 | - 'AL' => __( 'Alessandria', 'give' ), |
|
1304 | - 'AN' => __( 'Ancona', 'give' ), |
|
1305 | - 'AO' => __( 'Aosta', 'give' ), |
|
1306 | - 'AR' => __( 'Arezzo', 'give' ), |
|
1307 | - 'AP' => __( 'Ascoli Piceno', 'give' ), |
|
1308 | - 'AT' => __( 'Asti', 'give' ), |
|
1309 | - 'AV' => __( 'Avellino', 'give' ), |
|
1310 | - 'BA' => __( 'Bari', 'give' ), |
|
1311 | - 'BT' => __( 'Barletta-Andria-Trani', 'give' ), |
|
1312 | - 'BL' => __( 'Belluno', 'give' ), |
|
1313 | - 'BN' => __( 'Benevento', 'give' ), |
|
1314 | - 'BG' => __( 'Bergamo', 'give' ), |
|
1315 | - 'BI' => __( 'Biella', 'give' ), |
|
1316 | - 'BO' => __( 'Bologna', 'give' ), |
|
1317 | - 'BZ' => __( 'Bolzano', 'give' ), |
|
1318 | - 'BS' => __( 'Brescia', 'give' ), |
|
1319 | - 'BR' => __( 'Brindisi', 'give' ), |
|
1320 | - 'CA' => __( 'Cagliari', 'give' ), |
|
1321 | - 'CL' => __( 'Caltanissetta', 'give' ), |
|
1322 | - 'CB' => __( 'Campobasso', 'give' ), |
|
1323 | - 'CI' => __( 'Carbonia-Iglesias', 'give' ), |
|
1324 | - 'CE' => __( 'Caserta', 'give' ), |
|
1325 | - 'CT' => __( 'Catania', 'give' ), |
|
1326 | - 'CZ' => __( 'Catanzaro', 'give' ), |
|
1327 | - 'CH' => __( 'Chieti', 'give' ), |
|
1328 | - 'CO' => __( 'Como', 'give' ), |
|
1329 | - 'CS' => __( 'Cosenza', 'give' ), |
|
1330 | - 'CR' => __( 'Cremona', 'give' ), |
|
1331 | - 'KR' => __( 'Crotone', 'give' ), |
|
1332 | - 'CN' => __( 'Cuneo', 'give' ), |
|
1333 | - 'EN' => __( 'Enna', 'give' ), |
|
1334 | - 'FM' => __( 'Fermo', 'give' ), |
|
1335 | - 'FE' => __( 'Ferrara', 'give' ), |
|
1336 | - 'FI' => __( 'Firenze', 'give' ), |
|
1337 | - 'FG' => __( 'Foggia', 'give' ), |
|
1338 | - 'FC' => __( 'Forlì-Cesena', 'give' ), |
|
1339 | - 'FR' => __( 'Frosinone', 'give' ), |
|
1340 | - 'GE' => __( 'Genova', 'give' ), |
|
1341 | - 'GO' => __( 'Gorizia', 'give' ), |
|
1342 | - 'GR' => __( 'Grosseto', 'give' ), |
|
1343 | - 'IM' => __( 'Imperia', 'give' ), |
|
1344 | - 'IS' => __( 'Isernia', 'give' ), |
|
1345 | - 'SP' => __( 'La Spezia', 'give' ), |
|
1346 | - 'AQ' => __( "L'Aquila", 'give' ), |
|
1347 | - 'LT' => __( 'Latina', 'give' ), |
|
1348 | - 'LE' => __( 'Lecce', 'give' ), |
|
1349 | - 'LC' => __( 'Lecco', 'give' ), |
|
1350 | - 'LI' => __( 'Livorno', 'give' ), |
|
1351 | - 'LO' => __( 'Lodi', 'give' ), |
|
1352 | - 'LU' => __( 'Lucca', 'give' ), |
|
1353 | - 'MC' => __( 'Macerata', 'give' ), |
|
1354 | - 'MN' => __( 'Mantova', 'give' ), |
|
1355 | - 'MS' => __( 'Massa-Carrara', 'give' ), |
|
1356 | - 'MT' => __( 'Matera', 'give' ), |
|
1357 | - 'ME' => __( 'Messina', 'give' ), |
|
1358 | - 'MI' => __( 'Milano', 'give' ), |
|
1359 | - 'MO' => __( 'Modena', 'give' ), |
|
1360 | - 'MB' => __( 'Monza e della Brianza', 'give' ), |
|
1361 | - 'NA' => __( 'Napoli', 'give' ), |
|
1362 | - 'NO' => __( 'Novara', 'give' ), |
|
1363 | - 'NU' => __( 'Nuoro', 'give' ), |
|
1364 | - 'OT' => __( 'Olbia-Tempio', 'give' ), |
|
1365 | - 'OR' => __( 'Oristano', 'give' ), |
|
1366 | - 'PD' => __( 'Padova', 'give' ), |
|
1367 | - 'PA' => __( 'Palermo', 'give' ), |
|
1368 | - 'PR' => __( 'Parma', 'give' ), |
|
1369 | - 'PV' => __( 'Pavia', 'give' ), |
|
1370 | - 'PG' => __( 'Perugia', 'give' ), |
|
1371 | - 'PU' => __( 'Pesaro e Urbino', 'give' ), |
|
1372 | - 'PE' => __( 'Pescara', 'give' ), |
|
1373 | - 'PC' => __( 'Piacenza', 'give' ), |
|
1374 | - 'PI' => __( 'Pisa', 'give' ), |
|
1375 | - 'PT' => __( 'Pistoia', 'give' ), |
|
1376 | - 'PN' => __( 'Pordenone', 'give' ), |
|
1377 | - 'PZ' => __( 'Potenza', 'give' ), |
|
1378 | - 'PO' => __( 'Prato', 'give' ), |
|
1379 | - 'RG' => __( 'Ragusa', 'give' ), |
|
1380 | - 'RA' => __( 'Ravenna', 'give' ), |
|
1381 | - 'RC' => __( 'Reggio Calabria', 'give' ), |
|
1382 | - 'RE' => __( 'Reggio Emilia', 'give' ), |
|
1383 | - 'RI' => __( 'Rieti', 'give' ), |
|
1384 | - 'RN' => __( 'Rimini', 'give' ), |
|
1385 | - 'RM' => __( 'Roma', 'give' ), |
|
1386 | - 'RO' => __( 'Rovigo', 'give' ), |
|
1387 | - 'SA' => __( 'Salerno', 'give' ), |
|
1388 | - 'VS' => __( 'Medio Campidano', 'give' ), |
|
1389 | - 'SS' => __( 'Sassari', 'give' ), |
|
1390 | - 'SV' => __( 'Savona', 'give' ), |
|
1391 | - 'SI' => __( 'Siena', 'give' ), |
|
1392 | - 'SR' => __( 'Siracusa', 'give' ), |
|
1393 | - 'SO' => __( 'Sondrio', 'give' ), |
|
1394 | - 'TA' => __( 'Taranto', 'give' ), |
|
1395 | - 'TE' => __( 'Teramo', 'give' ), |
|
1396 | - 'TR' => __( 'Terni', 'give' ), |
|
1397 | - 'TO' => __( 'Torino', 'give' ), |
|
1398 | - 'OG' => __( 'Ogliastra', 'give' ), |
|
1399 | - 'TP' => __( 'Trapani', 'give' ), |
|
1400 | - 'TN' => __( 'Trento', 'give' ), |
|
1401 | - 'TV' => __( 'Treviso', 'give' ), |
|
1402 | - 'TS' => __( 'Trieste', 'give' ), |
|
1403 | - 'UD' => __( 'Udine', 'give' ), |
|
1404 | - 'VA' => __( 'Varese', 'give' ), |
|
1405 | - 'VE' => __( 'Venezia', 'give' ), |
|
1406 | - 'VB' => __( 'Verbano-Cusio-Ossola', 'give' ), |
|
1407 | - 'VC' => __( 'Vercelli', 'give' ), |
|
1408 | - 'VR' => __( 'Verona', 'give' ), |
|
1409 | - 'VV' => __( 'Vibo Valentia', 'give' ), |
|
1410 | - 'VI' => __( 'Vicenza', 'give' ), |
|
1411 | - 'VT' => __( 'Viterbo', 'give' ), |
|
1302 | + 'AG' => __('Agrigento', 'give'), |
|
1303 | + 'AL' => __('Alessandria', 'give'), |
|
1304 | + 'AN' => __('Ancona', 'give'), |
|
1305 | + 'AO' => __('Aosta', 'give'), |
|
1306 | + 'AR' => __('Arezzo', 'give'), |
|
1307 | + 'AP' => __('Ascoli Piceno', 'give'), |
|
1308 | + 'AT' => __('Asti', 'give'), |
|
1309 | + 'AV' => __('Avellino', 'give'), |
|
1310 | + 'BA' => __('Bari', 'give'), |
|
1311 | + 'BT' => __('Barletta-Andria-Trani', 'give'), |
|
1312 | + 'BL' => __('Belluno', 'give'), |
|
1313 | + 'BN' => __('Benevento', 'give'), |
|
1314 | + 'BG' => __('Bergamo', 'give'), |
|
1315 | + 'BI' => __('Biella', 'give'), |
|
1316 | + 'BO' => __('Bologna', 'give'), |
|
1317 | + 'BZ' => __('Bolzano', 'give'), |
|
1318 | + 'BS' => __('Brescia', 'give'), |
|
1319 | + 'BR' => __('Brindisi', 'give'), |
|
1320 | + 'CA' => __('Cagliari', 'give'), |
|
1321 | + 'CL' => __('Caltanissetta', 'give'), |
|
1322 | + 'CB' => __('Campobasso', 'give'), |
|
1323 | + 'CI' => __('Carbonia-Iglesias', 'give'), |
|
1324 | + 'CE' => __('Caserta', 'give'), |
|
1325 | + 'CT' => __('Catania', 'give'), |
|
1326 | + 'CZ' => __('Catanzaro', 'give'), |
|
1327 | + 'CH' => __('Chieti', 'give'), |
|
1328 | + 'CO' => __('Como', 'give'), |
|
1329 | + 'CS' => __('Cosenza', 'give'), |
|
1330 | + 'CR' => __('Cremona', 'give'), |
|
1331 | + 'KR' => __('Crotone', 'give'), |
|
1332 | + 'CN' => __('Cuneo', 'give'), |
|
1333 | + 'EN' => __('Enna', 'give'), |
|
1334 | + 'FM' => __('Fermo', 'give'), |
|
1335 | + 'FE' => __('Ferrara', 'give'), |
|
1336 | + 'FI' => __('Firenze', 'give'), |
|
1337 | + 'FG' => __('Foggia', 'give'), |
|
1338 | + 'FC' => __('Forlì-Cesena', 'give'), |
|
1339 | + 'FR' => __('Frosinone', 'give'), |
|
1340 | + 'GE' => __('Genova', 'give'), |
|
1341 | + 'GO' => __('Gorizia', 'give'), |
|
1342 | + 'GR' => __('Grosseto', 'give'), |
|
1343 | + 'IM' => __('Imperia', 'give'), |
|
1344 | + 'IS' => __('Isernia', 'give'), |
|
1345 | + 'SP' => __('La Spezia', 'give'), |
|
1346 | + 'AQ' => __("L'Aquila", 'give'), |
|
1347 | + 'LT' => __('Latina', 'give'), |
|
1348 | + 'LE' => __('Lecce', 'give'), |
|
1349 | + 'LC' => __('Lecco', 'give'), |
|
1350 | + 'LI' => __('Livorno', 'give'), |
|
1351 | + 'LO' => __('Lodi', 'give'), |
|
1352 | + 'LU' => __('Lucca', 'give'), |
|
1353 | + 'MC' => __('Macerata', 'give'), |
|
1354 | + 'MN' => __('Mantova', 'give'), |
|
1355 | + 'MS' => __('Massa-Carrara', 'give'), |
|
1356 | + 'MT' => __('Matera', 'give'), |
|
1357 | + 'ME' => __('Messina', 'give'), |
|
1358 | + 'MI' => __('Milano', 'give'), |
|
1359 | + 'MO' => __('Modena', 'give'), |
|
1360 | + 'MB' => __('Monza e della Brianza', 'give'), |
|
1361 | + 'NA' => __('Napoli', 'give'), |
|
1362 | + 'NO' => __('Novara', 'give'), |
|
1363 | + 'NU' => __('Nuoro', 'give'), |
|
1364 | + 'OT' => __('Olbia-Tempio', 'give'), |
|
1365 | + 'OR' => __('Oristano', 'give'), |
|
1366 | + 'PD' => __('Padova', 'give'), |
|
1367 | + 'PA' => __('Palermo', 'give'), |
|
1368 | + 'PR' => __('Parma', 'give'), |
|
1369 | + 'PV' => __('Pavia', 'give'), |
|
1370 | + 'PG' => __('Perugia', 'give'), |
|
1371 | + 'PU' => __('Pesaro e Urbino', 'give'), |
|
1372 | + 'PE' => __('Pescara', 'give'), |
|
1373 | + 'PC' => __('Piacenza', 'give'), |
|
1374 | + 'PI' => __('Pisa', 'give'), |
|
1375 | + 'PT' => __('Pistoia', 'give'), |
|
1376 | + 'PN' => __('Pordenone', 'give'), |
|
1377 | + 'PZ' => __('Potenza', 'give'), |
|
1378 | + 'PO' => __('Prato', 'give'), |
|
1379 | + 'RG' => __('Ragusa', 'give'), |
|
1380 | + 'RA' => __('Ravenna', 'give'), |
|
1381 | + 'RC' => __('Reggio Calabria', 'give'), |
|
1382 | + 'RE' => __('Reggio Emilia', 'give'), |
|
1383 | + 'RI' => __('Rieti', 'give'), |
|
1384 | + 'RN' => __('Rimini', 'give'), |
|
1385 | + 'RM' => __('Roma', 'give'), |
|
1386 | + 'RO' => __('Rovigo', 'give'), |
|
1387 | + 'SA' => __('Salerno', 'give'), |
|
1388 | + 'VS' => __('Medio Campidano', 'give'), |
|
1389 | + 'SS' => __('Sassari', 'give'), |
|
1390 | + 'SV' => __('Savona', 'give'), |
|
1391 | + 'SI' => __('Siena', 'give'), |
|
1392 | + 'SR' => __('Siracusa', 'give'), |
|
1393 | + 'SO' => __('Sondrio', 'give'), |
|
1394 | + 'TA' => __('Taranto', 'give'), |
|
1395 | + 'TE' => __('Teramo', 'give'), |
|
1396 | + 'TR' => __('Terni', 'give'), |
|
1397 | + 'TO' => __('Torino', 'give'), |
|
1398 | + 'OG' => __('Ogliastra', 'give'), |
|
1399 | + 'TP' => __('Trapani', 'give'), |
|
1400 | + 'TN' => __('Trento', 'give'), |
|
1401 | + 'TV' => __('Treviso', 'give'), |
|
1402 | + 'TS' => __('Trieste', 'give'), |
|
1403 | + 'UD' => __('Udine', 'give'), |
|
1404 | + 'VA' => __('Varese', 'give'), |
|
1405 | + 'VE' => __('Venezia', 'give'), |
|
1406 | + 'VB' => __('Verbano-Cusio-Ossola', 'give'), |
|
1407 | + 'VC' => __('Vercelli', 'give'), |
|
1408 | + 'VR' => __('Verona', 'give'), |
|
1409 | + 'VV' => __('Vibo Valentia', 'give'), |
|
1410 | + 'VI' => __('Vicenza', 'give'), |
|
1411 | + 'VT' => __('Viterbo', 'give'), |
|
1412 | 1412 | ); |
1413 | 1413 | |
1414 | - return apply_filters( 'give_italy_states', $states ); |
|
1414 | + return apply_filters('give_italy_states', $states); |
|
1415 | 1415 | } |
1416 | 1416 | |
1417 | 1417 | /** |
@@ -1423,40 +1423,40 @@ discard block |
||
1423 | 1423 | function give_get_iran_states_list() { |
1424 | 1424 | $states = array( |
1425 | 1425 | '' => '', |
1426 | - 'KHZ' => __( 'Khuzestan (خوزستان)', 'give' ), |
|
1427 | - 'THR' => __( 'Tehran (تهران)', 'give' ), |
|
1428 | - 'ILM' => __( 'Ilaam (ایلام)', 'give' ), |
|
1429 | - 'BHR' => __( 'Bushehr (بوشهر)', 'give' ), |
|
1430 | - 'ADL' => __( 'Ardabil (اردبیل)', 'give' ), |
|
1431 | - 'ESF' => __( 'Isfahan (اصفهان)', 'give' ), |
|
1432 | - 'YZD' => __( 'Yazd (یزد)', 'give' ), |
|
1433 | - 'KRH' => __( 'Kermanshah (کرمانشاه)', 'give' ), |
|
1434 | - 'KRN' => __( 'Kerman (کرمان)', 'give' ), |
|
1435 | - 'HDN' => __( 'Hamadan (همدان)', 'give' ), |
|
1436 | - 'GZN' => __( 'Ghazvin (قزوین)', 'give' ), |
|
1437 | - 'ZJN' => __( 'Zanjan (زنجان)', 'give' ), |
|
1438 | - 'LRS' => __( 'Luristan (لرستان)', 'give' ), |
|
1439 | - 'ABZ' => __( 'Alborz (البرز)', 'give' ), |
|
1440 | - 'EAZ' => __( 'East Azarbaijan (آذربایجان شرقی)', 'give' ), |
|
1441 | - 'WAZ' => __( 'West Azarbaijan (آذربایجان غربی)', 'give' ), |
|
1442 | - 'CHB' => __( 'Chaharmahal and Bakhtiari (چهارمحال و بختیاری)', 'give' ), |
|
1443 | - 'SKH' => __( 'South Khorasan (خراسان جنوبی)', 'give' ), |
|
1444 | - 'RKH' => __( 'Razavi Khorasan (خراسان رضوی)', 'give' ), |
|
1445 | - 'NKH' => __( 'North Khorasan (خراسان جنوبی)', 'give' ), |
|
1446 | - 'SMN' => __( 'Semnan (سمنان)', 'give' ), |
|
1447 | - 'FRS' => __( 'Fars (فارس)', 'give' ), |
|
1448 | - 'QHM' => __( 'Qom (قم)', 'give' ), |
|
1449 | - 'KRD' => __( 'Kurdistan / کردستان)', 'give' ), |
|
1450 | - 'KBD' => __( 'Kohgiluyeh and BoyerAhmad (کهگیلوییه و بویراحمد)', 'give' ), |
|
1451 | - 'GLS' => __( 'Golestan (گلستان)', 'give' ), |
|
1452 | - 'GIL' => __( 'Gilan (گیلان)', 'give' ), |
|
1453 | - 'MZN' => __( 'Mazandaran (مازندران)', 'give' ), |
|
1454 | - 'MKZ' => __( 'Markazi (مرکزی)', 'give' ), |
|
1455 | - 'HRZ' => __( 'Hormozgan (هرمزگان)', 'give' ), |
|
1456 | - 'SBN' => __( 'Sistan and Baluchestan (سیستان و بلوچستان)', 'give' ), |
|
1426 | + 'KHZ' => __('Khuzestan (خوزستان)', 'give'), |
|
1427 | + 'THR' => __('Tehran (تهران)', 'give'), |
|
1428 | + 'ILM' => __('Ilaam (ایلام)', 'give'), |
|
1429 | + 'BHR' => __('Bushehr (بوشهر)', 'give'), |
|
1430 | + 'ADL' => __('Ardabil (اردبیل)', 'give'), |
|
1431 | + 'ESF' => __('Isfahan (اصفهان)', 'give'), |
|
1432 | + 'YZD' => __('Yazd (یزد)', 'give'), |
|
1433 | + 'KRH' => __('Kermanshah (کرمانشاه)', 'give'), |
|
1434 | + 'KRN' => __('Kerman (کرمان)', 'give'), |
|
1435 | + 'HDN' => __('Hamadan (همدان)', 'give'), |
|
1436 | + 'GZN' => __('Ghazvin (قزوین)', 'give'), |
|
1437 | + 'ZJN' => __('Zanjan (زنجان)', 'give'), |
|
1438 | + 'LRS' => __('Luristan (لرستان)', 'give'), |
|
1439 | + 'ABZ' => __('Alborz (البرز)', 'give'), |
|
1440 | + 'EAZ' => __('East Azarbaijan (آذربایجان شرقی)', 'give'), |
|
1441 | + 'WAZ' => __('West Azarbaijan (آذربایجان غربی)', 'give'), |
|
1442 | + 'CHB' => __('Chaharmahal and Bakhtiari (چهارمحال و بختیاری)', 'give'), |
|
1443 | + 'SKH' => __('South Khorasan (خراسان جنوبی)', 'give'), |
|
1444 | + 'RKH' => __('Razavi Khorasan (خراسان رضوی)', 'give'), |
|
1445 | + 'NKH' => __('North Khorasan (خراسان جنوبی)', 'give'), |
|
1446 | + 'SMN' => __('Semnan (سمنان)', 'give'), |
|
1447 | + 'FRS' => __('Fars (فارس)', 'give'), |
|
1448 | + 'QHM' => __('Qom (قم)', 'give'), |
|
1449 | + 'KRD' => __('Kurdistan / کردستان)', 'give'), |
|
1450 | + 'KBD' => __('Kohgiluyeh and BoyerAhmad (کهگیلوییه و بویراحمد)', 'give'), |
|
1451 | + 'GLS' => __('Golestan (گلستان)', 'give'), |
|
1452 | + 'GIL' => __('Gilan (گیلان)', 'give'), |
|
1453 | + 'MZN' => __('Mazandaran (مازندران)', 'give'), |
|
1454 | + 'MKZ' => __('Markazi (مرکزی)', 'give'), |
|
1455 | + 'HRZ' => __('Hormozgan (هرمزگان)', 'give'), |
|
1456 | + 'SBN' => __('Sistan and Baluchestan (سیستان و بلوچستان)', 'give'), |
|
1457 | 1457 | ); |
1458 | 1458 | |
1459 | - return apply_filters( 'give_iran_states', $states ); |
|
1459 | + return apply_filters('give_iran_states', $states); |
|
1460 | 1460 | } |
1461 | 1461 | |
1462 | 1462 | /** |
@@ -1468,35 +1468,35 @@ discard block |
||
1468 | 1468 | function give_get_ireland_states_list() { |
1469 | 1469 | $states = array( |
1470 | 1470 | '' => '', |
1471 | - 'CE' => __( 'Clare', 'give' ), |
|
1472 | - 'CK' => __( 'Cork', 'give' ), |
|
1473 | - 'CN' => __( 'Cavan', 'give' ), |
|
1474 | - 'CW' => __( 'Carlow', 'give' ), |
|
1475 | - 'DL' => __( 'Donegal', 'give' ), |
|
1476 | - 'DN' => __( 'Dublin', 'give' ), |
|
1477 | - 'GY' => __( 'Galway', 'give' ), |
|
1478 | - 'KE' => __( 'Kildare', 'give' ), |
|
1479 | - 'KK' => __( 'Kilkenny', 'give' ), |
|
1480 | - 'KY' => __( 'Kerry', 'give' ), |
|
1481 | - 'LD' => __( 'Longford', 'give' ), |
|
1482 | - 'LH' => __( 'Louth', 'give' ), |
|
1483 | - 'LK' => __( 'Limerick', 'give' ), |
|
1484 | - 'LM' => __( 'Leitrim', 'give' ), |
|
1485 | - 'LS' => __( 'Laois', 'give' ), |
|
1486 | - 'MH' => __( 'Meath', 'give' ), |
|
1487 | - 'MN' => __( 'Monaghan', 'give' ), |
|
1488 | - 'MO' => __( 'Mayo', 'give' ), |
|
1489 | - 'OY' => __( 'Offaly', 'give' ), |
|
1490 | - 'RN' => __( 'Roscommon', 'give' ), |
|
1491 | - 'SO' => __( 'Sligo', 'give' ), |
|
1492 | - 'TY' => __( 'Tipperary', 'give' ), |
|
1493 | - 'WD' => __( 'Waterford', 'give' ), |
|
1494 | - 'WH' => __( 'Westmeath', 'give' ), |
|
1495 | - 'WW' => __( 'Wicklow', 'give' ), |
|
1496 | - 'WX' => __( 'Wexford', 'give' ), |
|
1471 | + 'CE' => __('Clare', 'give'), |
|
1472 | + 'CK' => __('Cork', 'give'), |
|
1473 | + 'CN' => __('Cavan', 'give'), |
|
1474 | + 'CW' => __('Carlow', 'give'), |
|
1475 | + 'DL' => __('Donegal', 'give'), |
|
1476 | + 'DN' => __('Dublin', 'give'), |
|
1477 | + 'GY' => __('Galway', 'give'), |
|
1478 | + 'KE' => __('Kildare', 'give'), |
|
1479 | + 'KK' => __('Kilkenny', 'give'), |
|
1480 | + 'KY' => __('Kerry', 'give'), |
|
1481 | + 'LD' => __('Longford', 'give'), |
|
1482 | + 'LH' => __('Louth', 'give'), |
|
1483 | + 'LK' => __('Limerick', 'give'), |
|
1484 | + 'LM' => __('Leitrim', 'give'), |
|
1485 | + 'LS' => __('Laois', 'give'), |
|
1486 | + 'MH' => __('Meath', 'give'), |
|
1487 | + 'MN' => __('Monaghan', 'give'), |
|
1488 | + 'MO' => __('Mayo', 'give'), |
|
1489 | + 'OY' => __('Offaly', 'give'), |
|
1490 | + 'RN' => __('Roscommon', 'give'), |
|
1491 | + 'SO' => __('Sligo', 'give'), |
|
1492 | + 'TY' => __('Tipperary', 'give'), |
|
1493 | + 'WD' => __('Waterford', 'give'), |
|
1494 | + 'WH' => __('Westmeath', 'give'), |
|
1495 | + 'WW' => __('Wicklow', 'give'), |
|
1496 | + 'WX' => __('Wexford', 'give'), |
|
1497 | 1497 | ); |
1498 | 1498 | |
1499 | - return apply_filters( 'give_ireland_states', $states ); |
|
1499 | + return apply_filters('give_ireland_states', $states); |
|
1500 | 1500 | } |
1501 | 1501 | |
1502 | 1502 | /** |
@@ -1508,22 +1508,22 @@ discard block |
||
1508 | 1508 | function give_get_greek_states_list() { |
1509 | 1509 | $states = array( |
1510 | 1510 | '' => '', |
1511 | - 'I' => __( 'Αττική', 'give' ), |
|
1512 | - 'A' => __( 'Ανατολική Μακεδονία και Θράκη', 'give' ), |
|
1513 | - 'B' => __( 'Κεντρική Μακεδονία', 'give' ), |
|
1514 | - 'C' => __( 'Δυτική Μακεδονία', 'give' ), |
|
1515 | - 'D' => __( 'Ήπειρος', 'give' ), |
|
1516 | - 'E' => __( 'Θεσσαλία', 'give' ), |
|
1517 | - 'F' => __( 'Ιόνιοι Νήσοι', 'give' ), |
|
1518 | - 'G' => __( 'Δυτική Ελλάδα', 'give' ), |
|
1519 | - 'H' => __( 'Στερεά Ελλάδα', 'give' ), |
|
1520 | - 'J' => __( 'Πελοπόννησος', 'give' ), |
|
1521 | - 'K' => __( 'Βόρειο Αιγαίο', 'give' ), |
|
1522 | - 'L' => __( 'Νότιο Αιγαίο', 'give' ), |
|
1523 | - 'M' => __( 'Κρήτη', 'give' ), |
|
1511 | + 'I' => __('Αττική', 'give'), |
|
1512 | + 'A' => __('Ανατολική Μακεδονία και Θράκη', 'give'), |
|
1513 | + 'B' => __('Κεντρική Μακεδονία', 'give'), |
|
1514 | + 'C' => __('Δυτική Μακεδονία', 'give'), |
|
1515 | + 'D' => __('Ήπειρος', 'give'), |
|
1516 | + 'E' => __('Θεσσαλία', 'give'), |
|
1517 | + 'F' => __('Ιόνιοι Νήσοι', 'give'), |
|
1518 | + 'G' => __('Δυτική Ελλάδα', 'give'), |
|
1519 | + 'H' => __('Στερεά Ελλάδα', 'give'), |
|
1520 | + 'J' => __('Πελοπόννησος', 'give'), |
|
1521 | + 'K' => __('Βόρειο Αιγαίο', 'give'), |
|
1522 | + 'L' => __('Νότιο Αιγαίο', 'give'), |
|
1523 | + 'M' => __('Κρήτη', 'give'), |
|
1524 | 1524 | ); |
1525 | 1525 | |
1526 | - return apply_filters( 'give_greek_states', $states ); |
|
1526 | + return apply_filters('give_greek_states', $states); |
|
1527 | 1527 | } |
1528 | 1528 | |
1529 | 1529 | /** |
@@ -1535,18 +1535,18 @@ discard block |
||
1535 | 1535 | function give_get_bolivian_states_list() { |
1536 | 1536 | $states = array( |
1537 | 1537 | '' => '', |
1538 | - 'B' => __( 'Chuquisaca', 'give' ), |
|
1539 | - 'H' => __( 'Beni', 'give' ), |
|
1540 | - 'C' => __( 'Cochabamba', 'give' ), |
|
1541 | - 'L' => __( 'La Paz', 'give' ), |
|
1542 | - 'O' => __( 'Oruro', 'give' ), |
|
1543 | - 'N' => __( 'Pando', 'give' ), |
|
1544 | - 'P' => __( 'Potosí', 'give' ), |
|
1545 | - 'S' => __( 'Santa Cruz', 'give' ), |
|
1546 | - 'T' => __( 'Tarija', 'give' ), |
|
1538 | + 'B' => __('Chuquisaca', 'give'), |
|
1539 | + 'H' => __('Beni', 'give'), |
|
1540 | + 'C' => __('Cochabamba', 'give'), |
|
1541 | + 'L' => __('La Paz', 'give'), |
|
1542 | + 'O' => __('Oruro', 'give'), |
|
1543 | + 'N' => __('Pando', 'give'), |
|
1544 | + 'P' => __('Potosí', 'give'), |
|
1545 | + 'S' => __('Santa Cruz', 'give'), |
|
1546 | + 'T' => __('Tarija', 'give'), |
|
1547 | 1547 | ); |
1548 | 1548 | |
1549 | - return apply_filters( 'give_bolivian_states', $states ); |
|
1549 | + return apply_filters('give_bolivian_states', $states); |
|
1550 | 1550 | } |
1551 | 1551 | |
1552 | 1552 | /** |
@@ -1558,37 +1558,37 @@ discard block |
||
1558 | 1558 | function give_get_bulgarian_states_list() { |
1559 | 1559 | $states = array( |
1560 | 1560 | '' => '', |
1561 | - 'BG-01' => __( 'Blagoevgrad', 'give' ), |
|
1562 | - 'BG-02' => __( 'Burgas', 'give' ), |
|
1563 | - 'BG-08' => __( 'Dobrich', 'give' ), |
|
1564 | - 'BG-07' => __( 'Gabrovo', 'give' ), |
|
1565 | - 'BG-26' => __( 'Haskovo', 'give' ), |
|
1566 | - 'BG-09' => __( 'Kardzhali', 'give' ), |
|
1567 | - 'BG-10' => __( 'Kyustendil', 'give' ), |
|
1568 | - 'BG-11' => __( 'Lovech', 'give' ), |
|
1569 | - 'BG-12' => __( 'Montana', 'give' ), |
|
1570 | - 'BG-13' => __( 'Pazardzhik', 'give' ), |
|
1571 | - 'BG-14' => __( 'Pernik', 'give' ), |
|
1572 | - 'BG-15' => __( 'Pleven', 'give' ), |
|
1573 | - 'BG-16' => __( 'Plovdiv', 'give' ), |
|
1574 | - 'BG-17' => __( 'Razgrad', 'give' ), |
|
1575 | - 'BG-18' => __( 'Ruse', 'give' ), |
|
1576 | - 'BG-27' => __( 'Shumen', 'give' ), |
|
1577 | - 'BG-19' => __( 'Silistra', 'give' ), |
|
1578 | - 'BG-20' => __( 'Sliven', 'give' ), |
|
1579 | - 'BG-21' => __( 'Smolyan', 'give' ), |
|
1580 | - 'BG-23' => __( 'Sofia', 'give' ), |
|
1581 | - 'BG-22' => __( 'Sofia-Grad', 'give' ), |
|
1582 | - 'BG-24' => __( 'Stara Zagora', 'give' ), |
|
1583 | - 'BG-25' => __( 'Targovishte', 'give' ), |
|
1584 | - 'BG-03' => __( 'Varna', 'give' ), |
|
1585 | - 'BG-04' => __( 'Veliko Tarnovo', 'give' ), |
|
1586 | - 'BG-05' => __( 'Vidin', 'give' ), |
|
1587 | - 'BG-06' => __( 'Vratsa', 'give' ), |
|
1588 | - 'BG-28' => __( 'Yambol', 'give' ), |
|
1561 | + 'BG-01' => __('Blagoevgrad', 'give'), |
|
1562 | + 'BG-02' => __('Burgas', 'give'), |
|
1563 | + 'BG-08' => __('Dobrich', 'give'), |
|
1564 | + 'BG-07' => __('Gabrovo', 'give'), |
|
1565 | + 'BG-26' => __('Haskovo', 'give'), |
|
1566 | + 'BG-09' => __('Kardzhali', 'give'), |
|
1567 | + 'BG-10' => __('Kyustendil', 'give'), |
|
1568 | + 'BG-11' => __('Lovech', 'give'), |
|
1569 | + 'BG-12' => __('Montana', 'give'), |
|
1570 | + 'BG-13' => __('Pazardzhik', 'give'), |
|
1571 | + 'BG-14' => __('Pernik', 'give'), |
|
1572 | + 'BG-15' => __('Pleven', 'give'), |
|
1573 | + 'BG-16' => __('Plovdiv', 'give'), |
|
1574 | + 'BG-17' => __('Razgrad', 'give'), |
|
1575 | + 'BG-18' => __('Ruse', 'give'), |
|
1576 | + 'BG-27' => __('Shumen', 'give'), |
|
1577 | + 'BG-19' => __('Silistra', 'give'), |
|
1578 | + 'BG-20' => __('Sliven', 'give'), |
|
1579 | + 'BG-21' => __('Smolyan', 'give'), |
|
1580 | + 'BG-23' => __('Sofia', 'give'), |
|
1581 | + 'BG-22' => __('Sofia-Grad', 'give'), |
|
1582 | + 'BG-24' => __('Stara Zagora', 'give'), |
|
1583 | + 'BG-25' => __('Targovishte', 'give'), |
|
1584 | + 'BG-03' => __('Varna', 'give'), |
|
1585 | + 'BG-04' => __('Veliko Tarnovo', 'give'), |
|
1586 | + 'BG-05' => __('Vidin', 'give'), |
|
1587 | + 'BG-06' => __('Vratsa', 'give'), |
|
1588 | + 'BG-28' => __('Yambol', 'give'), |
|
1589 | 1589 | ); |
1590 | 1590 | |
1591 | - return apply_filters( 'give_bulgarian_states', $states ); |
|
1591 | + return apply_filters('give_bulgarian_states', $states); |
|
1592 | 1592 | } |
1593 | 1593 | |
1594 | 1594 | /** |
@@ -1600,73 +1600,73 @@ discard block |
||
1600 | 1600 | function give_get_bangladeshi_states_list() { |
1601 | 1601 | $states = array( |
1602 | 1602 | '' => '', |
1603 | - 'BAG' => __( 'Bagerhat', 'give' ), |
|
1604 | - 'BAN' => __( 'Bandarban', 'give' ), |
|
1605 | - 'BAR' => __( 'Barguna', 'give' ), |
|
1606 | - 'BARI' => __( 'Barisal', 'give' ), |
|
1607 | - 'BHO' => __( 'Bhola', 'give' ), |
|
1608 | - 'BOG' => __( 'Bogra', 'give' ), |
|
1609 | - 'BRA' => __( 'Brahmanbaria', 'give' ), |
|
1610 | - 'CHA' => __( 'Chandpur', 'give' ), |
|
1611 | - 'CHI' => __( 'Chittagong', 'give' ), |
|
1612 | - 'CHU' => __( 'Chuadanga', 'give' ), |
|
1613 | - 'COM' => __( 'Comilla', 'give' ), |
|
1614 | - 'COX' => __( "Cox's Bazar", 'give' ), |
|
1615 | - 'DHA' => __( 'Dhaka', 'give' ), |
|
1616 | - 'DIN' => __( 'Dinajpur', 'give' ), |
|
1617 | - 'FAR' => __( 'Faridpur ', 'give' ), |
|
1618 | - 'FEN' => __( 'Feni', 'give' ), |
|
1619 | - 'GAI' => __( 'Gaibandha', 'give' ), |
|
1620 | - 'GAZI' => __( 'Gazipur', 'give' ), |
|
1621 | - 'GOP' => __( 'Gopalganj', 'give' ), |
|
1622 | - 'HAB' => __( 'Habiganj', 'give' ), |
|
1623 | - 'JAM' => __( 'Jamalpur', 'give' ), |
|
1624 | - 'JES' => __( 'Jessore', 'give' ), |
|
1625 | - 'JHA' => __( 'Jhalokati', 'give' ), |
|
1626 | - 'JHE' => __( 'Jhenaidah', 'give' ), |
|
1627 | - 'JOY' => __( 'Joypurhat', 'give' ), |
|
1628 | - 'KHA' => __( 'Khagrachhari', 'give' ), |
|
1629 | - 'KHU' => __( 'Khulna', 'give' ), |
|
1630 | - 'KIS' => __( 'Kishoreganj', 'give' ), |
|
1631 | - 'KUR' => __( 'Kurigram', 'give' ), |
|
1632 | - 'KUS' => __( 'Kushtia', 'give' ), |
|
1633 | - 'LAK' => __( 'Lakshmipur', 'give' ), |
|
1634 | - 'LAL' => __( 'Lalmonirhat', 'give' ), |
|
1635 | - 'MAD' => __( 'Madaripur', 'give' ), |
|
1636 | - 'MAG' => __( 'Magura', 'give' ), |
|
1637 | - 'MAN' => __( 'Manikganj ', 'give' ), |
|
1638 | - 'MEH' => __( 'Meherpur', 'give' ), |
|
1639 | - 'MOU' => __( 'Moulvibazar', 'give' ), |
|
1640 | - 'MUN' => __( 'Munshiganj', 'give' ), |
|
1641 | - 'MYM' => __( 'Mymensingh', 'give' ), |
|
1642 | - 'NAO' => __( 'Naogaon', 'give' ), |
|
1643 | - 'NAR' => __( 'Narail', 'give' ), |
|
1644 | - 'NARG' => __( 'Narayanganj', 'give' ), |
|
1645 | - 'NARD' => __( 'Narsingdi', 'give' ), |
|
1646 | - 'NAT' => __( 'Natore', 'give' ), |
|
1647 | - 'NAW' => __( 'Nawabganj', 'give' ), |
|
1648 | - 'NET' => __( 'Netrakona', 'give' ), |
|
1649 | - 'NIL' => __( 'Nilphamari', 'give' ), |
|
1650 | - 'NOA' => __( 'Noakhali', 'give' ), |
|
1651 | - 'PAB' => __( 'Pabna', 'give' ), |
|
1652 | - 'PAN' => __( 'Panchagarh', 'give' ), |
|
1653 | - 'PAT' => __( 'Patuakhali', 'give' ), |
|
1654 | - 'PIR' => __( 'Pirojpur', 'give' ), |
|
1655 | - 'RAJB' => __( 'Rajbari', 'give' ), |
|
1656 | - 'RAJ' => __( 'Rajshahi', 'give' ), |
|
1657 | - 'RAN' => __( 'Rangamati', 'give' ), |
|
1658 | - 'RANP' => __( 'Rangpur', 'give' ), |
|
1659 | - 'SAT' => __( 'Satkhira', 'give' ), |
|
1660 | - 'SHA' => __( 'Shariatpur', 'give' ), |
|
1661 | - 'SHE' => __( 'Sherpur', 'give' ), |
|
1662 | - 'SIR' => __( 'Sirajganj', 'give' ), |
|
1663 | - 'SUN' => __( 'Sunamganj', 'give' ), |
|
1664 | - 'SYL' => __( 'Sylhet', 'give' ), |
|
1665 | - 'TAN' => __( 'Tangail', 'give' ), |
|
1666 | - 'THA' => __( 'Thakurgaon', 'give' ), |
|
1603 | + 'BAG' => __('Bagerhat', 'give'), |
|
1604 | + 'BAN' => __('Bandarban', 'give'), |
|
1605 | + 'BAR' => __('Barguna', 'give'), |
|
1606 | + 'BARI' => __('Barisal', 'give'), |
|
1607 | + 'BHO' => __('Bhola', 'give'), |
|
1608 | + 'BOG' => __('Bogra', 'give'), |
|
1609 | + 'BRA' => __('Brahmanbaria', 'give'), |
|
1610 | + 'CHA' => __('Chandpur', 'give'), |
|
1611 | + 'CHI' => __('Chittagong', 'give'), |
|
1612 | + 'CHU' => __('Chuadanga', 'give'), |
|
1613 | + 'COM' => __('Comilla', 'give'), |
|
1614 | + 'COX' => __("Cox's Bazar", 'give'), |
|
1615 | + 'DHA' => __('Dhaka', 'give'), |
|
1616 | + 'DIN' => __('Dinajpur', 'give'), |
|
1617 | + 'FAR' => __('Faridpur ', 'give'), |
|
1618 | + 'FEN' => __('Feni', 'give'), |
|
1619 | + 'GAI' => __('Gaibandha', 'give'), |
|
1620 | + 'GAZI' => __('Gazipur', 'give'), |
|
1621 | + 'GOP' => __('Gopalganj', 'give'), |
|
1622 | + 'HAB' => __('Habiganj', 'give'), |
|
1623 | + 'JAM' => __('Jamalpur', 'give'), |
|
1624 | + 'JES' => __('Jessore', 'give'), |
|
1625 | + 'JHA' => __('Jhalokati', 'give'), |
|
1626 | + 'JHE' => __('Jhenaidah', 'give'), |
|
1627 | + 'JOY' => __('Joypurhat', 'give'), |
|
1628 | + 'KHA' => __('Khagrachhari', 'give'), |
|
1629 | + 'KHU' => __('Khulna', 'give'), |
|
1630 | + 'KIS' => __('Kishoreganj', 'give'), |
|
1631 | + 'KUR' => __('Kurigram', 'give'), |
|
1632 | + 'KUS' => __('Kushtia', 'give'), |
|
1633 | + 'LAK' => __('Lakshmipur', 'give'), |
|
1634 | + 'LAL' => __('Lalmonirhat', 'give'), |
|
1635 | + 'MAD' => __('Madaripur', 'give'), |
|
1636 | + 'MAG' => __('Magura', 'give'), |
|
1637 | + 'MAN' => __('Manikganj ', 'give'), |
|
1638 | + 'MEH' => __('Meherpur', 'give'), |
|
1639 | + 'MOU' => __('Moulvibazar', 'give'), |
|
1640 | + 'MUN' => __('Munshiganj', 'give'), |
|
1641 | + 'MYM' => __('Mymensingh', 'give'), |
|
1642 | + 'NAO' => __('Naogaon', 'give'), |
|
1643 | + 'NAR' => __('Narail', 'give'), |
|
1644 | + 'NARG' => __('Narayanganj', 'give'), |
|
1645 | + 'NARD' => __('Narsingdi', 'give'), |
|
1646 | + 'NAT' => __('Natore', 'give'), |
|
1647 | + 'NAW' => __('Nawabganj', 'give'), |
|
1648 | + 'NET' => __('Netrakona', 'give'), |
|
1649 | + 'NIL' => __('Nilphamari', 'give'), |
|
1650 | + 'NOA' => __('Noakhali', 'give'), |
|
1651 | + 'PAB' => __('Pabna', 'give'), |
|
1652 | + 'PAN' => __('Panchagarh', 'give'), |
|
1653 | + 'PAT' => __('Patuakhali', 'give'), |
|
1654 | + 'PIR' => __('Pirojpur', 'give'), |
|
1655 | + 'RAJB' => __('Rajbari', 'give'), |
|
1656 | + 'RAJ' => __('Rajshahi', 'give'), |
|
1657 | + 'RAN' => __('Rangamati', 'give'), |
|
1658 | + 'RANP' => __('Rangpur', 'give'), |
|
1659 | + 'SAT' => __('Satkhira', 'give'), |
|
1660 | + 'SHA' => __('Shariatpur', 'give'), |
|
1661 | + 'SHE' => __('Sherpur', 'give'), |
|
1662 | + 'SIR' => __('Sirajganj', 'give'), |
|
1663 | + 'SUN' => __('Sunamganj', 'give'), |
|
1664 | + 'SYL' => __('Sylhet', 'give'), |
|
1665 | + 'TAN' => __('Tangail', 'give'), |
|
1666 | + 'THA' => __('Thakurgaon', 'give'), |
|
1667 | 1667 | ); |
1668 | 1668 | |
1669 | - return apply_filters( 'give_bangladeshi_states', $states ); |
|
1669 | + return apply_filters('give_bangladeshi_states', $states); |
|
1670 | 1670 | } |
1671 | 1671 | |
1672 | 1672 | /** |
@@ -1678,33 +1678,33 @@ discard block |
||
1678 | 1678 | function give_get_argentina_states_list() { |
1679 | 1679 | $states = array( |
1680 | 1680 | '' => '', |
1681 | - 'C' => __( 'Ciudad Autónoma de Buenos Aires', 'give' ), |
|
1682 | - 'B' => __( 'Buenos Aires', 'give' ), |
|
1683 | - 'K' => __( 'Catamarca', 'give' ), |
|
1684 | - 'H' => __( 'Chaco', 'give' ), |
|
1685 | - 'U' => __( 'Chubut', 'give' ), |
|
1686 | - 'X' => __( 'Córdoba', 'give' ), |
|
1687 | - 'W' => __( 'Corrientes', 'give' ), |
|
1688 | - 'E' => __( 'Entre Ríos', 'give' ), |
|
1689 | - 'P' => __( 'Formosa', 'give' ), |
|
1690 | - 'Y' => __( 'Jujuy', 'give' ), |
|
1691 | - 'L' => __( 'La Pampa', 'give' ), |
|
1692 | - 'F' => __( 'La Rioja', 'give' ), |
|
1693 | - 'M' => __( 'Mendoza', 'give' ), |
|
1694 | - 'N' => __( 'Misiones', 'give' ), |
|
1695 | - 'Q' => __( 'Neuquén', 'give' ), |
|
1696 | - 'R' => __( 'Río Negro', 'give' ), |
|
1697 | - 'A' => __( 'Salta', 'give' ), |
|
1698 | - 'J' => __( 'San Juan', 'give' ), |
|
1699 | - 'D' => __( 'San Luis', 'give' ), |
|
1700 | - 'Z' => __( 'Santa Cruz', 'give' ), |
|
1701 | - 'S' => __( 'Santa Fe', 'give' ), |
|
1702 | - 'G' => __( 'Santiago del Estero', 'give' ), |
|
1703 | - 'V' => __( 'Tierra del Fuego', 'give' ), |
|
1704 | - 'T' => __( 'Tucumán', 'give' ), |
|
1681 | + 'C' => __('Ciudad Autónoma de Buenos Aires', 'give'), |
|
1682 | + 'B' => __('Buenos Aires', 'give'), |
|
1683 | + 'K' => __('Catamarca', 'give'), |
|
1684 | + 'H' => __('Chaco', 'give'), |
|
1685 | + 'U' => __('Chubut', 'give'), |
|
1686 | + 'X' => __('Córdoba', 'give'), |
|
1687 | + 'W' => __('Corrientes', 'give'), |
|
1688 | + 'E' => __('Entre Ríos', 'give'), |
|
1689 | + 'P' => __('Formosa', 'give'), |
|
1690 | + 'Y' => __('Jujuy', 'give'), |
|
1691 | + 'L' => __('La Pampa', 'give'), |
|
1692 | + 'F' => __('La Rioja', 'give'), |
|
1693 | + 'M' => __('Mendoza', 'give'), |
|
1694 | + 'N' => __('Misiones', 'give'), |
|
1695 | + 'Q' => __('Neuquén', 'give'), |
|
1696 | + 'R' => __('Río Negro', 'give'), |
|
1697 | + 'A' => __('Salta', 'give'), |
|
1698 | + 'J' => __('San Juan', 'give'), |
|
1699 | + 'D' => __('San Luis', 'give'), |
|
1700 | + 'Z' => __('Santa Cruz', 'give'), |
|
1701 | + 'S' => __('Santa Fe', 'give'), |
|
1702 | + 'G' => __('Santiago del Estero', 'give'), |
|
1703 | + 'V' => __('Tierra del Fuego', 'give'), |
|
1704 | + 'T' => __('Tucumán', 'give'), |
|
1705 | 1705 | ); |
1706 | 1706 | |
1707 | - return apply_filters( 'give_argentina_states', $states ); |
|
1707 | + return apply_filters('give_argentina_states', $states); |
|
1708 | 1708 | } |
1709 | 1709 | |
1710 | 1710 | /** |
@@ -1785,7 +1785,7 @@ discard block |
||
1785 | 1785 | 'AP' => 'Armed Forces - Pacific', |
1786 | 1786 | ); |
1787 | 1787 | |
1788 | - return apply_filters( 'give_us_states', $states ); |
|
1788 | + return apply_filters('give_us_states', $states); |
|
1789 | 1789 | } |
1790 | 1790 | |
1791 | 1791 | /** |
@@ -1798,22 +1798,22 @@ discard block |
||
1798 | 1798 | function give_get_provinces_list() { |
1799 | 1799 | $provinces = array( |
1800 | 1800 | '' => '', |
1801 | - 'AB' => esc_html__( 'Alberta', 'give' ), |
|
1802 | - 'BC' => esc_html__( 'British Columbia', 'give' ), |
|
1803 | - 'MB' => esc_html__( 'Manitoba', 'give' ), |
|
1804 | - 'NB' => esc_html__( 'New Brunswick', 'give' ), |
|
1805 | - 'NL' => esc_html__( 'Newfoundland and Labrador', 'give' ), |
|
1806 | - 'NS' => esc_html__( 'Nova Scotia', 'give' ), |
|
1807 | - 'NT' => esc_html__( 'Northwest Territories', 'give' ), |
|
1808 | - 'NU' => esc_html__( 'Nunavut', 'give' ), |
|
1809 | - 'ON' => esc_html__( 'Ontario', 'give' ), |
|
1810 | - 'PE' => esc_html__( 'Prince Edward Island', 'give' ), |
|
1811 | - 'QC' => esc_html__( 'Quebec', 'give' ), |
|
1812 | - 'SK' => esc_html__( 'Saskatchewan', 'give' ), |
|
1813 | - 'YT' => esc_html__( 'Yukon', 'give' ), |
|
1801 | + 'AB' => esc_html__('Alberta', 'give'), |
|
1802 | + 'BC' => esc_html__('British Columbia', 'give'), |
|
1803 | + 'MB' => esc_html__('Manitoba', 'give'), |
|
1804 | + 'NB' => esc_html__('New Brunswick', 'give'), |
|
1805 | + 'NL' => esc_html__('Newfoundland and Labrador', 'give'), |
|
1806 | + 'NS' => esc_html__('Nova Scotia', 'give'), |
|
1807 | + 'NT' => esc_html__('Northwest Territories', 'give'), |
|
1808 | + 'NU' => esc_html__('Nunavut', 'give'), |
|
1809 | + 'ON' => esc_html__('Ontario', 'give'), |
|
1810 | + 'PE' => esc_html__('Prince Edward Island', 'give'), |
|
1811 | + 'QC' => esc_html__('Quebec', 'give'), |
|
1812 | + 'SK' => esc_html__('Saskatchewan', 'give'), |
|
1813 | + 'YT' => esc_html__('Yukon', 'give'), |
|
1814 | 1814 | ); |
1815 | 1815 | |
1816 | - return apply_filters( 'give_canada_provinces', $provinces ); |
|
1816 | + return apply_filters('give_canada_provinces', $provinces); |
|
1817 | 1817 | } |
1818 | 1818 | |
1819 | 1819 | /** |
@@ -1835,7 +1835,7 @@ discard block |
||
1835 | 1835 | 'WA' => 'Western Australia', |
1836 | 1836 | ); |
1837 | 1837 | |
1838 | - return apply_filters( 'give_australian_states', $states ); |
|
1838 | + return apply_filters('give_australian_states', $states); |
|
1839 | 1839 | } |
1840 | 1840 | |
1841 | 1841 | /** |
@@ -1876,7 +1876,7 @@ discard block |
||
1876 | 1876 | 'TO' => 'Tocantins', |
1877 | 1877 | ); |
1878 | 1878 | |
1879 | - return apply_filters( 'give_brazil_states', $states ); |
|
1879 | + return apply_filters('give_brazil_states', $states); |
|
1880 | 1880 | } |
1881 | 1881 | |
1882 | 1882 | /** |
@@ -1893,7 +1893,7 @@ discard block |
||
1893 | 1893 | 'NEW TERRITORIES' => 'New Territories', |
1894 | 1894 | ); |
1895 | 1895 | |
1896 | - return apply_filters( 'give_hong_kong_states', $states ); |
|
1896 | + return apply_filters('give_hong_kong_states', $states); |
|
1897 | 1897 | } |
1898 | 1898 | |
1899 | 1899 | /** |
@@ -1927,7 +1927,7 @@ discard block |
||
1927 | 1927 | 'ZA' => 'Zala', |
1928 | 1928 | ); |
1929 | 1929 | |
1930 | - return apply_filters( 'give_hungary_states', $states ); |
|
1930 | + return apply_filters('give_hungary_states', $states); |
|
1931 | 1931 | } |
1932 | 1932 | |
1933 | 1933 | /** |
@@ -1973,7 +1973,7 @@ discard block |
||
1973 | 1973 | 'CN32' => 'Xinjiang / 新疆', |
1974 | 1974 | ); |
1975 | 1975 | |
1976 | - return apply_filters( 'give_chinese_states', $states ); |
|
1976 | + return apply_filters('give_chinese_states', $states); |
|
1977 | 1977 | } |
1978 | 1978 | |
1979 | 1979 | /** |
@@ -2002,7 +2002,7 @@ discard block |
||
2002 | 2002 | 'WC' => 'West Coast', |
2003 | 2003 | ); |
2004 | 2004 | |
2005 | - return apply_filters( 'give_new_zealand_states', $states ); |
|
2005 | + return apply_filters('give_new_zealand_states', $states); |
|
2006 | 2006 | } |
2007 | 2007 | |
2008 | 2008 | /** |
@@ -2050,7 +2050,7 @@ discard block |
||
2050 | 2050 | 'PB' => 'Papua Barat', |
2051 | 2051 | ); |
2052 | 2052 | |
2053 | - return apply_filters( 'give_indonesia_states', $states ); |
|
2053 | + return apply_filters('give_indonesia_states', $states); |
|
2054 | 2054 | } |
2055 | 2055 | |
2056 | 2056 | /** |
@@ -2100,7 +2100,7 @@ discard block |
||
2100 | 2100 | 'PY' => 'Pondicherry (Puducherry)', |
2101 | 2101 | ); |
2102 | 2102 | |
2103 | - return apply_filters( 'give_indian_states', $states ); |
|
2103 | + return apply_filters('give_indian_states', $states); |
|
2104 | 2104 | } |
2105 | 2105 | |
2106 | 2106 | /** |
@@ -2130,7 +2130,7 @@ discard block |
||
2130 | 2130 | 'PJY' => 'W.P. Putrajaya', |
2131 | 2131 | ); |
2132 | 2132 | |
2133 | - return apply_filters( 'give_malaysian_states', $states ); |
|
2133 | + return apply_filters('give_malaysian_states', $states); |
|
2134 | 2134 | } |
2135 | 2135 | |
2136 | 2136 | /** |
@@ -2153,7 +2153,7 @@ discard block |
||
2153 | 2153 | 'WC' => 'Western Cape', |
2154 | 2154 | ); |
2155 | 2155 | |
2156 | - return apply_filters( 'give_south_african_states', $states ); |
|
2156 | + return apply_filters('give_south_african_states', $states); |
|
2157 | 2157 | } |
2158 | 2158 | |
2159 | 2159 | /** |
@@ -2244,7 +2244,7 @@ discard block |
||
2244 | 2244 | 'TH-35' => 'Yasothon (ยโสธร)', |
2245 | 2245 | ); |
2246 | 2246 | |
2247 | - return apply_filters( 'give_thailand_states', $states ); |
|
2247 | + return apply_filters('give_thailand_states', $states); |
|
2248 | 2248 | } |
2249 | 2249 | |
2250 | 2250 | /** |
@@ -2256,59 +2256,59 @@ discard block |
||
2256 | 2256 | function give_get_spain_states_list() { |
2257 | 2257 | $states = array( |
2258 | 2258 | '' => '', |
2259 | - 'C' => esc_html__( 'A Coruña', 'give' ), |
|
2260 | - 'VI' => esc_html__( 'Álava', 'give' ), |
|
2261 | - 'AB' => esc_html__( 'Albacete', 'give' ), |
|
2262 | - 'A' => esc_html__( 'Alicante', 'give' ), |
|
2263 | - 'AL' => esc_html__( 'Almería', 'give' ), |
|
2264 | - 'O' => esc_html__( 'Asturias', 'give' ), |
|
2265 | - 'AV' => esc_html__( 'Ávila', 'give' ), |
|
2266 | - 'BA' => esc_html__( 'Badajoz', 'give' ), |
|
2267 | - 'PM' => esc_html__( 'Baleares', 'give' ), |
|
2268 | - 'B' => esc_html__( 'Barcelona', 'give' ), |
|
2269 | - 'BU' => esc_html__( 'Burgos', 'give' ), |
|
2270 | - 'CC' => esc_html__( 'Cáceres', 'give' ), |
|
2271 | - 'CA' => esc_html__( 'Cádiz', 'give' ), |
|
2272 | - 'S' => esc_html__( 'Cantabria', 'give' ), |
|
2273 | - 'CS' => esc_html__( 'Castellón', 'give' ), |
|
2274 | - 'CE' => esc_html__( 'Ceuta', 'give' ), |
|
2275 | - 'CR' => esc_html__( 'Ciudad Real', 'give' ), |
|
2276 | - 'CO' => esc_html__( 'Córdoba', 'give' ), |
|
2277 | - 'CU' => esc_html__( 'Cuenca', 'give' ), |
|
2278 | - 'GI' => esc_html__( 'Girona', 'give' ), |
|
2279 | - 'GR' => esc_html__( 'Granada', 'give' ), |
|
2280 | - 'GU' => esc_html__( 'Guadalajara', 'give' ), |
|
2281 | - 'SS' => esc_html__( 'Gipuzkoa', 'give' ), |
|
2282 | - 'H' => esc_html__( 'Huelva', 'give' ), |
|
2283 | - 'HU' => esc_html__( 'Huesca', 'give' ), |
|
2284 | - 'J' => esc_html__( 'Jaén', 'give' ), |
|
2285 | - 'LO' => esc_html__( 'La Rioja', 'give' ), |
|
2286 | - 'GC' => esc_html__( 'Las Palmas', 'give' ), |
|
2287 | - 'LE' => esc_html__( 'León', 'give' ), |
|
2288 | - 'L' => esc_html__( 'Lleida', 'give' ), |
|
2289 | - 'LU' => esc_html__( 'Lugo', 'give' ), |
|
2290 | - 'M' => esc_html__( 'Madrid', 'give' ), |
|
2291 | - 'MA' => esc_html__( 'Málaga', 'give' ), |
|
2292 | - 'ML' => esc_html__( 'Melilla', 'give' ), |
|
2293 | - 'MU' => esc_html__( 'Murcia', 'give' ), |
|
2294 | - 'NA' => esc_html__( 'Navarra', 'give' ), |
|
2295 | - 'OR' => esc_html__( 'Ourense', 'give' ), |
|
2296 | - 'P' => esc_html__( 'Palencia', 'give' ), |
|
2297 | - 'PO' => esc_html__( 'Pontevedra', 'give' ), |
|
2298 | - 'SA' => esc_html__( 'Salamanca', 'give' ), |
|
2299 | - 'TF' => esc_html__( 'Santa Cruz de Tenerife', 'give' ), |
|
2300 | - 'SG' => esc_html__( 'Segovia', 'give' ), |
|
2301 | - 'SE' => esc_html__( 'Sevilla', 'give' ), |
|
2302 | - 'SO' => esc_html__( 'Soria', 'give' ), |
|
2303 | - 'T' => esc_html__( 'Tarragona', 'give' ), |
|
2304 | - 'TE' => esc_html__( 'Teruel', 'give' ), |
|
2305 | - 'TO' => esc_html__( 'Toledo', 'give' ), |
|
2306 | - 'V' => esc_html__( 'Valencia', 'give' ), |
|
2307 | - 'VA' => esc_html__( 'Valladolid', 'give' ), |
|
2308 | - 'BI' => esc_html__( 'Bizkaia', 'give' ), |
|
2309 | - 'ZA' => esc_html__( 'Zamora', 'give' ), |
|
2310 | - 'Z' => esc_html__( 'Zaragoza', 'give' ), |
|
2259 | + 'C' => esc_html__('A Coruña', 'give'), |
|
2260 | + 'VI' => esc_html__('Álava', 'give'), |
|
2261 | + 'AB' => esc_html__('Albacete', 'give'), |
|
2262 | + 'A' => esc_html__('Alicante', 'give'), |
|
2263 | + 'AL' => esc_html__('Almería', 'give'), |
|
2264 | + 'O' => esc_html__('Asturias', 'give'), |
|
2265 | + 'AV' => esc_html__('Ávila', 'give'), |
|
2266 | + 'BA' => esc_html__('Badajoz', 'give'), |
|
2267 | + 'PM' => esc_html__('Baleares', 'give'), |
|
2268 | + 'B' => esc_html__('Barcelona', 'give'), |
|
2269 | + 'BU' => esc_html__('Burgos', 'give'), |
|
2270 | + 'CC' => esc_html__('Cáceres', 'give'), |
|
2271 | + 'CA' => esc_html__('Cádiz', 'give'), |
|
2272 | + 'S' => esc_html__('Cantabria', 'give'), |
|
2273 | + 'CS' => esc_html__('Castellón', 'give'), |
|
2274 | + 'CE' => esc_html__('Ceuta', 'give'), |
|
2275 | + 'CR' => esc_html__('Ciudad Real', 'give'), |
|
2276 | + 'CO' => esc_html__('Córdoba', 'give'), |
|
2277 | + 'CU' => esc_html__('Cuenca', 'give'), |
|
2278 | + 'GI' => esc_html__('Girona', 'give'), |
|
2279 | + 'GR' => esc_html__('Granada', 'give'), |
|
2280 | + 'GU' => esc_html__('Guadalajara', 'give'), |
|
2281 | + 'SS' => esc_html__('Gipuzkoa', 'give'), |
|
2282 | + 'H' => esc_html__('Huelva', 'give'), |
|
2283 | + 'HU' => esc_html__('Huesca', 'give'), |
|
2284 | + 'J' => esc_html__('Jaén', 'give'), |
|
2285 | + 'LO' => esc_html__('La Rioja', 'give'), |
|
2286 | + 'GC' => esc_html__('Las Palmas', 'give'), |
|
2287 | + 'LE' => esc_html__('León', 'give'), |
|
2288 | + 'L' => esc_html__('Lleida', 'give'), |
|
2289 | + 'LU' => esc_html__('Lugo', 'give'), |
|
2290 | + 'M' => esc_html__('Madrid', 'give'), |
|
2291 | + 'MA' => esc_html__('Málaga', 'give'), |
|
2292 | + 'ML' => esc_html__('Melilla', 'give'), |
|
2293 | + 'MU' => esc_html__('Murcia', 'give'), |
|
2294 | + 'NA' => esc_html__('Navarra', 'give'), |
|
2295 | + 'OR' => esc_html__('Ourense', 'give'), |
|
2296 | + 'P' => esc_html__('Palencia', 'give'), |
|
2297 | + 'PO' => esc_html__('Pontevedra', 'give'), |
|
2298 | + 'SA' => esc_html__('Salamanca', 'give'), |
|
2299 | + 'TF' => esc_html__('Santa Cruz de Tenerife', 'give'), |
|
2300 | + 'SG' => esc_html__('Segovia', 'give'), |
|
2301 | + 'SE' => esc_html__('Sevilla', 'give'), |
|
2302 | + 'SO' => esc_html__('Soria', 'give'), |
|
2303 | + 'T' => esc_html__('Tarragona', 'give'), |
|
2304 | + 'TE' => esc_html__('Teruel', 'give'), |
|
2305 | + 'TO' => esc_html__('Toledo', 'give'), |
|
2306 | + 'V' => esc_html__('Valencia', 'give'), |
|
2307 | + 'VA' => esc_html__('Valladolid', 'give'), |
|
2308 | + 'BI' => esc_html__('Bizkaia', 'give'), |
|
2309 | + 'ZA' => esc_html__('Zamora', 'give'), |
|
2310 | + 'Z' => esc_html__('Zaragoza', 'give'), |
|
2311 | 2311 | ); |
2312 | 2312 | |
2313 | - return apply_filters( 'give_spain_states', $states ); |
|
2313 | + return apply_filters('give_spain_states', $states); |
|
2314 | 2314 | } |