Skip to content
Snippets Groups Projects

feat: email styles

Merged Piotr Potrebka requested to merge refactor/templates into devel
2 files
+ 4
5
Compare changes
  • Side-by-side
  • Inline

Files

@@ -5,7 +5,7 @@ namespace WPDesk\Library\WPEmail;
use WPDesk\Library\WPEmail\Helpers\StyleInliner;
use WPDesk\View\Renderer\Renderer;
class EmailTemplate {
class Template {
/**
* @var Renderer
@@ -22,7 +22,7 @@ class EmailTemplate {
$this->template_attributes = wp_parse_args( $template_attributes, $this->get_default_template_attributes() );
}
public function get_email_template( string $content ): string {
public function get_body( string $content ): string {
$output = $this->renderer->render( 'html/email-header', $this->template_attributes );
$output .= $this->renderer->render( 'html/email-content', [ 'content' => $content ] );
$output .= $this->renderer->render( 'html/email-footer', [ 'footer' => $this->template_attributes['footer'] ] );
Loading