[freeside-commits] branch master updated. 27faccf1f8017a07bc6b527258448a723eb904b2

Ivan ivan at 420.am
Wed Apr 19 13:15:16 PDT 2017


The branch, master has been updated
       via  27faccf1f8017a07bc6b527258448a723eb904b2 (commit)
      from  99818af994e0731542beebc1045cfc33dcf746f1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 27faccf1f8017a07bc6b527258448a723eb904b2
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Apr 19 13:15:14 2017 -0700

    invoice logo for wordpress plugin, RT#75279

diff --git a/fs_selfservice/wordpress/mylogo.png b/fs_selfservice/wordpress/mylogo.png
new file mode 100644
index 0000000..1e415e6
Binary files /dev/null and b/fs_selfservice/wordpress/mylogo.png differ
diff --git a/fs_selfservice/wordpress/view_invoice.php b/fs_selfservice/wordpress/view_invoice.php
index a1e1680..6f854b0 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();
 
 ?>

-----------------------------------------------------------------------

Summary of changes:
 conf/logo.png => fs_selfservice/wordpress/mylogo.png |  Bin 4887 -> 4887 bytes
 fs_selfservice/wordpress/view_invoice.php            |    7 +++++++
 2 files changed, 7 insertions(+)
 copy conf/logo.png => fs_selfservice/wordpress/mylogo.png (100%)




More information about the freeside-commits mailing list