You are here

simplenews-newsletter-body.tpl.php in Simplenews 6.2

Default theme implementation to format the simplenews newsletter body.

Copy this file in your theme directory to create a custom themed body. Rename it to simplenews-newsletter-body--<tid>.tpl.php to override it for a newsletter using the newsletter term's id.

Available variables:

  • $node: Newsletter node object
  • $body: Newsletter body (formatted as plain text or HTML)
  • $title: Node title
  • $language: Language object

Available tokens:

  • [simplenews-unsubscribe-url]: unsubscribe url to be used as link

for more tokens: see simplenews_token_list()

Note that unsubscribe links are broken in case of test send to a non-subscriber.

File

theme/simplenews-newsletter-body.tpl.php
View source
<?php

/**
 * @file
 * Default theme implementation to format the simplenews newsletter body.
 *
 * Copy this file in your theme directory to create a custom themed body.
 * Rename it to simplenews-newsletter-body--<tid>.tpl.php to override it for a
 * newsletter using the newsletter term's id.
 *
 * Available variables:
 * - $node: Newsletter node object
 * - $body: Newsletter body (formatted as plain text or HTML)
 * - $title: Node title
 * - $language: Language object
 *
 * Available tokens:
 * - [simplenews-unsubscribe-url]: unsubscribe url to be used as link
 * for more tokens: see simplenews_token_list()
 *
 * Note that unsubscribe links are broken in case of test send to a non-subscriber.
 *
 * @see template_preprocess_simplenews_newsletter_body()
 */
?>
<h2><?php

print $title;
?></h2>
<?php

print $body;