| @@ 63-67 (lines=5) @@ | ||
| 60 | $user_id = (int)$invoice->get_user_id(); |
|
| 61 | $current_user_id = (int)get_current_user_id(); |
|
| 62 | ||
| 63 | if ( $user_id > 0 && $user_id == $current_user_id && $invoice->needs_payment() ) { |
|
| 64 | ?> |
|
| 65 | <a class="btn btn-success btn-sm" title="<?php esc_attr_e( 'Pay This Invoice', 'invoicing' ); ?>" href="<?php echo esc_url( $invoice->get_checkout_payment_url() ); ?>"><?php _e( 'Pay For Invoice', 'invoicing' ); ?></a> |
|
| 66 | <?php |
|
| 67 | } |
|
| 68 | } |
|
| 69 | do_action('wpinv_invoice_display_left_actions', $invoice); |
|
| 70 | } |
|
| @@ 115-117 (lines=3) @@ | ||
| 112 | ?> |
|
| 113 | <p class="wpi-meta-row wpi-resend-info"><?php echo $text['message']; ?></p> |
|
| 114 | <p class="wpi-meta-row wpi-resend-email"><a title="<?php esc_attr_e( 'Send invoice to customer', 'invoicing' ); ?>" href="<?php echo esc_url( $email_url ); ?>" class="button button-secondary"><?php echo $text['button_text']; ?></a></p> |
|
| 115 | <?php if ( wpinv_get_option( 'overdue_active' ) && $wpi_mb_invoice->needs_payment() && ( $due_date = $wpi_mb_invoice->get_due_date() ) ) { ?> |
|
| 116 | <p class="wpi-meta-row wpi-send-reminder"><a title="<?php esc_attr_e( 'Send overdue reminder notification to customer', 'invoicing' ); ?>" href="<?php echo esc_url( $reminder_url ); ?>" class="button button-secondary"><?php esc_attr_e( 'Send Reminder', 'invoicing' ); ?></a></p> |
|
| 117 | <?php } ?> |
|
| 118 | <?php |
|
| 119 | } |
|
| 120 | ||