@@ -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> |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | |
292 | 292 | <ul id="txn-admin-payment-options-ul"> |
293 | 293 | <?php if ($can_edit_payments) : |
294 | - ?> |
|
294 | + ?> |
|
295 | 295 | <li> |
296 | 296 | <a id="display-txn-admin-apply-payment" class="button-primary no-icon no-hide" |
297 | 297 | rel="txn-admin-apply-payment"> <!--display-the-hidden --> |
@@ -308,9 +308,9 @@ discard block |
||
308 | 308 | <li> |
309 | 309 | <p> |
310 | 310 | <?php esc_html__( |
311 | - 'You do not have access to apply payments or refunds.', |
|
312 | - 'event_espresso' |
|
313 | - ); ?></p> |
|
311 | + 'You do not have access to apply payments or refunds.', |
|
312 | + 'event_espresso' |
|
313 | + ); ?></p> |
|
314 | 314 | </li> |
315 | 315 | <?php endif; ?> |
316 | 316 | </ul> |
@@ -328,23 +328,23 @@ discard block |
||
328 | 328 | style="display:none;"> |
329 | 329 | <div class="ee-icon ee-icon-cash-edit float-left"></div> |
330 | 330 | <?php |
331 | - echo sprintf( |
|
332 | - __('Edit Payment #%s for Transaction #%s', 'event_espresso'), |
|
333 | - '<span></span>', |
|
334 | - $txn_nmbr['value'] |
|
335 | - ); |
|
336 | - ?> |
|
331 | + echo sprintf( |
|
332 | + __('Edit Payment #%s for Transaction #%s', 'event_espresso'), |
|
333 | + '<span></span>', |
|
334 | + $txn_nmbr['value'] |
|
335 | + ); |
|
336 | + ?> |
|
337 | 337 | </h2> |
338 | 338 | |
339 | 339 | <h2 id="admin-modal-dialog-edit-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon" style="display:none;"> |
340 | 340 | <div class="ee-icon ee-icon-cash-edit float-left"></div> |
341 | 341 | <?php |
342 | - echo sprintf( |
|
343 | - __('Edit Refund #%s for Transaction #%s', 'event_espresso'), |
|
344 | - '<span></span>', |
|
345 | - $txn_nmbr['value'] |
|
346 | - ); |
|
347 | - ?> |
|
342 | + echo sprintf( |
|
343 | + __('Edit Refund #%s for Transaction #%s', 'event_espresso'), |
|
344 | + '<span></span>', |
|
345 | + $txn_nmbr['value'] |
|
346 | + ); |
|
347 | + ?> |
|
348 | 348 | </h2> |
349 | 349 | |
350 | 350 | <h2 id="admin-modal-dialog-apply-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon" |
@@ -378,55 +378,55 @@ discard block |
||
378 | 378 | <div class="txn-admin-apply-payment-date-dv admin-modal-dialog-row"> |
379 | 379 | <div class="validation-notice-dv"> |
380 | 380 | <?php esc_html_e( |
381 | - 'The following is a required field', |
|
382 | - 'event_espresso' |
|
383 | - ); ?></div> |
|
381 | + 'The following is a required field', |
|
382 | + 'event_espresso' |
|
383 | + ); ?></div> |
|
384 | 384 | <label for="txn-admin-payment-date-inp" class=""> |
385 | 385 | <?php esc_html_e( |
386 | - 'Payment Date', |
|
387 | - 'event_espresso' |
|
388 | - ); ?></label> |
|
386 | + 'Payment Date', |
|
387 | + 'event_espresso' |
|
388 | + ); ?></label> |
|
389 | 389 | <input name="txn_admin_payment[date]" id="txn-admin-payment-date-inp" |
390 | 390 | class="txn-admin-apply-payment-inp required" type="text" |
391 | 391 | value="<?php echo date('Y-m-d g:i a', current_time('timestamp')); ?>"/> |
392 | 392 | <p class="description"> |
393 | 393 | <?php esc_html_e( |
394 | - 'The date the payment was actually made on', |
|
395 | - 'event_espresso' |
|
396 | - ); ?></p> |
|
394 | + 'The date the payment was actually made on', |
|
395 | + 'event_espresso' |
|
396 | + ); ?></p> |
|
397 | 397 | </div> |
398 | 398 | |
399 | 399 | <div class="txn-admin-apply-payment-amount-dv admin-modal-dialog-row"> |
400 | 400 | <div class="validation-notice-dv"> |
401 | 401 | <?php esc_html_e( |
402 | - 'The following is a required field', |
|
403 | - 'event_espresso' |
|
404 | - ); ?></div> |
|
402 | + 'The following is a required field', |
|
403 | + 'event_espresso' |
|
404 | + ); ?></div> |
|
405 | 405 | <label for="txn-admin-payment-amount-inp" class=""> |
406 | 406 | <?php esc_html_e( |
407 | - 'Amount', |
|
408 | - 'event_espresso' |
|
409 | - ); ?></label> |
|
407 | + 'Amount', |
|
408 | + 'event_espresso' |
|
409 | + ); ?></label> |
|
410 | 410 | <input name="txn_admin_payment[amount]" id="txn-admin-payment-amount-inp" |
411 | 411 | class="txn-admin-apply-payment-inp required" type="text" value=""/> |
412 | 412 | <p class="description"> |
413 | 413 | <?php esc_html_e( |
414 | - 'The amount of the payment', |
|
415 | - 'event_espresso' |
|
416 | - ); ?></p> |
|
414 | + 'The amount of the payment', |
|
415 | + 'event_espresso' |
|
416 | + ); ?></p> |
|
417 | 417 | </div> |
418 | 418 | |
419 | 419 | <div class="txn-admin-apply-payment-method-dv admin-modal-dialog-row"> |
420 | 420 | <div class="validation-notice-dv"> |
421 | 421 | <?php esc_html_e( |
422 | - 'The following is a required field', |
|
423 | - 'event_espresso' |
|
424 | - ); ?></div> |
|
422 | + 'The following is a required field', |
|
423 | + 'event_espresso' |
|
424 | + ); ?></div> |
|
425 | 425 | <label for="txn-admin-payment-method-inp" class=""> |
426 | 426 | <?php esc_html_e( |
427 | - 'Method of Payment', |
|
428 | - 'event_espresso' |
|
429 | - ); ?></label> |
|
427 | + 'Method of Payment', |
|
428 | + 'event_espresso' |
|
429 | + ); ?></label> |
|
430 | 430 | <select name="txn_admin_payment[PMD_ID]" id="txn-admin-payment-method-slct" |
431 | 431 | class="txn-admin-apply-payment-slct required" type="text"> |
432 | 432 | <?php foreach ($payment_methods as $method) : ?> |
@@ -434,39 +434,39 @@ discard block |
||
434 | 434 | <option id="payment-method-opt-<?php echo $method->slug(); ?>" |
435 | 435 | value="<?php echo $method->ID(); ?>"<?php echo $selected; ?>> |
436 | 436 | <?php echo sanitize_key( |
437 | - $method->admin_desc() |
|
438 | - ) |
|
439 | - ? substr( |
|
440 | - $method->admin_desc(), |
|
441 | - 0, |
|
442 | - 128 |
|
443 | - ) |
|
444 | - : $method->admin_name(); ?> |
|
437 | + $method->admin_desc() |
|
438 | + ) |
|
439 | + ? substr( |
|
440 | + $method->admin_desc(), |
|
441 | + 0, |
|
442 | + 128 |
|
443 | + ) |
|
444 | + : $method->admin_name(); ?> |
|
445 | 445 | </option> |
446 | 446 | <?php endforeach; ?> |
447 | 447 | </select> |
448 | 448 | <p class="description"> |
449 | 449 | <?php esc_html_e( |
450 | - 'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash', |
|
451 | - 'event_espresso' |
|
452 | - ); ?></p> |
|
450 | + 'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash', |
|
451 | + 'event_espresso' |
|
452 | + ); ?></p> |
|
453 | 453 | </div> |
454 | 454 | |
455 | 455 | <div class="mop-PP mop-CC mop-CHQ mop"> |
456 | 456 | <div class="txn-admin-apply-payment-gw-txn-id-dv admin-modal-dialog-row"> |
457 | 457 | <label for="txn-admin-payment-txn-id-inp" class=""> |
458 | 458 | <?php esc_html_e( |
459 | - 'TXN ID / CHQ #', |
|
460 | - 'event_espresso' |
|
461 | - ); ?></label> |
|
459 | + 'TXN ID / CHQ #', |
|
460 | + 'event_espresso' |
|
461 | + ); ?></label> |
|
462 | 462 | <input name="txn_admin_payment[txn_id_chq_nmbr]" |
463 | 463 | id="txn-admin-payment-txn-id-chq-nmbr-inp" class="txn-admin-apply-payment-inp" |
464 | 464 | type="text" maxlength="100"/> |
465 | 465 | <p class="description"> |
466 | 466 | <?php esc_html_e( |
467 | - 'The Transaction ID sent back from the payment gateway, or the Cheque #', |
|
468 | - 'event_espresso' |
|
469 | - ); ?></p> |
|
467 | + 'The Transaction ID sent back from the payment gateway, or the Cheque #', |
|
468 | + 'event_espresso' |
|
469 | + ); ?></p> |
|
470 | 470 | </div> |
471 | 471 | </div> |
472 | 472 | |
@@ -479,9 +479,9 @@ discard block |
||
479 | 479 | type="text"/> |
480 | 480 | <p class="description"> |
481 | 481 | <?php esc_html_e( |
482 | - 'The gateway response string (optional)', |
|
483 | - 'event_espresso' |
|
484 | - ); ?></p> |
|
482 | + 'The gateway response string (optional)', |
|
483 | + 'event_espresso' |
|
484 | + ); ?></p> |
|
485 | 485 | </div> |
486 | 486 | </div> |
487 | 487 | |
@@ -489,9 +489,9 @@ discard block |
||
489 | 489 | <div class="txn-admin-apply-payment-status-dv admin-modal-dialog-row"> |
490 | 490 | <label for="txn-admin-payment-status-inp" class=""> |
491 | 491 | <?php esc_html_e( |
492 | - 'Payment Status', |
|
493 | - 'event_espresso' |
|
494 | - ); ?></label> |
|
492 | + 'Payment Status', |
|
493 | + 'event_espresso' |
|
494 | + ); ?></label> |
|
495 | 495 | <select name="txn_admin_payment[status]" id="txn-admin-payment-status-slct" |
496 | 496 | class="txn-admin-apply-payment-slct" type="text"> |
497 | 497 | <?php foreach ($payment_status as $STS_ID => $STS_code) : ?> |
@@ -504,52 +504,52 @@ discard block |
||
504 | 504 | </select> |
505 | 505 | <p class="description"> |
506 | 506 | <?php esc_html_e( |
507 | - 'Whether the payment was approved, cancelled, declined or failed after submission to the gateway', |
|
508 | - 'event_espresso' |
|
509 | - ); ?></p> |
|
507 | + 'Whether the payment was approved, cancelled, declined or failed after submission to the gateway', |
|
508 | + 'event_espresso' |
|
509 | + ); ?></p> |
|
510 | 510 | </div> |
511 | 511 | </div> |
512 | 512 | |
513 | 513 | <div class="txn-admin-apply-payment-po-nmbr-dv admin-modal-dialog-row"> |
514 | 514 | <label for="txn-admin-payment-po-nmbr-inp" class=""> |
515 | 515 | <?php esc_html_e( |
516 | - 'P.O. / S.O. #', |
|
517 | - 'event_espresso' |
|
518 | - ); ?></label> |
|
516 | + 'P.O. / S.O. #', |
|
517 | + 'event_espresso' |
|
518 | + ); ?></label> |
|
519 | 519 | <input name="txn_admin_payment[po_number]" id="txn-admin-payment-po-nmbr-inp" |
520 | 520 | class="txn-admin-apply-payment-inp" type="text" maxlength="100"/> |
521 | 521 | <p class="description"> |
522 | 522 | <?php esc_html_e( |
523 | - 'The Purchase or Sales Order Number if any (optional)', |
|
524 | - 'event_espresso' |
|
525 | - ); ?></p> |
|
523 | + 'The Purchase or Sales Order Number if any (optional)', |
|
524 | + 'event_espresso' |
|
525 | + ); ?></p> |
|
526 | 526 | </div> |
527 | 527 | |
528 | 528 | <div class="txn-admin-apply-payment-accounting-dv admin-modal-dialog-row"> |
529 | 529 | <label for="txn-admin-payment-accounting-inp" |
530 | 530 | class="last"> |
531 | 531 | <?php esc_html_e( |
532 | - 'Notes / Extra Accounting', |
|
533 | - 'event_espresso' |
|
534 | - ); ?></label> |
|
532 | + 'Notes / Extra Accounting', |
|
533 | + 'event_espresso' |
|
534 | + ); ?></label> |
|
535 | 535 | <input name="txn_admin_payment[accounting]" id="txn-admin-payment-accounting-inp" |
536 | 536 | class="txn-admin-apply-payment-inp" type="text" value="<?php echo $REG_code; ?>" |
537 | 537 | maxlength="100"/> <input type="hidden" id="txn-admin-reg-code-inp" |
538 | 538 | value="<?php echo $REG_code; ?>"/> |
539 | 539 | <p class="description"> |
540 | 540 | <?php esc_html_e( |
541 | - 'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.', |
|
542 | - 'event_espresso' |
|
543 | - ); ?></p> |
|
541 | + 'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.', |
|
542 | + 'event_espresso' |
|
543 | + ); ?></p> |
|
544 | 544 | </div> |
545 | 545 | |
546 | 546 | <div class="txn-admin-apply-payment-registrations-dv admin-modal-dialog-row"> |
547 | 547 | <label for="txn-admin-payment-registrations-inp" |
548 | 548 | class="last"> |
549 | 549 | <?php esc_html_e( |
550 | - 'Registrations to Apply Payment to:', |
|
551 | - 'event_espresso' |
|
552 | - ); ?></label> |
|
550 | + 'Registrations to Apply Payment to:', |
|
551 | + 'event_espresso' |
|
552 | + ); ?></label> |
|
553 | 553 | <label class="txn-admin-apply-payment-to-registrations-lbl"> |
554 | 554 | <input type="radio" value="1" id="txn-admin-apply-payment-to-all-registrations-inp" |
555 | 555 | name="txn_admin_payment[apply_to_all_registrations]" checked="checked"/> |
@@ -567,15 +567,15 @@ discard block |
||
567 | 567 | <label for="txn-admin-payment-reg-status-inp" |
568 | 568 | class="last"> |
569 | 569 | <?php esc_html_e( |
570 | - 'Change Registration Status?', |
|
571 | - 'event_espresso' |
|
572 | - ); ?></label> |
|
570 | + 'Change Registration Status?', |
|
571 | + 'event_espresso' |
|
572 | + ); ?></label> |
|
573 | 573 | <?php echo $status_change_select; ?> |
574 | 574 | <p class="description"> |
575 | 575 | <?php esc_html_e( |
576 | - 'If you wish to change the status for the registrations selected above, then select which status from this dropdown.', |
|
577 | - 'event_espresso' |
|
578 | - ); ?></p> |
|
576 | + 'If you wish to change the status for the registrations selected above, then select which status from this dropdown.', |
|
577 | + 'event_espresso' |
|
578 | + ); ?></p> |
|
579 | 579 | <br/> |
580 | 580 | </div> |
581 | 581 | |
@@ -596,14 +596,14 @@ discard block |
||
596 | 596 | <br class="clear-float"/> |
597 | 597 | <p class="description"> |
598 | 598 | <?php printf( |
599 | - esc_html__( |
|
600 | - '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.', |
|
601 | - 'event_espresso' |
|
602 | - ), |
|
603 | - '<strong>', |
|
604 | - '</strong>', |
|
605 | - '<br />' |
|
606 | - ); ?></p> |
|
599 | + esc_html__( |
|
600 | + '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.', |
|
601 | + 'event_espresso' |
|
602 | + ), |
|
603 | + '<strong>', |
|
604 | + '</strong>', |
|
605 | + '<br />' |
|
606 | + ); ?></p> |
|
607 | 607 | <label></label> |
608 | 608 | </div> |
609 | 609 | <div class="clear"></div> |
@@ -644,9 +644,9 @@ discard block |
||
644 | 644 | <li> |
645 | 645 | <span id="ee-ajax-processing-text" style="display:none;"> |
646 | 646 | <?php esc_html_e( |
647 | - 'Processing...', |
|
648 | - 'event_espresso' |
|
649 | - ); ?></span> |
|
647 | + 'Processing...', |
|
648 | + 'event_espresso' |
|
649 | + ); ?></span> |
|
650 | 650 | </li> |
651 | 651 | </ul> |
652 | 652 | |
@@ -661,9 +661,9 @@ discard block |
||
661 | 661 | style="display:none;"> |
662 | 662 | <span class="ee-icon ee-icon-cash-add"></span> |
663 | 663 | <?php echo esc_html__( |
664 | - 'Delete Payment/Refund for Transaction #', |
|
665 | - 'event_espresso' |
|
666 | - ) . $txn_nmbr['value']; ?> |
|
664 | + 'Delete Payment/Refund for Transaction #', |
|
665 | + 'event_espresso' |
|
666 | + ) . $txn_nmbr['value']; ?> |
|
667 | 667 | </h2> |
668 | 668 | |
669 | 669 | <form name="txn-admin-delete-payment-frm" id="txn-admin-delete-payment-frm" |
@@ -685,19 +685,19 @@ discard block |
||
685 | 685 | <label for="delete-txn-admin-payment-reg-status-inp" |
686 | 686 | class="last"> |
687 | 687 | <?php esc_html_e( |
688 | - 'Change Registration Status?', |
|
689 | - 'event_espresso' |
|
690 | - ); ?></label> |
|
688 | + 'Change Registration Status?', |
|
689 | + 'event_espresso' |
|
690 | + ); ?></label> |
|
691 | 691 | <?php echo $delete_status_change_select; ?> |
692 | 692 | <p class="description"> |
693 | 693 | <?php printf( |
694 | - esc_html__( |
|
695 | - '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', |
|
696 | - 'event_espresso' |
|
697 | - ), |
|
698 | - '<strong>', |
|
699 | - '</strong>' |
|
700 | - ); ?></p> |
|
694 | + esc_html__( |
|
695 | + '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', |
|
696 | + 'event_espresso' |
|
697 | + ), |
|
698 | + '<strong>', |
|
699 | + '</strong>' |
|
700 | + ); ?></p> |
|
701 | 701 | </div> |
702 | 702 | |
703 | 703 | <div class="ee-attention txn-admin-apply-payment-accounting-dv admin-modal-dialog-row"> |
@@ -706,9 +706,9 @@ discard block |
||
706 | 706 | <input type="checkbox" value="1" name="delete_txn_reg_status_change[send_notifications]"> |
707 | 707 | <p class="description"> |
708 | 708 | <?php esc_html_e( |
709 | - '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.', |
|
710 | - 'event_espresso' |
|
711 | - ); ?></p> |
|
709 | + '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.', |
|
710 | + 'event_espresso' |
|
711 | + ); ?></p> |
|
712 | 712 | </div> |
713 | 713 | <div class="clear"></div> |
714 | 714 | |
@@ -740,16 +740,16 @@ discard block |
||
740 | 740 | <?php endif; // $grand_raw_total > 0?> |
741 | 741 | |
742 | 742 | <?php |
743 | - if (WP_DEBUG) { |
|
744 | - $delivered_messages = get_option('EED_Messages__payment', array()); |
|
745 | - if (isset($delivered_messages[ $TXN_ID ])) { |
|
746 | - ?> |
|
743 | + if (WP_DEBUG) { |
|
744 | + $delivered_messages = get_option('EED_Messages__payment', array()); |
|
745 | + if (isset($delivered_messages[ $TXN_ID ])) { |
|
746 | + ?> |
|
747 | 747 | <h4 class="admin-primary-mbox-h4 hdr-has-icon"><span |
748 | 748 | class="dashicons dashicons-email-alt"></span> |
749 | 749 | <?php esc_html_e( |
750 | - 'Messages Sent to Primary Registrant', |
|
751 | - 'event_espresso' |
|
752 | - ); ?></h4> |
|
750 | + 'Messages Sent to Primary Registrant', |
|
751 | + 'event_espresso' |
|
752 | + ); ?></h4> |
|
753 | 753 | |
754 | 754 | <div class="admin-primary-mbox-tbl-wrap"> |
755 | 755 | <table class="admin-primary-mbox-tbl"> |
@@ -763,26 +763,26 @@ discard block |
||
763 | 763 | </thead> |
764 | 764 | <tbody> |
765 | 765 | <?php foreach ($delivered_messages[ $TXN_ID ] as $timestamp => $delivered_message) : |
766 | - ?> |
|
766 | + ?> |
|
767 | 767 | <tr> |
768 | 768 | <td class="jst-left"> |
769 | 769 | <?php echo date( |
770 | - get_option('date_format') . ' ' . get_option('time_format'), |
|
771 | - ($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS)) |
|
772 | - ); ?></td> |
|
770 | + get_option('date_format') . ' ' . get_option('time_format'), |
|
771 | + ($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS)) |
|
772 | + ); ?></td> |
|
773 | 773 | <td class="jst-left"><?php echo isset($delivered_message['message_type']) |
774 | - ? $delivered_message['message_type'] : ''; ?></td> |
|
774 | + ? $delivered_message['message_type'] : ''; ?></td> |
|
775 | 775 | <td class="jst-left"><?php echo isset($delivered_message['pay_status']) |
776 | - ? $delivered_message['pay_status'] : ''; ?></td> |
|
776 | + ? $delivered_message['pay_status'] : ''; ?></td> |
|
777 | 777 | <td class="jst-left"><?php echo isset($delivered_message['txn_status']) |
778 | - ? $delivered_message['txn_status'] : ''; ?></td> |
|
778 | + ? $delivered_message['txn_status'] : ''; ?></td> |
|
779 | 779 | </tr> |
780 | 780 | <?php endforeach; // $delivered_messages?> |
781 | 781 | </tbody> |
782 | 782 | </table> |
783 | 783 | </div> |
784 | 784 | <?php |
785 | - } |
|
786 | - } |
|
787 | - ?> |
|
785 | + } |
|
786 | + } |
|
787 | + ?> |
|
788 | 788 | </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"> |
@@ -304,13 +307,16 @@ discard block |
||
304 | 307 | <?php esc_html_e('Apply Refund', 'event_espresso'); ?> |
305 | 308 | </a> |
306 | 309 | </li> |
307 | - <?php else : ?> |
|
310 | + <?php else { |
|
311 | + : ?> |
|
308 | 312 | <li> |
309 | 313 | <p> |
310 | 314 | <?php esc_html__( |
311 | 315 | 'You do not have access to apply payments or refunds.', |
312 | 316 | 'event_espresso' |
313 | - ); ?></p> |
|
317 | + ); |
|
318 | +} |
|
319 | +?></p> |
|
314 | 320 | </li> |
315 | 321 | <?php endif; ?> |
316 | 322 | </ul> |
@@ -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" |
@@ -22,11 +22,11 @@ |
||
22 | 22 | <td class="jst-left"><?php echo $attendee['event_ticket_name']; ?></td> |
23 | 23 | <td class="jst-left"> |
24 | 24 | <?php |
25 | - $att_link = EE_Admin_Page::add_query_args_and_nonce( |
|
26 | - array('action' => 'view_registration', '_REG_ID' => $registration), |
|
27 | - REG_ADMIN_URL |
|
28 | - ); |
|
29 | - ?> |
|
25 | + $att_link = EE_Admin_Page::add_query_args_and_nonce( |
|
26 | + array('action' => 'view_registration', '_REG_ID' => $registration), |
|
27 | + REG_ADMIN_URL |
|
28 | + ); |
|
29 | + ?> |
|
30 | 30 | <a href="<?php echo $att_link; ?>" |
31 | 31 | title="<?php _e('View details for this registrant', 'event_espresso'); ?>"> |
32 | 32 | <?php echo $attendee['attendee'] ?> |
@@ -16,37 +16,37 @@ |
||
16 | 16 | { |
17 | 17 | |
18 | 18 | |
19 | - public function __construct() |
|
20 | - { |
|
21 | - // define some help/support page related constants |
|
22 | - define('EE_OTHER_SERVICES_PG_SLUG', 'espresso_packages'); |
|
23 | - define('EE_OTHER_SERVICES_ADMIN_URL', admin_url('admin.php?page=' . EE_OTHER_SERVICES_PG_SLUG)); |
|
24 | - define('EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'other_services/templates/'); |
|
25 | - define('EE_OTHER_SERVICES_ADMIN', EE_ADMIN_PAGES . 'other_services/'); |
|
26 | - define('EE_OTHER_SERVICES_ASSETS_URL', EE_ADMIN_PAGES_URL . 'other_services/assets/'); |
|
19 | + public function __construct() |
|
20 | + { |
|
21 | + // define some help/support page related constants |
|
22 | + define('EE_OTHER_SERVICES_PG_SLUG', 'espresso_packages'); |
|
23 | + define('EE_OTHER_SERVICES_ADMIN_URL', admin_url('admin.php?page=' . EE_OTHER_SERVICES_PG_SLUG)); |
|
24 | + define('EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'other_services/templates/'); |
|
25 | + define('EE_OTHER_SERVICES_ADMIN', EE_ADMIN_PAGES . 'other_services/'); |
|
26 | + define('EE_OTHER_SERVICES_ASSETS_URL', EE_ADMIN_PAGES_URL . 'other_services/assets/'); |
|
27 | 27 | |
28 | - parent::__construct(); |
|
29 | - } |
|
28 | + parent::__construct(); |
|
29 | + } |
|
30 | 30 | |
31 | - protected function _set_init_properties() |
|
32 | - { |
|
33 | - $this->label = __('Extensions & Services', 'event_espresso'); |
|
34 | - } |
|
31 | + protected function _set_init_properties() |
|
32 | + { |
|
33 | + $this->label = __('Extensions & Services', 'event_espresso'); |
|
34 | + } |
|
35 | 35 | |
36 | - protected function _set_menu_map() |
|
37 | - { |
|
38 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
39 | - array( |
|
40 | - 'menu_group' => 'extras', |
|
41 | - 'menu_order' => 30, |
|
42 | - 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN, |
|
43 | - 'parent_slug' => 'espresso_events', |
|
44 | - 'menu_slug' => EE_OTHER_SERVICES_PG_SLUG, |
|
45 | - 'menu_label' => __('Extensions & Services', 'event_espresso'), |
|
46 | - 'capability' => 'ee_read_ee', |
|
47 | - 'maintenance_mode_parent' => 'espresso_maintenance_settings', |
|
48 | - 'admin_init_page' => $this, |
|
49 | - ) |
|
50 | - ); |
|
51 | - } |
|
36 | + protected function _set_menu_map() |
|
37 | + { |
|
38 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
39 | + array( |
|
40 | + 'menu_group' => 'extras', |
|
41 | + 'menu_order' => 30, |
|
42 | + 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN, |
|
43 | + 'parent_slug' => 'espresso_events', |
|
44 | + 'menu_slug' => EE_OTHER_SERVICES_PG_SLUG, |
|
45 | + 'menu_label' => __('Extensions & Services', 'event_espresso'), |
|
46 | + 'capability' => 'ee_read_ee', |
|
47 | + 'maintenance_mode_parent' => 'espresso_maintenance_settings', |
|
48 | + 'admin_init_page' => $this, |
|
49 | + ) |
|
50 | + ); |
|
51 | + } |
|
52 | 52 | } |
@@ -20,10 +20,10 @@ |
||
20 | 20 | { |
21 | 21 | // define some help/support page related constants |
22 | 22 | define('EE_OTHER_SERVICES_PG_SLUG', 'espresso_packages'); |
23 | - define('EE_OTHER_SERVICES_ADMIN_URL', admin_url('admin.php?page=' . EE_OTHER_SERVICES_PG_SLUG)); |
|
24 | - define('EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'other_services/templates/'); |
|
25 | - define('EE_OTHER_SERVICES_ADMIN', EE_ADMIN_PAGES . 'other_services/'); |
|
26 | - define('EE_OTHER_SERVICES_ASSETS_URL', EE_ADMIN_PAGES_URL . 'other_services/assets/'); |
|
23 | + define('EE_OTHER_SERVICES_ADMIN_URL', admin_url('admin.php?page='.EE_OTHER_SERVICES_PG_SLUG)); |
|
24 | + define('EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES.'other_services/templates/'); |
|
25 | + define('EE_OTHER_SERVICES_ADMIN', EE_ADMIN_PAGES.'other_services/'); |
|
26 | + define('EE_OTHER_SERVICES_ASSETS_URL', EE_ADMIN_PAGES_URL.'other_services/assets/'); |
|
27 | 27 | |
28 | 28 | parent::__construct(); |
29 | 29 | } |
@@ -17,94 +17,94 @@ |
||
17 | 17 | { |
18 | 18 | |
19 | 19 | |
20 | - protected function _init_page_props() |
|
21 | - { |
|
22 | - $this->page_slug = EE_OTHER_SERVICES_PG_SLUG; |
|
23 | - $this->page_label = __('Extensions & Services', 'event_espresso'); |
|
24 | - $this->_admin_base_url = EE_OTHER_SERVICES_ADMIN_URL; |
|
25 | - $this->_admin_base_path = EE_OTHER_SERVICES_ADMIN; |
|
26 | - } |
|
27 | - |
|
28 | - |
|
29 | - protected function _ajax_hooks() |
|
30 | - { |
|
31 | - // todo: all hooks for ajax goes here. |
|
32 | - } |
|
33 | - |
|
34 | - |
|
35 | - protected function _define_page_props() |
|
36 | - { |
|
37 | - $this->_labels = array(); |
|
38 | - $this->_admin_page_title = $this->page_label; |
|
39 | - } |
|
40 | - |
|
41 | - |
|
42 | - protected function _set_page_routes() |
|
43 | - { |
|
44 | - $this->_page_routes = array( |
|
45 | - 'default' => array( |
|
46 | - 'func' => '_other_services', |
|
47 | - 'capability' => 'ee_read_ee', |
|
48 | - ), |
|
49 | - ); |
|
50 | - } |
|
51 | - |
|
52 | - |
|
53 | - protected function _set_page_config() |
|
54 | - { |
|
55 | - $this->_page_config = array( |
|
56 | - 'default' => array( |
|
57 | - 'nav' => array( |
|
58 | - 'label' => __('Other Available Services', 'event_espresso'), |
|
59 | - 'order' => 10, |
|
60 | - ), |
|
61 | - 'require_nonce' => false, |
|
62 | - ), |
|
63 | - ); |
|
64 | - } |
|
65 | - |
|
66 | - |
|
67 | - // none of the below group are currently used for Support pages |
|
68 | - protected function _add_screen_options() |
|
69 | - { |
|
70 | - } |
|
71 | - |
|
72 | - protected function _add_feature_pointers() |
|
73 | - { |
|
74 | - } |
|
75 | - |
|
76 | - public function admin_init() |
|
77 | - { |
|
78 | - } |
|
79 | - |
|
80 | - public function admin_notices() |
|
81 | - { |
|
82 | - } |
|
83 | - |
|
84 | - public function admin_footer_scripts() |
|
85 | - { |
|
86 | - } |
|
87 | - |
|
88 | - |
|
89 | - public function load_scripts_styles() |
|
90 | - { |
|
91 | - wp_register_style( |
|
92 | - 'ee-other-services-css', |
|
93 | - EE_OTHER_SERVICES_ASSETS_URL . 'other-services.css', |
|
94 | - array('ee-admin-css'), |
|
95 | - EVENT_ESPRESSO_VERSION |
|
96 | - ); |
|
97 | - wp_enqueue_style('ee-other-services-css'); |
|
98 | - } |
|
99 | - |
|
100 | - |
|
101 | - protected function _other_services() |
|
102 | - { |
|
103 | - $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
104 | - EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH . 'other_services_content.template.php', |
|
105 | - array(), |
|
106 | - true |
|
107 | - ); |
|
108 | - $this->display_admin_page_with_no_sidebar(); |
|
109 | - } |
|
20 | + protected function _init_page_props() |
|
21 | + { |
|
22 | + $this->page_slug = EE_OTHER_SERVICES_PG_SLUG; |
|
23 | + $this->page_label = __('Extensions & Services', 'event_espresso'); |
|
24 | + $this->_admin_base_url = EE_OTHER_SERVICES_ADMIN_URL; |
|
25 | + $this->_admin_base_path = EE_OTHER_SERVICES_ADMIN; |
|
26 | + } |
|
27 | + |
|
28 | + |
|
29 | + protected function _ajax_hooks() |
|
30 | + { |
|
31 | + // todo: all hooks for ajax goes here. |
|
32 | + } |
|
33 | + |
|
34 | + |
|
35 | + protected function _define_page_props() |
|
36 | + { |
|
37 | + $this->_labels = array(); |
|
38 | + $this->_admin_page_title = $this->page_label; |
|
39 | + } |
|
40 | + |
|
41 | + |
|
42 | + protected function _set_page_routes() |
|
43 | + { |
|
44 | + $this->_page_routes = array( |
|
45 | + 'default' => array( |
|
46 | + 'func' => '_other_services', |
|
47 | + 'capability' => 'ee_read_ee', |
|
48 | + ), |
|
49 | + ); |
|
50 | + } |
|
51 | + |
|
52 | + |
|
53 | + protected function _set_page_config() |
|
54 | + { |
|
55 | + $this->_page_config = array( |
|
56 | + 'default' => array( |
|
57 | + 'nav' => array( |
|
58 | + 'label' => __('Other Available Services', 'event_espresso'), |
|
59 | + 'order' => 10, |
|
60 | + ), |
|
61 | + 'require_nonce' => false, |
|
62 | + ), |
|
63 | + ); |
|
64 | + } |
|
65 | + |
|
66 | + |
|
67 | + // none of the below group are currently used for Support pages |
|
68 | + protected function _add_screen_options() |
|
69 | + { |
|
70 | + } |
|
71 | + |
|
72 | + protected function _add_feature_pointers() |
|
73 | + { |
|
74 | + } |
|
75 | + |
|
76 | + public function admin_init() |
|
77 | + { |
|
78 | + } |
|
79 | + |
|
80 | + public function admin_notices() |
|
81 | + { |
|
82 | + } |
|
83 | + |
|
84 | + public function admin_footer_scripts() |
|
85 | + { |
|
86 | + } |
|
87 | + |
|
88 | + |
|
89 | + public function load_scripts_styles() |
|
90 | + { |
|
91 | + wp_register_style( |
|
92 | + 'ee-other-services-css', |
|
93 | + EE_OTHER_SERVICES_ASSETS_URL . 'other-services.css', |
|
94 | + array('ee-admin-css'), |
|
95 | + EVENT_ESPRESSO_VERSION |
|
96 | + ); |
|
97 | + wp_enqueue_style('ee-other-services-css'); |
|
98 | + } |
|
99 | + |
|
100 | + |
|
101 | + protected function _other_services() |
|
102 | + { |
|
103 | + $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
104 | + EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH . 'other_services_content.template.php', |
|
105 | + array(), |
|
106 | + true |
|
107 | + ); |
|
108 | + $this->display_admin_page_with_no_sidebar(); |
|
109 | + } |
|
110 | 110 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | { |
91 | 91 | wp_register_style( |
92 | 92 | 'ee-other-services-css', |
93 | - EE_OTHER_SERVICES_ASSETS_URL . 'other-services.css', |
|
93 | + EE_OTHER_SERVICES_ASSETS_URL.'other-services.css', |
|
94 | 94 | array('ee-admin-css'), |
95 | 95 | EVENT_ESPRESSO_VERSION |
96 | 96 | ); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | protected function _other_services() |
102 | 102 | { |
103 | 103 | $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
104 | - EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH . 'other_services_content.template.php', |
|
104 | + EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH.'other_services_content.template.php', |
|
105 | 105 | array(), |
106 | 106 | true |
107 | 107 | ); |
@@ -13,386 +13,386 @@ |
||
13 | 13 | { |
14 | 14 | |
15 | 15 | |
16 | - /** |
|
17 | - * Creates the array for the tips |
|
18 | - */ |
|
19 | - protected function _set_tips_array() |
|
20 | - { |
|
21 | - $this->_qtipsa = array( |
|
22 | - 2 => array( |
|
23 | - 'content_id' => 'dtt-evt-name-label', |
|
24 | - 'target' => '.DTT_name_label', |
|
25 | - 'content' => $this->_get_event_name_label_info(), |
|
26 | - ), |
|
27 | - 3 => array( |
|
28 | - 'content_id' => 'dtt-evt-start-label', |
|
29 | - 'target' => '.DTT_EVT_start_label', |
|
30 | - 'content' => $this->_get_event_start_label_info(), |
|
31 | - ), |
|
32 | - 5 => array( |
|
33 | - 'content_id' => 'dtt-evt-end-label', |
|
34 | - 'target' => '.DTT_EVT_end_label', |
|
35 | - 'content' => $this->_get_event_end_label_info(), |
|
36 | - ), |
|
37 | - 10 => array( |
|
38 | - 'content_id' => 'dtt-reg-limit-label', |
|
39 | - 'target' => '.DTT_reg_limit_label', |
|
40 | - 'content' => $this->_get_event_datetime_DTT_reg_limit_label_info(), |
|
41 | - ), |
|
42 | - 15 => array( |
|
43 | - 'content_id' => 'dtt-sold-label', |
|
44 | - 'target' => '.DTT_sold_label', |
|
45 | - 'content' => $this->_get_event_datetime_DTT_sold_label_info(), |
|
46 | - ), |
|
47 | - 17 => array( |
|
48 | - 'content_id' => 'dtt-reserved-label', |
|
49 | - 'target' => '.DTT_reserved_label', |
|
50 | - 'content' => $this->_get_event_datetime_DTT_reserved_label_info(), |
|
51 | - ), |
|
52 | - 20 => array( |
|
53 | - 'content_id' => 'tkt-name-label', |
|
54 | - 'target' => '.TKT_name_label', |
|
55 | - 'content' => $this->_get_event_ticket_TKT_name_label_info(), |
|
56 | - ), |
|
57 | - 25 => array( |
|
58 | - 'content_id' => 'tkt-goes-on-sale-label', |
|
59 | - 'target' => '.TKT_goes_on_sale_label', |
|
60 | - 'content' => $this->_get_event_ticket_TKT_goes_on_sale_label_info(), |
|
61 | - ), |
|
62 | - 30 => array( |
|
63 | - 'content_id' => 'tkt-sell-until-label', |
|
64 | - 'target' => '.TKT_sell_until_label', |
|
65 | - 'content' => $this->_get_event_ticket_TKT_sell_until_label_info(), |
|
66 | - ), |
|
67 | - 35 => array( |
|
68 | - 'content_id' => 'tkt-price-label', |
|
69 | - 'target' => '.TKT_price_label', |
|
70 | - 'content' => $this->_get_event_ticket_TKT_price_label_info(), |
|
71 | - ), |
|
72 | - 40 => array( |
|
73 | - 'content_id' => 'tkt-qty-label', |
|
74 | - 'target' => '.TKT_qty_label', |
|
75 | - 'content' => $this->_get_event_ticket_TKT_qty_label_info(), |
|
76 | - ), |
|
77 | - 45 => array( |
|
78 | - 'content_id' => 'tkt-sold-label', |
|
79 | - 'target' => '.TKT_sold_label', |
|
80 | - 'content' => $this->_get_event_ticket_TKT_sold_label_info(), |
|
81 | - ), |
|
82 | - 47 => array( |
|
83 | - 'content_id' => 'tkt-reserved-label', |
|
84 | - 'target' => '.TKT_reserved_label', |
|
85 | - 'content' => $this->_get_event_ticket_TKT_reserved_label_info(), |
|
86 | - ), |
|
87 | - 50 => array( |
|
88 | - 'content_id' => 'tkt-regs-label', |
|
89 | - 'target' => '.TKT_regs_label', |
|
90 | - 'content' => $this->_get_event_ticket_TKT_regs_label_info(), |
|
91 | - ), |
|
92 | - 55 => array( |
|
93 | - 'content_id' => 'ant-tkt-name-label', |
|
94 | - 'target' => '.ANT_TKT_name_label', |
|
95 | - 'content' => $this->_get_event_ticket_ANT_TKT_name_label_info(), |
|
96 | - ), |
|
97 | - 60 => array( |
|
98 | - 'content_id' => 'ant-tkt-goes-on-sale-label', |
|
99 | - 'target' => '.ANT_TKT_goes_on_sale_label', |
|
100 | - 'content' => $this->_get_event_ticket_ANT_TKT_goes_on_sale_label_info(), |
|
101 | - ), |
|
102 | - 65 => array( |
|
103 | - 'content_id' => 'ant-tkt-sell-until-label', |
|
104 | - 'target' => '.ANT_TKT_sell_until_label', |
|
105 | - 'content' => $this->_get_event_ticket_ANT_TKT_sell_until_label_info(), |
|
106 | - ), |
|
107 | - 70 => array( |
|
108 | - 'content_id' => 'ant-tkt-price-label', |
|
109 | - 'target' => '.ANT_TKT_price_label', |
|
110 | - 'content' => $this->_get_event_ticket_ANT_TKT_price_label_info(), |
|
111 | - ), |
|
112 | - 75 => array( |
|
113 | - 'content_id' => 'ant-tkt-qty-label', |
|
114 | - 'target' => '.ANT_TKT_qty_label', |
|
115 | - 'content' => $this->_get_event_ticket_ANT_TKT_qty_label_info(), |
|
116 | - ), |
|
117 | - 80 => array( |
|
118 | - 'content_id' => 'ane-dtt-evt-start-label', |
|
119 | - 'target' => '.add-new-event-datetime-DTT_EVT_start_label', |
|
120 | - 'content' => $this->_get_add_new_event_start_label_info(), |
|
121 | - ), |
|
122 | - 85 => array( |
|
123 | - 'content_id' => 'ane-dtt-evt-end-label', |
|
124 | - 'target' => '.add-new-event-datetime-DTT_EVT_end_label', |
|
125 | - 'content' => $this->_get_add_new_event_end_label_info(), |
|
126 | - ), |
|
127 | - 90 => array( |
|
128 | - 'content_id' => 'ane_dtt-reg-limit-label', |
|
129 | - 'target' => '.add-new-event-datetime-DTT_reg_limit_label', |
|
130 | - 'content' => $this->_get_add_new_event_datetime_DTT_reg_limit_label_info(), |
|
131 | - ), |
|
132 | - 100 => array( |
|
133 | - 'content_id' => 'td-tkt-number-datetimes-label', |
|
134 | - 'target' => '.TD_TKT_number_datetimes_label', |
|
135 | - 'content' => $this->_get_event_ticket_TD_TKT_number_datetimes_label_info(), |
|
136 | - ), |
|
137 | - 110 => array( |
|
138 | - 'content_id' => 'td-tkt-min-qty-label', |
|
139 | - 'target' => '.TD_TKT_min_qty_label', |
|
140 | - 'content' => $this->_get_event_ticket_TD_TKT_min_qty_label_info(), |
|
141 | - ), |
|
142 | - 120 => array( |
|
143 | - 'content_id' => 'td-tkt-max-qty-label', |
|
144 | - 'target' => '.TD_TKT_max_qty_label', |
|
145 | - 'content' => $this->_get_event_ticket_TD_TKT_max_qty_label_info(), |
|
146 | - ), |
|
147 | - 130 => array( |
|
148 | - 'content_id' => 'ticket-lock-icon', |
|
149 | - 'target' => '.ticket-archived .ee-lock-icon', |
|
150 | - 'content' => esc_html__( |
|
151 | - 'This ticket was automatically locked and archived because it has a sold quantity and the price was modified. Existing ticket holders will still be verified using these ticket details. However, Event Espresso has automatically created a new active ticket with the modified price for new registrants. This lock is meant to prevent accidental trashing of this ticket. Certain details of this ticket can still be edited (non disabled inputs).', |
|
152 | - 'event_espresso' |
|
153 | - ), |
|
154 | - ), |
|
155 | - 135 => array( |
|
156 | - 'content_id' => 'ticket-lock-icon-event-editor', |
|
157 | - 'target' => '.ee-lock-icon', |
|
158 | - 'content' => esc_html__( |
|
159 | - 'This datetime can no longer be duplicated or deleted because tickets associated with this datetime have already been sold.', |
|
160 | - 'event_espresso' |
|
161 | - ), |
|
162 | - ), |
|
163 | - ); |
|
164 | - } |
|
16 | + /** |
|
17 | + * Creates the array for the tips |
|
18 | + */ |
|
19 | + protected function _set_tips_array() |
|
20 | + { |
|
21 | + $this->_qtipsa = array( |
|
22 | + 2 => array( |
|
23 | + 'content_id' => 'dtt-evt-name-label', |
|
24 | + 'target' => '.DTT_name_label', |
|
25 | + 'content' => $this->_get_event_name_label_info(), |
|
26 | + ), |
|
27 | + 3 => array( |
|
28 | + 'content_id' => 'dtt-evt-start-label', |
|
29 | + 'target' => '.DTT_EVT_start_label', |
|
30 | + 'content' => $this->_get_event_start_label_info(), |
|
31 | + ), |
|
32 | + 5 => array( |
|
33 | + 'content_id' => 'dtt-evt-end-label', |
|
34 | + 'target' => '.DTT_EVT_end_label', |
|
35 | + 'content' => $this->_get_event_end_label_info(), |
|
36 | + ), |
|
37 | + 10 => array( |
|
38 | + 'content_id' => 'dtt-reg-limit-label', |
|
39 | + 'target' => '.DTT_reg_limit_label', |
|
40 | + 'content' => $this->_get_event_datetime_DTT_reg_limit_label_info(), |
|
41 | + ), |
|
42 | + 15 => array( |
|
43 | + 'content_id' => 'dtt-sold-label', |
|
44 | + 'target' => '.DTT_sold_label', |
|
45 | + 'content' => $this->_get_event_datetime_DTT_sold_label_info(), |
|
46 | + ), |
|
47 | + 17 => array( |
|
48 | + 'content_id' => 'dtt-reserved-label', |
|
49 | + 'target' => '.DTT_reserved_label', |
|
50 | + 'content' => $this->_get_event_datetime_DTT_reserved_label_info(), |
|
51 | + ), |
|
52 | + 20 => array( |
|
53 | + 'content_id' => 'tkt-name-label', |
|
54 | + 'target' => '.TKT_name_label', |
|
55 | + 'content' => $this->_get_event_ticket_TKT_name_label_info(), |
|
56 | + ), |
|
57 | + 25 => array( |
|
58 | + 'content_id' => 'tkt-goes-on-sale-label', |
|
59 | + 'target' => '.TKT_goes_on_sale_label', |
|
60 | + 'content' => $this->_get_event_ticket_TKT_goes_on_sale_label_info(), |
|
61 | + ), |
|
62 | + 30 => array( |
|
63 | + 'content_id' => 'tkt-sell-until-label', |
|
64 | + 'target' => '.TKT_sell_until_label', |
|
65 | + 'content' => $this->_get_event_ticket_TKT_sell_until_label_info(), |
|
66 | + ), |
|
67 | + 35 => array( |
|
68 | + 'content_id' => 'tkt-price-label', |
|
69 | + 'target' => '.TKT_price_label', |
|
70 | + 'content' => $this->_get_event_ticket_TKT_price_label_info(), |
|
71 | + ), |
|
72 | + 40 => array( |
|
73 | + 'content_id' => 'tkt-qty-label', |
|
74 | + 'target' => '.TKT_qty_label', |
|
75 | + 'content' => $this->_get_event_ticket_TKT_qty_label_info(), |
|
76 | + ), |
|
77 | + 45 => array( |
|
78 | + 'content_id' => 'tkt-sold-label', |
|
79 | + 'target' => '.TKT_sold_label', |
|
80 | + 'content' => $this->_get_event_ticket_TKT_sold_label_info(), |
|
81 | + ), |
|
82 | + 47 => array( |
|
83 | + 'content_id' => 'tkt-reserved-label', |
|
84 | + 'target' => '.TKT_reserved_label', |
|
85 | + 'content' => $this->_get_event_ticket_TKT_reserved_label_info(), |
|
86 | + ), |
|
87 | + 50 => array( |
|
88 | + 'content_id' => 'tkt-regs-label', |
|
89 | + 'target' => '.TKT_regs_label', |
|
90 | + 'content' => $this->_get_event_ticket_TKT_regs_label_info(), |
|
91 | + ), |
|
92 | + 55 => array( |
|
93 | + 'content_id' => 'ant-tkt-name-label', |
|
94 | + 'target' => '.ANT_TKT_name_label', |
|
95 | + 'content' => $this->_get_event_ticket_ANT_TKT_name_label_info(), |
|
96 | + ), |
|
97 | + 60 => array( |
|
98 | + 'content_id' => 'ant-tkt-goes-on-sale-label', |
|
99 | + 'target' => '.ANT_TKT_goes_on_sale_label', |
|
100 | + 'content' => $this->_get_event_ticket_ANT_TKT_goes_on_sale_label_info(), |
|
101 | + ), |
|
102 | + 65 => array( |
|
103 | + 'content_id' => 'ant-tkt-sell-until-label', |
|
104 | + 'target' => '.ANT_TKT_sell_until_label', |
|
105 | + 'content' => $this->_get_event_ticket_ANT_TKT_sell_until_label_info(), |
|
106 | + ), |
|
107 | + 70 => array( |
|
108 | + 'content_id' => 'ant-tkt-price-label', |
|
109 | + 'target' => '.ANT_TKT_price_label', |
|
110 | + 'content' => $this->_get_event_ticket_ANT_TKT_price_label_info(), |
|
111 | + ), |
|
112 | + 75 => array( |
|
113 | + 'content_id' => 'ant-tkt-qty-label', |
|
114 | + 'target' => '.ANT_TKT_qty_label', |
|
115 | + 'content' => $this->_get_event_ticket_ANT_TKT_qty_label_info(), |
|
116 | + ), |
|
117 | + 80 => array( |
|
118 | + 'content_id' => 'ane-dtt-evt-start-label', |
|
119 | + 'target' => '.add-new-event-datetime-DTT_EVT_start_label', |
|
120 | + 'content' => $this->_get_add_new_event_start_label_info(), |
|
121 | + ), |
|
122 | + 85 => array( |
|
123 | + 'content_id' => 'ane-dtt-evt-end-label', |
|
124 | + 'target' => '.add-new-event-datetime-DTT_EVT_end_label', |
|
125 | + 'content' => $this->_get_add_new_event_end_label_info(), |
|
126 | + ), |
|
127 | + 90 => array( |
|
128 | + 'content_id' => 'ane_dtt-reg-limit-label', |
|
129 | + 'target' => '.add-new-event-datetime-DTT_reg_limit_label', |
|
130 | + 'content' => $this->_get_add_new_event_datetime_DTT_reg_limit_label_info(), |
|
131 | + ), |
|
132 | + 100 => array( |
|
133 | + 'content_id' => 'td-tkt-number-datetimes-label', |
|
134 | + 'target' => '.TD_TKT_number_datetimes_label', |
|
135 | + 'content' => $this->_get_event_ticket_TD_TKT_number_datetimes_label_info(), |
|
136 | + ), |
|
137 | + 110 => array( |
|
138 | + 'content_id' => 'td-tkt-min-qty-label', |
|
139 | + 'target' => '.TD_TKT_min_qty_label', |
|
140 | + 'content' => $this->_get_event_ticket_TD_TKT_min_qty_label_info(), |
|
141 | + ), |
|
142 | + 120 => array( |
|
143 | + 'content_id' => 'td-tkt-max-qty-label', |
|
144 | + 'target' => '.TD_TKT_max_qty_label', |
|
145 | + 'content' => $this->_get_event_ticket_TD_TKT_max_qty_label_info(), |
|
146 | + ), |
|
147 | + 130 => array( |
|
148 | + 'content_id' => 'ticket-lock-icon', |
|
149 | + 'target' => '.ticket-archived .ee-lock-icon', |
|
150 | + 'content' => esc_html__( |
|
151 | + 'This ticket was automatically locked and archived because it has a sold quantity and the price was modified. Existing ticket holders will still be verified using these ticket details. However, Event Espresso has automatically created a new active ticket with the modified price for new registrants. This lock is meant to prevent accidental trashing of this ticket. Certain details of this ticket can still be edited (non disabled inputs).', |
|
152 | + 'event_espresso' |
|
153 | + ), |
|
154 | + ), |
|
155 | + 135 => array( |
|
156 | + 'content_id' => 'ticket-lock-icon-event-editor', |
|
157 | + 'target' => '.ee-lock-icon', |
|
158 | + 'content' => esc_html__( |
|
159 | + 'This datetime can no longer be duplicated or deleted because tickets associated with this datetime have already been sold.', |
|
160 | + 'event_espresso' |
|
161 | + ), |
|
162 | + ), |
|
163 | + ); |
|
164 | + } |
|
165 | 165 | |
166 | - /** |
|
167 | - * @return string |
|
168 | - */ |
|
169 | - private function _get_event_name_label_info() |
|
170 | - { |
|
171 | - return esc_html__( |
|
172 | - 'This is the name or title for an event datetime.', |
|
173 | - 'event_espresso' |
|
174 | - ); |
|
175 | - } |
|
166 | + /** |
|
167 | + * @return string |
|
168 | + */ |
|
169 | + private function _get_event_name_label_info() |
|
170 | + { |
|
171 | + return esc_html__( |
|
172 | + 'This is the name or title for an event datetime.', |
|
173 | + 'event_espresso' |
|
174 | + ); |
|
175 | + } |
|
176 | 176 | |
177 | - /** |
|
178 | - * @return string |
|
179 | - */ |
|
180 | - private function _get_event_start_label_info() |
|
181 | - { |
|
182 | - return esc_html__( |
|
183 | - 'This shows when this event datetime starts.', |
|
184 | - 'event_espresso' |
|
185 | - ); |
|
186 | - } |
|
177 | + /** |
|
178 | + * @return string |
|
179 | + */ |
|
180 | + private function _get_event_start_label_info() |
|
181 | + { |
|
182 | + return esc_html__( |
|
183 | + 'This shows when this event datetime starts.', |
|
184 | + 'event_espresso' |
|
185 | + ); |
|
186 | + } |
|
187 | 187 | |
188 | - /** |
|
189 | - * @return string |
|
190 | - */ |
|
191 | - private function _get_event_end_label_info() |
|
192 | - { |
|
193 | - return esc_html__('This shows when this event datetime ends.', 'event_espresso'); |
|
194 | - } |
|
188 | + /** |
|
189 | + * @return string |
|
190 | + */ |
|
191 | + private function _get_event_end_label_info() |
|
192 | + { |
|
193 | + return esc_html__('This shows when this event datetime ends.', 'event_espresso'); |
|
194 | + } |
|
195 | 195 | |
196 | - /** |
|
197 | - * @return string |
|
198 | - */ |
|
199 | - private function _get_event_datetime_DTT_reg_limit_label_info() |
|
200 | - { |
|
201 | - return esc_html__( |
|
202 | - 'This field allows you to set a maximum number of tickets that you want to make available for an event datetime.', |
|
203 | - 'event_espresso' |
|
204 | - ); |
|
205 | - } |
|
196 | + /** |
|
197 | + * @return string |
|
198 | + */ |
|
199 | + private function _get_event_datetime_DTT_reg_limit_label_info() |
|
200 | + { |
|
201 | + return esc_html__( |
|
202 | + 'This field allows you to set a maximum number of tickets that you want to make available for an event datetime.', |
|
203 | + 'event_espresso' |
|
204 | + ); |
|
205 | + } |
|
206 | 206 | |
207 | - /** |
|
208 | - * @return string |
|
209 | - */ |
|
210 | - private function _get_event_datetime_DTT_sold_label_info() |
|
211 | - { |
|
212 | - return esc_html__( |
|
213 | - 'This shows the number of tickets that have been sold that have access to this event datetime.', |
|
214 | - 'event_espresso' |
|
215 | - ); |
|
216 | - } |
|
207 | + /** |
|
208 | + * @return string |
|
209 | + */ |
|
210 | + private function _get_event_datetime_DTT_sold_label_info() |
|
211 | + { |
|
212 | + return esc_html__( |
|
213 | + 'This shows the number of tickets that have been sold that have access to this event datetime.', |
|
214 | + 'event_espresso' |
|
215 | + ); |
|
216 | + } |
|
217 | 217 | |
218 | - /** |
|
219 | - * @return string |
|
220 | - */ |
|
221 | - private function _get_event_datetime_DTT_reserved_label_info() |
|
222 | - { |
|
223 | - return esc_html__( |
|
224 | - 'This shows the number of reserved tickets that have access to this event datetime.', |
|
225 | - 'event_espresso' |
|
226 | - ); |
|
227 | - } |
|
218 | + /** |
|
219 | + * @return string |
|
220 | + */ |
|
221 | + private function _get_event_datetime_DTT_reserved_label_info() |
|
222 | + { |
|
223 | + return esc_html__( |
|
224 | + 'This shows the number of reserved tickets that have access to this event datetime.', |
|
225 | + 'event_espresso' |
|
226 | + ); |
|
227 | + } |
|
228 | 228 | |
229 | - /** |
|
230 | - * @return string |
|
231 | - */ |
|
232 | - private function _get_event_ticket_TKT_name_label_info() |
|
233 | - { |
|
234 | - return esc_html__('This is the name of this ticket option.', 'event_espresso'); |
|
235 | - } |
|
229 | + /** |
|
230 | + * @return string |
|
231 | + */ |
|
232 | + private function _get_event_ticket_TKT_name_label_info() |
|
233 | + { |
|
234 | + return esc_html__('This is the name of this ticket option.', 'event_espresso'); |
|
235 | + } |
|
236 | 236 | |
237 | - /** |
|
238 | - * @return string |
|
239 | - */ |
|
240 | - private function _get_event_ticket_TKT_goes_on_sale_label_info() |
|
241 | - { |
|
242 | - return esc_html__('This shows when the first ticket is available for sale.', 'event_espresso'); |
|
243 | - } |
|
237 | + /** |
|
238 | + * @return string |
|
239 | + */ |
|
240 | + private function _get_event_ticket_TKT_goes_on_sale_label_info() |
|
241 | + { |
|
242 | + return esc_html__('This shows when the first ticket is available for sale.', 'event_espresso'); |
|
243 | + } |
|
244 | 244 | |
245 | - /** |
|
246 | - * @return string |
|
247 | - */ |
|
248 | - private function _get_event_ticket_TKT_sell_until_label_info() |
|
249 | - { |
|
250 | - return esc_html__('This shows the date that ticket sales end for this ticket.', 'event_espresso'); |
|
251 | - } |
|
245 | + /** |
|
246 | + * @return string |
|
247 | + */ |
|
248 | + private function _get_event_ticket_TKT_sell_until_label_info() |
|
249 | + { |
|
250 | + return esc_html__('This shows the date that ticket sales end for this ticket.', 'event_espresso'); |
|
251 | + } |
|
252 | 252 | |
253 | - /** |
|
254 | - * @return string |
|
255 | - */ |
|
256 | - private function _get_event_ticket_TKT_price_label_info() |
|
257 | - { |
|
258 | - return esc_html__('This is the price for this ticket.', 'event_espresso'); |
|
259 | - } |
|
253 | + /** |
|
254 | + * @return string |
|
255 | + */ |
|
256 | + private function _get_event_ticket_TKT_price_label_info() |
|
257 | + { |
|
258 | + return esc_html__('This is the price for this ticket.', 'event_espresso'); |
|
259 | + } |
|
260 | 260 | |
261 | - /** |
|
262 | - * @return string |
|
263 | - */ |
|
264 | - private function _get_event_ticket_TKT_qty_label_info() |
|
265 | - { |
|
266 | - return esc_html__( |
|
267 | - 'This field shows the quantity of tickets that are available for this type of ticket.', |
|
268 | - 'event_espresso' |
|
269 | - ); |
|
270 | - } |
|
261 | + /** |
|
262 | + * @return string |
|
263 | + */ |
|
264 | + private function _get_event_ticket_TKT_qty_label_info() |
|
265 | + { |
|
266 | + return esc_html__( |
|
267 | + 'This field shows the quantity of tickets that are available for this type of ticket.', |
|
268 | + 'event_espresso' |
|
269 | + ); |
|
270 | + } |
|
271 | 271 | |
272 | - /** |
|
273 | - * @return string |
|
274 | - */ |
|
275 | - private function _get_event_ticket_TKT_sold_label_info() |
|
276 | - { |
|
277 | - return esc_html__('This shows the number of tickets that have been sold for this ticket.', 'event_espresso'); |
|
278 | - } |
|
272 | + /** |
|
273 | + * @return string |
|
274 | + */ |
|
275 | + private function _get_event_ticket_TKT_sold_label_info() |
|
276 | + { |
|
277 | + return esc_html__('This shows the number of tickets that have been sold for this ticket.', 'event_espresso'); |
|
278 | + } |
|
279 | 279 | |
280 | - /** |
|
281 | - * @return string |
|
282 | - */ |
|
283 | - private function _get_event_ticket_TKT_reserved_label_info() |
|
284 | - { |
|
285 | - return esc_html__('This shows the number of tickets that are reserved for this ticket.', 'event_espresso'); |
|
286 | - } |
|
280 | + /** |
|
281 | + * @return string |
|
282 | + */ |
|
283 | + private function _get_event_ticket_TKT_reserved_label_info() |
|
284 | + { |
|
285 | + return esc_html__('This shows the number of tickets that are reserved for this ticket.', 'event_espresso'); |
|
286 | + } |
|
287 | 287 | |
288 | - /** |
|
289 | - * @return string |
|
290 | - */ |
|
291 | - private function _get_event_ticket_TKT_regs_label_info() |
|
292 | - { |
|
293 | - return esc_html__( |
|
294 | - 'This shows the number of registrations that have occurred from ticket sales.', |
|
295 | - 'event_espresso' |
|
296 | - ); |
|
297 | - } |
|
288 | + /** |
|
289 | + * @return string |
|
290 | + */ |
|
291 | + private function _get_event_ticket_TKT_regs_label_info() |
|
292 | + { |
|
293 | + return esc_html__( |
|
294 | + 'This shows the number of registrations that have occurred from ticket sales.', |
|
295 | + 'event_espresso' |
|
296 | + ); |
|
297 | + } |
|
298 | 298 | |
299 | - /** |
|
300 | - * @return string |
|
301 | - */ |
|
302 | - private function _get_event_ticket_ANT_TKT_name_label_info() |
|
303 | - { |
|
304 | - return esc_html__('This is the name of this ticket option.', 'event_espresso'); |
|
305 | - } |
|
299 | + /** |
|
300 | + * @return string |
|
301 | + */ |
|
302 | + private function _get_event_ticket_ANT_TKT_name_label_info() |
|
303 | + { |
|
304 | + return esc_html__('This is the name of this ticket option.', 'event_espresso'); |
|
305 | + } |
|
306 | 306 | |
307 | - /** |
|
308 | - * @return string |
|
309 | - */ |
|
310 | - private function _get_event_ticket_ANT_TKT_goes_on_sale_label_info() |
|
311 | - { |
|
312 | - return esc_html__('This shows when the first ticket is available for sale.', 'event_espresso'); |
|
313 | - } |
|
307 | + /** |
|
308 | + * @return string |
|
309 | + */ |
|
310 | + private function _get_event_ticket_ANT_TKT_goes_on_sale_label_info() |
|
311 | + { |
|
312 | + return esc_html__('This shows when the first ticket is available for sale.', 'event_espresso'); |
|
313 | + } |
|
314 | 314 | |
315 | - /** |
|
316 | - * @return string |
|
317 | - */ |
|
318 | - private function _get_event_ticket_ANT_TKT_sell_until_label_info() |
|
319 | - { |
|
320 | - return esc_html__('This shows the date that ticket sales end for this ticket.', 'event_espresso'); |
|
321 | - } |
|
315 | + /** |
|
316 | + * @return string |
|
317 | + */ |
|
318 | + private function _get_event_ticket_ANT_TKT_sell_until_label_info() |
|
319 | + { |
|
320 | + return esc_html__('This shows the date that ticket sales end for this ticket.', 'event_espresso'); |
|
321 | + } |
|
322 | 322 | |
323 | - /** |
|
324 | - * @return string |
|
325 | - */ |
|
326 | - private function _get_event_ticket_ANT_TKT_price_label_info() |
|
327 | - { |
|
328 | - return esc_html__('This is the price for this ticket.', 'event_espresso'); |
|
329 | - } |
|
323 | + /** |
|
324 | + * @return string |
|
325 | + */ |
|
326 | + private function _get_event_ticket_ANT_TKT_price_label_info() |
|
327 | + { |
|
328 | + return esc_html__('This is the price for this ticket.', 'event_espresso'); |
|
329 | + } |
|
330 | 330 | |
331 | - /** |
|
332 | - * @return string |
|
333 | - */ |
|
334 | - private function _get_event_ticket_ANT_TKT_qty_label_info() |
|
335 | - { |
|
336 | - return esc_html__( |
|
337 | - 'This field shows the quantity of tickets that are available for this type of ticket.', |
|
338 | - 'event_espresso' |
|
339 | - ); |
|
340 | - } |
|
331 | + /** |
|
332 | + * @return string |
|
333 | + */ |
|
334 | + private function _get_event_ticket_ANT_TKT_qty_label_info() |
|
335 | + { |
|
336 | + return esc_html__( |
|
337 | + 'This field shows the quantity of tickets that are available for this type of ticket.', |
|
338 | + 'event_espresso' |
|
339 | + ); |
|
340 | + } |
|
341 | 341 | |
342 | - /** |
|
343 | - * @return string |
|
344 | - */ |
|
345 | - private function _get_add_new_event_start_label_info() |
|
346 | - { |
|
347 | - return esc_html__('This shows when this event datetime starts.', 'event_espresso'); |
|
348 | - } |
|
342 | + /** |
|
343 | + * @return string |
|
344 | + */ |
|
345 | + private function _get_add_new_event_start_label_info() |
|
346 | + { |
|
347 | + return esc_html__('This shows when this event datetime starts.', 'event_espresso'); |
|
348 | + } |
|
349 | 349 | |
350 | - /** |
|
351 | - * @return string |
|
352 | - */ |
|
353 | - private function _get_add_new_event_end_label_info() |
|
354 | - { |
|
355 | - return esc_html__('This shows when this event datetime ends.', 'event_espresso'); |
|
356 | - } |
|
350 | + /** |
|
351 | + * @return string |
|
352 | + */ |
|
353 | + private function _get_add_new_event_end_label_info() |
|
354 | + { |
|
355 | + return esc_html__('This shows when this event datetime ends.', 'event_espresso'); |
|
356 | + } |
|
357 | 357 | |
358 | - /** |
|
359 | - * @return string |
|
360 | - */ |
|
361 | - private function _get_add_new_event_datetime_DTT_reg_limit_label_info() |
|
362 | - { |
|
363 | - return esc_html__( |
|
364 | - 'This field allows you to set a maximum number of tickets that you want to make available for an event datetime.', |
|
365 | - 'event_espresso' |
|
366 | - ); |
|
367 | - } |
|
358 | + /** |
|
359 | + * @return string |
|
360 | + */ |
|
361 | + private function _get_add_new_event_datetime_DTT_reg_limit_label_info() |
|
362 | + { |
|
363 | + return esc_html__( |
|
364 | + 'This field allows you to set a maximum number of tickets that you want to make available for an event datetime.', |
|
365 | + 'event_espresso' |
|
366 | + ); |
|
367 | + } |
|
368 | 368 | |
369 | - /** |
|
370 | - * @return string |
|
371 | - */ |
|
372 | - private function _get_event_ticket_TD_TKT_number_datetimes_label_info() |
|
373 | - { |
|
374 | - return esc_html__( |
|
375 | - 'This field allows you to set the number of datetimes that a ticket should have access to.', |
|
376 | - 'event_espresso' |
|
377 | - ); |
|
378 | - } |
|
369 | + /** |
|
370 | + * @return string |
|
371 | + */ |
|
372 | + private function _get_event_ticket_TD_TKT_number_datetimes_label_info() |
|
373 | + { |
|
374 | + return esc_html__( |
|
375 | + 'This field allows you to set the number of datetimes that a ticket should have access to.', |
|
376 | + 'event_espresso' |
|
377 | + ); |
|
378 | + } |
|
379 | 379 | |
380 | - /** |
|
381 | - * @return string |
|
382 | - */ |
|
383 | - private function _get_event_ticket_TD_TKT_min_qty_label_info() |
|
384 | - { |
|
385 | - return esc_html__( |
|
386 | - 'This shows the minimum quantity that can be purchased for this ticket.', |
|
387 | - 'event_espresso' |
|
388 | - ); |
|
389 | - } |
|
380 | + /** |
|
381 | + * @return string |
|
382 | + */ |
|
383 | + private function _get_event_ticket_TD_TKT_min_qty_label_info() |
|
384 | + { |
|
385 | + return esc_html__( |
|
386 | + 'This shows the minimum quantity that can be purchased for this ticket.', |
|
387 | + 'event_espresso' |
|
388 | + ); |
|
389 | + } |
|
390 | 390 | |
391 | - /** |
|
392 | - * @return string |
|
393 | - */ |
|
394 | - private function _get_event_ticket_TD_TKT_max_qty_label_info() |
|
395 | - { |
|
396 | - return esc_html__('This shows the maximum quantity that can be purchased for this ticket.', 'event_espresso'); |
|
397 | - } |
|
391 | + /** |
|
392 | + * @return string |
|
393 | + */ |
|
394 | + private function _get_event_ticket_TD_TKT_max_qty_label_info() |
|
395 | + { |
|
396 | + return esc_html__('This shows the maximum quantity that can be purchased for this ticket.', 'event_espresso'); |
|
397 | + } |
|
398 | 398 | } |
@@ -15,33 +15,33 @@ discard block |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | |
18 | - protected function _set_tips_array() |
|
19 | - { |
|
20 | - $this->_qtipsa = array( |
|
21 | - 0 => array( |
|
22 | - 'content_id' => 'attendee-column-tip', |
|
23 | - 'target' => '.column-attendees .dashicons-groups', |
|
24 | - 'content' => sprintf( |
|
25 | - __('%s Registrations', 'event_espresso'), |
|
26 | - EEH_Template::pretty_status( |
|
27 | - EEM_Registration::status_id_approved, |
|
28 | - false, |
|
29 | - 'sentence' |
|
30 | - ) |
|
31 | - ), |
|
32 | - 'options' => array( |
|
33 | - 'position' => array( |
|
34 | - 'my' => 'bottom left', |
|
35 | - 'at' => 'top right', |
|
36 | - 'adjust' => array( |
|
37 | - 'x' => 0, |
|
38 | - 'y' => 0, |
|
39 | - ), |
|
40 | - ), |
|
41 | - ), |
|
42 | - ), |
|
43 | - /** temporarily remove status qtips for for list table */ |
|
44 | - /**1 => array( |
|
18 | + protected function _set_tips_array() |
|
19 | + { |
|
20 | + $this->_qtipsa = array( |
|
21 | + 0 => array( |
|
22 | + 'content_id' => 'attendee-column-tip', |
|
23 | + 'target' => '.column-attendees .dashicons-groups', |
|
24 | + 'content' => sprintf( |
|
25 | + __('%s Registrations', 'event_espresso'), |
|
26 | + EEH_Template::pretty_status( |
|
27 | + EEM_Registration::status_id_approved, |
|
28 | + false, |
|
29 | + 'sentence' |
|
30 | + ) |
|
31 | + ), |
|
32 | + 'options' => array( |
|
33 | + 'position' => array( |
|
34 | + 'my' => 'bottom left', |
|
35 | + 'at' => 'top right', |
|
36 | + 'adjust' => array( |
|
37 | + 'x' => 0, |
|
38 | + 'y' => 0, |
|
39 | + ), |
|
40 | + ), |
|
41 | + ), |
|
42 | + ), |
|
43 | + /** temporarily remove status qtips for for list table */ |
|
44 | + /**1 => array( |
|
45 | 45 | * 'content_id' => 'ee-event-status-' . EE_Datetime::active, |
46 | 46 | * 'target' => '.event-status-' . EE_Datetime::active, |
47 | 47 | * 'content' => $this->_event_status_legend(EE_Datetime::active), |
@@ -111,28 +111,28 @@ discard block |
||
111 | 111 | * ) |
112 | 112 | * ) |
113 | 113 | * ),/**/ |
114 | - ); |
|
115 | - } |
|
114 | + ); |
|
115 | + } |
|
116 | 116 | |
117 | - /** |
|
118 | - * output the relevant ee-status-legend with the designated status highlighted. |
|
119 | - * |
|
120 | - * @param EE_Datetime constant $status What status is set (by class) |
|
121 | - * @return string The status legend with the related status highlighted |
|
122 | - */ |
|
123 | - private function _event_status_legend($status) |
|
124 | - { |
|
117 | + /** |
|
118 | + * output the relevant ee-status-legend with the designated status highlighted. |
|
119 | + * |
|
120 | + * @param EE_Datetime constant $status What status is set (by class) |
|
121 | + * @return string The status legend with the related status highlighted |
|
122 | + */ |
|
123 | + private function _event_status_legend($status) |
|
124 | + { |
|
125 | 125 | |
126 | - $status_array = array( |
|
127 | - 'active_status' => EE_Datetime::active, |
|
128 | - 'upcoming_status' => EE_Datetime::upcoming, |
|
129 | - 'postponed_status' => EE_Datetime::postponed, |
|
130 | - 'sold_out_status' => EE_Datetime::sold_out, |
|
131 | - 'cancelled_status' => EE_Datetime::cancelled, |
|
132 | - 'expired_status' => EE_Datetime::expired, |
|
133 | - 'inactive_status' => EE_Datetime::inactive, |
|
134 | - ); |
|
126 | + $status_array = array( |
|
127 | + 'active_status' => EE_Datetime::active, |
|
128 | + 'upcoming_status' => EE_Datetime::upcoming, |
|
129 | + 'postponed_status' => EE_Datetime::postponed, |
|
130 | + 'sold_out_status' => EE_Datetime::sold_out, |
|
131 | + 'cancelled_status' => EE_Datetime::cancelled, |
|
132 | + 'expired_status' => EE_Datetime::expired, |
|
133 | + 'inactive_status' => EE_Datetime::inactive, |
|
134 | + ); |
|
135 | 135 | |
136 | - return EEH_Template::status_legend($status_array, $status); |
|
137 | - } |
|
136 | + return EEH_Template::status_legend($status_array, $status); |
|
137 | + } |
|
138 | 138 | } |
@@ -42,12 +42,12 @@ |
||
42 | 42 | <li> |
43 | 43 | <strong><?php _e('Display Descriptions', 'event_espresso'); ?></strong><br /> |
44 | 44 | <?php printf( |
45 | - __( |
|
46 | - 'Whether descriptions should be shown on the event list page.%1$sSelecting "none" will NOT display any of the text content you entered into the main text editor on the event admin page.%1$sSelecting "excerpt" will display the text you entered into the "Excerpt" textarea on the event admin page, OR, any text in the main text editor above the %2$s tag.%1$sSelecting "full description" will display ALL of the text content you entered into the main text editor on the event admin page.', |
|
47 | - 'event_espresso' |
|
48 | - ), |
|
49 | - '<br/>', |
|
50 | - htmlentities('<!--more-->') |
|
45 | + __( |
|
46 | + 'Whether descriptions should be shown on the event list page.%1$sSelecting "none" will NOT display any of the text content you entered into the main text editor on the event admin page.%1$sSelecting "excerpt" will display the text you entered into the "Excerpt" textarea on the event admin page, OR, any text in the main text editor above the %2$s tag.%1$sSelecting "full description" will display ALL of the text content you entered into the main text editor on the event admin page.', |
|
47 | + 'event_espresso' |
|
48 | + ), |
|
49 | + '<br/>', |
|
50 | + htmlentities('<!--more-->') |
|
51 | 51 | );?> |
52 | 52 | </li> |
53 | 53 | <li> |
@@ -48,7 +48,7 @@ |
||
48 | 48 | ), |
49 | 49 | '<br/>', |
50 | 50 | htmlentities('<!--more-->') |
51 | -);?> |
|
51 | +); ?> |
|
52 | 52 | </li> |
53 | 53 | <li> |
54 | 54 | <strong><?php _e('Display Ticket Selector', 'event_espresso'); ?></strong><br /> |