... | in subscribe.naml |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
<macro name="subscribe" requires="servlet">
<n.node_page.>
<n.html>
<head>
<meta name="robots" content="noindex,nofollow"/>
<n.title.><t>Subscribe via email</t></n.title.>
<n.main_title_css/>
</head>
<body>
<n.if.visitor.is_anonymous>
<then>
<n.edit_header first_text="[n.page_node.subject/]" second_text="[t]Email Subscription[/t]" />
<n.if.is_submitted_form>
<then>
<n.if.equal value1="send-anonymous" value2="[n.action_parameter/]">
<then>
<n.catch_exception. id="send-email-block">
<n.handle_anonymous_subscription/>
</n.catch_exception.>
</then>
</n.if.equal>
<n.if.has_exception for="send-email-block">
<then.show_subscription_error/>
<else.show_success_message/>
</n.if.has_exception>
</then>
</n.if.is_submitted_form>
<n.anonymous_subscription_form/>
</then>
<else>
<n.visitor.profile_header/>
<n.if.is_submitted_form>
<then.save_field_values/>
<else.load_field_values/>
</n.if.is_submitted_form>
<n.subscription_form/>
</else>
</n.if.visitor.is_anonymous>
</body>
</n.html>
</n.node_page.>
</macro>
|
Free forum by Nabble | Edit this page |