- <!–{if $post[‘first’] && ($post[tags] || $relatedkeywords) && $_GET[‘from’] != ‘preview’}–>
- <div class=”ptg mbm mtn”>
- <!–{if $post[tags]}–>
- <!–{eval $tagi = 0;}–>
- <!–{loop $post[tags] $var}–>
- <!–{if $tagi}–>, <!–{/if}–><a title=”$var[1]” href=”misc.php?mod=tag&id=$var[0]” target=”_blank”>$var[1]</a>
- <!–{eval $tagi++;}–>
- <!–{/loop}–>
- <!–{/if}–>
- <!–{if $relatedkeywords}–><span>$relatedkeywords</span><!–{/if}–>
- </div>
- <!–{/if}–>
复制代码,内容页的标签调用代码如下:文件:template/default/forum/
viewthread_node_body.htm
- <!–{if $post[‘first’] && ($post[tags] || $relatedkeywords) && $_GET[‘from’] != ‘preview’}–>
- <div class=”ptg mbm mtn”>
- <!–{if $post[tags]}–>
- <!–{eval $tagi = 0;}–>
- <!–{loop $post[tags] $var}–>
- <!–{if $tagi}–>, <!–{/if}–><a title=”$var[1]” href=”misc.php?mod=tag&id=$var[0]” target=”_blank”>$var[1]</a>
- <!–{eval $tagi++;}–>
- <!–{/loop}–>
- <!–{/if}–>
- <!–{if $relatedkeywords}–><span>$relatedkeywords</span><!–{/if}–>
- </div>
- <!–{/if}–>
复制代码
实际效果如图: