@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | global $wpdb; |
14 | 14 | |
15 | 15 | $db = new WPInv_Subscriptions_DB; |
16 | -$page = isset($_GET['cpage']) ? abs((int)$_GET['cpage']) : 1; |
|
16 | +$page = isset($_GET['cpage']) ? abs((int) $_GET['cpage']) : 1; |
|
17 | 17 | $items_per_page = get_option('posts_per_page'); |
18 | 18 | $offset = ($page * $items_per_page) - $items_per_page; |
19 | 19 | $args = array('customer_id' => $user_id, 'offset' => $offset); |
@@ -29,16 +29,16 @@ discard block |
||
29 | 29 | <table class="table table-bordered table-hover table-responsive wpi-user-subscriptions"> |
30 | 30 | <thead> |
31 | 31 | <tr> |
32 | - <th class="sub-no"><span class="nobr"><?php _e( 'No.', 'invoicing' ); ?></span></th> |
|
33 | - <th class="sub-amount"><span class="nobr"><?php _e( 'Initial Amount', 'invoicing' ); ?></span></th> |
|
34 | - <th class="sub-cycle"><span class="nobr"><?php _e( 'Billing Cycle', 'invoicing' ); ?></span></th> |
|
35 | - <th class="sub-billed"><span class="nobr"><?php _e( 'Times Billed', 'invoicing' ); ?></span></th> |
|
36 | - <th class="sub-status"><span class="nobr"><?php _e( 'Status', 'invoicing' ); ?></span></th> |
|
37 | - <th class="sub-invoice"><span class="nobr"><?php _e( 'Invoice', 'invoicing' ); ?></span></th> |
|
38 | - <th class="sub-item"><span class="nobr"><?php _e( 'Item', 'invoicing' ); ?></span></th> |
|
39 | - <th class="sub-gateway"><span class="nobr"><?php _e( 'Gateway', 'invoicing' ); ?></span></th> |
|
40 | - <th class="sub-expiry"><span class="nobr"><?php _e( 'Expires On', 'invoicing' ); ?></span></th> |
|
41 | - <th class="sub-actions"><span class="nobr"><?php _e( 'Actions', 'invoicing' ); ?></span></th> |
|
32 | + <th class="sub-no"><span class="nobr"><?php _e('No.', 'invoicing'); ?></span></th> |
|
33 | + <th class="sub-amount"><span class="nobr"><?php _e('Initial Amount', 'invoicing'); ?></span></th> |
|
34 | + <th class="sub-cycle"><span class="nobr"><?php _e('Billing Cycle', 'invoicing'); ?></span></th> |
|
35 | + <th class="sub-billed"><span class="nobr"><?php _e('Times Billed', 'invoicing'); ?></span></th> |
|
36 | + <th class="sub-status"><span class="nobr"><?php _e('Status', 'invoicing'); ?></span></th> |
|
37 | + <th class="sub-invoice"><span class="nobr"><?php _e('Invoice', 'invoicing'); ?></span></th> |
|
38 | + <th class="sub-item"><span class="nobr"><?php _e('Item', 'invoicing'); ?></span></th> |
|
39 | + <th class="sub-gateway"><span class="nobr"><?php _e('Gateway', 'invoicing'); ?></span></th> |
|
40 | + <th class="sub-expiry"><span class="nobr"><?php _e('Expires On', 'invoicing'); ?></span></th> |
|
41 | + <th class="sub-actions"><span class="nobr"><?php _e('Actions', 'invoicing'); ?></span></th> |
|
42 | 42 | </tr> |
43 | 43 | </thead> |
44 | 44 |
@@ -4,17 +4,17 @@ discard block |
||
4 | 4 | */ |
5 | 5 | global $wpinv_receipt_args; |
6 | 6 | |
7 | -$invoice = get_post( $wpinv_receipt_args['id'] ); |
|
7 | +$invoice = get_post($wpinv_receipt_args['id']); |
|
8 | 8 | |
9 | -if( empty( $invoice ) ) { |
|
9 | +if (empty($invoice)) { |
|
10 | 10 | ?> |
11 | 11 | <div class="wpinv_errors alert wpi-alert-error"> |
12 | - <?php _e( 'The specified receipt ID appears to be invalid', 'invoicing' ); ?> |
|
12 | + <?php _e('The specified receipt ID appears to be invalid', 'invoicing'); ?> |
|
13 | 13 | </div> |
14 | 14 | <?php |
15 | 15 | return; |
16 | 16 | } |
17 | -$invoice = wpinv_get_invoice( $invoice->ID ); |
|
17 | +$invoice = wpinv_get_invoice($invoice->ID); |
|
18 | 18 | |
19 | 19 | global $ajax_cart_details; |
20 | 20 | $ajax_cart_details = $invoice->get_cart_details(); |
@@ -23,19 +23,19 @@ discard block |
||
23 | 23 | $invoice_id = $invoice->ID; |
24 | 24 | $quantities_enabled = wpinv_item_quantities_enabled(); |
25 | 25 | $use_taxes = wpinv_use_taxes(); |
26 | -$zero_tax = !(float)$invoice->get_tax() > 0 ? true : false; |
|
27 | -$tax_label = !$zero_tax && $use_taxes ? ( wpinv_prices_include_tax() ? __( '(Tax Incl.)', 'invoicing' ) : __( '(Tax Excl.)', 'invoicing' ) ) : ''; |
|
26 | +$zero_tax = !(float) $invoice->get_tax() > 0 ? true : false; |
|
27 | +$tax_label = !$zero_tax && $use_taxes ? (wpinv_prices_include_tax() ? __('(Tax Incl.)', 'invoicing') : __('(Tax Excl.)', 'invoicing')) : ''; |
|
28 | 28 | ?> |
29 | -<?php do_action( 'wpinv_before_receipt', $invoice ); ?> |
|
29 | +<?php do_action('wpinv_before_receipt', $invoice); ?> |
|
30 | 30 | <div class="wpinv-receipt"> |
31 | - <?php do_action( 'wpinv_receipt_start', $invoice ); ?> |
|
32 | - <div class="wpinv-receipt-message"><?php _e( 'Thank you for your payment!', 'invoicing' ); ?></div> |
|
33 | - <?php do_action( 'wpinv_before_receipt_details', $invoice ); ?> |
|
31 | + <?php do_action('wpinv_receipt_start', $invoice); ?> |
|
32 | + <div class="wpinv-receipt-message"><?php _e('Thank you for your payment!', 'invoicing'); ?></div> |
|
33 | + <?php do_action('wpinv_before_receipt_details', $invoice); ?> |
|
34 | 34 | <div class="wpinv-receipt-details"> |
35 | - <h3 class="wpinv-details-t"><?php echo apply_filters( 'wpinv_receipt_details_title', __( 'Invoice Details', 'invoicing' ) ); ?></h3> |
|
36 | - <?php wpinv_display_invoice_details( $invoice ); ?> |
|
35 | + <h3 class="wpinv-details-t"><?php echo apply_filters('wpinv_receipt_details_title', __('Invoice Details', 'invoicing')); ?></h3> |
|
36 | + <?php wpinv_display_invoice_details($invoice); ?> |
|
37 | 37 | </div> |
38 | - <?php do_action( 'wpinv_after_receipt_details', $invoice ); ?> |
|
39 | - <?php do_action( 'wpinv_receipt_end', $invoice ); ?> |
|
38 | + <?php do_action('wpinv_after_receipt_details', $invoice); ?> |
|
39 | + <?php do_action('wpinv_receipt_end', $invoice); ?> |
|
40 | 40 | </div> |
41 | -<?php do_action( 'wpinv_after_receipt', $invoice ); ?> |
|
42 | 41 | \ No newline at end of file |
42 | +<?php do_action('wpinv_after_receipt', $invoice); ?> |
|
43 | 43 | \ No newline at end of file |