/[drupal]/contributions/modules/simplenews/simplenews-newsletter-footer.tpl.php
ViewVC logotype

Contents of /contributions/modules/simplenews/simplenews-newsletter-footer.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download) (as text)
Wed Sep 30 14:10:20 2009 UTC (8 weeks, 2 days ago) by sutharsan
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--2
Changes since 1.3: +5 -5 lines
File MIME type: text/x-php
#183120 by Sutharsan, miro_dietiker: Added token support to Simplenews. Simplenews is now depending on Token.
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 ?>

  ViewVC Help
Powered by ViewVC 1.1.2