123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <?php
- $view
- ->set('name', 'video')
- ->set('title', '视频')
- ->import('inc/head')
- ->fetch('.videoposter img@src', 'main/content.home_video_first#pic')
- ->fetch('.videoplayer img@src', 'main/content.home_video_first#pic')
- ->fetch(array('.icon-play@data-url', 0), 'main/content.home_video_first#video_link')
- ->fetch(array('h3@html', 0), 'main/content.home_video_first#sname')
- ->fetch(array('p@html', 0), 'main/content.home_video_first#info')
- ->fetch(array('span@html', 0), 'main/content.home_video_first#pdate_string')
- ->fetch('.topic-video@style', 'main/content.home_video_first', 'none')
- ->loop
- (
- '.video-recs li',
- 'main/content.news|type=3',
- array
- (
- 'a|0' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v.name',
- ),
- 'em' => array
- (
- 'class' => 'a iconfont icon-play',
- 'data-title' => '$v.name',
- 'data-subtitle' => '$v.desc',
- 'data-desc' => '$v.info',
- 'data-by' => '$v.pdate_string',
- 'data-url' => '$v.video_link',
- ),
- ),
- 'a|1' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'html' => '$v.name',
- ),
- )
- )
- ->loop
- (
- '.video-module dl',
- 'main/content.news|type=3',
- array
- (
- 'a|1' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v.name',
- ),
- 'em' => array
- (
- 'class' => 'a iconfont icon-play',
- 'data-title' => '$v.name',
- 'data-subtitle' => '$v.desc',
- 'data-desc' => '$v.info',
- 'data-by' => '$v.pdate_string',
- 'data-url' => '$v.video_link',
- ),
- ),
- 'a|0' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'html' => '$v.name ."<br/>". $v.desc',
- ),
-
- 'p' => array
- (
- 'html' => '$v.info',
- ),
- 'span' => array
- (
- 'html' => '$v.pdate_string',
- ),
- )
- )
- # 广告
- ->loop
- (
- '.ad-swiper .swiper-slide',
- 'main/content.ad|key=video_ad&name=视频广告',
- array
- (
- 'a' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- ),
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v.name',
- ),
- )
- )
- ->fetch('.common-pagination', '<{Dever::pageInfo()["html"]}>')
- ->append('body', '<div id="page" dever-page-link="<{Dever::pageInfo()["link"]}>" dever-page-list=".dever-page"></div>')
- ->import('inc/foot')
- ->display();
|