simplenews-newsletter-body--7881.tpl.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  30. <tbody>
  31. <tr>
  32. <td style="padding: 37px 0; background-color: #ffffff; text-align:center;" align="center" bgcolor="#ffffff">
  33. <table bgcolor="#ffffff" style="margin: 0 auto; color: #444444; font-family: arial; font-size: 12px; background-color: #ffffff; float:none; position:relative;" width="600" border="0" cellspacing="0" cellpadding="0">
  34. <tbody>
  35. <tr>
  36. <td style="text-align:left;">
  37. <!-- node content -->
  38. <?php print render($build); ?>