subscribe_widget

NAML documentation   Watch a video
   Usages of this macro
... in subscribe_widget.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
<override_macro name="subscribe_widget">
    <!--<n.widget.> 
        <div id="subscribe-widget" class="invisible">
            <h2 class="sidebar-section shaded-bg-color"><t>Subscribe via email</t></h2>
            <ul id="subscribe-widget-form" class="sidebar-section">
                <n.form. macro="subscribe">
                    <input type="hidden" name="node" value="[n.page_node.id/]"/>
                    <input type="hidden" name="action" value="send-anonymous"/>
                    <input type="hidden" name="subscription_to" value="CHILDREN"/>
                    <table>
                        <tr>
                            <td><b><t>Email</t></b></td>
                            <td><input type="text" size="25" maxlength="80" name="email"/></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><input type="submit" value="[t]Subscribe[/t]" style="margin-top:.5em"/></td>
                        </tr>
                    </table>
                </n.form.>
            </ul>
        </div>
        <script type="text/javascript">
            if (!Nabble.userId)
                Nabble.get('subscribe-widget').style.display = 'block';
        </script>
    </n.widget.> -->
</override_macro>
Overrides default macro
... in widget.naml
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<macro name="subscribe_widget">
    <n.widget.>
        <div id="subscribe-widget" class="invisible">
            <h2 class="sidebar-section shaded-bg-color"><t>Subscribe via email</t></h2>
            <ul id="subscribe-widget-form" class="sidebar-section">
                <n.form. macro="subscribe">
                    <input type="hidden" name="node" value="[n.page_node.id/]"/>
                    <input type="hidden" name="action" value="send-anonymous"/>
                    <input type="hidden" name="subscription_to" value="CHILDREN"/>
                    <table>
                        <tr>
                            <td><b><t>Email</t></b></td>
                            <td><input type="text" size="25" maxlength="80" name="email"/></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><input type="submit" value="[t]Subscribe[/t]" style="margin-top:.5em"/></td>
                        </tr>
                    </table>
                </n.form.>
            </ul>
        </div>
        <script type="text/javascript">
            if (!Nabble.userId)
                Nabble.get('subscribe-widget').style.display = 'block';
        </script>
    </n.widget.>
</macro>