subscribe_user

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "subscribe_user".
... in subscribe_user.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
45
<macro name="subscribe_user" 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.set_local_user.get_user_from_id user_id="[n.get_parameter name='user'/]" />            
                        <n.local_user.profile_header/>
                        
                        <n.if.is_submitted_form>
                            <then.local_user.save_field_values_user/>
                            <else.local_user.load_field_values_user/>
                        </n.if.is_submitted_form>
                        
                        <n.local_user.subscription_form_user/>
                    </else>
                </n.if.visitor.is_anonymous>
            </body>
        </n.html>
    </n.node_page.>
</macro>