苹果cms vod_list修改

        <a {if-A:"{page:by}"="time"} class="this" {endif-A} href="{page:linkbytime}">时间</a>
        <a {if-A:"{page:by}"="hits"} class="this" {endif-A} href="{page:linkbyhits}">人气</a>
        <a {if-A:"{page:by}"="score"} class="this" {endif-A} href="{page:linkbyscore}">评分</a>

效果

        <a class="this" href="/index.php?m=vod-list-id-1-pg-1-order--by-time-class--year--letter--area--lang-.html">时间</a>
        <a href="/index.php?m=vod-list-id-1-pg-1-order--by-hits-class--year--letter--area--lang-.html">人气</a>
        <a href="/index.php?m=vod-list-id-1-pg-1-order--by-score-class--year--letter--area--lang-.html">评分</a>

 

该段代码意为

 

如果所在页面为 linkbytime(时间),linkbyhits(人气),linkbyscore(评分),则相应会出现class="this"

posted on 2018-08-23 20:55  谢寒  阅读(1939)  评论(0编辑  收藏  举报

导航