123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <?php
- $view
- ->set('name', 'feature')
- ->set('title', '专题')
- ->import('inc/head')
- # 专题
- ->loop
- (
- '.features-module .swiper-slide',
- 'main/content.list_feature',
- array
- (
- 'a|0' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'img' => array
- (
- 'src' => '$v.small_pic',
- 'alt' => '$v.name',
- ),
- ),
- 'a|1' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'html' => '$v.name ."<br/>". $v.desc',
- ),
-
- 'div' => array
- (
- 'p' => array
- (
- 'html' => '$v.info',
- ),
- 'span' => array
- (
- 'html' => '$v.pdate_string',
- ),
- ),
-
- )
- )
- ->fetch('.features-module@style', 'main/content.home_feature', 'none')
- # 广告
- ->loop
- (
- '.ad-swiper .swiper-slide',
- 'main/content.ad|key=feature_ad&name=专题广告',
- array
- (
- 'a' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- ),
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v.name',
- ),
- )
- )
- ->fetch('.ad-swiper@style', 'main/content.ad?key=feature_ad&name=专题广告', 'none')
- ->loop
- (
- '.news-module dl',
- 'main/content.news|type=2',
- array
- (
- 'a|0' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v.name',
- ),
- ),
- 'a|1' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'html' => '$v.name ."<br/>". $v.desc',
- ),
-
- 'p' => array
- (
- 'html' => '$v.info',
- ),
- 'span' => array
- (
- 'html' => '$v.pdate_string',
- ),
- )
- )
- ->fetch('.more@href', 'javascript:;')
- ->fetch('.more@dever-show', 'Dever::pageInfo()["link"] ? "1" : "2"')
- ->fetch('.more@style', 'Dever::pageInfo()["link"] ? "" : "display:none"')
- ->append('body', '<div id="page" dever-page-link="<{Dever::pageInfo()["link"]}>" dever-page-list=".dever-page"></div>')
- ->import('inc/foot')
- ->display();
|