@@ -9,7 +9,7 @@ |
||
9 | 9 | style='position:relative; top:5px; margin:0 0 0 10px; font-size:.9em; cursor:pointer;'> |
10 | 10 | <img alt='<?php esc_attr_e('clone', 'event_espresso'); ?>' |
11 | 11 | height='16' |
12 | - src='<?php echo esc_url_raw(EE_IMAGES_URL . 'clone-trooper-16x16.png'); ?>' |
|
12 | + src='<?php echo esc_url_raw(EE_IMAGES_URL.'clone-trooper-16x16.png'); ?>' |
|
13 | 13 | width='16' |
14 | 14 | /> |
15 | 15 | </a> |
@@ -14,37 +14,37 @@ |
||
14 | 14 | </p> |
15 | 15 | |
16 | 16 | <?php |
17 | -$settings_array = [ |
|
17 | +$settings_array = [ |
|
18 | 18 | 'max_registrants' => '<p> |
19 | 19 | <label for="max-registrants"> |
20 | 20 | ' . esc_html__( |
21 | 21 | 'Maximum number of tickets allowed per order for this event: ', |
22 | 22 | 'event_espresso' |
23 | - ) . ' |
|
23 | + ).' |
|
24 | 24 | </label> |
25 | 25 | <input class="ee-numeric" |
26 | 26 | type="text" |
27 | 27 | id="max-registrants" |
28 | 28 | name="additional_limit" |
29 | - value="' . esc_attr($additional_limit) . '" |
|
29 | + value="' . esc_attr($additional_limit).'" |
|
30 | 30 | size="4" |
31 | 31 | /> |
32 | 32 | </p>', |
33 | 33 | 'additional_registration_options' => $additional_registration_options, |
34 | 34 | 'display_ticket_selector' => '<p> |
35 | - <label>' . esc_html__('Display Ticket Selector', 'event_espresso') . '</label>' |
|
35 | + <label>' . esc_html__('Display Ticket Selector', 'event_espresso').'</label>' |
|
36 | 36 | . $display_ticket_selector // already escaped |
37 | 37 | . '</p>', |
38 | 38 | 'alternative_registration_page' => '<p> |
39 | - <label>' . esc_html__('Alternative Registration Page', 'event_espresso') . '</label> |
|
40 | - <input name="externalURL" size="20" type="text" value="' . esc_url_raw($_event->external_url()) . '"> |
|
39 | + <label>' . esc_html__('Alternative Registration Page', 'event_espresso').'</label> |
|
40 | + <input name="externalURL" size="20" type="text" value="' . esc_url_raw($_event->external_url()).'"> |
|
41 | 41 | </p>', |
42 | 42 | 'event_phone_number' => '<p> |
43 | - <label>' . esc_html__('Event Phone Number', 'event_espresso') . '</label> |
|
44 | - <input name="event_phone" size="20" type="text" value="' . esc_attr($_event->phone()) . '"> |
|
43 | + <label>' . esc_html__('Event Phone Number', 'event_espresso').'</label> |
|
44 | + <input name="event_phone" size="20" type="text" value="' . esc_attr($_event->phone()).'"> |
|
45 | 45 | </p>', |
46 | 46 | 'default_registration_status' => '<p> |
47 | - <label>' . esc_html__('Default Registration Status', 'event_espresso') . '</label>' |
|
47 | + <label>' . esc_html__('Default Registration Status', 'event_espresso').'</label>' |
|
48 | 48 | . EEH_Template::get_help_tab_link('event_editor_event_registration_options_help_tab') |
49 | 49 | . $EVT_default_registration_status // already escaped |
50 | 50 | . '</p>', |
@@ -19,12 +19,12 @@ discard block |
||
19 | 19 | |
20 | 20 | <?php |
21 | 21 | $settings_array = [ |
22 | - 'max_registrants' => '<p> |
|
22 | + 'max_registrants' => '<p> |
|
23 | 23 | <label for="max-registrants"> |
24 | 24 | ' . esc_html__( |
25 | - 'Maximum number of tickets allowed per order for this event: ', |
|
26 | - 'event_espresso' |
|
27 | - ) . ' |
|
25 | + 'Maximum number of tickets allowed per order for this event: ', |
|
26 | + 'event_espresso' |
|
27 | + ) . ' |
|
28 | 28 | </label> |
29 | 29 | <input class="ee-numeric" |
30 | 30 | type="text" |
@@ -34,29 +34,29 @@ discard block |
||
34 | 34 | size="4" |
35 | 35 | /> |
36 | 36 | </p>', |
37 | - 'additional_registration_options' => $additional_registration_options, |
|
38 | - 'display_ticket_selector' => '<p> |
|
37 | + 'additional_registration_options' => $additional_registration_options, |
|
38 | + 'display_ticket_selector' => '<p> |
|
39 | 39 | <label>' . esc_html__('Display Ticket Selector', 'event_espresso') . '</label>' |
40 | - . $display_ticket_selector // already escaped |
|
41 | - . '</p>', |
|
42 | - 'alternative_registration_page' => '<p> |
|
40 | + . $display_ticket_selector // already escaped |
|
41 | + . '</p>', |
|
42 | + 'alternative_registration_page' => '<p> |
|
43 | 43 | <label>' . esc_html__('Alternative Registration Page', 'event_espresso') . '</label> |
44 | 44 | <input name="externalURL" size="20" type="text" value="' . esc_url_raw($_event->external_url()) . '"> |
45 | 45 | </p>', |
46 | - 'event_phone_number' => '<p> |
|
46 | + 'event_phone_number' => '<p> |
|
47 | 47 | <label>' . esc_html__('Event Phone Number', 'event_espresso') . '</label> |
48 | 48 | <input name="event_phone" size="20" type="text" value="' . esc_attr($_event->phone()) . '"> |
49 | 49 | </p>', |
50 | - 'default_registration_status' => '<p> |
|
50 | + 'default_registration_status' => '<p> |
|
51 | 51 | <label>' . esc_html__('Default Registration Status', 'event_espresso') . '</label>' |
52 | - . EEH_Template::get_help_tab_link('event_editor_event_registration_options_help_tab') |
|
53 | - . $EVT_default_registration_status // already escaped |
|
54 | - . '</p>', |
|
52 | + . EEH_Template::get_help_tab_link('event_editor_event_registration_options_help_tab') |
|
53 | + . $EVT_default_registration_status // already escaped |
|
54 | + . '</p>', |
|
55 | 55 | ]; |
56 | 56 | // filter |
57 | 57 | $settings_array = apply_filters('FHEE__caffeinated_event_registration_options__template__settings', $settings_array); |
58 | 58 | |
59 | 59 | // echo |
60 | 60 | foreach ($settings_array as $item) { |
61 | - echo wp_kses($item, AllowedTags::getWithFormTags()); |
|
61 | + echo wp_kses($item, AllowedTags::getWithFormTags()); |
|
62 | 62 | } |
@@ -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,9 +20,9 @@ discard block |
||
20 | 20 | <p> |
21 | 21 | <label for="custom-message-template-name"> |
22 | 22 | <?php esc_html_e( |
23 | - 'Name for Template:', |
|
24 | - 'event_espresso' |
|
25 | - ); ?></label><br/> |
|
23 | + 'Name for Template:', |
|
24 | + 'event_espresso' |
|
25 | + ); ?></label><br/> |
|
26 | 26 | <input id="custom-message-template-name" type="text" class="regular-text" |
27 | 27 | name="custom_template_args[MTP_name]" value=""> |
28 | 28 | </p> |
@@ -38,9 +38,9 @@ discard block |
||
38 | 38 | value="<?php esc_html_e('Create Template', 'event_espresso'); ?>"> |
39 | 39 | <button type="button" class="button button-secondary cancel-create-template"> |
40 | 40 | <?php esc_html_e( |
41 | - 'Cancel', |
|
42 | - 'event_espresso' |
|
43 | - ); ?></button> |
|
41 | + 'Cancel', |
|
42 | + 'event_espresso' |
|
43 | + ); ?></button> |
|
44 | 44 | </div> |
45 | 45 | </form> |
46 | 46 | </div> |
@@ -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> |
@@ -17,9 +17,9 @@ |
||
17 | 17 | <td> |
18 | 18 | <span class="description"> |
19 | 19 | <?php esc_html_e( |
20 | - "The following settings affect the functioning of the Invoice gateway.", |
|
21 | - 'event_espresso' |
|
22 | - ); ?></span> |
|
20 | + "The following settings affect the functioning of the Invoice gateway.", |
|
21 | + 'event_espresso' |
|
22 | + ); ?></span> |
|
23 | 23 | </td> |
24 | 24 | </tr> |
25 | 25 | </table> |
26 | 26 | \ No newline at end of file |
@@ -17,9 +17,9 @@ |
||
17 | 17 | <td> |
18 | 18 | <span class="description"> |
19 | 19 | <?php esc_html_e( |
20 | - "The following settings affect the content and/or appearance of the downloadable PDF invoice.", |
|
21 | - 'event_espresso' |
|
22 | - ); ?></span> |
|
20 | + "The following settings affect the content and/or appearance of the downloadable PDF invoice.", |
|
21 | + 'event_espresso' |
|
22 | + ); ?></span> |
|
23 | 23 | </td> |
24 | 24 | </tr> |
25 | 25 | </table> |
26 | 26 | \ No newline at end of file |
@@ -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,125 +9,125 @@ |
||
9 | 9 | */ |
10 | 10 | class EE_PMT_Bank extends EE_PMT_Base |
11 | 11 | { |
12 | - /** |
|
13 | - * |
|
14 | - * @param EE_Payment_Method $pm_instance |
|
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 | + * |
|
14 | + * @param EE_Payment_Method $pm_instance |
|
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 $transaction |
|
33 | - * @return NULL |
|
34 | - */ |
|
35 | - public function generate_new_billing_form(EE_Transaction $transaction = null) |
|
36 | - { |
|
37 | - return null; |
|
38 | - } |
|
29 | + /** |
|
30 | + * Creates the billing form for this payment method type |
|
31 | + * |
|
32 | + * @param EE_Transaction $transaction |
|
33 | + * @return NULL |
|
34 | + */ |
|
35 | + public function generate_new_billing_form(EE_Transaction $transaction = null) |
|
36 | + { |
|
37 | + return null; |
|
38 | + } |
|
39 | 39 | |
40 | 40 | |
41 | - /** |
|
42 | - * Gets the form for all the settings related to this payment method type |
|
43 | - * |
|
44 | - * @return EE_Payment_Method_Form |
|
45 | - */ |
|
46 | - public function generate_new_settings_form() |
|
47 | - { |
|
48 | - return new EE_Payment_Method_Form( |
|
49 | - [ |
|
50 | - 'extra_meta_inputs' => [ |
|
51 | - 'page_title' => new EE_Text_Input( |
|
52 | - [ |
|
53 | - 'html_label_text' => sprintf( |
|
54 | - esc_html__("Title %s", "event_espresso"), |
|
55 | - $this->get_help_tab_link() |
|
56 | - ), |
|
57 | - 'default' => esc_html__("Electronic Funds Transfers", 'event_espresso'), |
|
58 | - ] |
|
59 | - ), |
|
60 | - 'payment_instructions' => new EE_Text_Area_Input( |
|
61 | - [ |
|
62 | - 'html_label_text' => sprintf( |
|
63 | - esc_html__("Payment Instructions %s", "event_espresso"), |
|
64 | - $this->get_help_tab_link() |
|
65 | - ), |
|
66 | - 'html_help_text' => esc_html__( |
|
67 | - '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.', |
|
68 | - 'event_espresso' |
|
69 | - ), |
|
70 | - 'default' => sprintf( |
|
71 | - esc_html__( |
|
72 | - '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.', |
|
73 | - 'event_espresso' |
|
74 | - ), |
|
75 | - "\n" |
|
76 | - ), |
|
77 | - 'validation_strategies' => [ |
|
78 | - new EE_Full_HTML_Validation_Strategy(), |
|
79 | - ], |
|
80 | - ] |
|
81 | - ), |
|
82 | - ], |
|
83 | - 'exclude' => ['PMD_debug_mode'], |
|
84 | - ] |
|
85 | - ); |
|
86 | - } |
|
41 | + /** |
|
42 | + * Gets the form for all the settings related to this payment method type |
|
43 | + * |
|
44 | + * @return EE_Payment_Method_Form |
|
45 | + */ |
|
46 | + public function generate_new_settings_form() |
|
47 | + { |
|
48 | + return new EE_Payment_Method_Form( |
|
49 | + [ |
|
50 | + 'extra_meta_inputs' => [ |
|
51 | + 'page_title' => new EE_Text_Input( |
|
52 | + [ |
|
53 | + 'html_label_text' => sprintf( |
|
54 | + esc_html__("Title %s", "event_espresso"), |
|
55 | + $this->get_help_tab_link() |
|
56 | + ), |
|
57 | + 'default' => esc_html__("Electronic Funds Transfers", 'event_espresso'), |
|
58 | + ] |
|
59 | + ), |
|
60 | + 'payment_instructions' => new EE_Text_Area_Input( |
|
61 | + [ |
|
62 | + 'html_label_text' => sprintf( |
|
63 | + esc_html__("Payment Instructions %s", "event_espresso"), |
|
64 | + $this->get_help_tab_link() |
|
65 | + ), |
|
66 | + 'html_help_text' => esc_html__( |
|
67 | + '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.', |
|
68 | + 'event_espresso' |
|
69 | + ), |
|
70 | + 'default' => sprintf( |
|
71 | + esc_html__( |
|
72 | + '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.', |
|
73 | + 'event_espresso' |
|
74 | + ), |
|
75 | + "\n" |
|
76 | + ), |
|
77 | + 'validation_strategies' => [ |
|
78 | + new EE_Full_HTML_Validation_Strategy(), |
|
79 | + ], |
|
80 | + ] |
|
81 | + ), |
|
82 | + ], |
|
83 | + 'exclude' => ['PMD_debug_mode'], |
|
84 | + ] |
|
85 | + ); |
|
86 | + } |
|
87 | 87 | |
88 | 88 | |
89 | - /** |
|
90 | - * Adds the help tab |
|
91 | - * |
|
92 | - * @return array |
|
93 | - * @see EE_PMT_Base::help_tabs_config() |
|
94 | - */ |
|
95 | - public function help_tabs_config() |
|
96 | - { |
|
97 | - return [ |
|
98 | - $this->get_help_tab_name() => [ |
|
99 | - 'title' => esc_html__('Bank Draft Settings', 'event_espresso'), |
|
100 | - 'filename' => 'payment_methods_overview_bank_draft', |
|
101 | - ], |
|
102 | - ]; |
|
103 | - } |
|
89 | + /** |
|
90 | + * Adds the help tab |
|
91 | + * |
|
92 | + * @return array |
|
93 | + * @see EE_PMT_Base::help_tabs_config() |
|
94 | + */ |
|
95 | + public function help_tabs_config() |
|
96 | + { |
|
97 | + return [ |
|
98 | + $this->get_help_tab_name() => [ |
|
99 | + 'title' => esc_html__('Bank Draft Settings', 'event_espresso'), |
|
100 | + 'filename' => 'payment_methods_overview_bank_draft', |
|
101 | + ], |
|
102 | + ]; |
|
103 | + } |
|
104 | 104 | |
105 | 105 | |
106 | - /** |
|
107 | - * For adding any html output ab ove the payment overview. |
|
108 | - * Many gateways won't want ot display anything, so this function just returns an empty string. |
|
109 | - * Other gateways may want to override this, such as offline gateways. |
|
110 | - * |
|
111 | - * @param EE_Payment $payment |
|
112 | - * @return string |
|
113 | - * @throws EE_Error |
|
114 | - * @throws ReflectionException |
|
115 | - */ |
|
116 | - public function payment_overview_content(EE_Payment $payment) |
|
117 | - { |
|
118 | - $extra_meta_for_payment_method = $this->_pm_instance->all_extra_meta_array(); |
|
119 | - $template_vars = array_merge( |
|
120 | - [ |
|
121 | - 'payment_method' => $this->_pm_instance, |
|
122 | - 'payment' => $payment, |
|
123 | - 'page_title' => '', |
|
124 | - 'payment_instructions' => '', |
|
125 | - ], |
|
126 | - $extra_meta_for_payment_method |
|
127 | - ); |
|
128 | - return EEH_Template::locate_template( |
|
129 | - 'payment_methods/Bank/templates/bank_payment_details_content.template.php', |
|
130 | - $template_vars |
|
131 | - ); |
|
132 | - } |
|
106 | + /** |
|
107 | + * For adding any html output ab ove the payment overview. |
|
108 | + * Many gateways won't want ot display anything, so this function just returns an empty string. |
|
109 | + * Other gateways may want to override this, such as offline gateways. |
|
110 | + * |
|
111 | + * @param EE_Payment $payment |
|
112 | + * @return string |
|
113 | + * @throws EE_Error |
|
114 | + * @throws ReflectionException |
|
115 | + */ |
|
116 | + public function payment_overview_content(EE_Payment $payment) |
|
117 | + { |
|
118 | + $extra_meta_for_payment_method = $this->_pm_instance->all_extra_meta_array(); |
|
119 | + $template_vars = array_merge( |
|
120 | + [ |
|
121 | + 'payment_method' => $this->_pm_instance, |
|
122 | + 'payment' => $payment, |
|
123 | + 'page_title' => '', |
|
124 | + 'payment_instructions' => '', |
|
125 | + ], |
|
126 | + $extra_meta_for_payment_method |
|
127 | + ); |
|
128 | + return EEH_Template::locate_template( |
|
129 | + 'payment_methods/Bank/templates/bank_payment_details_content.template.php', |
|
130 | + $template_vars |
|
131 | + ); |
|
132 | + } |
|
133 | 133 | } |
@@ -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 |