summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-04-19 13:15:16 -0700
committerIvan Kohler <ivan@freeside.biz>2017-04-19 13:15:16 -0700
commitbbcc87b4f8a5e6c6fc2bd4d4cce17ae45d905a8d (patch)
treec75a033f99b526b87208b1e7b353df7b919bac43
parenta0001672ba855d7402ef891ee3db4488af3e9314 (diff)
invoice logo for wordpress plugin, RT#75279
-rw-r--r--fs_selfservice/wordpress/mylogo.pngbin0 -> 4887 bytes
-rw-r--r--fs_selfservice/wordpress/view_invoice.php7
2 files changed, 7 insertions, 0 deletions
diff --git a/fs_selfservice/wordpress/mylogo.png b/fs_selfservice/wordpress/mylogo.png
new file mode 100644
index 000000000..1e415e6d8
--- /dev/null
+++ b/fs_selfservice/wordpress/mylogo.png
Binary files differ
diff --git a/fs_selfservice/wordpress/view_invoice.php b/fs_selfservice/wordpress/view_invoice.php
index a1e1680c9..6f854b095 100644
--- a/fs_selfservice/wordpress/view_invoice.php
+++ b/fs_selfservice/wordpress/view_invoice.php
@@ -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();
?>