summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2010-02-14 21:47:54 +0000
committerChristian Fowler <spider@viovio.com>2010-02-14 21:47:54 +0000
commita4f6cf468dea2bbe2813c0fdef392788a01cb0ec (patch)
treee38e53de60b71514ab0c509fa7f5970f1652c92c /templates
parent459187f2c7afb572ef36132425284bb082bd20b8 (diff)
downloadnewsletters-a4f6cf468dea2bbe2813c0fdef392788a01cb0ec.tar.gz
newsletters-a4f6cf468dea2bbe2813c0fdef392788a01cb0ec.tar.bz2
newsletters-a4f6cf468dea2bbe2813c0fdef392788a01cb0ec.zip
add registration_optin preference for newsletters to allow hand selecting newsletters that are available on registration opt-in form
Diffstat (limited to 'templates')
-rw-r--r--templates/edit_newsletter.tpl8
-rw-r--r--templates/user_register_inc.tpl2
2 files changed, 10 insertions, 0 deletions
diff --git a/templates/edit_newsletter.tpl b/templates/edit_newsletter.tpl
index affdf5e..96afbbd 100644
--- a/templates/edit_newsletter.tpl
+++ b/templates/edit_newsletter.tpl
@@ -62,6 +62,14 @@
{/forminput}
</div>
+ <div class="row">
+ {formlabel label="Registration Opt-In" for="registration_optin"}
+ {forminput}
+ <input type="checkbox" name="registration_optin" id="registration_optin" {if $gContent->getPreference('registration_optin') eq 'y'}checked="checked"{/if} value="y"/>
+ {formhelp note="List this newsletter on the registration page and allow user to joing newsletter."}
+ {/forminput}
+ </div>
+
<div class="row submit">
<input type="submit" name="cancel" value="{tr}Cancel{/tr}" />
<input type="submit" name="save" value="{tr}Save{/tr}" />
diff --git a/templates/user_register_inc.tpl b/templates/user_register_inc.tpl
index 5946423..bd1879c 100644
--- a/templates/user_register_inc.tpl
+++ b/templates/user_register_inc.tpl
@@ -1,3 +1,4 @@
+{if $newsletters}
<script type = "text/javascript">
{literal}
function unsubscribe_all(){
@@ -24,3 +25,4 @@ for (var i = 0; i < checkboxes.length; i++){
{formhelp note="Check this box to unsubscribe from all of the above newsletters."}
{/forminput}
</div>
+{/if}