You are here

htmlmail--htmlmail.html.twig in HTML Mail 8.3

Same filename and directory in other branches
  1. 8 templates/htmlmail--htmlmail.html.twig

Sample template for HTML Mail test messages.

File

templates/htmlmail--htmlmail.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Sample template for HTML Mail test messages.
  5. */
  6. #}
  7. <h1><a href="https://www.drupal.org/project/htmlmail">HTML Mail</a> test message</h1>
  8. <div class="htmlmail-body">
  9. {{ message.body }}
  10. </div>
  11. {% if debug %}
  12. <hr />
  13. <div class="htmlmail-debug">
  14. <dl>
  15. <dt>
  16. <p>To customize this test message:</p>
  17. </dt>
  18. <dd>
  19. <ol>
  20. {% if not theme %}
  21. <li>
  22. <p>
  23. Visit <u>admin/config/system/htmlmail</u>
  24. and select a theme to hold your custom email template files.
  25. </p>
  26. </li>
  27. {% elseif not theme_path %}
  28. <li>
  29. <p>
  30. Visit <u>admin/appearance</u>
  31. to enable your selected <u>
  32. {{ theme|capitalize }}</u> theme.
  33. </p>
  34. </li>
  35. {% endif %}
  36. {% set themeTemplate = "%s/%s"|format(theme_path, message_template) %}
  37. {% if _self.getTemplateName() == themeTemplate %}
  38. <li>
  39. <p>
  40. <?php endif; ?>
  41. Copy the
  42. <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>
  43. file to your <u>{{ theme|capitalize }}</u> theme directory
  44. <u><code>{{ theme_path }}</code></u>.
  45. </p>
  46. </li>
  47. {% endif %}
  48. <li>
  49. <p>Edit the copied file.</p>
  50. </li>
  51. </ol>
  52. </dd>
  53. </dl>
  54. </div>
  55. {% endif %}