技术帮助 发表于 2016-8-17 14:45:32

Discuz-内容页-发帖按钮

下面是Disucz的发帖菜单按钮
<!--{if $_G['forum']['threadsorts']}-->
                        <!--{loop $_G['forum']['threadsorts']['types'] $id $name}-->
                              <button id="newspecial" class="pn pnc" onclick="location.href='forum.php?mod=post&action=newthread&fid=$_G&extra=$extra&sortid=$id'"><strong>{lang i_want}$name</strong></button>
                        <!--{/loop}-->
                <!--{else}-->
                        <!--{if !$_G['forum_thread']['is_archived']}--><a id="newspecial" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"{if !$_G['forum']['allowspecialonly'] && empty($_G['forum']['picstyle']) && !$_G['forum']['threadsorts']['required']} onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=$_G')"{else} onclick="location.href='forum.php?mod=post&action=newthread&fid=$_G';return false;"{/if} href="javascript:;" title="{lang send_posts}"><img src="{IMGDIR}/pn_post.png" alt="{lang send_posts}" /></a><!--{/if}-->
                <!--{/if}-->
页: [1]
查看完整版本: Discuz-内容页-发帖按钮