new_topic_action_link

NAML documentation   Watch a video
   Usages of this macro
... in new_topic_action_link.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
<override_macro name="new_topic_action_link" parameters="text">
        <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.>
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.has_subapps
Binary
Namespace: NodeNamespace
>
                <then>
                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.is_root
Binary
Namespace: NodeNamespace
>
                        <else>
                    <div class="[n.action_link_style
Macro
/]">
        <img src="http://www.sniperjum.com/images-forum/newtopic.png" class="image16" width="25" height="23"/>
            <n.new_topic_link
Macro
Requires: node
Parameters: href, text, title, class
>
                <title>
                    <t>Post new message in <t.location.subject
Macro
Requires: node
/></t>
                </title>
                <text>
                    <n.default
Binary
Namespace: BasicNamespace
Parameters: to, text
. to="[t]New Topic[/t]"><n.text/></n.default.>
                </text>
            </n.new_topic_link>
                        </div>
                </else>
                    </n.if.page_node.is_root>
                </then>
                <else>
                    <div class="[n.action_link_style
Macro
/]">
        <img src="http://www.sniperjum.com/images-forum/newtopic.png" class="image16" width="25" height="23"/>
            <n.new_topic_link
Macro
Requires: node
Parameters: href, text, title, class
>
                <title>
                    <t>Post new message in <t.location.subject
Macro
Requires: node
/></t>
                </title>
                <text>
                    <n.default
Binary
Namespace: BasicNamespace
Parameters: to, text
. to="[t]New Topic[/t]"><n.text/></n.default.>
                </text>
            </n.new_topic_link>
                        </div>
        </else>
            </n.if.has_subapps>
        </n.page_node.>
</override_macro>
Overrides default macro
... in action_row.naml
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<macro name="new_topic_action_link" parameters="text">
    <div class="[n.action_link_style/]">
        <img src="/images/icon_post_message.png" class="image16" />
        <n.page_node.>
            <n.new_topic_link>
                <title>
                    <t>Post new message in <t.location.subject/></t>
                </title>
                <text>
                    <n.default. to="[t]New Topic[/t]"><n.text/></n.default.>
                </text>
            </n.new_topic_link>
        </n.page_node.>
    </div>
</macro>