invoice logo for wordpress plugin, RT#75279
authorIvan Kohler <ivan@freeside.biz>
Wed, 19 Apr 2017 20:15:14 +0000 (13:15 -0700)
committerIvan Kohler <ivan@freeside.biz>
Wed, 19 Apr 2017 20:15:14 +0000 (13:15 -0700)
fs_selfservice/wordpress/mylogo.png [new file with mode: 0644]
fs_selfservice/wordpress/view_invoice.php

diff --git a/fs_selfservice/wordpress/mylogo.png b/fs_selfservice/wordpress/mylogo.png
new file mode 100644 (file)
index 0000000..1e415e6
Binary files /dev/null and b/fs_selfservice/wordpress/mylogo.png differ
index a1e1680..6f854b0 100644 (file)
@@ -18,6 +18,13 @@ if ( isset($invoice_info['error']) && $invoice_info['error'] ) {
 
 extract($invoice_info);
 
+//if we don't need multi-company logo support, this is probably easier than
+// calling invoice_logo()
+$invoice_html = preg_replace( '/cust_bill-logo\.cgi\?invnum=\d+;template=/',
+                              'mylogo.png?',
+                              $invoice_html
+                            );
+
 get_header();
 
 ?>