@@ -103,8 +103,8 @@ discard block |
||
103 | 103 | add_settings_field('wpshop_billing_address_choice', __('Billing address choice', 'wpshop'), array(&$this, 'wpshop_billing_address_choice_field'), 'wpshop_billing_info', 'wpshop_billing_info'); |
104 | 104 | add_settings_field('wpshop_billing_address_include_into_register', '', array(&$this, 'wpshop_billing_address_include_into_register_field'), 'wpshop_billing_info', 'wpshop_billing_info'); |
105 | 105 | |
106 | - register_setting( 'wpshop_options', 'wpshop_billing_invoice_footer_area' ); |
|
107 | - add_settings_field( 'wpshop_billing_invoice_footer_area', __( 'Free text for invoice footer', 'wpshop' ), array( $this, 'wpshop_billing_invoice_footer_area' ), 'wpshop_billing_info', 'wpshop_billing_info' ); |
|
106 | + register_setting('wpshop_options', 'wpshop_billing_invoice_footer_area'); |
|
107 | + add_settings_field('wpshop_billing_invoice_footer_area', __('Free text for invoice footer', 'wpshop'), array($this, 'wpshop_billing_invoice_footer_area'), 'wpshop_billing_info', 'wpshop_billing_info'); |
|
108 | 108 | |
109 | 109 | $quotation_option = get_option('wpshop_addons'); |
110 | 110 | if (!empty($quotation_option) && !empty($quotation_option['WPSHOP_ADDONS_QUOTATION']) && !empty($quotation_option['WPSHOP_ADDONS_QUOTATION']['activate'])) { |
@@ -165,11 +165,11 @@ discard block |
||
165 | 165 | * Define the field allowing to define the invoice footer |
166 | 166 | */ |
167 | 167 | public function wpshop_billing_invoice_footer_area() { |
168 | - $wpshop_billing_invoice_footer_area = get_option( 'wpshop_billing_invoice_footer_area' ); |
|
168 | + $wpshop_billing_invoice_footer_area = get_option('wpshop_billing_invoice_footer_area'); |
|
169 | 169 | $wp_editor_args = array( |
170 | 170 | 'media_buttons' => false, |
171 | 171 | ); |
172 | - wp_editor( $wpshop_billing_invoice_footer_area, 'wpshop_billing_invoice_footer_area', $wp_editor_args ); |
|
172 | + wp_editor($wpshop_billing_invoice_footer_area, 'wpshop_billing_invoice_footer_area', $wp_editor_args); |
|
173 | 173 | } |
174 | 174 | |
175 | 175 | public function wpshop_options_validate_billing_number_figures($input) |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | update_option('wpshop_billing_current_number', $billing_current_number); |
308 | 308 | |
309 | 309 | /** Create the new invoice number with all parameters viewed above */ |
310 | - $invoice_ref = WPSHOP_BILLING_REFERENCE_PREFIX . ((string) sprintf('%0' . $number_figures . 'd', $billing_current_number)); |
|
310 | + $invoice_ref = WPSHOP_BILLING_REFERENCE_PREFIX . ((string)sprintf('%0' . $number_figures . 'd', $billing_current_number)); |
|
311 | 311 | |
312 | 312 | return $invoice_ref; |
313 | 313 | } |
@@ -604,7 +604,7 @@ discard block |
||
604 | 604 | |
605 | 605 | unset($sub_tpl_component); |
606 | 606 | $total_partial_payment += (!empty($received_payment['received_amount'])) ? $received_payment['received_amount'] : 0; |
607 | - } else if ( !empty( $received_payment['status'] ) && 'payment_received' == $received_payment['status'] ) { |
|
607 | + } else if (!empty($received_payment['status']) && 'payment_received' == $received_payment['status']) { |
|
608 | 608 | $last_payment += (!empty($received_payment['received_amount'])) ? $received_payment['received_amount'] : 0; |
609 | 609 | } |
610 | 610 | |
@@ -989,7 +989,7 @@ discard block |
||
989 | 989 | public static function generate_footer_invoice() { |
990 | 990 | $output = ''; |
991 | 991 | $emails = get_option('wpshop_emails', array()); |
992 | - $wpshop_billing_invoice_footer_area = get_option( 'wpshop_billing_invoice_footer_area' ); |
|
992 | + $wpshop_billing_invoice_footer_area = get_option('wpshop_billing_invoice_footer_area'); |
|
993 | 993 | |
994 | 994 | $tpl_component['COMPANY_EMAIL'] = (!empty($emails) && !empty($emails['contact_email'])) ? $emails['contact_email'] : ''; |
995 | 995 | $tpl_component['COMPANY_WEBSITE'] = site_url(); |