关注公众号:“站长笔记”或“站长笔记网”;下载资源请登录电脑端体验更佳,站长笔记网域名:www.zzbj.net
三个位置:
1、template/zhanzhuai_bluehome/portal/index.php
1 2 3 4 | <!--{if $zz_order=='' || $zz_order=='dateline'}--> 最新主题 <!--{elseif $zz_order=='views'}--> 推荐主题 <!--{elseif $zz_order=='replies'}--> 热门主题 <!--{/if}--> |
2、template/zhanzhuai_bluehome/php/portal_data.php
1 2 3 4 5 6 7 8 9 | $zz_order="dateline"; $order=""; $order = $_GET['order']; if($order=="views") { $zz_order="views"; }elseif($order=="replies"){ $zz_order="replies"; } |
3、template/zhanzhuai_bluehome/common/leftnav.php
1 2 3 4 5 6 7 8 9 10 11 | < img src = "$_G['style']['styleimgdir']/zzp_time.png" alt = "最新主题" /> < a href = "portal.php" >最新主题</ a > </ li > < li {if $_GET['order']=='views'} class = "on" {/if}> < img src = "$_G['style']['styleimgdir']/zzp_zan.png" alt = "推荐主题" /> < a href = "portal.php?order=views" >推荐主题</ a > </ li > < li {if $_GET['order']=='replies'} class = "on" {/if}> < img src = "$_G['style']['styleimgdir']/zzp_re.png" alt = "热门主题" /> < a href = "portal.php?order=replies" >热门主题</ a > </ li > |
这个模板简单实用啊!