From c37f0b2fcd77e746b8e8a358d8d6679f8b43e0e0 Mon Sep 17 00:00:00 2001 From: Christian Fowler Date: Sun, 25 Dec 2005 02:23:44 +0000 Subject: unsubscription info coming along. some schema changes to track nl_id in tiki_mail_queue --- templates/admin_newsletters.tpl | 5 +++++ templates/unsubscribe_inc.tpl | 2 ++ templates/user_subscriptions.tpl | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 templates/unsubscribe_inc.tpl create mode 100644 templates/user_subscriptions.tpl (limited to 'templates') diff --git a/templates/admin_newsletters.tpl b/templates/admin_newsletters.tpl index cf891bf..077d843 100644 --- a/templates/admin_newsletters.tpl +++ b/templates/admin_newsletters.tpl @@ -2,6 +2,11 @@ {form legend="Newsletter Features"} + {if !$gBitSystem->getPreference( 'feature_server_name' )} + {formfeedback error="Server name is not defined!"} + {tr}You must define the server name for proper background operation of the mail script.{/tr} + {/if} + {foreach from=$formNewsletterFeatures key=item item=output}
{formlabel label=`$output.label` for=$item} diff --git a/templates/unsubscribe_inc.tpl b/templates/unsubscribe_inc.tpl new file mode 100644 index 0000000..4a91bff --- /dev/null +++ b/templates/unsubscribe_inc.tpl @@ -0,0 +1,2 @@ +{tr}You have received this message because you are registered at{/tr} {$gBitSystem->getPreference('siteTitle', $smarty.server.HTTP_HOST)}. {tr}You can always cancel your subscription using:{/tr}
+{$smarty.const.NEWSLETTERS_PKG_URI}?sub={$url_code} diff --git a/templates/user_subscriptions.tpl b/templates/user_subscriptions.tpl new file mode 100644 index 0000000..8adeaef --- /dev/null +++ b/templates/user_subscriptions.tpl @@ -0,0 +1,32 @@ +{strip} +
+
+

{tr}Mailing Subscriptions{/tr}

+
+ +
+ {if $subInfo} +
+ {formlabel label="Subscriptions"} + {forminput} + {$subInfo.title}
+ {/forminput} +
+
+ {formlabel label="Permanent Unsubscribe"} + {forminput} + {tr}Remove myself from all lists, and receive no further mailings from{/tr} {$gBitSystem->getPreference('siteTitle','this site')}.
+ {/forminput} +
+ {else} +
+ {tr}The subscription URL is no longer valid.{/tr} + {if $gBitUser->isRegistered()} + + {else} + {include file="bitpackage:users/login_inc.tpl"} + {/if} + {/if} +
+
+{/strip} -- cgit v1.3