Update for new option
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 19 Mar 2019 19:14:29 +0000 (15:14 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 19 Mar 2019 19:14:29 +0000 (15:14 -0400)
read option for logo width

lib/GlmPDFInvoice.php

index 0814e65..b59b33f 100644 (file)
@@ -408,7 +408,7 @@ class GlmPDFInvoice extends Cezpdf
             $this->ezImage(
                 GLM_MEMBERS_PLUGIN_MEDIA_PATH . '/images/large/' .  $this->config['settings']['company_logo'], // image
                 0,      // padding
-                130,    // width
+                ( $this->config['settings']['company_logo_width'] ) ? $this->config['settings']['company_logo_width'] : 260,    // width
                 'none', // resize
                 'left', // justification
                 '',     // angle