anonymous_subscription_form

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 "anonymous_subscription_form".
... in anonymous_subscription_form.naml
1
2
3
4
5
6
7
8
9
10
11
<override_macro name="anonymous_subscription_form">
    <n.comment.>Do not let them subscribe unless logged in</n.comment.>
    <div style="margin:1em 0">
        <t>Please <n.login_link.>log in</n.login_link.> first to subscribe via email</t>
        <script type="text/javascript">
            var $l = $('#login-link');
            var subscribe = "/template/NamlServlet.jtp?macro=subscribe&node=<n.page_node.id/>";
            $l.attr('href', $l.attr('href') + "&nextUrl="+ encodeURIComponent(subscribe));
        </script>
    </div>
</override_macro>
Overrides default macro
... in subscribe.naml
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<macro name="anonymous_subscription_form">
    <div style="margin:1em 0">
        <t>Enter below your email address and we will send a confirmation email to you.</t>
        <div class="second-font big-title" style="margin:1em 0 .2em">
            <t>Enter your email address</t>
        </div>
        <n.form.>
            <input type="hidden" name="node" value="[n.page_node.id/]"/>
            <input type="hidden" name="action" value="send-anonymous"/>
            <input type="text" size="40" maxlength="80" name="email"/><br/>
            <n.if.page_node.is_post>
                <then>
                    <input type="hidden" name="subscription_to" value="DESCENDANTS"/>
                    <div class="weak-color">
                        <t>You will receive an email for each new message posted under this topic.</t>
                    </div>
                </then>
                <else>
                    <input id="sChildren" type="radio" name="subscription_to" value="CHILDREN" checked="true"><label for="sChildren"><t>New topics only</t></label></input><br/>
                    <input id="sDescendants" type="radio" name="subscription_to" value="DESCENDANTS"><label for="sDescendants"><t>All posts</t></label></input><br/>
                </else>
            </n.if.page_node.is_post>
            <input type="submit" class="toolbar action-button" value="[t]Subscribe[/t]" style="margin-top:.5em"/>
        </n.form.>
    </div>
</macro>