smart_post_link.naml

<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>