Skip to content
Snippets Groups Projects

Devel

Merged Piotr Potrebka requested to merge devel into main
1 file
+ 2
3
Compare changes
  • Side-by-side
  • Inline
+ 2
3
@@ -112,7 +112,7 @@ class EmailSender {
public function send( array $placeholders = [] ) {
foreach ( $this->get_emails() as $email ) {
$content = $this->renderer->render( $email->get_id(), [] );
$content = $this->renderer->render( 'html/' . $email->get_id(), [] );
$content = $this->replace_placeholders( $content, $placeholders );
if ( $email->get_is_enable() ) {
$this->before_wp_mail();
@@ -121,7 +121,6 @@ class EmailSender {
);
$this->after_wp_mail();
}
}
}
@@ -141,7 +140,7 @@ class EmailSender {
* @return mixed|string
*/
private function get_html_content( string $content ): string {
$styles = $this->renderer->render( 'styles', [] );
$styles = $this->renderer->render( 'html/styles', [] );
return HTMLDecorator::style_inline( $content, $styles );
}
Loading