invoice_type = $invoice_type; } /** * Page footer. * * @version 2.9.0 * @todo (maybe) e.g. "Set font" - `$this->SetFont( 'helvetica', 'I', 8 );` */ function Footer() { $invoice_type = $this->invoice_type; $footer_text = get_option( 'wcj_invoicing_' . $invoice_type . '_footer_text', __( 'Page %page_number% / %total_pages%', 'woocommerce-jetpack' ) ); $footer_text = str_replace( '%page_number%', $this->getAliasNumPage(), $footer_text ); $footer_text = str_replace( '%total_pages%', $this->getAliasNbPages(), $footer_text ); $border_desc = array( 'T' => array( 'color' => wcj_hex2rgb( get_option( 'wcj_invoicing_' . $invoice_type . '_footer_line_color', '#cccccc' ) ), 'width' => 0, ), ); $footer_text_color_rgb = wcj_hex2rgb( get_option( 'wcj_invoicing_' . $invoice_type . '_footer_text_color', '#cccccc' ) ); $this->SetTextColor( $footer_text_color_rgb[0], $footer_text_color_rgb[1], $footer_text_color_rgb[2] ); $this->writeHTMLCell( 0, 0, '', '', do_shortcode( $footer_text ), $border_desc, 1, 0, true, '', true ); } } endif;