| 1 |
<?php
|
| 2 |
// $Id: simplenews-newsletter-footer.tpl.php,v 1.3 2009/01/02 12:01:17 sutharsan Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
* Default theme implementation to format the simplenews newsletter footer.
|
| 7 |
*
|
| 8 |
* Copy this file in your theme directory to create a custom themed footer.
|
| 9 |
* Rename it to simplenews-newsletter-footer--<tid>.tpl.php to override it for a
|
| 10 |
* newsletter using the newsletter term's id.
|
| 11 |
*
|
| 12 |
* Available variables:
|
| 13 |
* - $node: newsletter node object
|
| 14 |
* - $language: language object
|
| 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 |
*
|
| 20 |
* Available tokens:
|
| 21 |
* - [confirm-unsubscribe-url]: unsubscribe url to be used as link
|
| 22 |
* for more tokens: see simplenews_mail_tokens()
|
| 23 |
*
|
| 24 |
* @see template_preprocess_simplenews_newsletter_footer()
|
| 25 |
*/
|
| 26 |
?>
|
| 27 |
<?php if ($format == 'html'): ?>
|
| 28 |
<p class="newsletter-footer"><a href="[simplenews-unsubscribe-url]"><?php print $unsubscribe_text ?></a></p>
|
| 29 |
<?php else: ?>
|
| 30 |
-- <?php print $unsubscribe_text ?>: [simplenews-unsubscribe-url]
|
| 31 |
<?php endif ?>
|
| 32 |
|
| 33 |
<?php if ($key == 'test'): ?>
|
| 34 |
- - - <?php print $test_message ?> - - -
|
| 35 |
<?php endif ?>
|