htmlmail--htmlmail.html.twig in HTML Mail 8.3
Same filename and directory in other branches
Sample template for HTML Mail test messages.
File
templates/htmlmail--htmlmail.html.twigView source
- {#
- /**
- * @file
- * Sample template for HTML Mail test messages.
- */
- #}
- <h1><a href="https://www.drupal.org/project/htmlmail">HTML Mail</a> test message</h1>
- <div class="htmlmail-body">
- {{ message.body }}
- </div>
- {% if debug %}
- <hr />
- <div class="htmlmail-debug">
- <dl>
- <dt>
- <p>To customize this test message:</p>
- </dt>
- <dd>
- <ol>
- {% if not theme %}
- <li>
-
- <p>
- Visit <u>admin/config/system/htmlmail</u>
- and select a theme to hold your custom email template files.
- </p>
- </li>
- {% elseif not theme_path %}
- <li>
- <p>
- Visit <u>admin/appearance</u>
- to enable your selected <u>
- {{ theme|capitalize }}</u> theme.
- </p>
- </li>
- {% endif %}
-
- {% set themeTemplate = "%s/%s"|format(theme_path, message_template) %}
- {% if _self.getTemplateName() == themeTemplate %}
- <li>
- <p>
- <?php endif; ?>
- Copy the
- <a href="https://git.drupalcode.org/project/htmlmail/raw/8.x-3.x/templates/htmlmail--htmlmail.html.twig"><code>htmlmail--htmlmail.tpl.php</code></a>
- file to your <u>{{ theme|capitalize }}</u> theme directory
- <u><code>{{ theme_path }}</code></u>.
- </p>
- </li>
- {% endif %}
- <li>
- <p>Edit the copied file.</p>
- </li>
- </ol>
- </dd>
- </dl>
- </div>
- {% endif %}