smart_post_link

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 "smart_post_link".
... in smart_post_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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<override_macro name="smart_post_link" requires="node" dot_parameter="href" parameters="text, title, class">
    <n.if.is_post>
        <then>
         <n.if.contains_substring string="[n.node_text.text/]" substring="¬">
             <then>
                   <n.set_var. name="value"><n.node_text.text/></n.set_var.>
                   <n.set_var. name="value1"><n.node_text.text/></n.set_var.>
                 <n.if.contains_substring string="[n.var name='value1'/]" substring=" ¬n¬">
                 <then>
                      <n.set_var. name="value"><n.jsm_limpamark_new texto="[n.var name='value1'/]" /></n.set_var.>
                      <img src="http://jsmastronomy.245.s1.nabble.com/file/n588/icone_new.gif" />&nbsp;<a href="[n.node_href.href/]" title="[n.title/]" class="[n.hide_null.class/] post-link[n.topic_node.id/]" node-id="[n.id/]"><n.var name='value'/></a>
                     </then>
           </n.if.contains_substring>
            <n.if.contains_substring string="[n.var name='value1'/]" substring=" ¬¢¬">
                 <then>
                     <n.set_var. name="value"><n.jsm_limpamark_chkfull texto="[n.var name='value1'/]" /></n.set_var.>
                     <img src="http://jsmastronomy.245.s1.nabble.com/file/n588/success.png" />&nbsp;<a href="[n.node_href.href/]" title="[n.title/]" class="[n.hide_null.class/] post-link[n.topic_node.id/]" node-id="[n.id/]"><n.var name='value'/></a>
                 </then>
           </n.if.contains_substring>    
           <n.if.contains_substring string="[n.var name='value1'/]" substring=" ¬.¬">
                 <then>
                      <n.set_var. name="value"><n.jsm_limpamark_chknormal texto="[n.var name='value1'/]" /></n.set_var.>
                     <img src="http://jsmastronomy.245.s1.nabble.com/file/n588/iconmark.png" />&nbsp;<a href="[n.node_href.href/]" title="[n.title/]" class="[n.hide_null.class/] post-link[n.topic_node.id/]" node-id="[n.id/]"><n.var name='value'/></a>
                 </then>
           </n.if.contains_substring>
           <n.if.contains_substring string="[n.var name='value1'/]" substring=" ¬h¬">
                 <then>
                      <n.set_var. name="value"><n.jsm_limpamark_chkhelp texto="[n.var name='value1'/]" /></n.set_var.>
                     <img src="http://jsmastronomy.245.s1.nabble.com/file/n588/iconehelp.png" />&nbsp;<a href="[n.node_href.href/]" title="[n.title/]" class="[n.hide_null.class/] post-link[n.topic_node.id/]" node-id="[n.id/]"><n.var name='value'/></a>
                 </then>
           </n.if.contains_substring>
           <n.if.contains_substring string="[n.var name='value1'/]" substring=" ¬e¬">
                 <then>
                      <n.set_var. name="value"><n.jsm_limpamark_chkexclama texto="[n.var name='value1'/]" /></n.set_var.>
                     <img src="http://jsmastronomy.245.s1.nabble.com/file/n588/iconexclama.png" />&nbsp;<a href="[n.node_href.href/]" title="[n.title/]" class="[n.hide_null.class/] post-link[n.topic_node.id/]" node-id="[n.id/]"><n.var name='value'/></a>
                 </then>
           </n.if.contains_substring>
           <n.if.contains_substring string="[n.var name='value1'/]" substring=" ¬a¬">
                 <then>
                      <n.set_var. name="value"><n.jsm_limpamark_chkadm texto="[n.var name='value1'/]" /></n.set_var.>
                     <img src="http://jsmastronomy.245.s1.nabble.com/file/n588/iconadmin.png" />&nbsp;<a href="[n.node_href.href/]" title="[n.title/]" class="[n.hide_null.class/] post-link[n.topic_node.id/]" node-id="[n.id/]"><n.var name='value'/></a>
                 </then>
           </n.if.contains_substring>
           <n.call_later value="[n.topic_node.id/]" param="markUnreadTopics"/>            
             </then>
             <else>
                  <a href="[n.node_href.href/]" title="[n.title/]" class="[n.hide_null.class/] post-link[n.topic_node.id/]" node-id="[n.id/]"><n.node_text.text/></a>
                 <n.call_later value="[n.topic_node.id/]" param="markUnreadTopics"/>  
             </else>
         </n.if.contains_substring>             
        </then>
        <else.node_link text="[n.text/]"/>
    </n.if.is_post>
</override_macro>
Overrides default macro
... in topic.naml
1600
1601
1602
1603
1604
1605
1606
1607
1608
<macro name="smart_post_link" requires="node" dot_parameter="href" parameters="text, title, class">
    <n.if.is_post>
        <then>
            <a href="[n.node_href.href/]" title="[n.title/]" class="[n.hide_null.class/] post-link[n.topic_node.id/]" node-id="[n.id/]"><n.node_text.text/></a>
            <n.call_later value="[n.topic_node.id/]" param="markUnreadTopics"/>
        </then>
        <else.node_link text="[n.text/]"/>
    </n.if.is_post>
</macro>