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]
14 lines
483 B
PHP
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 ?: '';
|
|
}
|
|
}
|