@@ -18,14 +18,14 @@ discard block |
||
18 | 18 | /> |
19 | 19 | <?php |
20 | 20 | if ($ticket instanceof EE_Ticket) { |
21 | - do_action('AHEE__ticket_selector_chart__template__before_ticket_selector', $event); |
|
22 | - $ticket_description .= ! empty($ticket_description) |
|
23 | - ? '<br />' . $ticket_status_display |
|
24 | - : $ticket_status_display; |
|
25 | - if (strpos($ticket_description, '<div') === false) { |
|
26 | - $ticket_description = "<p>{$ticket_description}</p>"; |
|
27 | - } |
|
28 | - ?> |
|
21 | + do_action('AHEE__ticket_selector_chart__template__before_ticket_selector', $event); |
|
22 | + $ticket_description .= ! empty($ticket_description) |
|
23 | + ? '<br />' . $ticket_status_display |
|
24 | + : $ticket_status_display; |
|
25 | + if (strpos($ticket_description, '<div') === false) { |
|
26 | + $ticket_description = "<p>{$ticket_description}</p>"; |
|
27 | + } |
|
28 | + ?> |
|
29 | 29 | <div id="no-tkt-slctr-ticket-dv-<?php echo esc_attr($EVT_ID); ?>" class="no-tkt-slctr-ticket-dv"> |
30 | 30 | <div class="no-tkt-slctr-ticket-content-dv"> |
31 | 31 | <h5><?php echo esc_html($ticket->name()); ?></h5> |
@@ -34,5 +34,5 @@ discard block |
||
34 | 34 | <?php } ?> |
35 | 35 | </div><!-- .no-tkt-slctr-ticket-content-dv --> |
36 | 36 | <?php |
37 | - do_action('AHEE__ticket_selector_chart__template__after_ticket_selector', $EVT_ID, $event); |
|
37 | + do_action('AHEE__ticket_selector_chart__template__after_ticket_selector', $EVT_ID, $event); |
|
38 | 38 | } |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | if ($ticket instanceof EE_Ticket) { |
28 | 28 | do_action('AHEE__ticket_selector_chart__template__before_ticket_selector', $event); |
29 | 29 | $ticket_description .= ! empty($ticket_description) |
30 | - ? '<br />' . $ticket_status_display |
|
30 | + ? '<br />'.$ticket_status_display |
|
31 | 31 | : $ticket_status_display; |
32 | 32 | if (strpos($ticket_description, '<div') === false) { |
33 | 33 | $ticket_description = "<p>{$ticket_description}</p>"; |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | <div id="no-tkt-slctr-ticket-dv-<?php echo esc_attr($EVT_ID); ?>" class="no-tkt-slctr-ticket-dv"> |
37 | 37 | <div class="no-tkt-slctr-ticket-content-dv"> |
38 | 38 | <h5><?php echo esc_html($ticket->name()); ?></h5> |
39 | - <?php if (! empty($ticket_description)) { ?> |
|
39 | + <?php if ( ! empty($ticket_description)) { ?> |
|
40 | 40 | <?php echo wp_kses($ticket_description, AllowedTags::getAllowedTags()); ?> |
41 | 41 | <?php } ?> |
42 | 42 | </div><!-- .no-tkt-slctr-ticket-content-dv --> |
@@ -8,11 +8,11 @@ |
||
8 | 8 | <li class="ticket-registration"> |
9 | 9 | <table class="registration-details"> |
10 | 10 | <tr class="odd"> |
11 | - <th><?php _e('Attendee', 'event_espresso');?></th> |
|
11 | + <th><?php _e('Attendee', 'event_espresso'); ?></th> |
|
12 | 12 | <td>[FNAME] [LNAME] ([ATTENDEE_EMAIL])</td> |
13 | 13 | </tr> |
14 | 14 | <tr> |
15 | - <th><?php esc_html_e("Registration Code:", "event_espresso");?></th> |
|
15 | + <th><?php esc_html_e("Registration Code:", "event_espresso"); ?></th> |
|
16 | 16 | <td>[REGISTRATION_CODE] - <span class="[REGISTRATION_STATUS_ID]">[REGISTRATION_STATUS_LABEL]</span></td> |
17 | 17 | </tr> |
18 | 18 | <tr> |
@@ -17,39 +17,39 @@ discard block |
||
17 | 17 | <div class="sandbox-panel"> |
18 | 18 | <h2 class="section-title"><?php esc_html_e('PayPal Sandbox Mode', 'event_espresso'); ?></h2> |
19 | 19 | <h3 style="color:#ff0000;"><?php |
20 | - esc_html_e( |
|
21 | - 'Debug Mode Is Turned On. Payments will not be processed', |
|
22 | - 'event_espresso' |
|
23 | - ); ?></h3> |
|
20 | + esc_html_e( |
|
21 | + 'Debug Mode Is Turned On. Payments will not be processed', |
|
22 | + 'event_espresso' |
|
23 | + ); ?></h3> |
|
24 | 24 | |
25 | 25 | <p class="test-credit-cards-info-pg" style="margin-bottom:0;"> |
26 | 26 | <strong><?php esc_html_e('Testing Guidelines', 'event_espresso'); ?></strong> |
27 | 27 | </p> |
28 | 28 | <ul style="margin:1em 2em 1.5em; line-height:1.2em;"> |
29 | 29 | <li><?php |
30 | - esc_html_e( |
|
31 | - 'While testing, use the credit card number associated with your sandbox account.', |
|
32 | - 'event_espresso' |
|
33 | - ); ?></li> |
|
30 | + esc_html_e( |
|
31 | + 'While testing, use the credit card number associated with your sandbox account.', |
|
32 | + 'event_espresso' |
|
33 | + ); ?></li> |
|
34 | 34 | <li><?php |
35 | - printf( |
|
36 | - esc_html__( |
|
37 | - 'To find the sandbox account\'s credit card, go to %1$s, then "Dashboard", then under Sandbox click "Accounts", then click your account and click "Profile", then in the popup that appears click on the "Funding" tab. Your testing card is listed there.', |
|
38 | - 'event_espresso' |
|
39 | - ), |
|
40 | - '<a href="http://developer.paypal.com">developer.paypal.com</a>' |
|
41 | - ); ?></li> |
|
35 | + printf( |
|
36 | + esc_html__( |
|
37 | + 'To find the sandbox account\'s credit card, go to %1$s, then "Dashboard", then under Sandbox click "Accounts", then click your account and click "Profile", then in the popup that appears click on the "Funding" tab. Your testing card is listed there.', |
|
38 | + 'event_espresso' |
|
39 | + ), |
|
40 | + '<a href="http://developer.paypal.com">developer.paypal.com</a>' |
|
41 | + ); ?></li> |
|
42 | 42 | <li><?php |
43 | - esc_html_e('CVV2 should be 115', 'event_espresso'); ?></li> |
|
43 | + esc_html_e('CVV2 should be 115', 'event_espresso'); ?></li> |
|
44 | 44 | </ul> |
45 | 45 | |
46 | 46 | <p class="test-credit-cards-info-pg"> |
47 | 47 | <strong><?php esc_html_e('Credit Card Numbers Used for Testing', 'event_espresso'); ?></strong><br/> |
48 | 48 | <span class="small-text"><?php |
49 | - esc_html_e( |
|
50 | - 'Use the following credit card numbers for testing. Any other card number produces a general failure.', |
|
51 | - 'event_espresso' |
|
52 | - ); ?></span> |
|
49 | + esc_html_e( |
|
50 | + 'Use the following credit card numbers for testing. Any other card number produces a general failure.', |
|
51 | + 'event_espresso' |
|
52 | + ); ?></span> |
|
53 | 53 | </p> |
54 | 54 | |
55 | 55 | <div class="tbl-wrap"> |
@@ -73,18 +73,18 @@ discard block |
||
73 | 73 | <p class="test-credit-cards-info-pg"> |
74 | 74 | <strong><?php esc_html_e('Testing Result Code Responses', 'event_espresso'); ?></strong><br/> |
75 | 75 | <span class="small-text"><?php |
76 | - printf( |
|
77 | - esc_html__( |
|
78 | - 'You can use the amount of the transaction to generate a particular result code (see %s PayPal\'s documentation%s). The table below lists the general guidelines for specifying amounts. IMPORTANT: before you attempt any of these, ensure your sandbox PayPal account has %s "Negative Testing" set to on%s. Also be aware that you can generate AVS errors by using certain strings in your address field, and CVV errors using certain CVV values. See %s this PayPal doc %s', |
|
79 | - 'event_espresso' |
|
80 | - ), |
|
81 | - "<a href='https://developer.paypal.com/docs/classic/api/errorcodes/#id09C3GA00GR1' target='_blank'>", |
|
82 | - "</a>", |
|
83 | - "<a href='https://docs.google.com/a/eventespresso.com/file/d/0B5P8GXTvZgfMNXNkZ2s5VUlHTUk/edit?usp=drivesdk' target='_blank'>", |
|
84 | - "</a>", |
|
85 | - "<a href='https://cms.paypal.com/ca/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_testing_SBTestErrorConditions' target='_blank'>", |
|
86 | - "</a>" |
|
87 | - ); ?></span> |
|
76 | + printf( |
|
77 | + esc_html__( |
|
78 | + 'You can use the amount of the transaction to generate a particular result code (see %s PayPal\'s documentation%s). The table below lists the general guidelines for specifying amounts. IMPORTANT: before you attempt any of these, ensure your sandbox PayPal account has %s "Negative Testing" set to on%s. Also be aware that you can generate AVS errors by using certain strings in your address field, and CVV errors using certain CVV values. See %s this PayPal doc %s', |
|
79 | + 'event_espresso' |
|
80 | + ), |
|
81 | + "<a href='https://developer.paypal.com/docs/classic/api/errorcodes/#id09C3GA00GR1' target='_blank'>", |
|
82 | + "</a>", |
|
83 | + "<a href='https://docs.google.com/a/eventespresso.com/file/d/0B5P8GXTvZgfMNXNkZ2s5VUlHTUk/edit?usp=drivesdk' target='_blank'>", |
|
84 | + "</a>", |
|
85 | + "<a href='https://cms.paypal.com/ca/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_testing_SBTestErrorConditions' target='_blank'>", |
|
86 | + "</a>" |
|
87 | + ); ?></span> |
|
88 | 88 | </p> |
89 | 89 | |
90 | 90 | <div class="tbl-wrap"> |
@@ -18,9 +18,9 @@ |
||
18 | 18 | |
19 | 19 | <p> |
20 | 20 | <?php esc_html_e( |
21 | - 'Test Mode allows you to submit test transactions to the payment gateway. Transactions that are submitted while Test Mode is ON are NOT actually processed. The result of a transaction depends on the card number submitted, and the invoice amount. If you want a transaction to be approved, use one of the following card numbers.', |
|
22 | - 'event_espresso' |
|
23 | - ); ?> |
|
21 | + 'Test Mode allows you to submit test transactions to the payment gateway. Transactions that are submitted while Test Mode is ON are NOT actually processed. The result of a transaction depends on the card number submitted, and the invoice amount. If you want a transaction to be approved, use one of the following card numbers.', |
|
22 | + 'event_espresso' |
|
23 | + ); ?> |
|
24 | 24 | </p> |
25 | 25 | |
26 | 26 | <p> |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | public function extra_news_box_content($content) |
42 | 42 | { |
43 | - echo '<h3 style="margin:0">' . esc_html__('From the Forums', 'event_espresso') . '</h3>'; |
|
43 | + echo '<h3 style="margin:0">'.esc_html__('From the Forums', 'event_espresso').'</h3>'; |
|
44 | 44 | echo '<div id="ee_forum_posts_content">'; |
45 | 45 | $url = 'https://eventespresso.com/forum/event-espresso-support/feed/'; |
46 | 46 | EE_Admin_Page::cached_rss_display('ee_forum_posts_content', $url); |
@@ -14,42 +14,42 @@ |
||
14 | 14 | */ |
15 | 15 | class Global_EE_Caf_Hooks |
16 | 16 | { |
17 | - public function __construct() |
|
18 | - { |
|
19 | - $this->_do_hooks(); |
|
20 | - } |
|
17 | + public function __construct() |
|
18 | + { |
|
19 | + $this->_do_hooks(); |
|
20 | + } |
|
21 | 21 | |
22 | 22 | |
23 | - private function _do_hooks() |
|
24 | - { |
|
25 | - add_filter('FHEE_show_sponsors_meta_box', '__return_false', 10); |
|
26 | - add_filter('FHEE_show_ratings_request_meta_box', '__return_false', 10); |
|
27 | - add_filter( |
|
28 | - 'FHEE__EE_Admin_Page_Core__load_global_scripts_styles__loader_containers', |
|
29 | - array($this, 'forums_lazy_loading'), |
|
30 | - 10 |
|
31 | - ); |
|
32 | - add_action( |
|
33 | - 'AHEE__EE_Admin_Page__espresso_news_post_box__after_content', |
|
34 | - array($this, 'extra_news_box_content'), |
|
35 | - 10 |
|
36 | - ); |
|
37 | - } |
|
23 | + private function _do_hooks() |
|
24 | + { |
|
25 | + add_filter('FHEE_show_sponsors_meta_box', '__return_false', 10); |
|
26 | + add_filter('FHEE_show_ratings_request_meta_box', '__return_false', 10); |
|
27 | + add_filter( |
|
28 | + 'FHEE__EE_Admin_Page_Core__load_global_scripts_styles__loader_containers', |
|
29 | + array($this, 'forums_lazy_loading'), |
|
30 | + 10 |
|
31 | + ); |
|
32 | + add_action( |
|
33 | + 'AHEE__EE_Admin_Page__espresso_news_post_box__after_content', |
|
34 | + array($this, 'extra_news_box_content'), |
|
35 | + 10 |
|
36 | + ); |
|
37 | + } |
|
38 | 38 | |
39 | 39 | |
40 | - public function extra_news_box_content($content) |
|
41 | - { |
|
42 | - echo '<h3 style="margin:0">' . esc_html__('From the Forums', 'event_espresso') . '</h3>'; |
|
43 | - echo '<div id="ee_forum_posts_content">'; |
|
44 | - $url = 'https://eventespresso.com/forum/event-espresso-support/feed/'; |
|
45 | - EE_Admin_Page::cached_rss_display('ee_forum_posts_content', $url); |
|
46 | - echo '</div>'; |
|
47 | - } |
|
40 | + public function extra_news_box_content($content) |
|
41 | + { |
|
42 | + echo '<h3 style="margin:0">' . esc_html__('From the Forums', 'event_espresso') . '</h3>'; |
|
43 | + echo '<div id="ee_forum_posts_content">'; |
|
44 | + $url = 'https://eventespresso.com/forum/event-espresso-support/feed/'; |
|
45 | + EE_Admin_Page::cached_rss_display('ee_forum_posts_content', $url); |
|
46 | + echo '</div>'; |
|
47 | + } |
|
48 | 48 | |
49 | 49 | |
50 | - public function forums_lazy_loading($ids) |
|
51 | - { |
|
52 | - $ids[] = 'ee_forum_posts_content'; |
|
53 | - return $ids; |
|
54 | - } |
|
50 | + public function forums_lazy_loading($ids) |
|
51 | + { |
|
52 | + $ids[] = 'ee_forum_posts_content'; |
|
53 | + return $ids; |
|
54 | + } |
|
55 | 55 | } |
@@ -1,48 +1,48 @@ |
||
1 | 1 | <p><strong><?php esc_html_e('Importing CSV Event Espresso Data', 'event_espresso'); ?></strong></p> |
2 | 2 | <p> |
3 | 3 | <?php esc_html_e( |
4 | - 'The importer can be used to import event information into Event Espresso using a CSV file.', |
|
5 | - 'event_espresso' |
|
6 | - ); ?> |
|
4 | + 'The importer can be used to import event information into Event Espresso using a CSV file.', |
|
5 | + 'event_espresso' |
|
6 | + ); ?> |
|
7 | 7 | </p> |
8 | 8 | <p><strong><?php esc_html_e("Importing from other Event Espresso 4 Sites", 'event_espresso'); ?></strong></p> |
9 | 9 | <p> |
10 | 10 | <?php esc_html_e( |
11 | - 'To import Event Espresso data from another Event Espresso 4 install, export a CSV file from the admin Events overview page, or anywhere you can generate a CSV export file from. Then upload that file here (regardless of what type of information was exported).', |
|
12 | - 'event_espresso' |
|
13 | - ); ?> |
|
11 | + 'To import Event Espresso data from another Event Espresso 4 install, export a CSV file from the admin Events overview page, or anywhere you can generate a CSV export file from. Then upload that file here (regardless of what type of information was exported).', |
|
12 | + 'event_espresso' |
|
13 | + ); ?> |
|
14 | 14 | </p> |
15 | 15 | <p> |
16 | 16 | <?php esc_html_e( |
17 | - 'Note: its possible that data from the other site have the same IDs as data in this site. The importer recognizes that this data is from a different database and inserts new items for each item in the CSV file, regardless of whether its ID matches that of an item in this site\'s database or not. However, the importer also remembers the mapping from the old site\'s database to this site\'s database, and on subsequent CSV importers from that site, the data in this database will be updated instead of re-inserting new items.', |
|
18 | - 'event_espresso' |
|
19 | - ); ?> |
|
17 | + 'Note: its possible that data from the other site have the same IDs as data in this site. The importer recognizes that this data is from a different database and inserts new items for each item in the CSV file, regardless of whether its ID matches that of an item in this site\'s database or not. However, the importer also remembers the mapping from the old site\'s database to this site\'s database, and on subsequent CSV importers from that site, the data in this database will be updated instead of re-inserting new items.', |
|
18 | + 'event_espresso' |
|
19 | + ); ?> |
|
20 | 20 | </p> |
21 | 21 | <p><strong><?php esc_html_e("Importing from this Site", 'event_espresso'); ?></strong></p> |
22 | 22 | <p><?php |
23 | - esc_html_e( |
|
24 | - "You may want to export data from this site, modify it (or modify the database), and re-import it. When this is done, the importer recognizes that the data is from this site\'s database and updates the records (instead of inserting new items like it would have, had the CSV data been from a different site).", |
|
25 | - 'event_espresso' |
|
26 | - ); ?></p> |
|
23 | + esc_html_e( |
|
24 | + "You may want to export data from this site, modify it (or modify the database), and re-import it. When this is done, the importer recognizes that the data is from this site\'s database and updates the records (instead of inserting new items like it would have, had the CSV data been from a different site).", |
|
25 | + 'event_espresso' |
|
26 | + ); ?></p> |
|
27 | 27 | |
28 | 28 | <p><strong><?php esc_html_e("Notes about Generating your own CSV Import Files", "event_espresso"); ?></strong></p> |
29 | 29 | <p><?php |
30 | - esc_html_e( |
|
31 | - "If you think you could save time entering data into a CSV file, you can use the sample import file below. Note that creating your own CSV file is more complicated than in Event Espresso 3.1 because of the more advanced data structure, and so we recommend creating/editing your events using the normal web-interface.", |
|
32 | - "event_espresso" |
|
33 | - ); ?></p> |
|
30 | + esc_html_e( |
|
31 | + "If you think you could save time entering data into a CSV file, you can use the sample import file below. Note that creating your own CSV file is more complicated than in Event Espresso 3.1 because of the more advanced data structure, and so we recommend creating/editing your events using the normal web-interface.", |
|
32 | + "event_espresso" |
|
33 | + ); ?></p> |
|
34 | 34 | <p><?php |
35 | - esc_html_e( |
|
36 | - "The export file is just an export of an event, or if you do not have any events in your system, it will only contain column headers. Do not change those column headers. Add as many rows as you like. ", |
|
37 | - "event_espresso" |
|
38 | - ); ?></p> |
|
35 | + esc_html_e( |
|
36 | + "The export file is just an export of an event, or if you do not have any events in your system, it will only contain column headers. Do not change those column headers. Add as many rows as you like. ", |
|
37 | + "event_espresso" |
|
38 | + ); ?></p> |
|
39 | 39 | <p><?php |
40 | - esc_html_e( |
|
41 | - "In the ID columns (columns ending in '_ID'), you should enter 'temporary IDs', which are unique numbers/words that identify that item, which can be used later when you want to refer to that item. (For example, if you assign an event's EVT_ID to be a temporary id of 'my-event-1', then use that same phrase 'my-event-1' to refer to that event in the Datetime model's EVT_ID column)", |
|
42 | - "event_espresso" |
|
43 | - ); ?></p> |
|
40 | + esc_html_e( |
|
41 | + "In the ID columns (columns ending in '_ID'), you should enter 'temporary IDs', which are unique numbers/words that identify that item, which can be used later when you want to refer to that item. (For example, if you assign an event's EVT_ID to be a temporary id of 'my-event-1', then use that same phrase 'my-event-1' to refer to that event in the Datetime model's EVT_ID column)", |
|
42 | + "event_espresso" |
|
43 | + ); ?></p> |
|
44 | 44 | <p><?php |
45 | - esc_html_e( |
|
46 | - "Also note, you do NOT have to enter info in for each model. (You can, for example, only enter in Term_Taxonomies and Term model data)", |
|
47 | - "event_espresso" |
|
48 | - ); ?></p> |
|
49 | 45 | \ No newline at end of file |
46 | + esc_html_e( |
|
47 | + "Also note, you do NOT have to enter info in for each model. (You can, for example, only enter in Term_Taxonomies and Term model data)", |
|
48 | + "event_espresso" |
|
49 | + ); ?></p> |
|
50 | 50 | \ No newline at end of file |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | <?php echo esc_html($page_title); ?> |
21 | 21 | </h4> |
22 | 22 | <?php } |
23 | - if (! empty($invoice_url)) { ?> |
|
23 | + if (! empty($invoice_url)) { ?> |
|
24 | 24 | <p> |
25 | 25 | <a href="<?php echo esc_url_raw($invoice_url); ?>" |
26 | 26 | class="ee-button-lnk inline-button ee-invoice-lnk" |
@@ -35,10 +35,10 @@ discard block |
||
35 | 35 | <p class="instruct"><?php echo wpautop(wp_kses($page_confirmation_text, $allowedtags)); ?></p> |
36 | 36 | </div> |
37 | 37 | <?php } |
38 | - if (! empty($page_extra_info)) { ?> |
|
38 | + if (! empty($page_extra_info)) { ?> |
|
39 | 39 | <div class="address-block"> |
40 | 40 | <?php echo wpautop(wp_kses($page_extra_info, $allowedtags)); ?> |
41 | 41 | </div> |
42 | 42 | <?php } |
43 | - } ?> |
|
43 | + } ?> |
|
44 | 44 | </div> |
@@ -16,12 +16,12 @@ discard block |
||
16 | 16 | $allowedtags = AllowedTags::getAllowedTags(); |
17 | 17 | ?> |
18 | 18 | <div class="event-display-boxes"> |
19 | - <?php if (! empty($page_title)) { ?> |
|
19 | + <?php if ( ! empty($page_title)) { ?> |
|
20 | 20 | <h4 id="invoice_title" class="payment_type_title section-heading"> |
21 | 21 | <?php echo esc_html($page_title); ?> |
22 | 22 | </h4> |
23 | 23 | <?php } |
24 | - if (! empty($invoice_url)) { ?> |
|
24 | + if ( ! empty($invoice_url)) { ?> |
|
25 | 25 | <p> |
26 | 26 | <a href="<?php echo esc_url_raw($invoice_url); ?>" |
27 | 27 | class="ee-button-lnk inline-button ee-invoice-lnk" |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | <p class="instruct"><?php echo wpautop(wp_kses($page_confirmation_text, $allowedtags)); ?></p> |
37 | 37 | </div> |
38 | 38 | <?php } |
39 | - if (! empty($page_extra_info)) { ?> |
|
39 | + if ( ! empty($page_extra_info)) { ?> |
|
40 | 40 | <div class="address-block"> |
41 | 41 | <?php echo wpautop(wp_kses($page_extra_info, $allowedtags)); ?> |
42 | 42 | </div> |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | $this->_pretty_name = esc_html__("Bank", 'event_espresso'); |
22 | 22 | parent::__construct($pm_instance); |
23 | - $this->_default_button_url = $this->file_url() . 'lib/bank-logo.png'; |
|
23 | + $this->_default_button_url = $this->file_url().'lib/bank-logo.png'; |
|
24 | 24 | $this->_default_description = esc_html__( |
25 | 25 | 'Make payment using an electronic funds transfer from your bank.', |
26 | 26 | 'event_espresso' |
@@ -9,128 +9,128 @@ |
||
9 | 9 | */ |
10 | 10 | class EE_PMT_Bank extends EE_PMT_Base |
11 | 11 | { |
12 | - /** |
|
13 | - * @param EE_Payment_Method|null $pm_instance |
|
14 | - * @throws ReflectionException |
|
15 | - * @throws EE_Error |
|
16 | - */ |
|
17 | - public function __construct($pm_instance = null) |
|
18 | - { |
|
19 | - $this->_pretty_name = esc_html__("Bank", 'event_espresso'); |
|
20 | - parent::__construct($pm_instance); |
|
21 | - $this->_default_button_url = $this->file_url() . 'lib/bank-logo.png'; |
|
22 | - $this->_default_description = esc_html__( |
|
23 | - 'Make payment using an electronic funds transfer from your bank.', |
|
24 | - 'event_espresso' |
|
25 | - ); |
|
26 | - } |
|
12 | + /** |
|
13 | + * @param EE_Payment_Method|null $pm_instance |
|
14 | + * @throws ReflectionException |
|
15 | + * @throws EE_Error |
|
16 | + */ |
|
17 | + public function __construct($pm_instance = null) |
|
18 | + { |
|
19 | + $this->_pretty_name = esc_html__("Bank", 'event_espresso'); |
|
20 | + parent::__construct($pm_instance); |
|
21 | + $this->_default_button_url = $this->file_url() . 'lib/bank-logo.png'; |
|
22 | + $this->_default_description = esc_html__( |
|
23 | + 'Make payment using an electronic funds transfer from your bank.', |
|
24 | + 'event_espresso' |
|
25 | + ); |
|
26 | + } |
|
27 | 27 | |
28 | 28 | |
29 | - /** |
|
30 | - * Creates the billing form for this payment method type |
|
31 | - * |
|
32 | - * @param EE_Transaction|null $transaction |
|
33 | - * @return EE_Billing_Info_Form|null |
|
34 | - * @throws EE_Error |
|
35 | - * @throws ReflectionException |
|
36 | - */ |
|
37 | - public function generate_new_billing_form(EE_Transaction $transaction = null) |
|
38 | - { return null; |
|
39 | - } |
|
29 | + /** |
|
30 | + * Creates the billing form for this payment method type |
|
31 | + * |
|
32 | + * @param EE_Transaction|null $transaction |
|
33 | + * @return EE_Billing_Info_Form|null |
|
34 | + * @throws EE_Error |
|
35 | + * @throws ReflectionException |
|
36 | + */ |
|
37 | + public function generate_new_billing_form(EE_Transaction $transaction = null) |
|
38 | + { return null; |
|
39 | + } |
|
40 | 40 | |
41 | 41 | |
42 | - /** |
|
43 | - * Gets the form for all the settings related to this payment method type |
|
44 | - * |
|
45 | - * @return EE_Payment_Method_Form |
|
46 | - * @throws EE_Error |
|
47 | - * @throws ReflectionException |
|
48 | - */ |
|
49 | - public function generate_new_settings_form() |
|
50 | - { |
|
51 | - return new EE_Payment_Method_Form( |
|
52 | - [ |
|
53 | - 'extra_meta_inputs' => [ |
|
54 | - 'page_title' => new EE_Text_Input( |
|
55 | - [ |
|
56 | - 'html_label_text' => sprintf( |
|
57 | - esc_html__("Title %s", "event_espresso"), |
|
58 | - $this->get_help_tab_link() |
|
59 | - ), |
|
60 | - 'default' => esc_html__("Electronic Funds Transfers", 'event_espresso'), |
|
61 | - ] |
|
62 | - ), |
|
63 | - 'payment_instructions' => new EE_Text_Area_Input( |
|
64 | - [ |
|
65 | - 'html_label_text' => sprintf( |
|
66 | - esc_html__("Payment Instructions %s", "event_espresso"), |
|
67 | - $this->get_help_tab_link() |
|
68 | - ), |
|
69 | - 'html_help_text' => esc_html__( |
|
70 | - 'Provide instructions on how registrants can send the bank draft payment. Eg, mention your account name, bank account number, bank name, bank routing code, and bank address, etc.', |
|
71 | - 'event_espresso' |
|
72 | - ), |
|
73 | - 'default' => sprintf( |
|
74 | - esc_html__( |
|
75 | - 'Please initiate an electronic payment using the following bank information: %1$sAccount Owner: Luke Skywalker%1$sBank Account # 1234567890%1$sBank Name: Rebellion Bank%1$sRouting Number: 12345%1$sBank Address: 12345 Wookie Rd., Planet Corellian.%1$sPayment must be received within 48 hours of event date.', |
|
76 | - 'event_espresso' |
|
77 | - ), |
|
78 | - "\n" |
|
79 | - ), |
|
80 | - 'validation_strategies' => [ |
|
81 | - new EE_Full_HTML_Validation_Strategy(), |
|
82 | - ], |
|
83 | - ] |
|
84 | - ), |
|
85 | - ], |
|
86 | - 'exclude' => ['PMD_debug_mode'], |
|
87 | - ] |
|
88 | - ); |
|
89 | - } |
|
42 | + /** |
|
43 | + * Gets the form for all the settings related to this payment method type |
|
44 | + * |
|
45 | + * @return EE_Payment_Method_Form |
|
46 | + * @throws EE_Error |
|
47 | + * @throws ReflectionException |
|
48 | + */ |
|
49 | + public function generate_new_settings_form() |
|
50 | + { |
|
51 | + return new EE_Payment_Method_Form( |
|
52 | + [ |
|
53 | + 'extra_meta_inputs' => [ |
|
54 | + 'page_title' => new EE_Text_Input( |
|
55 | + [ |
|
56 | + 'html_label_text' => sprintf( |
|
57 | + esc_html__("Title %s", "event_espresso"), |
|
58 | + $this->get_help_tab_link() |
|
59 | + ), |
|
60 | + 'default' => esc_html__("Electronic Funds Transfers", 'event_espresso'), |
|
61 | + ] |
|
62 | + ), |
|
63 | + 'payment_instructions' => new EE_Text_Area_Input( |
|
64 | + [ |
|
65 | + 'html_label_text' => sprintf( |
|
66 | + esc_html__("Payment Instructions %s", "event_espresso"), |
|
67 | + $this->get_help_tab_link() |
|
68 | + ), |
|
69 | + 'html_help_text' => esc_html__( |
|
70 | + 'Provide instructions on how registrants can send the bank draft payment. Eg, mention your account name, bank account number, bank name, bank routing code, and bank address, etc.', |
|
71 | + 'event_espresso' |
|
72 | + ), |
|
73 | + 'default' => sprintf( |
|
74 | + esc_html__( |
|
75 | + 'Please initiate an electronic payment using the following bank information: %1$sAccount Owner: Luke Skywalker%1$sBank Account # 1234567890%1$sBank Name: Rebellion Bank%1$sRouting Number: 12345%1$sBank Address: 12345 Wookie Rd., Planet Corellian.%1$sPayment must be received within 48 hours of event date.', |
|
76 | + 'event_espresso' |
|
77 | + ), |
|
78 | + "\n" |
|
79 | + ), |
|
80 | + 'validation_strategies' => [ |
|
81 | + new EE_Full_HTML_Validation_Strategy(), |
|
82 | + ], |
|
83 | + ] |
|
84 | + ), |
|
85 | + ], |
|
86 | + 'exclude' => ['PMD_debug_mode'], |
|
87 | + ] |
|
88 | + ); |
|
89 | + } |
|
90 | 90 | |
91 | 91 | |
92 | - /** |
|
93 | - * Adds the help tab |
|
94 | - * |
|
95 | - * @return array |
|
96 | - * @see EE_PMT_Base::help_tabs_config() |
|
97 | - */ |
|
98 | - public function help_tabs_config() |
|
99 | - { |
|
100 | - return [ |
|
101 | - $this->get_help_tab_name() => [ |
|
102 | - 'title' => esc_html__('Bank Draft Settings', 'event_espresso'), |
|
103 | - 'filename' => 'payment_methods_overview_bank_draft', |
|
104 | - ], |
|
105 | - ]; |
|
106 | - } |
|
92 | + /** |
|
93 | + * Adds the help tab |
|
94 | + * |
|
95 | + * @return array |
|
96 | + * @see EE_PMT_Base::help_tabs_config() |
|
97 | + */ |
|
98 | + public function help_tabs_config() |
|
99 | + { |
|
100 | + return [ |
|
101 | + $this->get_help_tab_name() => [ |
|
102 | + 'title' => esc_html__('Bank Draft Settings', 'event_espresso'), |
|
103 | + 'filename' => 'payment_methods_overview_bank_draft', |
|
104 | + ], |
|
105 | + ]; |
|
106 | + } |
|
107 | 107 | |
108 | 108 | |
109 | - /** |
|
110 | - * For adding any html output ab ove the payment overview. |
|
111 | - * Many gateways won't want ot display anything, so this function just returns an empty string. |
|
112 | - * Other gateways may want to override this, such as offline gateways. |
|
113 | - * |
|
114 | - * @param EE_Payment $payment |
|
115 | - * @return string |
|
116 | - * @throws EE_Error |
|
117 | - * @throws ReflectionException |
|
118 | - */ |
|
119 | - public function payment_overview_content(EE_Payment $payment) |
|
120 | - { |
|
121 | - $extra_meta_for_payment_method = $this->_pm_instance->all_extra_meta_array(); |
|
122 | - $template_vars = array_merge( |
|
123 | - [ |
|
124 | - 'payment_method' => $this->_pm_instance, |
|
125 | - 'payment' => $payment, |
|
126 | - 'page_title' => '', |
|
127 | - 'payment_instructions' => '', |
|
128 | - ], |
|
129 | - $extra_meta_for_payment_method |
|
130 | - ); |
|
131 | - return EEH_Template::locate_template( |
|
132 | - 'payment_methods/Bank/templates/bank_payment_details_content.template.php', |
|
133 | - $template_vars |
|
134 | - ); |
|
135 | - } |
|
109 | + /** |
|
110 | + * For adding any html output ab ove the payment overview. |
|
111 | + * Many gateways won't want ot display anything, so this function just returns an empty string. |
|
112 | + * Other gateways may want to override this, such as offline gateways. |
|
113 | + * |
|
114 | + * @param EE_Payment $payment |
|
115 | + * @return string |
|
116 | + * @throws EE_Error |
|
117 | + * @throws ReflectionException |
|
118 | + */ |
|
119 | + public function payment_overview_content(EE_Payment $payment) |
|
120 | + { |
|
121 | + $extra_meta_for_payment_method = $this->_pm_instance->all_extra_meta_array(); |
|
122 | + $template_vars = array_merge( |
|
123 | + [ |
|
124 | + 'payment_method' => $this->_pm_instance, |
|
125 | + 'payment' => $payment, |
|
126 | + 'page_title' => '', |
|
127 | + 'payment_instructions' => '', |
|
128 | + ], |
|
129 | + $extra_meta_for_payment_method |
|
130 | + ); |
|
131 | + return EEH_Template::locate_template( |
|
132 | + 'payment_methods/Bank/templates/bank_payment_details_content.template.php', |
|
133 | + $template_vars |
|
134 | + ); |
|
135 | + } |
|
136 | 136 | } |
@@ -2,25 +2,25 @@ |
||
2 | 2 | |
3 | 3 | <h4 class="important-notice"> |
4 | 4 | <?php esc_html_e( |
5 | - 'Debug Mode is turned ON. You will be redirected to the PayPal Sandbox environment. Please use your Sandbox PayPal account for the checkout.', |
|
6 | - 'event_espresso' |
|
7 | - ); ?></h4> |
|
5 | + 'Debug Mode is turned ON. You will be redirected to the PayPal Sandbox environment. Please use your Sandbox PayPal account for the checkout.', |
|
6 | + 'event_espresso' |
|
7 | + ); ?></h4> |
|
8 | 8 | |
9 | 9 | <h4><?php esc_html_e('How do I test specific error codes?', 'event_espresso'); ?></h4> |
10 | 10 | <p> |
11 | 11 | <?php esc_html_e( |
12 | - 'To trigger an error condition on an amount-related field, |
|
12 | + 'To trigger an error condition on an amount-related field, |
|
13 | 13 | specify a error code value as a number with two digits to the right of the decimal point. |
14 | 14 | For example, specify a value of 107.55 to trigger the 10755 error.', |
15 | - 'event_espresso' |
|
16 | - ); ?> |
|
15 | + 'event_espresso' |
|
16 | + ); ?> |
|
17 | 17 | </p> |
18 | 18 | <p> |
19 | 19 | <?php printf( |
20 | - esc_html__('More details can be found here: %1$s Testing Error Conditions %2$s.', 'event_espresso'), |
|
21 | - '<a href="https://developer.paypal.com/docs/classic/lifecycle/sb_error-conditions">', |
|
22 | - '</a>' |
|
23 | - ); ?> |
|
20 | + esc_html__('More details can be found here: %1$s Testing Error Conditions %2$s.', 'event_espresso'), |
|
21 | + '<a href="https://developer.paypal.com/docs/classic/lifecycle/sb_error-conditions">', |
|
22 | + '</a>' |
|
23 | + ); ?> |
|
24 | 24 | </p> |
25 | 25 | |
26 | 26 | </div> |
27 | 27 | \ No newline at end of file |