Render using custom template on preview
This commit is contained in:
@@ -51,8 +51,7 @@ class Renderer {
|
||||
|
||||
$templateStyles = file_get_contents(dirname(__FILE__) . '/' . self::TEMPLATE_STYLES_FILE);
|
||||
$templateStyles = apply_filters('mailpoet_email_renderer_styles', $templateStyles, $post);
|
||||
// @todo use custom template to render.
|
||||
$templateHtml = $this->contentRenderer->render($post, $this->templates->getBlockTemplateFromFile('email-general.html'));
|
||||
$templateHtml = $this->contentRenderer->render($post, $this->templates->getBlockTemplate('mailpoet/mailpoet//email-general'));
|
||||
|
||||
ob_start();
|
||||
include self::TEMPLATE_FILE;
|
||||
|
Reference in New Issue
Block a user