htmlmail--htmlmail.html.twig in HTML Mail 8
File
templates/htmlmail--htmlmail.html.twig
View source
- <?php
-
- /**
- * @file
- */
- ?>
- {#
- /**
- * @file
- * Sample template for HTML Mail test messages.
- */
- #}
- <h1><a href="http://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="http://drupalcode.org/project/htmlmail.git/blob_plain/refs/heads/7.x-2.x:/htmlmail--htmlmail.tpl.php"><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 %}