getTemplate() : 'standard';
if (empty($current_template)) {
$current_template = 'standard';
}
$template_class = 'template-' . $current_template;
// Initialize formatter for the invoice templates
$formatter = new \EasyInvoice\Helpers\InvoiceFormatter($invoice);
?>
getId(), '_easy_invoice_invoice_template', true);
if ($template_id && class_exists('\EasyInvoicePro\TemplateParser') && class_exists('\EasyInvoicePro\Addons\CustomTemplates\Controllers\TemplateBuilderController')) {
$templateData = \EasyInvoicePro\TemplateParser::parseTemplateFromDatabase($template_id);
if ($templateData && isset($templateData['elements'])) {
echo '';
}
}
}
// Dynamically load the selected template
$template_file = easy_invoice_design_template( 'invoice', (string) $current_template );
if ( ! $invoice instanceof \EasyInvoice\Models\Invoice ) {
// Nothing to render yet. The designs read the model
// directly, so including one here would be fatal.
?>
The selected template "" does not exist.