You are here

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

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

File

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