simplenews-newsletter-body.tpl.php 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation to format the simplenews newsletter body.
  5. *
  6. * Copy this file in your theme directory to create a custom themed body.
  7. * Rename it to override it. Available templates:
  8. * simplenews-newsletter-body--[tid].tpl.php
  9. * simplenews-newsletter-body--[view mode].tpl.php
  10. * simplenews-newsletter-body--[tid]--[view mode].tpl.php
  11. * See README.txt for more details.
  12. *
  13. * Available variables:
  14. * - $build: Array as expected by render()
  15. * - $build['#node']: The $node object
  16. * - $title: Node title
  17. * - $language: Language code
  18. * - $view_mode: Active view mode
  19. * - $simplenews_theme: Contains the path to the configured mail theme.
  20. * - $simplenews_subscriber: The subscriber for which the newsletter is built.
  21. * Note that depending on the used caching strategy, the generated body might
  22. * be used for multiple subscribers. If you created personalized newsletters
  23. * and can't use tokens for that, make sure to disable caching or write a
  24. * custom caching strategy implemention.
  25. *
  26. * @see template_preprocess_simplenews_newsletter_body()
  27. */
  28. ?>
  29. <h2><?php print $title; ?></h2>
  30. <?php print render($build); ?>