Marcus
Well-known member
I would love to include templates within Email Templates.
It would also great to include CSS into email templates, if it is necessary to include it directly within each html tag, there might be an already available function for doing that? That would work like this
mails_css (template)
verification_mail (template)
would be translated into
If there is none function available for doing that: One quick and dirty method could be to explode the CSS into an array:
$css['class = "classA"'] = 'style="font-weight:bold"';
... and replace($template, $css). You would only get one class per html tag and its not nice, but better than the current situation.
It would also great to include CSS into email templates, if it is necessary to include it directly within each html tag, there might be an already available function for doing that? That would work like this
mails_css (template)
PHP:
.classA {font-weight: bold}
verification_mail (template)
PHP:
<xen:require css="mails_css" />
<p class="classA">Some text</p>
PHP:
<p style="font-weight: bold">Some text</p>
If there is none function available for doing that: One quick and dirty method could be to explode the CSS into an array:
$css['class = "classA"'] = 'style="font-weight:bold"';
... and replace($template, $css). You would only get one class per html tag and its not nice, but better than the current situation.
Last edited:
Upvote
0