simplenews-newsletter-footer.tpl.php in Simplenews 6.2
Same filename and directory in other branches
Default theme implementation to format the simplenews newsletter footer.
Copy this file in your theme directory to create a custom themed footer. Rename it to simplenews-newsletter-footer--<tid>.tpl.php to override it for a newsletter using the newsletter term's id.
Available variables:
- $node: newsletter node object
- $language: language object
- $key: email key [node|test]
- $format: newsletter format [plain|html]
- $unsubscribe_text: unsubscribe text
- $test_message: test message warning message
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.
1 theme call to simplenews-newsletter-footer.tpl.php
- simplenews_mail in ./
simplenews.module - Implementation of hook_mail().
File
theme/simplenews-newsletter-footer.tpl.phpView source
<?php
/**
* @file
* Default theme implementation to format the simplenews newsletter footer.
*
* Copy this file in your theme directory to create a custom themed footer.
* Rename it to simplenews-newsletter-footer--<tid>.tpl.php to override it for a
* newsletter using the newsletter term's id.
*
* Available variables:
* - $node: newsletter node object
* - $language: language object
* - $key: email key [node|test]
* - $format: newsletter format [plain|html]
* - $unsubscribe_text: unsubscribe text
* - $test_message: test message warning message
*
* 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_footer()
*/
if ($format == 'html') {
?>
<p class="newsletter-footer"><a href="[simplenews-unsubscribe-url]"><?php
print $unsubscribe_text;
?></a></p>
<?php
}
else {
?>
-- <?php
print $unsubscribe_text;
?>: [simplenews-unsubscribe-url]
<?php
}
?>
<?php
if ($key == 'test') {
?>
- - - <?php
print $test_message;
?> - - -
<?php
}