1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest <xen:include> and <xen:css> in Email Templates

Discussion in 'Closed Suggestions' started by Marcus, Dec 11, 2013.

  1. Marcus

    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)
    PHP:
    .classA {font-weightbold}
    verification_mail (template)
    PHP:
    <xen:require css="mails_css" />

    <
    class="classA">Some text</p>
    would be translated into
    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: Dec 11, 2013

Share This Page