simplenews-newsletter-footer.tpl.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation to format the simplenews newsletter footer.
  5. *
  6. * Copy this file in your theme directory to create a custom themed footer.
  7. * Rename it to simplenews-newsletter-footer--[tid].tpl.php to override it for a
  8. * newsletter using the newsletter term's id.
  9. *
  10. * @todo Update the available variables.
  11. * Available variables:
  12. * - $build: Array as expected by render()
  13. * - $build['#node']: The $node object
  14. * - $language: language code
  15. * - $key: email key [node|test]
  16. * - $format: newsletter format [plain|html]
  17. * - $unsubscribe_text: unsubscribe text
  18. * - $test_message: test message warning message
  19. * - $simplenews_theme: path to the configured simplenews theme
  20. *
  21. * Available tokens:
  22. * - [simplenews-subscriber:unsubscribe-url]: unsubscribe url to be used as link
  23. *
  24. * Other available tokens can be found on the node edit form when token.module
  25. * is installed.
  26. *
  27. * @see template_preprocess_simplenews_newsletter_footer()
  28. */
  29. ?>
  30. </td>
  31. </tr>
  32. </tbody>
  33. </table>
  34. <table style="height: 10px; border-collapse: collapse; font-size: 1px;" border="0" cellspacing="0" cellpadding="0">
  35. <tbody>
  36. <tr>
  37. <td style="height: 10px; border-spacing: 0; font-size: 1px;" height="10">
  38. &nbsp;
  39. </td>
  40. </tr>
  41. </tbody>
  42. </table>
  43. <?php if (!$opt_out_hidden): ?>
  44. <?php if ($format == 'html'): ?>
  45. <p style="font-size:11px; margin: 5px 20px 0;"><a style="color:#444444;" href="[simplenews-subscriber:unsubscribe-url]"><?php print $unsubscribe_text ?></a></p>
  46. <?php else: ?>
  47. -- <?php print $unsubscribe_text ?>: [simplenews-subscriber:unsubscribe-url]
  48. <?php endif ?>
  49. <?php endif; ?>
  50. <p id="footer_address" style="color:#444444; text-align: center; margin: 20px 20px 0; line-height:0.7; font-size:10px; ">
  51. matériO SAS<br>8, rue Chaptal<br>75009 Paris<br><a href="www.materio.com" style="color:#444444">www.materio.com</a>
  52. </p>
  53. <?php if ($key == 'test'): ?>
  54. - - - <?php print $test_message ?> - - -
  55. <?php endif ?>
  56. </td>
  57. </tr>
  58. </tbody>
  59. </table>