- <!–相关教程推荐–>
- <!–{if $post[‘relateitem’]}–>
- <div class=”mtw mbw”>
- <h3 class=”pbm mbm bbda”>{lang related_thread}</h3>
- <ul class=”xl xl2 cl”>
- <!–{loop $post[‘relateitem’] $var}–>
- <li>• <a href=”forum<font%20color=”#000000″><span style=”line-height: normal; background-color: rgb(255, 102, 255);”>.</span></font>php?mod=viewthread&tid=$var[tid]” title=”$var[subject]” target=”_blank”>$var[subject]</a></li>
- <!–{/loop}–>
- </ul>
- </div>
- <!–{/if}–>
- <!–相关教程推荐–>
复制代码,discuz帖子正文下方有一组自动推荐的相关帖子,其调用代码为
- <!–相关教程推荐–>
- <!–{if $post[‘relateitem’]}–>
- <div class=”mtw mbw”>
- <h3 class=”pbm mbm bbda”>{lang related_thread}</h3>
- <ul class=”xl xl2 cl”>
- <!–{loop $post[‘relateitem’] $var}–>
- <li>• <a href=”forum<font%20color=”#000000″><span style=”line-height: normal; background-color: rgb(255, 102, 255);”>.</span></font>php?mod=viewthread&tid=$var[tid]” title=”$var[subject]” target=”_blank”>$var[subject]</a></li>
- <!–{/loop}–>
- </ul>
- </div>
- <!–{/if}–>
- <!–相关教程推荐–>
复制代码