Files
piratepoet/mailpoet/lib/EmailEditor/Engine/Renderer/BodyRenderer.php
Rostislav Wolny 46a481ec24 Add email renderer and template to the renderer engine
In this commit, I copied the code for processing the rendering of emails
from the current renderer.
This will allow us to use different base templates and styles.
Ideally, we should be able to add hooks and reuse the renderer from the engine namespace in
the current renderer.
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00

14 lines
483 B
PHP

<?php declare(strict_types = 1);
namespace MailPoet\EmailEditor\Engine\Renderer;
class BodyRenderer {
public function renderBody(string $postContent): string {
// @todo Parse blocks \WP_Block_Parser
// @todo We need to wrap top level blocks which are not in columns into a column
// @todo Add rendering of columns (inspire by/reuse code from mailpoet/lib/Newsletter/Renderer/Columns/Renderer)
// @todo Add rendering of blocks
return $postContent ?: '';
}
}