123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?php
- Dever::setInput('ad_title', '视频列表页');
- Dever::setInput('ad_name', 'video');
- $top[0] = array
- (
- 'a' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'target' => '',
- 'img' => array
- (
- 'src' => '$v.pic_cover',
- 'alt' => '$v.name',
- ),
- 'h3' => array
- (
- 'html' => '$v.name',
- ),
- 'span' => array
- (
- 'html' => '精选推荐',
- ),
- ),
- );
- $top[1] = array
- (
- 'a' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'target' => '',
- 'img' => array
- (
- 'src' => '$v.pic_cover',
- 'alt' => '$v.name',
- ),
- 'h3' => array
- (
- 'html' => '$v.name',
- ),
- 'span' => array
- (
- 'html' => '已有 <{$v.num_view}> 次观看',
- ),
- ),
- );
- $view
- ->set('name', 'video')
- ->set('title', 'content/lib/cate.getInfo#name')
- ->import('inc/head')
- ->fetch(array('.box .h_title', 1), 'content/lib/cate.getInfo#name')
- ->loop('.featured_video_fl', 'content/lib/video.getTop[0,1]', $top[0])
- ->loop('.featured_video_fr li', 'content/lib/video.getTop[1,3]', $top[1])
- ->loop
- (
- '.all_videos li',
- 'content/lib/video.getAll',
- array
- (
- 'a' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'target' => '',
- 'img' => array
- (
- 'src' => '$v.pic_cover',
- 'alt' => '$v.name',
- ),
- 'p' => array
- (
- 'html' => '$v.name',
- ),
- 'span' => array
- (
- 'html' => '已有 <{$v.num_view}> 次观看',
- ),
- ),
- )
- )
- ->fetch('.epages','<{Dever::page("current")}>')
- ->import('inc/foot')
- # display
- ->display();
|