/**
  * Display company name if logo is not found.
  * Convert image to base64 due to incompatibility of subdomains with MPDF
  */
 public function get_company_logo_html()
 {
     if (!empty($this->template_options['bewpi_company_logo'])) {
         $image_url = $this->template_options['bewpi_company_logo'];
         // get the relative path due to slow generation of invoice. Not fully tested yet.
         //$image_url = '..' . str_replace( get_site_url(), '', $image_url );
         $image_url = image_to_base64($image_url);
         echo '<img class="company-logo" src="' . $image_url . '"/>';
     } else {
         echo '<h1 class="company-logo">' . $this->template_options['bewpi_company_name'] . '</h1>';
     }
 }
 /**
  * Display company name if logo is not found.
  * Convert image to base64 due to incompatibility of subdomains with MPDF
  */
 public function get_company_logo_html()
 {
     if (!empty($this->template_options['bewpi_company_logo'])) {
         $image_url = $this->template_options['bewpi_company_logo'];
         $image_base64 = image_to_base64($image_url);
         echo '<img class="company-logo" src="' . $image_base64 . '"/>';
     } else {
         echo '<h1 class="company-logo">' . $this->template_options['bewpi_company_name'] . '</h1>';
     }
 }