@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | - exit; // Exit if accessed directly |
|
| 11 | + exit; // Exit if accessed directly |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | /** |
@@ -17,10 +17,10 @@ discard block |
||
| 17 | 17 | class GetPaid_Meta_Box_Payment_Form_Info { |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * Output the metabox. |
|
| 21 | - * |
|
| 22 | - * @param WP_Post $post |
|
| 23 | - */ |
|
| 20 | + * Output the metabox. |
|
| 21 | + * |
|
| 22 | + * @param WP_Post $post |
|
| 23 | + */ |
|
| 24 | 24 | public static function output( $post ) { |
| 25 | 25 | |
| 26 | 26 | // Prepare the form. |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | * |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 10 | +if (!defined('ABSPATH')) { |
|
| 11 | 11 | exit; // Exit if accessed directly |
| 12 | 12 | } |
| 13 | 13 | |
@@ -21,43 +21,43 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | * @param WP_Post $post |
| 23 | 23 | */ |
| 24 | - public static function output( $post ) { |
|
| 24 | + public static function output($post) { |
|
| 25 | 25 | |
| 26 | 26 | // Prepare the form. |
| 27 | - $form = new GetPaid_Payment_Form( $post ); |
|
| 27 | + $form = new GetPaid_Payment_Form($post); |
|
| 28 | 28 | |
| 29 | 29 | ?> |
| 30 | 30 | |
| 31 | 31 | <div class='bsui' style='padding-top: 10px;'> |
| 32 | - <?php do_action( 'wpinv_payment_form_before_info_metabox', $form ); ?> |
|
| 32 | + <?php do_action('wpinv_payment_form_before_info_metabox', $form); ?> |
|
| 33 | 33 | |
| 34 | 34 | <div class="wpinv_payment_form_shortcode form-group row"> |
| 35 | 35 | <label for="wpinv_payment_form_shortcode" class="col-sm-12 col-form-label"> |
| 36 | - <?php _e( 'Payment Form Shortcode', 'invoicing' );?> |
|
| 37 | - <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e( 'Displays a payment form', 'invoicing' ); ?>"></span> |
|
| 36 | + <?php _e('Payment Form Shortcode', 'invoicing'); ?> |
|
| 37 | + <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e('Displays a payment form', 'invoicing'); ?>"></span> |
|
| 38 | 38 | </label> |
| 39 | 39 | |
| 40 | 40 | <div class="col-sm-12"> |
| 41 | - <input onClick="this.select()" type="text" id="wpinv_payment_form_shortcode" value="[getpaid form=<?php echo esc_attr( $form->get_id() ); ?>]" style="width: 100%;" /> |
|
| 41 | + <input onClick="this.select()" type="text" id="wpinv_payment_form_shortcode" value="[getpaid form=<?php echo esc_attr($form->get_id()); ?>]" style="width: 100%;" /> |
|
| 42 | 42 | </div> |
| 43 | 43 | </div> |
| 44 | 44 | |
| 45 | 45 | <div class="wpinv_payment_form_buy_shortcode form-group row"> |
| 46 | 46 | <label for="wpinv_payment_form_buy_shortcode" class="col-sm-12 col-form-label"> |
| 47 | - <?php _e( 'Payment Button Shortcode', 'invoicing' );?> |
|
| 48 | - <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e( 'Displays a buy now button', 'invoicing' ); ?>"></span> |
|
| 47 | + <?php _e('Payment Button Shortcode', 'invoicing'); ?> |
|
| 48 | + <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e('Displays a buy now button', 'invoicing'); ?>"></span> |
|
| 49 | 49 | </label> |
| 50 | 50 | |
| 51 | 51 | <div class="col-sm-12"> |
| 52 | - <input onClick="this.select()" type="text" id="wpinv_payment_form_buy_shortcode" value="[getpaid form=<?php echo esc_attr( $form->get_id() ); ?> button='Buy Now']" style="width: 100%;" /> |
|
| 52 | + <input onClick="this.select()" type="text" id="wpinv_payment_form_buy_shortcode" value="[getpaid form=<?php echo esc_attr($form->get_id()); ?> button='Buy Now']" style="width: 100%;" /> |
|
| 53 | 53 | <small class="form-text text-muted"> |
| 54 | - <?php _e( 'Or use the following URL in a link:', 'invoicing' );?> |
|
| 55 | - <code>#getpaid-form-<?php echo intval( $form->get_id() ); ?></code> |
|
| 54 | + <?php _e('Or use the following URL in a link:', 'invoicing'); ?> |
|
| 55 | + <code>#getpaid-form-<?php echo intval($form->get_id()); ?></code> |
|
| 56 | 56 | </small> |
| 57 | 57 | </div> |
| 58 | 58 | </div> |
| 59 | 59 | |
| 60 | - <?php do_action( 'wpinv_payment_form_info_metabox', $form ); ?> |
|
| 60 | + <?php do_action('wpinv_payment_form_info_metabox', $form); ?> |
|
| 61 | 61 | </div> |
| 62 | 62 | <?php |
| 63 | 63 | |
@@ -18,15 +18,15 @@ |
||
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | switch( $items_type ) { |
| 21 | - case 'radio': |
|
| 22 | - wpinv_get_template( 'payment-forms/variations/radio.php', compact( 'form', 'items_type' ) ); |
|
| 23 | - break; |
|
| 24 | - case 'checkbox': |
|
| 25 | - wpinv_get_template( 'payment-forms/variations/checkbox.php', compact( 'form', 'items_type' ) ); |
|
| 26 | - break; |
|
| 27 | - case 'select': |
|
| 28 | - wpinv_get_template( 'payment-forms/variations/select.php', compact( 'form', 'items_type' ) ); |
|
| 29 | - break; |
|
| 21 | + case 'radio': |
|
| 22 | + wpinv_get_template( 'payment-forms/variations/radio.php', compact( 'form', 'items_type' ) ); |
|
| 23 | + break; |
|
| 24 | + case 'checkbox': |
|
| 25 | + wpinv_get_template( 'payment-forms/variations/checkbox.php', compact( 'form', 'items_type' ) ); |
|
| 26 | + break; |
|
| 27 | + case 'select': |
|
| 28 | + wpinv_get_template( 'payment-forms/variations/select.php', compact( 'form', 'items_type' ) ); |
|
| 29 | + break; |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | // Display the cart totals. |
@@ -7,36 +7,36 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | -if ( empty( $form->get_items() ) ) { |
|
| 12 | +if (empty($form->get_items())) { |
|
| 13 | 13 | return; |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | -if ( empty( $items_type ) ) { |
|
| 16 | +if (empty($items_type)) { |
|
| 17 | 17 | $items_type = 'total'; |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | -switch( $items_type ) { |
|
| 20 | +switch ($items_type) { |
|
| 21 | 21 | case 'radio': |
| 22 | - wpinv_get_template( 'payment-forms/variations/radio.php', compact( 'form', 'items_type' ) ); |
|
| 22 | + wpinv_get_template('payment-forms/variations/radio.php', compact('form', 'items_type')); |
|
| 23 | 23 | break; |
| 24 | 24 | case 'checkbox': |
| 25 | - wpinv_get_template( 'payment-forms/variations/checkbox.php', compact( 'form', 'items_type' ) ); |
|
| 25 | + wpinv_get_template('payment-forms/variations/checkbox.php', compact('form', 'items_type')); |
|
| 26 | 26 | break; |
| 27 | 27 | case 'select': |
| 28 | - wpinv_get_template( 'payment-forms/variations/select.php', compact( 'form', 'items_type' ) ); |
|
| 28 | + wpinv_get_template('payment-forms/variations/select.php', compact('form', 'items_type')); |
|
| 29 | 29 | break; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | // Display the cart totals. |
| 33 | -if ( ! empty( $hide_cart ) ) { |
|
| 33 | +if (!empty($hide_cart)) { |
|
| 34 | 34 | echo '<div class="d-none">'; |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | // Display the cart totals. |
| 38 | -wpinv_get_template( 'payment-forms/cart.php', compact( 'form', 'items_type' ) ); |
|
| 38 | +wpinv_get_template('payment-forms/cart.php', compact('form', 'items_type')); |
|
| 39 | 39 | |
| 40 | -if ( ! empty( $hide_cart ) ) { |
|
| 40 | +if (!empty($hide_cart)) { |
|
| 41 | 41 | echo '</div>'; |
| 42 | 42 | } |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | - exit; // Exit if accessed directly |
|
| 11 | + exit; // Exit if accessed directly |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | /** |
@@ -17,10 +17,10 @@ discard block |
||
| 17 | 17 | class GetPaid_Meta_Box_Invoice_Payment_Meta { |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * Output the metabox. |
|
| 21 | - * |
|
| 22 | - * @param WP_Post $post |
|
| 23 | - */ |
|
| 20 | + * Output the metabox. |
|
| 21 | + * |
|
| 22 | + * @param WP_Post $post |
|
| 23 | + */ |
|
| 24 | 24 | public static function output( $post ) { |
| 25 | 25 | |
| 26 | 26 | // Prepare the invoice. |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | * |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 10 | +if (!defined('ABSPATH')) { |
|
| 11 | 11 | exit; // Exit if accessed directly |
| 12 | 12 | } |
| 13 | 13 | |
@@ -21,10 +21,10 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | * @param WP_Post $post |
| 23 | 23 | */ |
| 24 | - public static function output( $post ) { |
|
| 24 | + public static function output($post) { |
|
| 25 | 25 | |
| 26 | 26 | // Prepare the invoice. |
| 27 | - $invoice = new WPInv_Invoice( $post ); |
|
| 27 | + $invoice = new WPInv_Invoice($post); |
|
| 28 | 28 | |
| 29 | 29 | ?> |
| 30 | 30 | |
@@ -47,12 +47,12 @@ discard block |
||
| 47 | 47 | 'id' => 'wpinv_key', |
| 48 | 48 | 'name' => 'wpinv_key', |
| 49 | 49 | 'label' => sprintf( |
| 50 | - __( '%s Key:', 'invoicing' ), |
|
| 51 | - ucfirst( $invoice->get_invoice_quote_type() ) |
|
| 50 | + __('%s Key:', 'invoicing'), |
|
| 51 | + ucfirst($invoice->get_invoice_quote_type()) |
|
| 52 | 52 | ), |
| 53 | 53 | 'label_type' => 'vertical', |
| 54 | 54 | 'class' => 'form-control-sm', |
| 55 | - 'value' => $invoice->get_key( 'edit' ), |
|
| 55 | + 'value' => $invoice->get_key('edit'), |
|
| 56 | 56 | 'extra_attributes' => array( |
| 57 | 57 | 'onclick' => 'this.select();', |
| 58 | 58 | 'readonly' => 'true', |
@@ -67,9 +67,9 @@ discard block |
||
| 67 | 67 | 'id' => 'wpinv_view_url', |
| 68 | 68 | 'name' => 'wpinv_view_url', |
| 69 | 69 | 'label' => sprintf( |
| 70 | - __( '%s URL:', 'invoicing' ), |
|
| 71 | - ucfirst( $invoice->get_invoice_quote_type() ) |
|
| 72 | - ) . ' <a href="' . esc_url_raw( $invoice->get_view_url() ) . '" title="' . __( 'View invoice', 'invoicing' ) . '" target="_blank"><i class="fas fa-external-link-alt fa-fw"></i></a>', |
|
| 70 | + __('%s URL:', 'invoicing'), |
|
| 71 | + ucfirst($invoice->get_invoice_quote_type()) |
|
| 72 | + ) . ' <a href="' . esc_url_raw($invoice->get_view_url()) . '" title="' . __('View invoice', 'invoicing') . '" target="_blank"><i class="fas fa-external-link-alt fa-fw"></i></a>', |
|
| 73 | 73 | 'label_type' => 'vertical', |
| 74 | 74 | 'class' => 'form-control-sm', |
| 75 | 75 | 'value' => $invoice->get_view_url(), |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | ); |
| 82 | 82 | |
| 83 | 83 | // If the invoice is paid... |
| 84 | - if ( $invoice->is_paid() || $invoice->is_refunded() ) { |
|
| 84 | + if ($invoice->is_paid() || $invoice->is_refunded()) { |
|
| 85 | 85 | |
| 86 | 86 | // Gateway. |
| 87 | 87 | echo aui()->input( |
@@ -89,10 +89,10 @@ discard block |
||
| 89 | 89 | 'type' => 'text', |
| 90 | 90 | 'id' => 'wpinv_gateway', |
| 91 | 91 | 'name' => '', |
| 92 | - 'label' => __( 'Gateway:', 'invoicing' ), |
|
| 92 | + 'label' => __('Gateway:', 'invoicing'), |
|
| 93 | 93 | 'label_type' => 'vertical', |
| 94 | 94 | 'class' => 'form-control-sm', |
| 95 | - 'value' => wpinv_get_gateway_admin_label( $invoice->get_gateway( 'edit' ) ), |
|
| 95 | + 'value' => wpinv_get_gateway_admin_label($invoice->get_gateway('edit')), |
|
| 96 | 96 | 'extra_attributes' => array( |
| 97 | 97 | 'onclick' => 'this.select();', |
| 98 | 98 | 'readonly' => 'true', |
@@ -106,11 +106,11 @@ discard block |
||
| 106 | 106 | 'type' => 'text', |
| 107 | 107 | 'id' => 'wpinv_transaction_id', |
| 108 | 108 | 'name' => 'wpinv_transaction_id', |
| 109 | - 'label' => __( 'Transaction ID:', 'invoicing' ), |
|
| 109 | + 'label' => __('Transaction ID:', 'invoicing'), |
|
| 110 | 110 | 'label_type' => 'vertical', |
| 111 | 111 | 'class' => 'form-control-sm', |
| 112 | - 'value' => $invoice->get_transaction_id( 'edit' ), |
|
| 113 | - 'help_text' => apply_filters( 'wpinv_invoice_transaction_link_' . $invoice->get_gateway( 'edit' ), '', $invoice->get_transaction_id(), $invoice ), |
|
| 112 | + 'value' => $invoice->get_transaction_id('edit'), |
|
| 113 | + 'help_text' => apply_filters('wpinv_invoice_transaction_link_' . $invoice->get_gateway('edit'), '', $invoice->get_transaction_id(), $invoice), |
|
| 114 | 114 | 'extra_attributes' => array( |
| 115 | 115 | 'onclick' => 'this.select();', |
| 116 | 116 | 'readonly' => 'true', |
@@ -124,10 +124,10 @@ discard block |
||
| 124 | 124 | 'type' => 'text', |
| 125 | 125 | 'id' => 'wpinv_currency', |
| 126 | 126 | 'name' => 'wpinv_currency', |
| 127 | - 'label' => __( 'Currency:', 'invoicing' ), |
|
| 127 | + 'label' => __('Currency:', 'invoicing'), |
|
| 128 | 128 | 'label_type' => 'vertical', |
| 129 | 129 | 'class' => 'form-control-sm', |
| 130 | - 'value' => $invoice->get_currency( 'edit' ), |
|
| 130 | + 'value' => $invoice->get_currency('edit'), |
|
| 131 | 131 | 'extra_attributes' => array( |
| 132 | 132 | 'onclick' => 'this.select();', |
| 133 | 133 | 'readonly' => 'true', |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | |
| 138 | 138 | } else { |
| 139 | 139 | |
| 140 | - if ( 'wpi_invoice' == $invoice->get_post_type() ) { |
|
| 140 | + if ('wpi_invoice' == $invoice->get_post_type()) { |
|
| 141 | 141 | |
| 142 | 142 | // Payment URL. |
| 143 | 143 | echo aui()->input( |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | 'type' => 'text', |
| 146 | 146 | 'id' => 'wpinv_payment_url', |
| 147 | 147 | 'name' => 'wpinv_payment_url', |
| 148 | - 'label' => __( 'Payment URL:', 'invoicing' ), |
|
| 148 | + 'label' => __('Payment URL:', 'invoicing'), |
|
| 149 | 149 | 'label_type' => 'vertical', |
| 150 | 150 | 'class' => 'form-control-sm', |
| 151 | 151 | 'value' => $invoice->get_checkout_payment_url(), |
@@ -161,13 +161,13 @@ discard block |
||
| 161 | 161 | array( |
| 162 | 162 | 'id' => 'wpinv_gateway', |
| 163 | 163 | 'name' => 'wpinv_gateway', |
| 164 | - 'label' => __( 'Gateway:', 'invoicing' ), |
|
| 164 | + 'label' => __('Gateway:', 'invoicing'), |
|
| 165 | 165 | 'label_type' => 'vertical', |
| 166 | - 'placeholder' => __( 'Select Gateway', 'invoicing' ), |
|
| 167 | - 'value' => $invoice->get_gateway( 'edit' ), |
|
| 166 | + 'placeholder' => __('Select Gateway', 'invoicing'), |
|
| 167 | + 'value' => $invoice->get_gateway('edit'), |
|
| 168 | 168 | 'select2' => true, |
| 169 | 169 | 'data-allow-clear' => 'false', |
| 170 | - 'options' => wp_list_pluck( wpinv_get_enabled_payment_gateways( true ), 'admin_label' ), |
|
| 170 | + 'options' => wp_list_pluck(wpinv_get_enabled_payment_gateways(true), 'admin_label'), |
|
| 171 | 171 | ) |
| 172 | 172 | ); |
| 173 | 173 | |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | - exit; // Exit if accessed directly |
|
| 11 | + exit; // Exit if accessed directly |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | /** |
@@ -17,10 +17,10 @@ discard block |
||
| 17 | 17 | class GetPaid_Meta_Box_Invoice_Details { |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * Output the metabox. |
|
| 21 | - * |
|
| 22 | - * @param WP_Post $post |
|
| 23 | - */ |
|
| 20 | + * Output the metabox. |
|
| 21 | + * |
|
| 22 | + * @param WP_Post $post |
|
| 23 | + */ |
|
| 24 | 24 | public static function output( $post ) { |
| 25 | 25 | |
| 26 | 26 | // Prepare the invoice. |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | * |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 10 | +if (!defined('ABSPATH')) { |
|
| 11 | 11 | exit; // Exit if accessed directly |
| 12 | 12 | } |
| 13 | 13 | |
@@ -21,13 +21,13 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | * @param WP_Post $post |
| 23 | 23 | */ |
| 24 | - public static function output( $post ) { |
|
| 24 | + public static function output($post) { |
|
| 25 | 25 | |
| 26 | 26 | // Prepare the invoice. |
| 27 | - $invoice = new WPInv_Invoice( $post ); |
|
| 27 | + $invoice = new WPInv_Invoice($post); |
|
| 28 | 28 | |
| 29 | 29 | // Nonce field. |
| 30 | - wp_nonce_field( 'wpinv_details', 'wpinv_details_nonce' ) ; |
|
| 30 | + wp_nonce_field('wpinv_details', 'wpinv_details_nonce'); |
|
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | ?> |
@@ -46,11 +46,11 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | <div class="bsui" style="margin-top: 1.5rem"> |
| 48 | 48 | |
| 49 | - <?php do_action( 'getpaid_invoice_edit_before_viewed_by_customer', $invoice ); ?> |
|
| 50 | - <?php if ( ! $invoice->is_draft() ) : ?> |
|
| 49 | + <?php do_action('getpaid_invoice_edit_before_viewed_by_customer', $invoice); ?> |
|
| 50 | + <?php if (!$invoice->is_draft()) : ?> |
|
| 51 | 51 | <div class="form-group"> |
| 52 | - <strong><?php _e( 'Viewed by Customer:', 'invoicing' );?></strong> |
|
| 53 | - <?php ( $invoice->get_is_viewed() ) ? _e( 'Yes', 'invoicing' ) : _e( 'No', 'invoicing' ); ?> |
|
| 52 | + <strong><?php _e('Viewed by Customer:', 'invoicing'); ?></strong> |
|
| 53 | + <?php ($invoice->get_is_viewed()) ? _e('Yes', 'invoicing') : _e('No', 'invoicing'); ?> |
|
| 54 | 54 | </div> |
| 55 | 55 | <?php endif; ?> |
| 56 | 56 | |
@@ -58,13 +58,13 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | // Date created. |
| 60 | 60 | $label = sprintf( |
| 61 | - __( '%s Date:', 'invoicing' ), |
|
| 62 | - ucfirst( $invoice->get_invoice_quote_type() ) |
|
| 61 | + __('%s Date:', 'invoicing'), |
|
| 62 | + ucfirst($invoice->get_invoice_quote_type()) |
|
| 63 | 63 | ); |
| 64 | 64 | |
| 65 | - $info = sprintf( |
|
| 66 | - __( 'The date this %s was created.', 'invoicing' ), |
|
| 67 | - strtolower( $invoice->get_invoice_quote_type() ) |
|
| 65 | + $info = sprintf( |
|
| 66 | + __('The date this %s was created.', 'invoicing'), |
|
| 67 | + strtolower($invoice->get_invoice_quote_type()) |
|
| 68 | 68 | ); |
| 69 | 69 | |
| 70 | 70 | echo aui()->input( |
@@ -72,11 +72,11 @@ discard block |
||
| 72 | 72 | 'type' => 'datepicker', |
| 73 | 73 | 'id' => 'wpinv_date_created', |
| 74 | 74 | 'name' => 'date_created', |
| 75 | - 'label' => $label . getpaid_get_help_tip( $info ), |
|
| 75 | + 'label' => $label . getpaid_get_help_tip($info), |
|
| 76 | 76 | 'label_type' => 'vertical', |
| 77 | 77 | 'placeholder' => 'YYYY-MM-DD 00:00', |
| 78 | 78 | 'class' => 'form-control-sm', |
| 79 | - 'value' => $invoice->get_date_created( 'edit' ), |
|
| 79 | + 'value' => $invoice->get_date_created('edit'), |
|
| 80 | 80 | 'extra_attributes' => array( |
| 81 | 81 | 'data-enable-time' => 'true', |
| 82 | 82 | 'data-time_24hr' => 'true', |
@@ -87,15 +87,15 @@ discard block |
||
| 87 | 87 | ); |
| 88 | 88 | |
| 89 | 89 | // Date paid. |
| 90 | - $date_paid = $invoice->get_date_completed( 'edit' ); |
|
| 91 | - if ( ! empty( $date_paid ) && $invoice->is_paid() ) { |
|
| 90 | + $date_paid = $invoice->get_date_completed('edit'); |
|
| 91 | + if (!empty($date_paid) && $invoice->is_paid()) { |
|
| 92 | 92 | |
| 93 | 93 | echo aui()->input( |
| 94 | 94 | array( |
| 95 | 95 | 'type' => 'text', |
| 96 | 96 | 'id' => 'wpinv_date_completed', |
| 97 | 97 | 'name' => 'wpinv_date_completed', |
| 98 | - 'label' => __( 'Date Completed:', 'invoicing' ), |
|
| 98 | + 'label' => __('Date Completed:', 'invoicing'), |
|
| 99 | 99 | 'label_type' => 'vertical', |
| 100 | 100 | 'class' => 'form-control-sm', |
| 101 | 101 | 'value' => $date_paid, |
@@ -105,18 +105,18 @@ discard block |
||
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | // Due date. |
| 108 | - if ( $invoice->is_type( 'invoice' ) && wpinv_get_option( 'overdue_active' ) && ( ! $invoice->is_paid() || $invoice->is_draft() ) ) { |
|
| 108 | + if ($invoice->is_type('invoice') && wpinv_get_option('overdue_active') && (!$invoice->is_paid() || $invoice->is_draft())) { |
|
| 109 | 109 | |
| 110 | 110 | echo aui()->input( |
| 111 | 111 | array( |
| 112 | 112 | 'type' => 'datepicker', |
| 113 | 113 | 'id' => 'wpinv_due_date', |
| 114 | 114 | 'name' => 'wpinv_due_date', |
| 115 | - 'label' => __( 'Due Date:', 'invoicing' ) . getpaid_get_help_tip( __( 'Leave blank to disable automated reminder emails for this invoice.', 'invoicing' ) ), |
|
| 115 | + 'label' => __('Due Date:', 'invoicing') . getpaid_get_help_tip(__('Leave blank to disable automated reminder emails for this invoice.', 'invoicing')), |
|
| 116 | 116 | 'label_type' => 'vertical', |
| 117 | - 'placeholder' => __( 'No due date', 'invoicing' ), |
|
| 117 | + 'placeholder' => __('No due date', 'invoicing'), |
|
| 118 | 118 | 'class' => 'form-control-sm', |
| 119 | - 'value' => $invoice->get_due_date( 'edit' ), |
|
| 119 | + 'value' => $invoice->get_due_date('edit'), |
|
| 120 | 120 | 'extra_attributes' => array( |
| 121 | 121 | 'data-enable-time' => 'true', |
| 122 | 122 | 'data-time_24hr' => 'true', |
@@ -128,39 +128,39 @@ discard block |
||
| 128 | 128 | |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | - do_action( 'wpinv_meta_box_details_after_due_date', $invoice->get_id() ); |
|
| 132 | - do_action( 'getpaid_metabox_after_due_date', $invoice ); |
|
| 131 | + do_action('wpinv_meta_box_details_after_due_date', $invoice->get_id()); |
|
| 132 | + do_action('getpaid_metabox_after_due_date', $invoice); |
|
| 133 | 133 | |
| 134 | 134 | // Status. |
| 135 | 135 | $label = sprintf( |
| 136 | - __( '%s Status:', 'invoicing' ), |
|
| 137 | - ucfirst( $invoice->get_invoice_quote_type() ) |
|
| 136 | + __('%s Status:', 'invoicing'), |
|
| 137 | + ucfirst($invoice->get_invoice_quote_type()) |
|
| 138 | 138 | ); |
| 139 | 139 | |
| 140 | - $status = $invoice->get_status( 'edit' ); |
|
| 140 | + $status = $invoice->get_status('edit'); |
|
| 141 | 141 | echo aui()->select( |
| 142 | 142 | array( |
| 143 | 143 | 'id' => 'wpinv_status', |
| 144 | 144 | 'name' => 'wpinv_status', |
| 145 | 145 | 'label' => $label, |
| 146 | 146 | 'label_type' => 'vertical', |
| 147 | - 'placeholder' => __( 'Select Status', 'invoicing' ), |
|
| 148 | - 'value' => array_key_exists( $status, $invoice->get_all_statuses() ) ? $status : $invoice->get_default_status(), |
|
| 147 | + 'placeholder' => __('Select Status', 'invoicing'), |
|
| 148 | + 'value' => array_key_exists($status, $invoice->get_all_statuses()) ? $status : $invoice->get_default_status(), |
|
| 149 | 149 | 'select2' => true, |
| 150 | 150 | 'data-allow-clear' => 'false', |
| 151 | - 'options' => wpinv_get_invoice_statuses( true, false, $invoice ) |
|
| 151 | + 'options' => wpinv_get_invoice_statuses(true, false, $invoice) |
|
| 152 | 152 | ) |
| 153 | 153 | ); |
| 154 | 154 | |
| 155 | 155 | // Invoice number. |
| 156 | 156 | $label = sprintf( |
| 157 | - __( '%s Number:', 'invoicing' ), |
|
| 158 | - ucfirst( $invoice->get_invoice_quote_type() ) |
|
| 157 | + __('%s Number:', 'invoicing'), |
|
| 158 | + ucfirst($invoice->get_invoice_quote_type()) |
|
| 159 | 159 | ); |
| 160 | 160 | |
| 161 | - $info = sprintf( |
|
| 162 | - __( 'Each %s number must be unique.', 'invoicing' ), |
|
| 163 | - strtolower( $invoice->get_invoice_quote_type() ) |
|
| 161 | + $info = sprintf( |
|
| 162 | + __('Each %s number must be unique.', 'invoicing'), |
|
| 163 | + strtolower($invoice->get_invoice_quote_type()) |
|
| 164 | 164 | ); |
| 165 | 165 | |
| 166 | 166 | echo aui()->input( |
@@ -168,11 +168,11 @@ discard block |
||
| 168 | 168 | 'type' => 'text', |
| 169 | 169 | 'id' => 'wpinv_number', |
| 170 | 170 | 'name' => 'wpinv_number', |
| 171 | - 'label' => $label . getpaid_get_help_tip( $info ), |
|
| 171 | + 'label' => $label . getpaid_get_help_tip($info), |
|
| 172 | 172 | 'label_type' => 'vertical', |
| 173 | - 'placeholder' => __( 'Autogenerate', 'invoicing' ), |
|
| 173 | + 'placeholder' => __('Autogenerate', 'invoicing'), |
|
| 174 | 174 | 'class' => 'form-control-sm', |
| 175 | - 'value' => $invoice->get_number( 'edit' ), |
|
| 175 | + 'value' => $invoice->get_number('edit'), |
|
| 176 | 176 | ) |
| 177 | 177 | ); |
| 178 | 178 | |
@@ -182,15 +182,15 @@ discard block |
||
| 182 | 182 | 'type' => 'text', |
| 183 | 183 | 'id' => 'wpinv_cc', |
| 184 | 184 | 'name' => 'wpinv_cc', |
| 185 | - 'label' => __( 'Email CC:', 'invoicing' ) . getpaid_get_help_tip( __( 'Enter a comma separated list of other emails that should be notified about the invoice.', 'invoicing' ) ), |
|
| 185 | + 'label' => __('Email CC:', 'invoicing') . getpaid_get_help_tip(__('Enter a comma separated list of other emails that should be notified about the invoice.', 'invoicing')), |
|
| 186 | 186 | 'label_type' => 'vertical', |
| 187 | - 'placeholder' => __( '[email protected], [email protected]', 'invoicing' ), |
|
| 187 | + 'placeholder' => __('[email protected], [email protected]', 'invoicing'), |
|
| 188 | 188 | 'class' => 'form-control-sm', |
| 189 | - 'value' => $invoice->get_email_cc( 'edit' ), |
|
| 189 | + 'value' => $invoice->get_email_cc('edit'), |
|
| 190 | 190 | ) |
| 191 | 191 | ); |
| 192 | 192 | |
| 193 | - if ( ! $invoice->is_paid() && ! $invoice->is_refunded() ) { |
|
| 193 | + if (!$invoice->is_paid() && !$invoice->is_refunded()) { |
|
| 194 | 194 | |
| 195 | 195 | // Apply a discount. |
| 196 | 196 | echo aui()->input( |
@@ -198,25 +198,25 @@ discard block |
||
| 198 | 198 | 'type' => 'text', |
| 199 | 199 | 'id' => 'wpinv_discount_code', |
| 200 | 200 | 'name' => 'wpinv_discount_code', |
| 201 | - 'label' => __( 'Discount Code:', 'invoicing' ), |
|
| 202 | - 'placeholder' => __( 'Apply Discount', 'invoicing' ), |
|
| 201 | + 'label' => __('Discount Code:', 'invoicing'), |
|
| 202 | + 'placeholder' => __('Apply Discount', 'invoicing'), |
|
| 203 | 203 | 'label_type' => 'vertical', |
| 204 | 204 | 'class' => 'form-control-sm getpaid-recalculate-prices-on-change', |
| 205 | - 'value' => $invoice->get_discount_code( 'edit' ), |
|
| 205 | + 'value' => $invoice->get_discount_code('edit'), |
|
| 206 | 206 | ) |
| 207 | 207 | ); |
| 208 | 208 | |
| 209 | - } else if ( $invoice->get_discount_code( 'edit' ) ) { |
|
| 209 | + } else if ($invoice->get_discount_code('edit')) { |
|
| 210 | 210 | |
| 211 | 211 | echo aui()->input( |
| 212 | 212 | array( |
| 213 | 213 | 'type' => 'text', |
| 214 | 214 | 'id' => 'wpinv_discount_code', |
| 215 | 215 | 'name' => 'wpinv_discount_code', |
| 216 | - 'label' => __( 'Discount Code:', 'invoicing' ), |
|
| 216 | + 'label' => __('Discount Code:', 'invoicing'), |
|
| 217 | 217 | 'label_type' => 'vertical', |
| 218 | 218 | 'class' => 'form-control-sm', |
| 219 | - 'value' => $invoice->get_discount_code( 'edit' ), |
|
| 219 | + 'value' => $invoice->get_discount_code('edit'), |
|
| 220 | 220 | 'extra_attributes' => array( |
| 221 | 221 | 'onclick' => 'this.select();', |
| 222 | 222 | 'readonly' => 'true', |
@@ -226,17 +226,17 @@ discard block |
||
| 226 | 226 | |
| 227 | 227 | } |
| 228 | 228 | |
| 229 | - do_action( 'wpinv_meta_box_details_inner', $invoice->get_id() ); |
|
| 229 | + do_action('wpinv_meta_box_details_inner', $invoice->get_id()); |
|
| 230 | 230 | |
| 231 | 231 | // Disable taxes. |
| 232 | - if ( wpinv_use_taxes() && ! ( $invoice->is_paid() || $invoice->is_refunded() ) ) { |
|
| 232 | + if (wpinv_use_taxes() && !($invoice->is_paid() || $invoice->is_refunded())) { |
|
| 233 | 233 | |
| 234 | 234 | echo aui()->input( |
| 235 | 235 | array( |
| 236 | 236 | 'id' => 'wpinv_taxable', |
| 237 | 237 | 'name' => 'disable_taxes', |
| 238 | 238 | 'type' => 'checkbox', |
| 239 | - 'label' => __( 'Disable taxes', 'invoicing' ), |
|
| 239 | + 'label' => __('Disable taxes', 'invoicing'), |
|
| 240 | 240 | 'value' => '1', |
| 241 | 241 | 'checked' => (bool) $invoice->get_disable_taxes(), |
| 242 | 242 | 'class' => 'getpaid-recalculate-prices-on-change', |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | |
| 246 | 246 | } |
| 247 | 247 | |
| 248 | - if ( $invoice->is_type( 'invoice' ) ) { |
|
| 248 | + if ($invoice->is_type('invoice')) { |
|
| 249 | 249 | |
| 250 | 250 | // Send to customer. |
| 251 | 251 | echo aui()->input( |
@@ -253,15 +253,15 @@ discard block |
||
| 253 | 253 | 'id' => 'wpinv_send_to_customer', |
| 254 | 254 | 'name' => 'send_to_customer', |
| 255 | 255 | 'type' => 'checkbox', |
| 256 | - 'label' => __( 'Send invoice to customer after saving', 'invoicing' ), |
|
| 256 | + 'label' => __('Send invoice to customer after saving', 'invoicing'), |
|
| 257 | 257 | 'value' => '1', |
| 258 | - 'checked' => $invoice->is_draft() && (bool) wpinv_get_option( 'email_user_invoice_active', true ), |
|
| 258 | + 'checked' => $invoice->is_draft() && (bool) wpinv_get_option('email_user_invoice_active', true), |
|
| 259 | 259 | ) |
| 260 | 260 | ); |
| 261 | 261 | |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | - do_action( 'getpaid_metabox_after_invoice_details', $invoice ); |
|
| 264 | + do_action('getpaid_metabox_after_invoice_details', $invoice); |
|
| 265 | 265 | |
| 266 | 266 | ?> |
| 267 | 267 | |
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | - exit; // Exit if accessed directly |
|
| 9 | + exit; // Exit if accessed directly |
|
| 10 | 10 | } |
| 11 | 11 | |
| 12 | 12 | /** |
@@ -15,10 +15,10 @@ discard block |
||
| 15 | 15 | class GetPaid_Meta_Box_Resend_Invoice { |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | - * Output the metabox. |
|
| 19 | - * |
|
| 20 | - * @param WP_Post $post |
|
| 21 | - */ |
|
| 18 | + * Output the metabox. |
|
| 19 | + * |
|
| 20 | + * @param WP_Post $post |
|
| 21 | + */ |
|
| 22 | 22 | public static function output( $post ) { |
| 23 | 23 | |
| 24 | 24 | // Fetch the invoice. |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | * |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 8 | +if (!defined('ABSPATH')) { |
|
| 9 | 9 | exit; // Exit if accessed directly |
| 10 | 10 | } |
| 11 | 11 | |
@@ -19,12 +19,12 @@ discard block |
||
| 19 | 19 | * |
| 20 | 20 | * @param WP_Post $post |
| 21 | 21 | */ |
| 22 | - public static function output( $post ) { |
|
| 22 | + public static function output($post) { |
|
| 23 | 23 | |
| 24 | 24 | // Fetch the invoice. |
| 25 | - $invoice = new WPInv_Invoice( $post ); |
|
| 25 | + $invoice = new WPInv_Invoice($post); |
|
| 26 | 26 | |
| 27 | - do_action( 'wpinv_metabox_resend_invoice_before', $invoice ); |
|
| 27 | + do_action('wpinv_metabox_resend_invoice_before', $invoice); |
|
| 28 | 28 | |
| 29 | 29 | $invoice_actions = array( |
| 30 | 30 | 'resend-email' => array( |
@@ -38,11 +38,11 @@ discard block |
||
| 38 | 38 | 'getpaid-nonce', |
| 39 | 39 | 'getpaid-nonce' |
| 40 | 40 | ), |
| 41 | - 'label' => __( 'Resend Invoice', 'invoicing' ), |
|
| 41 | + 'label' => __('Resend Invoice', 'invoicing'), |
|
| 42 | 42 | ) |
| 43 | 43 | ); |
| 44 | 44 | |
| 45 | - if ( $invoice->needs_payment() ) { |
|
| 45 | + if ($invoice->needs_payment()) { |
|
| 46 | 46 | |
| 47 | 47 | $invoice_actions['send-reminder'] = array( |
| 48 | 48 | 'url' => wp_nonce_url( |
@@ -55,29 +55,29 @@ discard block |
||
| 55 | 55 | 'getpaid-nonce', |
| 56 | 56 | 'getpaid-nonce' |
| 57 | 57 | ), |
| 58 | - 'label' => __( 'Send Reminder', 'invoicing' ), |
|
| 58 | + 'label' => __('Send Reminder', 'invoicing'), |
|
| 59 | 59 | ); |
| 60 | 60 | |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | - $invoice_actions = apply_filters( 'getpaid_edit_invoice_actions', $invoice_actions, $invoice ); |
|
| 63 | + $invoice_actions = apply_filters('getpaid_edit_invoice_actions', $invoice_actions, $invoice); |
|
| 64 | 64 | |
| 65 | - foreach ( $invoice_actions as $key => $action ) { |
|
| 65 | + foreach ($invoice_actions as $key => $action) { |
|
| 66 | 66 | |
| 67 | - if ( 'resend-email' === $key ) { |
|
| 68 | - echo wpautop( __( "This will send a copy of the invoice to the customer's email address.", 'invoicing' ) ); |
|
| 67 | + if ('resend-email' === $key) { |
|
| 68 | + echo wpautop(__("This will send a copy of the invoice to the customer's email address.", 'invoicing')); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | printf( |
| 72 | 72 | '<p class="wpi-meta-row wpi-%s"><a href="%s" class="button button-secondary">%s</a>', |
| 73 | - esc_attr( $key ), |
|
| 74 | - esc_url( $action['url'] ), |
|
| 75 | - sanitize_text_field( $action['label'] ) |
|
| 73 | + esc_attr($key), |
|
| 74 | + esc_url($action['url']), |
|
| 75 | + sanitize_text_field($action['label']) |
|
| 76 | 76 | ); |
| 77 | 77 | |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - do_action( 'wpinv_metabox_resend_invoice_after', $invoice ); |
|
| 80 | + do_action('wpinv_metabox_resend_invoice_after', $invoice); |
|
| 81 | 81 | |
| 82 | 82 | } |
| 83 | 83 | |
@@ -1,39 +1,39 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // MUST have WordPress. |
| 3 | -if ( !defined( 'WPINC' ) ) { |
|
| 4 | - exit( 'Do NOT access this file directly: ' . basename( __FILE__ ) ); |
|
| 3 | +if (!defined('WPINC')) { |
|
| 4 | + exit('Do NOT access this file directly: ' . basename(__FILE__)); |
|
| 5 | 5 | } |
| 6 | 6 | |
| 7 | 7 | class WPInv_Meta_Box_Notes { |
| 8 | - public static function output( $post ) { |
|
| 8 | + public static function output($post) { |
|
| 9 | 9 | global $post; |
| 10 | 10 | |
| 11 | - $notes = wpinv_get_invoice_notes( $post->ID ); |
|
| 11 | + $notes = wpinv_get_invoice_notes($post->ID); |
|
| 12 | 12 | |
| 13 | 13 | echo '<ul class="invoice_notes">'; |
| 14 | 14 | |
| 15 | - if ( $notes ) { |
|
| 16 | - foreach( $notes as $note ) { |
|
| 17 | - wpinv_get_invoice_note_line_item( $note ); |
|
| 15 | + if ($notes) { |
|
| 16 | + foreach ($notes as $note) { |
|
| 17 | + wpinv_get_invoice_note_line_item($note); |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | } else { |
| 21 | - echo '<li>' . __( 'There are no notes yet.', 'invoicing' ) . '</li>'; |
|
| 21 | + echo '<li>' . __('There are no notes yet.', 'invoicing') . '</li>'; |
|
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | echo '</ul>'; |
| 25 | 25 | ?> |
| 26 | 26 | <div class="add_note"> |
| 27 | - <h4><?php _e( 'Add note', 'invoicing' ); ?></h4> |
|
| 27 | + <h4><?php _e('Add note', 'invoicing'); ?></h4> |
|
| 28 | 28 | <p> |
| 29 | 29 | <textarea type="text" name="invoice_note" id="add_invoice_note" class="input-text" cols="20" rows="5"></textarea> |
| 30 | 30 | </p> |
| 31 | 31 | <p> |
| 32 | 32 | <select name="invoice_note_type" id="invoice_note_type" class="regular-text"> |
| 33 | - <option value=""><?php _e( 'Private note', 'invoicing' ); ?></option> |
|
| 34 | - <option value="customer"><?php _e( 'Note to customer', 'invoicing' ); ?></option> |
|
| 33 | + <option value=""><?php _e('Private note', 'invoicing'); ?></option> |
|
| 34 | + <option value="customer"><?php _e('Note to customer', 'invoicing'); ?></option> |
|
| 35 | 35 | </select> |
| 36 | - <a href="#" class="add_note button"><?php _e( 'Add', 'invoicing' ); ?></a> <span class="description"><?php _e( 'Add a note for your reference, or add a customer note (the user will be notified).', 'invoicing' ); ?></span> |
|
| 36 | + <a href="#" class="add_note button"><?php _e('Add', 'invoicing'); ?></a> <span class="description"><?php _e('Add a note for your reference, or add a customer note (the user will be notified).', 'invoicing'); ?></span> |
|
| 37 | 37 | </p> |
| 38 | 38 | </div> |
| 39 | 39 | <?php |
@@ -7,26 +7,26 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | 12 | ?> |
| 13 | 13 | |
| 14 | - <?php do_action( 'getpaid_before_invoice_details_main', $invoice ); ?> |
|
| 14 | + <?php do_action('getpaid_before_invoice_details_main', $invoice); ?> |
|
| 15 | 15 | |
| 16 | 16 | <div class="getpaid-invoice-details mt-3 mb-3"> |
| 17 | 17 | <div class="row"> |
| 18 | 18 | |
| 19 | 19 | <div class="col-12 col-sm-6"> |
| 20 | - <?php do_action( 'getpaid_invoice_details_left', $invoice ); ?> |
|
| 20 | + <?php do_action('getpaid_invoice_details_left', $invoice); ?> |
|
| 21 | 21 | </div> |
| 22 | 22 | |
| 23 | 23 | <div class="col-12 col-sm-6"> |
| 24 | - <?php do_action( 'getpaid_invoice_details_right', $invoice ); ?> |
|
| 24 | + <?php do_action('getpaid_invoice_details_right', $invoice); ?> |
|
| 25 | 25 | </div> |
| 26 | 26 | |
| 27 | 27 | </div> |
| 28 | 28 | </div> |
| 29 | 29 | |
| 30 | - <?php do_action( 'getpaid_after_invoice_details_main', $invoice ); ?> |
|
| 30 | + <?php do_action('getpaid_after_invoice_details_main', $invoice); ?> |
|
| 31 | 31 | |
| 32 | 32 | <?php |
@@ -7,13 +7,13 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | -if ( empty( $text ) ) { |
|
| 13 | - $text = __( 'Total to pay:', 'invoicing' ); |
|
| 12 | +if (empty($text)) { |
|
| 13 | + $text = __('Total to pay:', 'invoicing'); |
|
| 14 | 14 | } |
| 15 | 15 | ?> |
| 16 | 16 | <div class="form-group mt-4"> |
| 17 | - <strong><?php echo sanitize_text_field( $text ); ?></strong> |
|
| 17 | + <strong><?php echo sanitize_text_field($text); ?></strong> |
|
| 18 | 18 | <span class="getpaid-checkout-total-payable"></span> |
| 19 | 19 | </div> |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * @package Invoicing/data |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -defined( 'ABSPATH' ) || exit; |
|
| 9 | +defined('ABSPATH') || exit; |
|
| 10 | 10 | |
| 11 | 11 | return array( |
| 12 | 12 | "AD" => "AD\d{3}", |