Migrate email editor theme-controller to WP Coding Standard

[MAILPOET-6240]
This commit is contained in:
Jan Lysý
2024-10-16 18:02:09 +02:00
committed by Jan Lysý
parent ecbd2f150d
commit fba5482cd2
11 changed files with 215 additions and 139 deletions

View File

@@ -45,9 +45,9 @@ class Renderer {
// Set the theme for the template. This is merged with base theme.json and core json before rendering.
self::$theme = new WP_Theme_JSON( $theme, 'default' );
$emailStyles = $this->themeController->getStyles( $post, $template );
$emailStyles = $this->themeController->get_styles( $post, $template );
$templateHtml = $this->contentRenderer->render( $post, $template );
$layout = $this->themeController->getLayoutSettings();
$layout = $this->themeController->get_layout_settings();
ob_start();
include self::TEMPLATE_FILE;