@@ -67,7 +67,7 @@ |
||
67 | 67 | <p> |
68 | 68 | <?php printf( |
69 | 69 | esc_html__('...or copy-and-paste the below information to %1$s %2$s %3$s', "event_espresso"), |
70 | - '<a href="mailto:' . EE_SUPPORT_EMAIL . '">', |
|
70 | + '<a href="mailto:'.EE_SUPPORT_EMAIL.'">', |
|
71 | 71 | EE_SUPPORT_EMAIL, |
72 | 72 | "</a>" |
73 | 73 | ); ?></p> |
@@ -3,19 +3,19 @@ discard block |
||
3 | 3 | ?> |
4 | 4 | <h1><?php esc_html_e("Data Migration Error", "event_espresso"); ?></h1> |
5 | 5 | <p class='error'><?php |
6 | - printf( |
|
7 | - esc_html__( |
|
8 | - "Your last Database Update had a %s fatal error and was halted%s.", |
|
9 | - "event_espresso" |
|
10 | - ), |
|
11 | - "<b>", |
|
12 | - "</b>" |
|
13 | - ); ?></p> |
|
6 | + printf( |
|
7 | + esc_html__( |
|
8 | + "Your last Database Update had a %s fatal error and was halted%s.", |
|
9 | + "event_espresso" |
|
10 | + ), |
|
11 | + "<b>", |
|
12 | + "</b>" |
|
13 | + ); ?></p> |
|
14 | 14 | <a id="show-hide-migration-warnings" class="display-the-hidden"><?php |
15 | - esc_html_e( |
|
16 | - "Show Errors", |
|
17 | - 'event_espresso' |
|
18 | - ); ?></a> |
|
15 | + esc_html_e( |
|
16 | + "Show Errors", |
|
17 | + 'event_espresso' |
|
18 | + ); ?></a> |
|
19 | 19 | <ul class="migration-warnings" style="display:none"> |
20 | 20 | <?php foreach ($most_recent_migration->get_errors() as $error) { ?> |
21 | 21 | <li style="overflow-y:auto;max-height:100px"><?php echo esc_html($error) ?></li> |
@@ -23,12 +23,12 @@ discard block |
||
23 | 23 | </ul> |
24 | 24 | <h2> |
25 | 25 | <?php esc_html_e( |
26 | - "Fill out the below form to automatically Send Event Espresso a Crash Report", |
|
27 | - "event_espresso" |
|
28 | - ); ?></h2> |
|
26 | + "Fill out the below form to automatically Send Event Espresso a Crash Report", |
|
27 | + "event_espresso" |
|
28 | + ); ?></h2> |
|
29 | 29 | <form action='<?php echo EE_Admin_Page::add_query_args_and_nonce( |
30 | - array('action' => 'send_migration_crash_report'), |
|
31 | - EE_MAINTENANCE_ADMIN_URL |
|
30 | + array('action' => 'send_migration_crash_report'), |
|
31 | + EE_MAINTENANCE_ADMIN_URL |
|
32 | 32 | ); ?>' method='post'> |
33 | 33 | <table class='widefat'> |
34 | 34 | <tr> |
@@ -39,46 +39,46 @@ discard block |
||
39 | 39 | <tr> |
40 | 40 | <td><label for='from_name'><?php esc_html_e("Your Name", "event_espresso"); ?></label></td> |
41 | 41 | <td><input name='from_name' id='from_name' type='text' style="width:200px" value='<?php |
42 | - printf( |
|
43 | - esc_html__("Admin of %s", "event_espresso"), |
|
44 | - get_bloginfo('name', 'display') |
|
45 | - ); ?>'></td> |
|
42 | + printf( |
|
43 | + esc_html__("Admin of %s", "event_espresso"), |
|
44 | + get_bloginfo('name', 'display') |
|
45 | + ); ?>'></td> |
|
46 | 46 | </tr> |
47 | 47 | <tr> |
48 | 48 | <td><label for='body'><?php esc_html_e("Comments", "event_espresso"); ?></label></td> |
49 | 49 | <td><textarea name="body" id="body" class='system_status_info'> |
50 | 50 | <?php esc_html_e( |
51 | - "Enter any comments about why you think the error may have occurred", |
|
52 | - "event_espresso" |
|
53 | - ); ?></textarea> |
|
51 | + "Enter any comments about why you think the error may have occurred", |
|
52 | + "event_espresso" |
|
53 | + ); ?></textarea> |
|
54 | 54 | <p class='description'> |
55 | 55 | <?php esc_html_e( |
56 | - "Note: the System Information report will also be added to the email's body, which contains information about your Event Espresso, Wordpress, and PHP settings which can be helpful in debugging the problem.", |
|
57 | - "event_espresso" |
|
58 | - ); ?></p></td> |
|
56 | + "Note: the System Information report will also be added to the email's body, which contains information about your Event Espresso, Wordpress, and PHP settings which can be helpful in debugging the problem.", |
|
57 | + "event_espresso" |
|
58 | + ); ?></p></td> |
|
59 | 59 | </tr> |
60 | 60 | <tr> |
61 | 61 | <td colspan="2"><input type="submit" value="<?php |
62 | - esc_html_e( |
|
63 | - "Mail Crash Report to Event Espresso", |
|
64 | - "event_espresso" |
|
65 | - ); ?>"/></td> |
|
62 | + esc_html_e( |
|
63 | + "Mail Crash Report to Event Espresso", |
|
64 | + "event_espresso" |
|
65 | + ); ?>"/></td> |
|
66 | 66 | </tr> |
67 | 67 | </table> |
68 | 68 | </form> |
69 | 69 | <br> |
70 | 70 | <p> |
71 | 71 | <?php printf( |
72 | - esc_html__('...or copy-and-paste the below information to %1$s %2$s %3$s', "event_espresso"), |
|
73 | - '<a href="mailto:' . EE_SUPPORT_EMAIL . '">', |
|
74 | - EE_SUPPORT_EMAIL, |
|
75 | - "</a>" |
|
76 | - ); ?></p> |
|
72 | + esc_html__('...or copy-and-paste the below information to %1$s %2$s %3$s', "event_espresso"), |
|
73 | + '<a href="mailto:' . EE_SUPPORT_EMAIL . '">', |
|
74 | + EE_SUPPORT_EMAIL, |
|
75 | + "</a>" |
|
76 | + ); ?></p> |
|
77 | 77 | <textarea class="system_status_info"><?php print_r(EEM_System_Status::instance()->get_system_stati()) ?></textarea> |
78 | 78 | <p><?php printf(esc_html__('%1$sNext Step%2$s', 'event_espresso'), "<a href='$next_url'>", "</a>"); ?></p> |
79 | 79 | <p> |
80 | 80 | <?php printf( |
81 | - esc_html__('...or %1$sDON\'T send crash report%2$s.', 'event_espresso'), |
|
82 | - "<a href='$next_url'>", |
|
83 | - "</a>" |
|
84 | - ); ?></p> |
|
81 | + esc_html__('...or %1$sDON\'T send crash report%2$s.', 'event_espresso'), |
|
82 | + "<a href='$next_url'>", |
|
83 | + "</a>" |
|
84 | + ); ?></p> |
@@ -25,38 +25,38 @@ discard block |
||
25 | 25 | <tr> |
26 | 26 | <td> |
27 | 27 | <?php |
28 | - echo apply_filters( |
|
29 | - 'FHEE__ee_migration_page__option_1_main', |
|
30 | - esc_html__( |
|
31 | - 'Before updating your database, you should first create a database backup', |
|
32 | - "event_espresso" |
|
33 | - ), |
|
34 | - $current_db_state, |
|
35 | - $next_db_state |
|
36 | - ); |
|
37 | - ?> |
|
28 | + echo apply_filters( |
|
29 | + 'FHEE__ee_migration_page__option_1_main', |
|
30 | + esc_html__( |
|
31 | + 'Before updating your database, you should first create a database backup', |
|
32 | + "event_espresso" |
|
33 | + ), |
|
34 | + $current_db_state, |
|
35 | + $next_db_state |
|
36 | + ); |
|
37 | + ?> |
|
38 | 38 | <a id="display-migration-details" |
39 | 39 | class="display-the-hidden lt-grey-text smaller-text hide-if-no-js" |
40 | 40 | rel="migration-details"> |
41 | 41 | <?php esc_html_e( |
42 | - 'How Do I Make a Database Backup?', |
|
43 | - "event_espresso" |
|
44 | - ); ?> |
|
42 | + 'How Do I Make a Database Backup?', |
|
43 | + "event_espresso" |
|
44 | + ); ?> |
|
45 | 45 | +</a> |
46 | 46 | </td> |
47 | 47 | <td> |
48 | 48 | <a id="db-backed-up" |
49 | 49 | class="toggle-migration-monitor button-primary"> |
50 | 50 | <?php echo apply_filters( |
51 | - 'FHEE__ee_migration_page__option_1_button_text', |
|
52 | - sprintf( |
|
53 | - esc_html__("My Database Is Backed Up, Continue", "event_espresso"), |
|
54 | - $current_db_state, |
|
55 | - $next_db_state |
|
56 | - ), |
|
57 | - $current_db_state, |
|
58 | - $next_db_state |
|
59 | - ); ?></a> |
|
51 | + 'FHEE__ee_migration_page__option_1_button_text', |
|
52 | + sprintf( |
|
53 | + esc_html__("My Database Is Backed Up, Continue", "event_espresso"), |
|
54 | + $current_db_state, |
|
55 | + $next_db_state |
|
56 | + ), |
|
57 | + $current_db_state, |
|
58 | + $next_db_state |
|
59 | + ); ?></a> |
|
60 | 60 | </td> |
61 | 61 | </tr> |
62 | 62 | <tr> |
@@ -64,16 +64,16 @@ discard block |
||
64 | 64 | <div id="migration-details-dv" style="display: none; padding: 1em;"> |
65 | 65 | <p> |
66 | 66 | <?php |
67 | - printf( |
|
68 | - esc_html__( |
|
69 | - '%1$sClick Here to Learn How To Backup your Database Yourself%2$s. Or have one of our dedicated support technicians help you by %3$spurchasing a Priority Support Token.%2$s', |
|
70 | - "event_espresso" |
|
71 | - ), |
|
72 | - '<a target="_blank" href="http://eventespresso.com/wiki/how-to-back-up-your-site/">', |
|
73 | - "</a>", |
|
74 | - "<a target=\"_blank\" href='http://eventespresso.com/product/priority-support-tokens/'>" |
|
75 | - ); |
|
76 | - ?> |
|
67 | + printf( |
|
68 | + esc_html__( |
|
69 | + '%1$sClick Here to Learn How To Backup your Database Yourself%2$s. Or have one of our dedicated support technicians help you by %3$spurchasing a Priority Support Token.%2$s', |
|
70 | + "event_espresso" |
|
71 | + ), |
|
72 | + '<a target="_blank" href="http://eventespresso.com/wiki/how-to-back-up-your-site/">', |
|
73 | + "</a>", |
|
74 | + "<a target=\"_blank\" href='http://eventespresso.com/product/priority-support-tokens/'>" |
|
75 | + ); |
|
76 | + ?> |
|
77 | 77 | </p> |
78 | 78 | <?php do_action('AHEE__ee_migration_page__option_1_extra_details'); ?> |
79 | 79 | </div> |
@@ -84,12 +84,12 @@ discard block |
||
84 | 84 | </div> |
85 | 85 | <p> |
86 | 86 | <?php esc_html_e( |
87 | - 'Don\'t want to keep your old Event Espresso data? Alternatively, you can delete it all and start fresh.', |
|
88 | - 'event_espresso' |
|
89 | - ); ?> <a |
|
87 | + 'Don\'t want to keep your old Event Espresso data? Alternatively, you can delete it all and start fresh.', |
|
88 | + 'event_espresso' |
|
89 | + ); ?> <a |
|
90 | 90 | href="<?php echo $data_reset_page; ?>"><?php esc_html_e( |
91 | - 'Visit the Maintenance Page and Reset Your Event Espresso Data', |
|
92 | - 'event_espresso' |
|
93 | - ); ?></a></p> |
|
91 | + 'Visit the Maintenance Page and Reset Your Event Espresso Data', |
|
92 | + 'event_espresso' |
|
93 | + ); ?></a></p> |
|
94 | 94 | <?php do_action('AHEE__ee_migration_page__after_migration_options_table'); ?> |
95 | 95 | </div> |
96 | 96 | \ No newline at end of file |
@@ -27,9 +27,9 @@ discard block |
||
27 | 27 | <?php esc_html_e("Migration Options", "event_espresso"); ?> |
28 | 28 | <span class="tiny-text lt-grey-text"> |
29 | 29 | <?php esc_html_e( |
30 | - ' to migrate or not to migrate?', |
|
31 | - "event_espresso" |
|
32 | - ); ?></span> |
|
30 | + ' to migrate or not to migrate?', |
|
31 | + "event_espresso" |
|
32 | + ); ?></span> |
|
33 | 33 | </h2> |
34 | 34 | <div class="ee-table-wrap"> |
35 | 35 | <table> |
@@ -38,26 +38,26 @@ discard block |
||
38 | 38 | <td><h3><?php esc_html_e('1', 'event_espresso'); ?></h3></td> |
39 | 39 | <td> |
40 | 40 | <?php |
41 | - echo apply_filters( |
|
42 | - 'FHEE__ee_migration_page__option_1_main', |
|
43 | - sprintf( |
|
44 | - esc_html__( |
|
45 | - '%1$sYes. I have backed up my database%2$s, %3$sunderstand the risks involved%4$s, and am ready to migrate my existing %5$s data to %6$s.', |
|
46 | - "event_espresso" |
|
47 | - ), |
|
48 | - '<strong>', |
|
49 | - '</strong>', |
|
50 | - '<a id="migration-risks" class="" title="' |
|
51 | - . esc_attr__('click for more details', "event_espresso") |
|
52 | - . '">', |
|
53 | - '</a>', |
|
54 | - $current_db_state, |
|
55 | - $next_db_state |
|
56 | - ), |
|
57 | - $current_db_state, |
|
58 | - $next_db_state |
|
59 | - ); |
|
60 | - ?> |
|
41 | + echo apply_filters( |
|
42 | + 'FHEE__ee_migration_page__option_1_main', |
|
43 | + sprintf( |
|
44 | + esc_html__( |
|
45 | + '%1$sYes. I have backed up my database%2$s, %3$sunderstand the risks involved%4$s, and am ready to migrate my existing %5$s data to %6$s.', |
|
46 | + "event_espresso" |
|
47 | + ), |
|
48 | + '<strong>', |
|
49 | + '</strong>', |
|
50 | + '<a id="migration-risks" class="" title="' |
|
51 | + . esc_attr__('click for more details', "event_espresso") |
|
52 | + . '">', |
|
53 | + '</a>', |
|
54 | + $current_db_state, |
|
55 | + $next_db_state |
|
56 | + ), |
|
57 | + $current_db_state, |
|
58 | + $next_db_state |
|
59 | + ); |
|
60 | + ?> |
|
61 | 61 | <a id="display-migration-details" |
62 | 62 | class="display-the-hidden lt-grey-text smaller-text hide-if-no-js" |
63 | 63 | rel="migration-details"><?php esc_html_e('click for more details', "event_espresso"); ?> |
@@ -67,26 +67,26 @@ discard block |
||
67 | 67 | rel="migration-details" |
68 | 68 | style="display:none;"> |
69 | 69 | <?php echo sprintf( |
70 | - esc_html__( |
|
71 | - 'hide%1$sdetails%1$s-', |
|
72 | - 'event_espresso' |
|
73 | - ), |
|
74 | - ' ' |
|
75 | - ); ?></a> |
|
70 | + esc_html__( |
|
71 | + 'hide%1$sdetails%1$s-', |
|
72 | + 'event_espresso' |
|
73 | + ), |
|
74 | + ' ' |
|
75 | + ); ?></a> |
|
76 | 76 | </td> |
77 | 77 | <td> |
78 | 78 | <a id="db-backed-up" |
79 | 79 | class="toggle-migration-monitor button-primary"> |
80 | 80 | <?php echo apply_filters( |
81 | - 'FHEE__ee_migration_page__option_1_button_text', |
|
82 | - sprintf( |
|
83 | - esc_html__("Migrate My %s Data to %s", "event_espresso"), |
|
84 | - $current_db_state, |
|
85 | - $next_db_state |
|
86 | - ), |
|
87 | - $current_db_state, |
|
88 | - $next_db_state |
|
89 | - ); ?></a> |
|
81 | + 'FHEE__ee_migration_page__option_1_button_text', |
|
82 | + sprintf( |
|
83 | + esc_html__("Migrate My %s Data to %s", "event_espresso"), |
|
84 | + $current_db_state, |
|
85 | + $next_db_state |
|
86 | + ), |
|
87 | + $current_db_state, |
|
88 | + $next_db_state |
|
89 | + ); ?></a> |
|
90 | 90 | </td> |
91 | 91 | </tr> |
92 | 92 | <tr> |
@@ -94,34 +94,34 @@ discard block |
||
94 | 94 | <div id="migration-details-dv" style="display: none; padding: 1em;"> |
95 | 95 | <span class="reminder-spn"> |
96 | 96 | <?php printf( |
97 | - esc_html__( |
|
98 | - "%s Important: %s Before migrating, please back up your database and files.", |
|
99 | - "event_espresso" |
|
100 | - ), |
|
101 | - "<b>", |
|
102 | - "</b>" |
|
103 | - ); ?></span> |
|
97 | + esc_html__( |
|
98 | + "%s Important: %s Before migrating, please back up your database and files.", |
|
99 | + "event_espresso" |
|
100 | + ), |
|
101 | + "<b>", |
|
102 | + "</b>" |
|
103 | + ); ?></span> |
|
104 | 104 | <p> |
105 | 105 | <?php |
106 | - printf( |
|
107 | - esc_html__( |
|
108 | - '%1$sNot sure how to backup your existing data?%2$s Here is %3$sWordPress\'s explanation%7$s, and here\'s %6$sour explanation%7$s.%8$sYou can also search the WordPress plugin database for %4$s database backup plugins %7$s,%8$sor have one of our dedicated support technicians help you by purchasing a %5$sPriority Support Token%7$s.', |
|
109 | - "event_espresso" |
|
110 | - ), |
|
111 | - '<b>', |
|
112 | - '</b>', |
|
113 | - "<a href='http://codex.wordpress.org/Backing_Up_Your_Database'>", |
|
114 | - "<a href='" |
|
115 | - . admin_url( |
|
116 | - 'plugin-install.php?tab=search&type=term&s=database+backup&plugin-search-input=Search+Plugins' |
|
117 | - ) |
|
118 | - . "'>", |
|
119 | - "<a href='http://eventespresso.com/product/priority-support-tokens/'>", |
|
120 | - '<a href="http://eventespresso.com/wiki/how-to-back-up-your-site/">', |
|
121 | - "</a>", |
|
122 | - '<br/>' |
|
123 | - ); |
|
124 | - ?> |
|
106 | + printf( |
|
107 | + esc_html__( |
|
108 | + '%1$sNot sure how to backup your existing data?%2$s Here is %3$sWordPress\'s explanation%7$s, and here\'s %6$sour explanation%7$s.%8$sYou can also search the WordPress plugin database for %4$s database backup plugins %7$s,%8$sor have one of our dedicated support technicians help you by purchasing a %5$sPriority Support Token%7$s.', |
|
109 | + "event_espresso" |
|
110 | + ), |
|
111 | + '<b>', |
|
112 | + '</b>', |
|
113 | + "<a href='http://codex.wordpress.org/Backing_Up_Your_Database'>", |
|
114 | + "<a href='" |
|
115 | + . admin_url( |
|
116 | + 'plugin-install.php?tab=search&type=term&s=database+backup&plugin-search-input=Search+Plugins' |
|
117 | + ) |
|
118 | + . "'>", |
|
119 | + "<a href='http://eventespresso.com/product/priority-support-tokens/'>", |
|
120 | + '<a href="http://eventespresso.com/wiki/how-to-back-up-your-site/">', |
|
121 | + "</a>", |
|
122 | + '<br/>' |
|
123 | + ); |
|
124 | + ?> |
|
125 | 125 | </p> |
126 | 126 | <?php do_action('AHEE__ee_migration_page__option_1_extra_details'); ?> |
127 | 127 | </div> |
@@ -131,25 +131,25 @@ discard block |
||
131 | 131 | <td><h3><?php esc_html_e('2', 'event_espresso'); ?></h3></td> |
132 | 132 | <td> |
133 | 133 | <?php echo apply_filters( |
134 | - 'FHEE__ee_migration_page__option_2_main', |
|
135 | - sprintf( |
|
136 | - esc_html__( |
|
137 | - 'I do NOT want to migrate my %1$s data to %2$s at this time and just want to use %3$s without migrating data.', |
|
138 | - "event_espresso" |
|
139 | - ), |
|
140 | - $current_db_state, |
|
141 | - $next_db_state, |
|
142 | - $ultimate_db_state |
|
143 | - ), |
|
144 | - $current_db_state, |
|
145 | - $next_db_state, |
|
146 | - $ultimate_db_state |
|
147 | - ); ?><br/> |
|
134 | + 'FHEE__ee_migration_page__option_2_main', |
|
135 | + sprintf( |
|
136 | + esc_html__( |
|
137 | + 'I do NOT want to migrate my %1$s data to %2$s at this time and just want to use %3$s without migrating data.', |
|
138 | + "event_espresso" |
|
139 | + ), |
|
140 | + $current_db_state, |
|
141 | + $next_db_state, |
|
142 | + $ultimate_db_state |
|
143 | + ), |
|
144 | + $current_db_state, |
|
145 | + $next_db_state, |
|
146 | + $ultimate_db_state |
|
147 | + ); ?><br/> |
|
148 | 148 | <span class="reminder-spn"> |
149 | 149 | <?php esc_html_e( |
150 | - 'Please Note: In order to avoid errors, any existing Event Espresso data (events, ticket, registrations, etc) in your db will be erased! Regular WP data will NOT be affected.', |
|
151 | - 'event_espresso' |
|
152 | - ); ?></span> |
|
150 | + 'Please Note: In order to avoid errors, any existing Event Espresso data (events, ticket, registrations, etc) in your db will be erased! Regular WP data will NOT be affected.', |
|
151 | + 'event_espresso' |
|
152 | + ); ?></span> |
|
153 | 153 | <a id="display-no-migration-details" |
154 | 154 | class="display-the-hidden lt-grey-text smaller-text hide-if-no-js" |
155 | 155 | rel="no-migration-details"><?php esc_html_e('click for more details', "event_espresso"); ?> |
@@ -159,24 +159,24 @@ discard block |
||
159 | 159 | rel="no-migration-details" |
160 | 160 | style="display:none;"> |
161 | 161 | <?php echo sprintf( |
162 | - esc_html__( |
|
163 | - 'hide%1$sdetails%1$s-', |
|
164 | - 'event_espresso' |
|
165 | - ), |
|
166 | - ' ' |
|
167 | - ); ?></a> |
|
162 | + esc_html__( |
|
163 | + 'hide%1$sdetails%1$s-', |
|
164 | + 'event_espresso' |
|
165 | + ), |
|
166 | + ' ' |
|
167 | + ); ?></a> |
|
168 | 168 | </td> |
169 | 169 | <td> |
170 | 170 | <a id="do-not-migrate" class="do-not-migrate button-primary" |
171 | 171 | href="<?php echo $reset_db_page_link; ?>"> |
172 | 172 | <?php echo apply_filters( |
173 | - 'FHEE__ee_migration_page__option_2_button_text', |
|
174 | - sprintf( |
|
175 | - esc_html__("Just Start %s and Delete Existing Data", "event_espresso"), |
|
176 | - $ultimate_db_state |
|
177 | - ), |
|
178 | - $ultimate_db_state |
|
179 | - ); ?></a> |
|
173 | + 'FHEE__ee_migration_page__option_2_button_text', |
|
174 | + sprintf( |
|
175 | + esc_html__("Just Start %s and Delete Existing Data", "event_espresso"), |
|
176 | + $ultimate_db_state |
|
177 | + ), |
|
178 | + $ultimate_db_state |
|
179 | + ); ?></a> |
|
180 | 180 | </td> |
181 | 181 | </tr> |
182 | 182 | <tr> |
@@ -184,16 +184,16 @@ discard block |
||
184 | 184 | <div id="no-migration-details-dv" style="display: none; padding: 1em;"> |
185 | 185 | <p> |
186 | 186 | <?php echo apply_filters( |
187 | - 'FHEE__ee_migration_page__option_2_details', |
|
188 | - sprintf( |
|
189 | - esc_html__( |
|
190 | - "If your existing Event and Registration Data is no longer relevant nor required, you can just start up %s without performing a data migration.", |
|
191 | - "event_espresso" |
|
192 | - ), |
|
193 | - $ultimate_db_state |
|
194 | - ), |
|
195 | - $ultimate_db_state |
|
196 | - ); ?> |
|
187 | + 'FHEE__ee_migration_page__option_2_details', |
|
188 | + sprintf( |
|
189 | + esc_html__( |
|
190 | + "If your existing Event and Registration Data is no longer relevant nor required, you can just start up %s without performing a data migration.", |
|
191 | + "event_espresso" |
|
192 | + ), |
|
193 | + $ultimate_db_state |
|
194 | + ), |
|
195 | + $ultimate_db_state |
|
196 | + ); ?> |
|
197 | 197 | </p> |
198 | 198 | </div> |
199 | 199 | </td> |
@@ -12,19 +12,19 @@ discard block |
||
12 | 12 | */ |
13 | 13 | function ee_recurse_into_array_for_display($data) |
14 | 14 | { |
15 | - if (is_object($data) |
|
16 | - || $data instanceof __PHP_Incomplete_Class |
|
17 | - ) {// is_object($incomplete_class) actually returns false, hence why we check for it |
|
18 | - $data = json_decode(json_encode($data), true); |
|
19 | - } |
|
20 | - if (is_array($data)) { |
|
21 | - if (EEH_Array::is_associative_array($data)) { |
|
22 | - ?> |
|
15 | + if (is_object($data) |
|
16 | + || $data instanceof __PHP_Incomplete_Class |
|
17 | + ) {// is_object($incomplete_class) actually returns false, hence why we check for it |
|
18 | + $data = json_decode(json_encode($data), true); |
|
19 | + } |
|
20 | + if (is_array($data)) { |
|
21 | + if (EEH_Array::is_associative_array($data)) { |
|
22 | + ?> |
|
23 | 23 | <table class="widefat"> |
24 | 24 | <tbody> |
25 | 25 | <?php |
26 | - foreach ($data as $data_key => $data_values) { |
|
27 | - ?> |
|
26 | + foreach ($data as $data_key => $data_values) { |
|
27 | + ?> |
|
28 | 28 | <tr> |
29 | 29 | <td> |
30 | 30 | <?php echo $data_key; ?> |
@@ -34,26 +34,26 @@ discard block |
||
34 | 34 | </td> |
35 | 35 | </tr> |
36 | 36 | <?php |
37 | - } ?> |
|
37 | + } ?> |
|
38 | 38 | </tbody> |
39 | 39 | </table> |
40 | 40 | <?php |
41 | - } else { |
|
42 | - ?> |
|
41 | + } else { |
|
42 | + ?> |
|
43 | 43 | <ul> |
44 | 44 | <?php |
45 | - foreach ($data as $datum) { |
|
46 | - echo "<li>"; |
|
47 | - ee_recurse_into_array_for_display($datum); |
|
48 | - echo "</li>"; |
|
49 | - } ?> |
|
45 | + foreach ($data as $datum) { |
|
46 | + echo "<li>"; |
|
47 | + ee_recurse_into_array_for_display($datum); |
|
48 | + echo "</li>"; |
|
49 | + } ?> |
|
50 | 50 | </ul> |
51 | 51 | <?php |
52 | - } |
|
53 | - } else { |
|
54 | - // simple value |
|
55 | - echo $data; |
|
56 | - } |
|
52 | + } |
|
53 | + } else { |
|
54 | + // simple value |
|
55 | + echo $data; |
|
56 | + } |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | ?> |
@@ -61,19 +61,19 @@ discard block |
||
61 | 61 | <?php _e("System Information", "event_espresso"); ?> <a href="<?php echo $download_system_status_url; ?>" |
62 | 62 | class="button-secondary"> |
63 | 63 | <?php esc_html_e( |
64 | - 'Download to File', |
|
65 | - 'event_espresso' |
|
66 | - ); ?></a> |
|
64 | + 'Download to File', |
|
65 | + 'event_espresso' |
|
66 | + ); ?></a> |
|
67 | 67 | </h1> |
68 | 68 | <div class="padding"> |
69 | 69 | |
70 | 70 | <table class="widefat"> |
71 | 71 | <?php |
72 | - foreach ($system_stati as $status_category_slug => $data) { |
|
73 | - if (is_object($data)) { |
|
74 | - $data = json_decode(json_encode($data), true); |
|
75 | - } |
|
76 | - ?> |
|
72 | + foreach ($system_stati as $status_category_slug => $data) { |
|
73 | + if (is_object($data)) { |
|
74 | + $data = json_decode(json_encode($data), true); |
|
75 | + } |
|
76 | + ?> |
|
77 | 77 | <thead> |
78 | 78 | <tr> |
79 | 79 | <th colspan=2> |
@@ -83,9 +83,9 @@ discard block |
||
83 | 83 | </thead> |
84 | 84 | <tbody> |
85 | 85 | <?php |
86 | - if (is_array($data)) { |
|
87 | - foreach ($data as $data_key => $data_values) { |
|
88 | - ?> |
|
86 | + if (is_array($data)) { |
|
87 | + foreach ($data as $data_key => $data_values) { |
|
88 | + ?> |
|
89 | 89 | <tr> |
90 | 90 | <td> |
91 | 91 | <?php echo $data_key ?> |
@@ -95,11 +95,11 @@ discard block |
||
95 | 95 | </td> |
96 | 96 | </tr> |
97 | 97 | <?php |
98 | - } ?> |
|
98 | + } ?> |
|
99 | 99 | </tbody> |
100 | 100 | <?php |
101 | - } else { |
|
102 | - ?> |
|
101 | + } else { |
|
102 | + ?> |
|
103 | 103 | <tbody> |
104 | 104 | <tr> |
105 | 105 | <td colspan=2> |
@@ -108,9 +108,9 @@ discard block |
||
108 | 108 | </tr> |
109 | 109 | </tbody> |
110 | 110 | <?php |
111 | - } |
|
112 | - } |
|
113 | - ?> |
|
111 | + } |
|
112 | + } |
|
113 | + ?> |
|
114 | 114 | </table> |
115 | 115 | |
116 | 116 | </div> |
117 | 117 | \ No newline at end of file |
@@ -15,80 +15,80 @@ |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | |
18 | - protected function _set_tips_array() |
|
19 | - { |
|
20 | - $this->_qtipsa = array( |
|
21 | - 0 => array( |
|
22 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_approved, |
|
23 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_approved, |
|
24 | - 'content' => $this->_payment_status_legend(EEM_Payment::status_id_approved), |
|
25 | - 'options' => array( |
|
26 | - 'position' => array( |
|
27 | - 'target' => 'mouse', |
|
28 | - ), |
|
29 | - ), |
|
30 | - ), |
|
31 | - 1 => array( |
|
32 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_pending, |
|
33 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_pending, |
|
34 | - 'content' => $this->_payment_status_legend(EEM_Payment::status_id_pending), |
|
35 | - 'options' => array( |
|
36 | - 'position' => array( |
|
37 | - 'target' => 'mouse', |
|
38 | - ), |
|
39 | - ), |
|
40 | - ), |
|
41 | - 2 => array( |
|
42 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_cancelled, |
|
43 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_cancelled, |
|
44 | - 'content' => $this->_payment_status_legend(EEM_Payment::status_id_cancelled), |
|
45 | - 'options' => array( |
|
46 | - 'position' => array( |
|
47 | - 'target' => 'mouse', |
|
48 | - ), |
|
49 | - ), |
|
50 | - ), |
|
51 | - 3 => array( |
|
52 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_declined, |
|
53 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_declined, |
|
54 | - 'content' => $this->_payment_status_legend(EEM_Payment::status_id_declined), |
|
55 | - 'options' => array( |
|
56 | - 'position' => array( |
|
57 | - 'target' => 'mouse', |
|
58 | - ), |
|
59 | - ), |
|
60 | - ), |
|
61 | - 4 => array( |
|
62 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_failed, |
|
63 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_failed, |
|
64 | - 'content' => $this->_payment_status_legend(EEM_Payment::status_id_failed), |
|
65 | - 'options' => array( |
|
66 | - 'position' => array( |
|
67 | - 'target' => 'mouse', |
|
68 | - ), |
|
69 | - ), |
|
70 | - ), |
|
71 | - ); |
|
72 | - } |
|
18 | + protected function _set_tips_array() |
|
19 | + { |
|
20 | + $this->_qtipsa = array( |
|
21 | + 0 => array( |
|
22 | + 'content_id' => 'payment-status-' . EEM_Payment::status_id_approved, |
|
23 | + 'target' => '.pymt-status-' . EEM_Payment::status_id_approved, |
|
24 | + 'content' => $this->_payment_status_legend(EEM_Payment::status_id_approved), |
|
25 | + 'options' => array( |
|
26 | + 'position' => array( |
|
27 | + 'target' => 'mouse', |
|
28 | + ), |
|
29 | + ), |
|
30 | + ), |
|
31 | + 1 => array( |
|
32 | + 'content_id' => 'payment-status-' . EEM_Payment::status_id_pending, |
|
33 | + 'target' => '.pymt-status-' . EEM_Payment::status_id_pending, |
|
34 | + 'content' => $this->_payment_status_legend(EEM_Payment::status_id_pending), |
|
35 | + 'options' => array( |
|
36 | + 'position' => array( |
|
37 | + 'target' => 'mouse', |
|
38 | + ), |
|
39 | + ), |
|
40 | + ), |
|
41 | + 2 => array( |
|
42 | + 'content_id' => 'payment-status-' . EEM_Payment::status_id_cancelled, |
|
43 | + 'target' => '.pymt-status-' . EEM_Payment::status_id_cancelled, |
|
44 | + 'content' => $this->_payment_status_legend(EEM_Payment::status_id_cancelled), |
|
45 | + 'options' => array( |
|
46 | + 'position' => array( |
|
47 | + 'target' => 'mouse', |
|
48 | + ), |
|
49 | + ), |
|
50 | + ), |
|
51 | + 3 => array( |
|
52 | + 'content_id' => 'payment-status-' . EEM_Payment::status_id_declined, |
|
53 | + 'target' => '.pymt-status-' . EEM_Payment::status_id_declined, |
|
54 | + 'content' => $this->_payment_status_legend(EEM_Payment::status_id_declined), |
|
55 | + 'options' => array( |
|
56 | + 'position' => array( |
|
57 | + 'target' => 'mouse', |
|
58 | + ), |
|
59 | + ), |
|
60 | + ), |
|
61 | + 4 => array( |
|
62 | + 'content_id' => 'payment-status-' . EEM_Payment::status_id_failed, |
|
63 | + 'target' => '.pymt-status-' . EEM_Payment::status_id_failed, |
|
64 | + 'content' => $this->_payment_status_legend(EEM_Payment::status_id_failed), |
|
65 | + 'options' => array( |
|
66 | + 'position' => array( |
|
67 | + 'target' => 'mouse', |
|
68 | + ), |
|
69 | + ), |
|
70 | + ), |
|
71 | + ); |
|
72 | + } |
|
73 | 73 | |
74 | 74 | |
75 | - /** |
|
76 | - * output the relevant ee-status-legend with the designated status highlighted. |
|
77 | - * |
|
78 | - * @param EEM_Payment constant $status What status is set (by class) |
|
79 | - * @return string The status legend with the related status highlighted |
|
80 | - */ |
|
81 | - private function _payment_status_legend($status) |
|
82 | - { |
|
75 | + /** |
|
76 | + * output the relevant ee-status-legend with the designated status highlighted. |
|
77 | + * |
|
78 | + * @param EEM_Payment constant $status What status is set (by class) |
|
79 | + * @return string The status legend with the related status highlighted |
|
80 | + */ |
|
81 | + private function _payment_status_legend($status) |
|
82 | + { |
|
83 | 83 | |
84 | - $status_array = array( |
|
85 | - 'approved' => EEM_Payment::status_id_approved, |
|
86 | - 'pending' => EEM_Payment::status_id_pending, |
|
87 | - 'cancelled' => EEM_Payment::status_id_cancelled, |
|
88 | - 'declined' => EEM_Payment::status_id_declined, |
|
89 | - 'failed' => EEM_Payment::status_id_failed, |
|
90 | - ); |
|
84 | + $status_array = array( |
|
85 | + 'approved' => EEM_Payment::status_id_approved, |
|
86 | + 'pending' => EEM_Payment::status_id_pending, |
|
87 | + 'cancelled' => EEM_Payment::status_id_cancelled, |
|
88 | + 'declined' => EEM_Payment::status_id_declined, |
|
89 | + 'failed' => EEM_Payment::status_id_failed, |
|
90 | + ); |
|
91 | 91 | |
92 | - return EEH_Template::status_legend($status_array, $status); |
|
93 | - } |
|
92 | + return EEH_Template::status_legend($status_array, $status); |
|
93 | + } |
|
94 | 94 | } |
@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | { |
20 | 20 | $this->_qtipsa = array( |
21 | 21 | 0 => array( |
22 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_approved, |
|
23 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_approved, |
|
22 | + 'content_id' => 'payment-status-'.EEM_Payment::status_id_approved, |
|
23 | + 'target' => '.pymt-status-'.EEM_Payment::status_id_approved, |
|
24 | 24 | 'content' => $this->_payment_status_legend(EEM_Payment::status_id_approved), |
25 | 25 | 'options' => array( |
26 | 26 | 'position' => array( |
@@ -29,8 +29,8 @@ discard block |
||
29 | 29 | ), |
30 | 30 | ), |
31 | 31 | 1 => array( |
32 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_pending, |
|
33 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_pending, |
|
32 | + 'content_id' => 'payment-status-'.EEM_Payment::status_id_pending, |
|
33 | + 'target' => '.pymt-status-'.EEM_Payment::status_id_pending, |
|
34 | 34 | 'content' => $this->_payment_status_legend(EEM_Payment::status_id_pending), |
35 | 35 | 'options' => array( |
36 | 36 | 'position' => array( |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | ), |
40 | 40 | ), |
41 | 41 | 2 => array( |
42 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_cancelled, |
|
43 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_cancelled, |
|
42 | + 'content_id' => 'payment-status-'.EEM_Payment::status_id_cancelled, |
|
43 | + 'target' => '.pymt-status-'.EEM_Payment::status_id_cancelled, |
|
44 | 44 | 'content' => $this->_payment_status_legend(EEM_Payment::status_id_cancelled), |
45 | 45 | 'options' => array( |
46 | 46 | 'position' => array( |
@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | ), |
50 | 50 | ), |
51 | 51 | 3 => array( |
52 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_declined, |
|
53 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_declined, |
|
52 | + 'content_id' => 'payment-status-'.EEM_Payment::status_id_declined, |
|
53 | + 'target' => '.pymt-status-'.EEM_Payment::status_id_declined, |
|
54 | 54 | 'content' => $this->_payment_status_legend(EEM_Payment::status_id_declined), |
55 | 55 | 'options' => array( |
56 | 56 | 'position' => array( |
@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | ), |
60 | 60 | ), |
61 | 61 | 4 => array( |
62 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_failed, |
|
63 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_failed, |
|
62 | + 'content_id' => 'payment-status-'.EEM_Payment::status_id_failed, |
|
63 | + 'target' => '.pymt-status-'.EEM_Payment::status_id_failed, |
|
64 | 64 | 'content' => $this->_payment_status_legend(EEM_Payment::status_id_failed), |
65 | 65 | 'options' => array( |
66 | 66 | 'position' => array( |
@@ -15,69 +15,69 @@ |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | |
18 | - protected function _set_tips_array() |
|
19 | - { |
|
20 | - $this->_qtipsa = array( |
|
21 | - // 0 => array( |
|
22 | - // 'content_id' => 'transaction-status-' . EEM_Transaction::overpaid_status_code, |
|
23 | - // 'target' => '.txn-status-' . EEM_Transaction::overpaid_status_code, |
|
24 | - // 'content' => $this->_transaction_status_legend(EEM_Transaction::overpaid_status_code), |
|
25 | - // 'options' => array( |
|
26 | - // 'position' => array( |
|
27 | - // 'target' => 'mouse', |
|
28 | - // ), |
|
29 | - // ), |
|
30 | - // ), |
|
31 | - // 1 => array( |
|
32 | - // 'content_id' => 'transaction-status-' . EEM_Transaction::complete_status_code, |
|
33 | - // 'target' => '.txn-status-' . EEM_Transaction::complete_status_code, |
|
34 | - // 'content' => $this->_transaction_status_legend(EEM_Transaction::complete_status_code), |
|
35 | - // 'options' => array( |
|
36 | - // 'position' => array( |
|
37 | - // 'target' => 'mouse', |
|
38 | - // ), |
|
39 | - // ), |
|
40 | - // ), |
|
41 | - // 2 => array( |
|
42 | - // 'content_id' => 'transaction-status-' . EEM_Transaction::incomplete_status_code, |
|
43 | - // 'target' => '.txn-status-' . EEM_Transaction::incomplete_status_code, |
|
44 | - // 'content' => $this->_transaction_status_legend(EEM_Transaction::incomplete_status_code), |
|
45 | - // 'options' => array( |
|
46 | - // 'position' => array( |
|
47 | - // 'target' => 'mouse', |
|
48 | - // ), |
|
49 | - // ), |
|
50 | - // ), |
|
51 | - // 3 => array( |
|
52 | - // 'content_id' => 'transaction-status-' . EEM_Transaction::failed_status_code, |
|
53 | - // 'target' => '.txn-status-' . EEM_Transaction::failed_status_code, |
|
54 | - // 'content' => $this->_transaction_status_legend(EEM_Transaction::failed_status_code), |
|
55 | - // 'options' => array( |
|
56 | - // 'position' => array( |
|
57 | - // 'target' => 'mouse', |
|
58 | - // ), |
|
59 | - // ), |
|
60 | - // ) |
|
61 | - ); |
|
62 | - } |
|
18 | + protected function _set_tips_array() |
|
19 | + { |
|
20 | + $this->_qtipsa = array( |
|
21 | + // 0 => array( |
|
22 | + // 'content_id' => 'transaction-status-' . EEM_Transaction::overpaid_status_code, |
|
23 | + // 'target' => '.txn-status-' . EEM_Transaction::overpaid_status_code, |
|
24 | + // 'content' => $this->_transaction_status_legend(EEM_Transaction::overpaid_status_code), |
|
25 | + // 'options' => array( |
|
26 | + // 'position' => array( |
|
27 | + // 'target' => 'mouse', |
|
28 | + // ), |
|
29 | + // ), |
|
30 | + // ), |
|
31 | + // 1 => array( |
|
32 | + // 'content_id' => 'transaction-status-' . EEM_Transaction::complete_status_code, |
|
33 | + // 'target' => '.txn-status-' . EEM_Transaction::complete_status_code, |
|
34 | + // 'content' => $this->_transaction_status_legend(EEM_Transaction::complete_status_code), |
|
35 | + // 'options' => array( |
|
36 | + // 'position' => array( |
|
37 | + // 'target' => 'mouse', |
|
38 | + // ), |
|
39 | + // ), |
|
40 | + // ), |
|
41 | + // 2 => array( |
|
42 | + // 'content_id' => 'transaction-status-' . EEM_Transaction::incomplete_status_code, |
|
43 | + // 'target' => '.txn-status-' . EEM_Transaction::incomplete_status_code, |
|
44 | + // 'content' => $this->_transaction_status_legend(EEM_Transaction::incomplete_status_code), |
|
45 | + // 'options' => array( |
|
46 | + // 'position' => array( |
|
47 | + // 'target' => 'mouse', |
|
48 | + // ), |
|
49 | + // ), |
|
50 | + // ), |
|
51 | + // 3 => array( |
|
52 | + // 'content_id' => 'transaction-status-' . EEM_Transaction::failed_status_code, |
|
53 | + // 'target' => '.txn-status-' . EEM_Transaction::failed_status_code, |
|
54 | + // 'content' => $this->_transaction_status_legend(EEM_Transaction::failed_status_code), |
|
55 | + // 'options' => array( |
|
56 | + // 'position' => array( |
|
57 | + // 'target' => 'mouse', |
|
58 | + // ), |
|
59 | + // ), |
|
60 | + // ) |
|
61 | + ); |
|
62 | + } |
|
63 | 63 | |
64 | 64 | |
65 | - /** |
|
66 | - * output the relevant ee-status-legend with the designated status highlighted. |
|
67 | - * |
|
68 | - * @param EEM_Transaction constant $status What status is set (by class) |
|
69 | - * @return string The status legend with the related status highlighted |
|
70 | - */ |
|
71 | - private function _transaction_status_legend($status) |
|
72 | - { |
|
65 | + /** |
|
66 | + * output the relevant ee-status-legend with the designated status highlighted. |
|
67 | + * |
|
68 | + * @param EEM_Transaction constant $status What status is set (by class) |
|
69 | + * @return string The status legend with the related status highlighted |
|
70 | + */ |
|
71 | + private function _transaction_status_legend($status) |
|
72 | + { |
|
73 | 73 | |
74 | - $status_array = array( |
|
75 | - 'overpaid' => EEM_Transaction::overpaid_status_code, |
|
76 | - 'complete' => EEM_Transaction::complete_status_code, |
|
77 | - 'incomplete' => EEM_Transaction::incomplete_status_code, |
|
78 | - 'failed' => EEM_Transaction::failed_status_code, |
|
79 | - ); |
|
74 | + $status_array = array( |
|
75 | + 'overpaid' => EEM_Transaction::overpaid_status_code, |
|
76 | + 'complete' => EEM_Transaction::complete_status_code, |
|
77 | + 'incomplete' => EEM_Transaction::incomplete_status_code, |
|
78 | + 'failed' => EEM_Transaction::failed_status_code, |
|
79 | + ); |
|
80 | 80 | |
81 | - return EEH_Template::status_legend($status_array, $status); |
|
82 | - } |
|
81 | + return EEH_Template::status_legend($status_array, $status); |
|
82 | + } |
|
83 | 83 | } |
@@ -4,46 +4,46 @@ |
||
4 | 4 | <?php _e('There is no billing info for this transaction.', 'event_espresso'); ?><br/> |
5 | 5 | </div> |
6 | 6 | <?php else : |
7 | - function ee_show_billing_info_cleaned(EE_Form_Section_Proper $form_section, $found_cc_data = false) |
|
8 | - { |
|
9 | - foreach ($form_section->subsections() as $subsection) { |
|
10 | - if ($subsection instanceof EE_Form_Input_Base) { |
|
11 | - if ($subsection->get_sensitive_data_removal_strategy() instanceof EE_All_Sensitive_Data_Removal |
|
12 | - || $subsection->get_sensitive_data_removal_strategy() instanceof EE_CCV_Sensitive_Data_Removal |
|
13 | - || $subsection->get_display_strategy() instanceof EE_Hidden_Display_Strategy) { |
|
14 | - continue; |
|
15 | - } |
|
16 | - if ($subsection->get_sensitive_data_removal_strategy() instanceof EE_Credit_Card_Sensitive_Data_Removal) { |
|
17 | - $found_cc_data = true; |
|
18 | - } |
|
19 | - ?> |
|
7 | + function ee_show_billing_info_cleaned(EE_Form_Section_Proper $form_section, $found_cc_data = false) |
|
8 | + { |
|
9 | + foreach ($form_section->subsections() as $subsection) { |
|
10 | + if ($subsection instanceof EE_Form_Input_Base) { |
|
11 | + if ($subsection->get_sensitive_data_removal_strategy() instanceof EE_All_Sensitive_Data_Removal |
|
12 | + || $subsection->get_sensitive_data_removal_strategy() instanceof EE_CCV_Sensitive_Data_Removal |
|
13 | + || $subsection->get_display_strategy() instanceof EE_Hidden_Display_Strategy) { |
|
14 | + continue; |
|
15 | + } |
|
16 | + if ($subsection->get_sensitive_data_removal_strategy() instanceof EE_Credit_Card_Sensitive_Data_Removal) { |
|
17 | + $found_cc_data = true; |
|
18 | + } |
|
19 | + ?> |
|
20 | 20 | <div class="clearfix"> |
21 | 21 | <span class="admin-side-mbox-label-spn lt-grey-txt float-left"> |
22 | 22 | <?php echo $subsection->get_html_for_label(); ?> |
23 | 23 | </span><?php echo $subsection->pretty_value(); ?> |
24 | 24 | </div><?php |
25 | - } elseif ($subsection instanceof EE_Form_Section_Proper) { |
|
26 | - $found_cc_data = ee_show_billing_info_cleaned($subsection, $found_cc_data); |
|
27 | - } |
|
28 | - } |
|
29 | - return $found_cc_data; |
|
30 | - } |
|
25 | + } elseif ($subsection instanceof EE_Form_Section_Proper) { |
|
26 | + $found_cc_data = ee_show_billing_info_cleaned($subsection, $found_cc_data); |
|
27 | + } |
|
28 | + } |
|
29 | + return $found_cc_data; |
|
30 | + } |
|
31 | 31 | |
32 | - $found_cc_data = ee_show_billing_info_cleaned($billing_form); |
|
33 | - if (apply_filters( |
|
34 | - 'FHEE__txn_admin_details_side_meta_box_billing_info__show_default_note', |
|
35 | - $found_cc_data, |
|
36 | - $billing_form |
|
37 | - )) { ?> |
|
32 | + $found_cc_data = ee_show_billing_info_cleaned($billing_form); |
|
33 | + if (apply_filters( |
|
34 | + 'FHEE__txn_admin_details_side_meta_box_billing_info__show_default_note', |
|
35 | + $found_cc_data, |
|
36 | + $billing_form |
|
37 | + )) { ?> |
|
38 | 38 | <p class="help"> |
39 | 39 | <?php _e( |
40 | - 'Note: Card expiry dates and CCV are not stored. Only the last 4 digits of card numbers are stored.', |
|
41 | - 'event_espresso' |
|
42 | - ); ?></p> |
|
40 | + 'Note: Card expiry dates and CCV are not stored. Only the last 4 digits of card numbers are stored.', |
|
41 | + 'event_espresso' |
|
42 | + ); ?></p> |
|
43 | 43 | <?php |
44 | - } |
|
45 | - do_action('AHEE__txn_admin_details_side_meta_box_billing_info__billing_form_footer', $billing_form); |
|
46 | - endif; ?> |
|
44 | + } |
|
45 | + do_action('AHEE__txn_admin_details_side_meta_box_billing_info__billing_form_footer', $billing_form); |
|
46 | + endif; ?> |
|
47 | 47 | |
48 | 48 | </div> |
49 | 49 |
@@ -3,7 +3,8 @@ discard block |
||
3 | 3 | <div class="clearfix"> |
4 | 4 | <?php _e('There is no billing info for this transaction.', 'event_espresso'); ?><br/> |
5 | 5 | </div> |
6 | - <?php else : |
|
6 | + <?php else { |
|
7 | + : |
|
7 | 8 | function ee_show_billing_info_cleaned(EE_Form_Section_Proper $form_section, $found_cc_data = false) |
8 | 9 | { |
9 | 10 | foreach ($form_section->subsections() as $subsection) { |
@@ -12,6 +13,7 @@ discard block |
||
12 | 13 | || $subsection->get_sensitive_data_removal_strategy() instanceof EE_CCV_Sensitive_Data_Removal |
13 | 14 | || $subsection->get_display_strategy() instanceof EE_Hidden_Display_Strategy) { |
14 | 15 | continue; |
16 | +} |
|
15 | 17 | } |
16 | 18 | if ($subsection->get_sensitive_data_removal_strategy() instanceof EE_Credit_Card_Sensitive_Data_Removal) { |
17 | 19 | $found_cc_data = true; |
@@ -89,8 +89,8 @@ discard block |
||
89 | 89 | <?php if ($payments) : ?> |
90 | 90 | <?php $payment_total = 0; ?> |
91 | 91 | <?php foreach ($payments as $PAY_ID => $payment) : |
92 | - $existing_reg_payment_json = isset($existing_reg_payments[ $PAY_ID ]) |
|
93 | - ? wp_json_encode($existing_reg_payments[ $PAY_ID ]) |
|
92 | + $existing_reg_payment_json = isset($existing_reg_payments[$PAY_ID]) |
|
93 | + ? wp_json_encode($existing_reg_payments[$PAY_ID]) |
|
94 | 94 | : '{}'; |
95 | 95 | ?> |
96 | 96 | <tr id="txn-admin-payment-tr-<?php echo $PAY_ID; ?>"> |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | </td> |
166 | 166 | <td class=" jst-rght"> |
167 | 167 | <?php $payment_class = $payment->amount() > 0 |
168 | - ? 'txn-admin-payment-status-' . $payment->STS_ID() |
|
168 | + ? 'txn-admin-payment-status-'.$payment->STS_ID() |
|
169 | 169 | : 'txn-admin-payment-status-PDC'; ?> |
170 | 170 | <span class="<?php echo $payment_class; ?>"> |
171 | 171 | <div id="payment-amount-<?php echo $PAY_ID; ?>" style="display:inline;"> |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | <?php |
185 | 185 | $pay_totals_class = $payment_total > $grand_raw_total ? ' important-notice' : ''; |
186 | 186 | $overpaid = $payment_total > $grand_raw_total |
187 | - ? '<span id="overpaid">' . esc_html__('This transaction has been overpaid ! ', 'event_espresso') |
|
187 | + ? '<span id="overpaid">'.esc_html__('This transaction has been overpaid ! ', 'event_espresso') |
|
188 | 188 | . '</span>' |
189 | 189 | : ''; |
190 | 190 | ?> |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | 'Payments Total %s', |
204 | 204 | 'event_espresso' |
205 | 205 | ), |
206 | - '(' . EE_Registry::instance()->CFG->currency->code . ')' |
|
206 | + '('.EE_Registry::instance()->CFG->currency->code.')' |
|
207 | 207 | ); ?></span></th> |
208 | 208 | <th class=" jst-rght"><span |
209 | 209 | id="txn-admin-payment-total"> |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | <h2 id="admin-modal-dialog-apply-payment-h2" class="admin-modal-dialog-h2 hdr-has-icon" |
325 | 325 | style="display:none;"> |
326 | 326 | <div class="ee-icon ee-icon-cash-add float-left"></div> |
327 | - <?php echo esc_html__('Apply a Payment to Transaction #', 'event_espresso') . $txn_nmbr['value']; ?> |
|
327 | + <?php echo esc_html__('Apply a Payment to Transaction #', 'event_espresso').$txn_nmbr['value']; ?> |
|
328 | 328 | </h2> |
329 | 329 | |
330 | 330 | <h2 id="admin-modal-dialog-edit-payment-h2" class="admin-modal-dialog-h2 hdr-has-icon" |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | <h2 id="admin-modal-dialog-apply-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon" |
354 | 354 | style="display:none;"> |
355 | 355 | <div class="ee-icon ee-icon-cash-remove float-left"></div> |
356 | - <?php echo esc_html__('Apply a Refund to Transaction #', 'event_espresso') . $txn_nmbr['value']; ?> |
|
356 | + <?php echo esc_html__('Apply a Refund to Transaction #', 'event_espresso').$txn_nmbr['value']; ?> |
|
357 | 357 | </h2> |
358 | 358 | |
359 | 359 | <form name="txn-admin-apply-payment-frm" id="txn-admin-apply-payment-frm" |
@@ -666,7 +666,7 @@ discard block |
||
666 | 666 | <?php echo esc_html__( |
667 | 667 | 'Delete Payment/Refund for Transaction #', |
668 | 668 | 'event_espresso' |
669 | - ) . $txn_nmbr['value']; ?> |
|
669 | + ).$txn_nmbr['value']; ?> |
|
670 | 670 | </h2> |
671 | 671 | |
672 | 672 | <form name="txn-admin-delete-payment-frm" id="txn-admin-delete-payment-frm" |
@@ -745,7 +745,7 @@ discard block |
||
745 | 745 | <?php |
746 | 746 | if (WP_DEBUG) { |
747 | 747 | $delivered_messages = get_option('EED_Messages__payment', array()); |
748 | - if (isset($delivered_messages[ $TXN_ID ])) { |
|
748 | + if (isset($delivered_messages[$TXN_ID])) { |
|
749 | 749 | ?> |
750 | 750 | <h4 class="admin-primary-mbox-h4 hdr-has-icon"><span |
751 | 751 | class="dashicons dashicons-email-alt"></span> |
@@ -765,12 +765,12 @@ discard block |
||
765 | 765 | </tr> |
766 | 766 | </thead> |
767 | 767 | <tbody> |
768 | - <?php foreach ($delivered_messages[ $TXN_ID ] as $timestamp => $delivered_message) : |
|
768 | + <?php foreach ($delivered_messages[$TXN_ID] as $timestamp => $delivered_message) : |
|
769 | 769 | ?> |
770 | 770 | <tr> |
771 | 771 | <td class="jst-left"> |
772 | 772 | <?php echo date( |
773 | - get_option('date_format') . ' ' . get_option('time_format'), |
|
773 | + get_option('date_format').' '.get_option('time_format'), |
|
774 | 774 | ($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS)) |
775 | 775 | ); ?></td> |
776 | 776 | <td class="jst-left"><?php echo isset($delivered_message['message_type']) |
@@ -15,9 +15,9 @@ discard block |
||
15 | 15 | <a id="display-additional-transaction-session-info" class="display-the-hidden smaller-text" |
16 | 16 | rel="additional-transaction-session-info"> |
17 | 17 | <span class="dashicons dashicons-plus-alt"></span><?php esc_html_e( |
18 | - 'view additional transaction session details', |
|
19 | - 'event_espresso' |
|
20 | - ); ?> |
|
18 | + 'view additional transaction session details', |
|
19 | + 'event_espresso' |
|
20 | + ); ?> |
|
21 | 21 | </a> |
22 | 22 | |
23 | 23 | <div id="additional-transaction-session-info-dv" class="hidden"> |
@@ -25,9 +25,9 @@ discard block |
||
25 | 25 | <a id="hide-additional-transaction-session-info" class="hide-the-displayed hidden smaller-text" |
26 | 26 | rel="additional-transaction-session-info"> |
27 | 27 | <span class="dashicons dashicons-dismiss"></span><?php esc_html_e( |
28 | - 'hide additional transaction session details', |
|
29 | - 'event_espresso' |
|
30 | - ); ?> |
|
28 | + 'hide additional transaction session details', |
|
29 | + 'event_espresso' |
|
30 | + ); ?> |
|
31 | 31 | </a> |
32 | 32 | <br class="clear"/> |
33 | 33 | |
@@ -52,16 +52,16 @@ discard block |
||
52 | 52 | |
53 | 53 | |
54 | 54 | <?php if ($attendee instanceof EE_Attendee && ($grand_raw_total > 0 || $TXN_status !== EEM_Transaction::complete_status_code || ! empty($payments))) : |
55 | - $no_payment_text = $can_edit_payments |
|
56 | - ? esc_html__( |
|
57 | - 'No payments have been applied to this transaction yet. Click "Apply Payment" below to make a payment.', |
|
58 | - 'event_espresso' |
|
59 | - ) |
|
60 | - : esc_html__( |
|
61 | - 'No payments have been applied to this transaction yet.', |
|
62 | - 'event_espresso' |
|
63 | - ); |
|
64 | - ?> |
|
55 | + $no_payment_text = $can_edit_payments |
|
56 | + ? esc_html__( |
|
57 | + 'No payments have been applied to this transaction yet. Click "Apply Payment" below to make a payment.', |
|
58 | + 'event_espresso' |
|
59 | + ) |
|
60 | + : esc_html__( |
|
61 | + 'No payments have been applied to this transaction yet.', |
|
62 | + 'event_espresso' |
|
63 | + ); |
|
64 | + ?> |
|
65 | 65 | |
66 | 66 | <h3 class="admin-primary-mbox-h4 hdr-has-icon"> |
67 | 67 | <span class="ee-icon ee-icon-cash"></span><?php esc_html_e('Payment Details', 'event_espresso'); ?> |
@@ -88,10 +88,10 @@ discard block |
||
88 | 88 | <?php if ($payments) : ?> |
89 | 89 | <?php $payment_total = 0; ?> |
90 | 90 | <?php foreach ($payments as $PAY_ID => $payment) : |
91 | - $existing_reg_payment_json = isset($existing_reg_payments[ $PAY_ID ]) |
|
92 | - ? wp_json_encode($existing_reg_payments[ $PAY_ID ]) |
|
93 | - : '{}'; |
|
94 | - ?> |
|
91 | + $existing_reg_payment_json = isset($existing_reg_payments[ $PAY_ID ]) |
|
92 | + ? wp_json_encode($existing_reg_payments[ $PAY_ID ]) |
|
93 | + : '{}'; |
|
94 | + ?> |
|
95 | 95 | <tr id="txn-admin-payment-tr-<?php echo $PAY_ID; ?>"> |
96 | 96 | <td> |
97 | 97 | <span id="payment-status-<?php echo $PAY_ID; ?>" |
@@ -136,16 +136,16 @@ discard block |
||
136 | 136 | </div> |
137 | 137 | <div id="payment-gateway-<?php echo $PAY_ID; ?>"> |
138 | 138 | <?php echo $payment->payment_method() |
139 | - ? $payment->payment_method()->admin_name() |
|
140 | - : esc_html__( |
|
141 | - "Unknown", |
|
142 | - 'event_espresso' |
|
143 | - ); ?> |
|
139 | + ? $payment->payment_method()->admin_name() |
|
140 | + : esc_html__( |
|
141 | + "Unknown", |
|
142 | + 'event_espresso' |
|
143 | + ); ?> |
|
144 | 144 | </div> |
145 | 145 | <div id="payment-gateway-id-<?php echo $PAY_ID; ?>" |
146 | 146 | class="hidden"><?php echo $payment->payment_method() |
147 | - ? $payment->payment_method()->ID() |
|
148 | - : 0; ?></div> |
|
147 | + ? $payment->payment_method()->ID() |
|
148 | + : 0; ?></div> |
|
149 | 149 | </td> |
150 | 150 | <td class=" jst-left"> |
151 | 151 | <div id="payment-response-<?php echo $PAY_ID; ?>"><?php echo $payment->gateway_response(); ?></div> |
@@ -162,29 +162,29 @@ discard block |
||
162 | 162 | </td> |
163 | 163 | <td class=" jst-rght"> |
164 | 164 | <?php $payment_class = $payment->amount() > 0 |
165 | - ? 'txn-admin-payment-status-' . $payment->STS_ID() |
|
166 | - : 'txn-admin-payment-status-PDC'; ?> |
|
165 | + ? 'txn-admin-payment-status-' . $payment->STS_ID() |
|
166 | + : 'txn-admin-payment-status-PDC'; ?> |
|
167 | 167 | <span class="<?php echo $payment_class; ?>"> |
168 | 168 | <div id="payment-amount-<?php echo $PAY_ID; ?>" style="display:inline;"> |
169 | 169 | <?php echo EEH_Template::format_currency( |
170 | - $payment->amount(), |
|
171 | - false, |
|
172 | - false |
|
173 | - ); ?></div> |
|
170 | + $payment->amount(), |
|
171 | + false, |
|
172 | + false |
|
173 | + ); ?></div> |
|
174 | 174 | </span> |
175 | 175 | </td> |
176 | 176 | </tr> |
177 | 177 | <?php |
178 | - $payment_total += $payment->STS_ID() == 'PAP' ? $payment->amount() : 0; |
|
179 | - ?> |
|
178 | + $payment_total += $payment->STS_ID() == 'PAP' ? $payment->amount() : 0; |
|
179 | + ?> |
|
180 | 180 | <?php endforeach; // $payment?> |
181 | 181 | <?php |
182 | - $pay_totals_class = $payment_total > $grand_raw_total ? ' important-notice' : ''; |
|
183 | - $overpaid = $payment_total > $grand_raw_total |
|
184 | - ? '<span id="overpaid">' . esc_html__('This transaction has been overpaid ! ', 'event_espresso') |
|
185 | - . '</span>' |
|
186 | - : ''; |
|
187 | - ?> |
|
182 | + $pay_totals_class = $payment_total > $grand_raw_total ? ' important-notice' : ''; |
|
183 | + $overpaid = $payment_total > $grand_raw_total |
|
184 | + ? '<span id="overpaid">' . esc_html__('This transaction has been overpaid ! ', 'event_espresso') |
|
185 | + . '</span>' |
|
186 | + : ''; |
|
187 | + ?> |
|
188 | 188 | <tr id="txn-admin-no-payments-tr" class="admin-primary-mbox-total-tr hidden"> |
189 | 189 | <td class=" jst-rght" colspan="10"> |
190 | 190 | <span class="important-notice"><?php echo $no_payment_text; ?></span> |
@@ -195,20 +195,20 @@ discard block |
||
195 | 195 | <th class=" jst-rght" colspan="9"><span |
196 | 196 | id="payments-total-spn"> |
197 | 197 | <?php echo $overpaid |
198 | - . sprintf( |
|
199 | - esc_html__( |
|
200 | - 'Payments Total %s', |
|
201 | - 'event_espresso' |
|
202 | - ), |
|
203 | - '(' . EE_Registry::instance()->CFG->currency->code . ')' |
|
204 | - ); ?></span></th> |
|
198 | + . sprintf( |
|
199 | + esc_html__( |
|
200 | + 'Payments Total %s', |
|
201 | + 'event_espresso' |
|
202 | + ), |
|
203 | + '(' . EE_Registry::instance()->CFG->currency->code . ')' |
|
204 | + ); ?></span></th> |
|
205 | 205 | <th class=" jst-rght"><span |
206 | 206 | id="txn-admin-payment-total"> |
207 | 207 | <?php echo EEH_Template::format_currency( |
208 | - $payment_total, |
|
209 | - false, |
|
210 | - false |
|
211 | - ); ?></span></th> |
|
208 | + $payment_total, |
|
209 | + false, |
|
210 | + false |
|
211 | + ); ?></span></th> |
|
212 | 212 | </tr> |
213 | 213 | <?php else : ?> |
214 | 214 | <tr id="txn-admin-no-payments-tr" class="admin-primary-mbox-total-tr"> |
@@ -220,13 +220,13 @@ discard block |
||
220 | 220 | <th class=" jst-rght" colspan="9"><span |
221 | 221 | id="payments-total-spn"> |
222 | 222 | <?php echo esc_html__( |
223 | - 'Payments Total', |
|
224 | - 'event_espresso' |
|
225 | - ); ?></span></th> |
|
223 | + 'Payments Total', |
|
224 | + 'event_espresso' |
|
225 | + ); ?></span></th> |
|
226 | 226 | <th class=" jst-rght"><span id="txn-admin-payment-total"></span></th> |
227 | 227 | </tr> |
228 | 228 | <?php endif; // $payments |
229 | - ?> |
|
229 | + ?> |
|
230 | 230 | |
231 | 231 | <tr id="txn-admin-payment-empty-row-tr" class="hidden"> |
232 | 232 | <td> |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | |
290 | 290 | <ul id="txn-admin-payment-options-ul"> |
291 | 291 | <?php if ($can_edit_payments) : |
292 | - ?> |
|
292 | + ?> |
|
293 | 293 | <li> |
294 | 294 | <a id="display-txn-admin-apply-payment" class="button-primary no-icon no-hide" |
295 | 295 | rel="txn-admin-apply-payment"> <!--display-the-hidden --> |
@@ -306,20 +306,20 @@ discard block |
||
306 | 306 | <li> |
307 | 307 | <p> |
308 | 308 | <?php esc_html__( |
309 | - 'You do not have access to apply payments or refunds.', |
|
310 | - 'event_espresso' |
|
311 | - ); ?></p> |
|
309 | + 'You do not have access to apply payments or refunds.', |
|
310 | + 'event_espresso' |
|
311 | + ); ?></p> |
|
312 | 312 | </li> |
313 | 313 | <?php endif; ?> |
314 | 314 | <?php |
315 | - /** |
|
316 | - * Allows extend the fields at actions area. |
|
317 | - */ |
|
318 | - do_action( |
|
319 | - 'AHEE__txn_admin_details_main_meta_box_txn_details__after_actions_buttons', |
|
320 | - $can_edit_payments |
|
321 | - ); |
|
322 | - ?> |
|
315 | + /** |
|
316 | + * Allows extend the fields at actions area. |
|
317 | + */ |
|
318 | + do_action( |
|
319 | + 'AHEE__txn_admin_details_main_meta_box_txn_details__after_actions_buttons', |
|
320 | + $can_edit_payments |
|
321 | + ); |
|
322 | + ?> |
|
323 | 323 | </ul> |
324 | 324 | <br class="clear"/> |
325 | 325 | |
@@ -335,23 +335,23 @@ discard block |
||
335 | 335 | style="display:none;"> |
336 | 336 | <div class="ee-icon ee-icon-cash-edit float-left"></div> |
337 | 337 | <?php |
338 | - echo sprintf( |
|
339 | - __('Edit Payment #%s for Transaction #%s', 'event_espresso'), |
|
340 | - '<span></span>', |
|
341 | - $txn_nmbr['value'] |
|
342 | - ); |
|
343 | - ?> |
|
338 | + echo sprintf( |
|
339 | + __('Edit Payment #%s for Transaction #%s', 'event_espresso'), |
|
340 | + '<span></span>', |
|
341 | + $txn_nmbr['value'] |
|
342 | + ); |
|
343 | + ?> |
|
344 | 344 | </h2> |
345 | 345 | |
346 | 346 | <h2 id="admin-modal-dialog-edit-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon" style="display:none;"> |
347 | 347 | <div class="ee-icon ee-icon-cash-edit float-left"></div> |
348 | 348 | <?php |
349 | - echo sprintf( |
|
350 | - __('Edit Refund #%s for Transaction #%s', 'event_espresso'), |
|
351 | - '<span></span>', |
|
352 | - $txn_nmbr['value'] |
|
353 | - ); |
|
354 | - ?> |
|
349 | + echo sprintf( |
|
350 | + __('Edit Refund #%s for Transaction #%s', 'event_espresso'), |
|
351 | + '<span></span>', |
|
352 | + $txn_nmbr['value'] |
|
353 | + ); |
|
354 | + ?> |
|
355 | 355 | </h2> |
356 | 356 | |
357 | 357 | <h2 id="admin-modal-dialog-apply-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon" |
@@ -385,55 +385,55 @@ discard block |
||
385 | 385 | <div class="txn-admin-apply-payment-date-dv admin-modal-dialog-row"> |
386 | 386 | <div class="validation-notice-dv"> |
387 | 387 | <?php esc_html_e( |
388 | - 'The following is a required field', |
|
389 | - 'event_espresso' |
|
390 | - ); ?></div> |
|
388 | + 'The following is a required field', |
|
389 | + 'event_espresso' |
|
390 | + ); ?></div> |
|
391 | 391 | <label for="txn-admin-payment-date-inp" class=""> |
392 | 392 | <?php esc_html_e( |
393 | - 'Payment Date', |
|
394 | - 'event_espresso' |
|
395 | - ); ?></label> |
|
393 | + 'Payment Date', |
|
394 | + 'event_espresso' |
|
395 | + ); ?></label> |
|
396 | 396 | <input name="txn_admin_payment[date]" id="txn-admin-payment-date-inp" |
397 | 397 | class="txn-admin-apply-payment-inp required" type="text" |
398 | 398 | value="<?php echo date('Y-m-d g:i a', current_time('timestamp')); ?>"/> |
399 | 399 | <p class="description"> |
400 | 400 | <?php esc_html_e( |
401 | - 'The date the payment was actually made on', |
|
402 | - 'event_espresso' |
|
403 | - ); ?></p> |
|
401 | + 'The date the payment was actually made on', |
|
402 | + 'event_espresso' |
|
403 | + ); ?></p> |
|
404 | 404 | </div> |
405 | 405 | |
406 | 406 | <div class="txn-admin-apply-payment-amount-dv admin-modal-dialog-row"> |
407 | 407 | <div class="validation-notice-dv"> |
408 | 408 | <?php esc_html_e( |
409 | - 'The following is a required field', |
|
410 | - 'event_espresso' |
|
411 | - ); ?></div> |
|
409 | + 'The following is a required field', |
|
410 | + 'event_espresso' |
|
411 | + ); ?></div> |
|
412 | 412 | <label for="txn-admin-payment-amount-inp" class=""> |
413 | 413 | <?php esc_html_e( |
414 | - 'Amount', |
|
415 | - 'event_espresso' |
|
416 | - ); ?></label> |
|
414 | + 'Amount', |
|
415 | + 'event_espresso' |
|
416 | + ); ?></label> |
|
417 | 417 | <input name="txn_admin_payment[amount]" id="txn-admin-payment-amount-inp" |
418 | 418 | class="txn-admin-apply-payment-inp required" type="text" value=""/> |
419 | 419 | <p class="description"> |
420 | 420 | <?php esc_html_e( |
421 | - 'The amount of the payment', |
|
422 | - 'event_espresso' |
|
423 | - ); ?></p> |
|
421 | + 'The amount of the payment', |
|
422 | + 'event_espresso' |
|
423 | + ); ?></p> |
|
424 | 424 | </div> |
425 | 425 | |
426 | 426 | <div class="txn-admin-apply-payment-method-dv admin-modal-dialog-row"> |
427 | 427 | <div class="validation-notice-dv"> |
428 | 428 | <?php esc_html_e( |
429 | - 'The following is a required field', |
|
430 | - 'event_espresso' |
|
431 | - ); ?></div> |
|
429 | + 'The following is a required field', |
|
430 | + 'event_espresso' |
|
431 | + ); ?></div> |
|
432 | 432 | <label for="txn-admin-payment-method-inp" class=""> |
433 | 433 | <?php esc_html_e( |
434 | - 'Method of Payment', |
|
435 | - 'event_espresso' |
|
436 | - ); ?></label> |
|
434 | + 'Method of Payment', |
|
435 | + 'event_espresso' |
|
436 | + ); ?></label> |
|
437 | 437 | <select name="txn_admin_payment[PMD_ID]" id="txn-admin-payment-method-slct" |
438 | 438 | class="txn-admin-apply-payment-slct required" type="text"> |
439 | 439 | <?php foreach ($payment_methods as $method) : ?> |
@@ -441,39 +441,39 @@ discard block |
||
441 | 441 | <option id="payment-method-opt-<?php echo $method->slug(); ?>" |
442 | 442 | value="<?php echo $method->ID(); ?>"<?php echo $selected; ?>> |
443 | 443 | <?php echo sanitize_key( |
444 | - $method->admin_desc() |
|
445 | - ) |
|
446 | - ? substr( |
|
447 | - $method->admin_desc(), |
|
448 | - 0, |
|
449 | - 128 |
|
450 | - ) |
|
451 | - : $method->admin_name(); ?> |
|
444 | + $method->admin_desc() |
|
445 | + ) |
|
446 | + ? substr( |
|
447 | + $method->admin_desc(), |
|
448 | + 0, |
|
449 | + 128 |
|
450 | + ) |
|
451 | + : $method->admin_name(); ?> |
|
452 | 452 | </option> |
453 | 453 | <?php endforeach; ?> |
454 | 454 | </select> |
455 | 455 | <p class="description"> |
456 | 456 | <?php esc_html_e( |
457 | - 'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash', |
|
458 | - 'event_espresso' |
|
459 | - ); ?></p> |
|
457 | + 'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash', |
|
458 | + 'event_espresso' |
|
459 | + ); ?></p> |
|
460 | 460 | </div> |
461 | 461 | |
462 | 462 | <div class="mop-PP mop-CC mop-CHQ mop"> |
463 | 463 | <div class="txn-admin-apply-payment-gw-txn-id-dv admin-modal-dialog-row"> |
464 | 464 | <label for="txn-admin-payment-txn-id-inp" class=""> |
465 | 465 | <?php esc_html_e( |
466 | - 'TXN ID / CHQ #', |
|
467 | - 'event_espresso' |
|
468 | - ); ?></label> |
|
466 | + 'TXN ID / CHQ #', |
|
467 | + 'event_espresso' |
|
468 | + ); ?></label> |
|
469 | 469 | <input name="txn_admin_payment[txn_id_chq_nmbr]" |
470 | 470 | id="txn-admin-payment-txn-id-chq-nmbr-inp" class="txn-admin-apply-payment-inp" |
471 | 471 | type="text" maxlength="100"/> |
472 | 472 | <p class="description"> |
473 | 473 | <?php esc_html_e( |
474 | - 'The Transaction ID sent back from the payment gateway, or the Cheque #', |
|
475 | - 'event_espresso' |
|
476 | - ); ?></p> |
|
474 | + 'The Transaction ID sent back from the payment gateway, or the Cheque #', |
|
475 | + 'event_espresso' |
|
476 | + ); ?></p> |
|
477 | 477 | </div> |
478 | 478 | </div> |
479 | 479 | |
@@ -486,9 +486,9 @@ discard block |
||
486 | 486 | type="text"/> |
487 | 487 | <p class="description"> |
488 | 488 | <?php esc_html_e( |
489 | - 'The gateway response string (optional)', |
|
490 | - 'event_espresso' |
|
491 | - ); ?></p> |
|
489 | + 'The gateway response string (optional)', |
|
490 | + 'event_espresso' |
|
491 | + ); ?></p> |
|
492 | 492 | </div> |
493 | 493 | </div> |
494 | 494 | |
@@ -496,9 +496,9 @@ discard block |
||
496 | 496 | <div class="txn-admin-apply-payment-status-dv admin-modal-dialog-row"> |
497 | 497 | <label for="txn-admin-payment-status-inp" class=""> |
498 | 498 | <?php esc_html_e( |
499 | - 'Payment Status', |
|
500 | - 'event_espresso' |
|
501 | - ); ?></label> |
|
499 | + 'Payment Status', |
|
500 | + 'event_espresso' |
|
501 | + ); ?></label> |
|
502 | 502 | <select name="txn_admin_payment[status]" id="txn-admin-payment-status-slct" |
503 | 503 | class="txn-admin-apply-payment-slct" type="text"> |
504 | 504 | <?php foreach ($payment_status as $STS_ID => $STS_code) : ?> |
@@ -511,52 +511,52 @@ discard block |
||
511 | 511 | </select> |
512 | 512 | <p class="description"> |
513 | 513 | <?php esc_html_e( |
514 | - 'Whether the payment was approved, cancelled, declined or failed after submission to the gateway', |
|
515 | - 'event_espresso' |
|
516 | - ); ?></p> |
|
514 | + 'Whether the payment was approved, cancelled, declined or failed after submission to the gateway', |
|
515 | + 'event_espresso' |
|
516 | + ); ?></p> |
|
517 | 517 | </div> |
518 | 518 | </div> |
519 | 519 | |
520 | 520 | <div class="txn-admin-apply-payment-po-nmbr-dv admin-modal-dialog-row"> |
521 | 521 | <label for="txn-admin-payment-po-nmbr-inp" class=""> |
522 | 522 | <?php esc_html_e( |
523 | - 'P.O. / S.O. #', |
|
524 | - 'event_espresso' |
|
525 | - ); ?></label> |
|
523 | + 'P.O. / S.O. #', |
|
524 | + 'event_espresso' |
|
525 | + ); ?></label> |
|
526 | 526 | <input name="txn_admin_payment[po_number]" id="txn-admin-payment-po-nmbr-inp" |
527 | 527 | class="txn-admin-apply-payment-inp" type="text" maxlength="100"/> |
528 | 528 | <p class="description"> |
529 | 529 | <?php esc_html_e( |
530 | - 'The Purchase or Sales Order Number if any (optional)', |
|
531 | - 'event_espresso' |
|
532 | - ); ?></p> |
|
530 | + 'The Purchase or Sales Order Number if any (optional)', |
|
531 | + 'event_espresso' |
|
532 | + ); ?></p> |
|
533 | 533 | </div> |
534 | 534 | |
535 | 535 | <div class="txn-admin-apply-payment-accounting-dv admin-modal-dialog-row"> |
536 | 536 | <label for="txn-admin-payment-accounting-inp" |
537 | 537 | class="last"> |
538 | 538 | <?php esc_html_e( |
539 | - 'Notes / Extra Accounting', |
|
540 | - 'event_espresso' |
|
541 | - ); ?></label> |
|
539 | + 'Notes / Extra Accounting', |
|
540 | + 'event_espresso' |
|
541 | + ); ?></label> |
|
542 | 542 | <input name="txn_admin_payment[accounting]" id="txn-admin-payment-accounting-inp" |
543 | 543 | class="txn-admin-apply-payment-inp" type="text" value="<?php echo $REG_code; ?>" |
544 | 544 | maxlength="100"/> <input type="hidden" id="txn-admin-reg-code-inp" |
545 | 545 | value="<?php echo $REG_code; ?>"/> |
546 | 546 | <p class="description"> |
547 | 547 | <?php esc_html_e( |
548 | - 'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.', |
|
549 | - 'event_espresso' |
|
550 | - ); ?></p> |
|
548 | + 'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.', |
|
549 | + 'event_espresso' |
|
550 | + ); ?></p> |
|
551 | 551 | </div> |
552 | 552 | |
553 | 553 | <div class="txn-admin-apply-payment-registrations-dv admin-modal-dialog-row"> |
554 | 554 | <label for="txn-admin-payment-registrations-inp" |
555 | 555 | class="last"> |
556 | 556 | <?php esc_html_e( |
557 | - 'Registrations to Apply Payment to:', |
|
558 | - 'event_espresso' |
|
559 | - ); ?></label> |
|
557 | + 'Registrations to Apply Payment to:', |
|
558 | + 'event_espresso' |
|
559 | + ); ?></label> |
|
560 | 560 | <label class="txn-admin-apply-payment-to-registrations-lbl"> |
561 | 561 | <input type="radio" value="1" id="txn-admin-apply-payment-to-all-registrations-inp" |
562 | 562 | name="txn_admin_payment[apply_to_all_registrations]" checked="checked"/> |
@@ -574,15 +574,15 @@ discard block |
||
574 | 574 | <label for="txn-admin-payment-reg-status-inp" |
575 | 575 | class="last"> |
576 | 576 | <?php esc_html_e( |
577 | - 'Change Registration Status?', |
|
578 | - 'event_espresso' |
|
579 | - ); ?></label> |
|
577 | + 'Change Registration Status?', |
|
578 | + 'event_espresso' |
|
579 | + ); ?></label> |
|
580 | 580 | <?php echo $status_change_select; ?> |
581 | 581 | <p class="description"> |
582 | 582 | <?php esc_html_e( |
583 | - 'If you wish to change the status for the registrations selected above, then select which status from this dropdown.', |
|
584 | - 'event_espresso' |
|
585 | - ); ?></p> |
|
583 | + 'If you wish to change the status for the registrations selected above, then select which status from this dropdown.', |
|
584 | + 'event_espresso' |
|
585 | + ); ?></p> |
|
586 | 586 | <br/> |
587 | 587 | </div> |
588 | 588 | |
@@ -603,14 +603,14 @@ discard block |
||
603 | 603 | <br class="clear-float"/> |
604 | 604 | <p class="description"> |
605 | 605 | <?php printf( |
606 | - esc_html__( |
|
607 | - 'By default %1$sa payment message is sent to the primary registrant%2$s after submitting this form.%3$sHowever, if you check the "Registration Messages" box, the system will also send any related messages matching the status of the registrations to %1$seach registration for this transaction%2$s.', |
|
608 | - 'event_espresso' |
|
609 | - ), |
|
610 | - '<strong>', |
|
611 | - '</strong>', |
|
612 | - '<br />' |
|
613 | - ); ?></p> |
|
606 | + esc_html__( |
|
607 | + 'By default %1$sa payment message is sent to the primary registrant%2$s after submitting this form.%3$sHowever, if you check the "Registration Messages" box, the system will also send any related messages matching the status of the registrations to %1$seach registration for this transaction%2$s.', |
|
608 | + 'event_espresso' |
|
609 | + ), |
|
610 | + '<strong>', |
|
611 | + '</strong>', |
|
612 | + '<br />' |
|
613 | + ); ?></p> |
|
614 | 614 | <label></label> |
615 | 615 | </div> |
616 | 616 | <div class="clear"></div> |
@@ -651,9 +651,9 @@ discard block |
||
651 | 651 | <li> |
652 | 652 | <span id="ee-ajax-processing-text" style="display:none;"> |
653 | 653 | <?php esc_html_e( |
654 | - 'Processing...', |
|
655 | - 'event_espresso' |
|
656 | - ); ?></span> |
|
654 | + 'Processing...', |
|
655 | + 'event_espresso' |
|
656 | + ); ?></span> |
|
657 | 657 | </li> |
658 | 658 | </ul> |
659 | 659 | |
@@ -668,9 +668,9 @@ discard block |
||
668 | 668 | style="display:none;"> |
669 | 669 | <span class="ee-icon ee-icon-cash-add"></span> |
670 | 670 | <?php echo esc_html__( |
671 | - 'Delete Payment/Refund for Transaction #', |
|
672 | - 'event_espresso' |
|
673 | - ) . $txn_nmbr['value']; ?> |
|
671 | + 'Delete Payment/Refund for Transaction #', |
|
672 | + 'event_espresso' |
|
673 | + ) . $txn_nmbr['value']; ?> |
|
674 | 674 | </h2> |
675 | 675 | |
676 | 676 | <form name="txn-admin-delete-payment-frm" id="txn-admin-delete-payment-frm" |
@@ -692,19 +692,19 @@ discard block |
||
692 | 692 | <label for="delete-txn-admin-payment-reg-status-inp" |
693 | 693 | class="last"> |
694 | 694 | <?php esc_html_e( |
695 | - 'Change Registration Status?', |
|
696 | - 'event_espresso' |
|
697 | - ); ?></label> |
|
695 | + 'Change Registration Status?', |
|
696 | + 'event_espresso' |
|
697 | + ); ?></label> |
|
698 | 698 | <?php echo $delete_status_change_select; ?> |
699 | 699 | <p class="description"> |
700 | 700 | <?php printf( |
701 | - esc_html__( |
|
702 | - 'If you wish to change the status of all the registrations associated with this transaction after deleting this payment/refund, then select which status from this dropdown. %sNote: ALL registrations associated with this transaction will be updated to this new status.%s', |
|
703 | - 'event_espresso' |
|
704 | - ), |
|
705 | - '<strong>', |
|
706 | - '</strong>' |
|
707 | - ); ?></p> |
|
701 | + esc_html__( |
|
702 | + 'If you wish to change the status of all the registrations associated with this transaction after deleting this payment/refund, then select which status from this dropdown. %sNote: ALL registrations associated with this transaction will be updated to this new status.%s', |
|
703 | + 'event_espresso' |
|
704 | + ), |
|
705 | + '<strong>', |
|
706 | + '</strong>' |
|
707 | + ); ?></p> |
|
708 | 708 | </div> |
709 | 709 | |
710 | 710 | <div class="ee-attention txn-admin-apply-payment-accounting-dv admin-modal-dialog-row"> |
@@ -713,9 +713,9 @@ discard block |
||
713 | 713 | <input type="checkbox" value="1" name="delete_txn_reg_status_change[send_notifications]"> |
714 | 714 | <p class="description"> |
715 | 715 | <?php esc_html_e( |
716 | - 'If you check this box, the system will send any related registration messages matching the status of the registrations to each registration for this transaction. No Payment notifications are sent when deleting a payment.', |
|
717 | - 'event_espresso' |
|
718 | - ); ?></p> |
|
716 | + 'If you check this box, the system will send any related registration messages matching the status of the registrations to each registration for this transaction. No Payment notifications are sent when deleting a payment.', |
|
717 | + 'event_espresso' |
|
718 | + ); ?></p> |
|
719 | 719 | </div> |
720 | 720 | <div class="clear"></div> |
721 | 721 | |
@@ -747,16 +747,16 @@ discard block |
||
747 | 747 | <?php endif; // $grand_raw_total > 0?> |
748 | 748 | |
749 | 749 | <?php |
750 | - if (WP_DEBUG) { |
|
751 | - $delivered_messages = get_option('EED_Messages__payment', array()); |
|
752 | - if (isset($delivered_messages[ $TXN_ID ])) { |
|
753 | - ?> |
|
750 | + if (WP_DEBUG) { |
|
751 | + $delivered_messages = get_option('EED_Messages__payment', array()); |
|
752 | + if (isset($delivered_messages[ $TXN_ID ])) { |
|
753 | + ?> |
|
754 | 754 | <h4 class="admin-primary-mbox-h4 hdr-has-icon"><span |
755 | 755 | class="dashicons dashicons-email-alt"></span> |
756 | 756 | <?php esc_html_e( |
757 | - 'Messages Sent to Primary Registrant', |
|
758 | - 'event_espresso' |
|
759 | - ); ?></h4> |
|
757 | + 'Messages Sent to Primary Registrant', |
|
758 | + 'event_espresso' |
|
759 | + ); ?></h4> |
|
760 | 760 | |
761 | 761 | <div class="admin-primary-mbox-tbl-wrap"> |
762 | 762 | <table class="admin-primary-mbox-tbl"> |
@@ -770,26 +770,26 @@ discard block |
||
770 | 770 | </thead> |
771 | 771 | <tbody> |
772 | 772 | <?php foreach ($delivered_messages[ $TXN_ID ] as $timestamp => $delivered_message) : |
773 | - ?> |
|
773 | + ?> |
|
774 | 774 | <tr> |
775 | 775 | <td class="jst-left"> |
776 | 776 | <?php echo date( |
777 | - get_option('date_format') . ' ' . get_option('time_format'), |
|
778 | - ($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS)) |
|
779 | - ); ?></td> |
|
777 | + get_option('date_format') . ' ' . get_option('time_format'), |
|
778 | + ($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS)) |
|
779 | + ); ?></td> |
|
780 | 780 | <td class="jst-left"><?php echo isset($delivered_message['message_type']) |
781 | - ? $delivered_message['message_type'] : ''; ?></td> |
|
781 | + ? $delivered_message['message_type'] : ''; ?></td> |
|
782 | 782 | <td class="jst-left"><?php echo isset($delivered_message['pay_status']) |
783 | - ? $delivered_message['pay_status'] : ''; ?></td> |
|
783 | + ? $delivered_message['pay_status'] : ''; ?></td> |
|
784 | 784 | <td class="jst-left"><?php echo isset($delivered_message['txn_status']) |
785 | - ? $delivered_message['txn_status'] : ''; ?></td> |
|
785 | + ? $delivered_message['txn_status'] : ''; ?></td> |
|
786 | 786 | </tr> |
787 | 787 | <?php endforeach; // $delivered_messages?> |
788 | 788 | </tbody> |
789 | 789 | </table> |
790 | 790 | </div> |
791 | 791 | <?php |
792 | - } |
|
793 | - } |
|
794 | - ?> |
|
792 | + } |
|
793 | + } |
|
794 | + ?> |
|
795 | 795 | </div> |
@@ -210,10 +210,13 @@ discard block |
||
210 | 210 | false |
211 | 211 | ); ?></span></th> |
212 | 212 | </tr> |
213 | - <?php else : ?> |
|
213 | + <?php else { |
|
214 | + : ?> |
|
214 | 215 | <tr id="txn-admin-no-payments-tr" class="admin-primary-mbox-total-tr"> |
215 | 216 | <td class=" jst-rght" colspan="10"> |
216 | - <span class="important-notice"><?php echo $no_payment_text; ?></span> |
|
217 | + <span class="important-notice"><?php echo $no_payment_text; |
|
218 | +} |
|
219 | +?></span> |
|
217 | 220 | </td> |
218 | 221 | </tr> |
219 | 222 | <tr id="txn-admin-payments-total-tr" class="admin-primary-mbox-total-tr hidden"> |
@@ -302,13 +305,16 @@ discard block |
||
302 | 305 | <?php esc_html_e('Apply Refund', 'event_espresso'); ?> |
303 | 306 | </a> |
304 | 307 | </li> |
305 | - <?php else : ?> |
|
308 | + <?php else { |
|
309 | + : ?> |
|
306 | 310 | <li> |
307 | 311 | <p> |
308 | 312 | <?php esc_html__( |
309 | 313 | 'You do not have access to apply payments or refunds.', |
310 | 314 | 'event_espresso' |
311 | - ); ?></p> |
|
315 | + ); |
|
316 | +} |
|
317 | +?></p> |
|
312 | 318 | </li> |
313 | 319 | <?php endif; ?> |
314 | 320 | <?php |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <h3 class="txn-navigation-strip"><?php echo $previous_transaction . ' '; |
2 | - echo __('Transaction # ', 'event_espresso') . $txn_nmbr['value']; |
|
3 | - echo ' ' . $next_transaction; ?></h3> |
|
2 | + echo __('Transaction # ', 'event_espresso') . $txn_nmbr['value']; |
|
3 | + echo ' ' . $next_transaction; ?></h3> |
|
4 | 4 | <h2 id="txn-date-h2" class="txn-date-h2"><?php echo $txn_datetime['value']; ?></h2> |
5 | 5 | <h2 id="txn-status-h2" class="txn-status-h2"> |
6 | 6 | <?php echo __('Transaction Status: ', 'event_espresso'); ?><span id="txn-status" |
@@ -1,6 +1,6 @@ |
||
1 | -<h3 class="txn-navigation-strip"><?php echo $previous_transaction . ' '; |
|
2 | - echo __('Transaction # ', 'event_espresso') . $txn_nmbr['value']; |
|
3 | - echo ' ' . $next_transaction; ?></h3> |
|
1 | +<h3 class="txn-navigation-strip"><?php echo $previous_transaction.' '; |
|
2 | + echo __('Transaction # ', 'event_espresso').$txn_nmbr['value']; |
|
3 | + echo ' '.$next_transaction; ?></h3> |
|
4 | 4 | <h2 id="txn-date-h2" class="txn-date-h2"><?php echo $txn_datetime['value']; ?></h2> |
5 | 5 | <h2 id="txn-status-h2" class="txn-status-h2"> |
6 | 6 | <?php echo __('Transaction Status: ', 'event_espresso'); ?><span id="txn-status" |