123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- $view
- ->fetch(array('link@href', 0), Dever::assets("global.css"))
- ->fetch(array('link@href', 1), Dever::assets('video.css', "css"))
- ->fetch(array('script@src', 6), Dever::assets('global.js'))
- ->fetch(array('script@src', 7), Dever::assets('video.js', 'js'))
- ->fetch(array('script', 2), 'main/content.view#share')
- ->set('title', 'main/content.view#name')
- ->import('inc/head')
- ->fetch(array('.breadcrumb .wrapper a@href', 0), 'Dever::url("home")')
- ->fetch(array('.breadcrumb .wrapper a', 1), 'main/content.view#cate_name')
- ->fetch(array('.breadcrumb .wrapper a@href', 1), 'main/content.view#cate_link')
- ->fetch(array('.breadcrumb .wrapper span', 0), 'main/content.view#name')
- ->fetch('h1', 'main/content.view#name')
- ->fetch(array('.article-info p', 0), 'main/content.view#author_name')
- ->fetch(array('.article-info p', 1), 'main/content.view#date')
- ->fetch('.article-summary', 'main/content.view#desc')
- ->fetch('.rich-wrapper', 'main/content.view#content')
- ->fetch('#video-wrap@data-src', 'main/content.view#video')
- # 相关推荐
- ->loop
- (
- '.star-module dl',
- 'main/content.getRelation',
- array
- (
- 'a|0' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- ),
- 'a|1' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'html' => '$v.name',
- ),
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v.name',
- ),
- 'p' => array
- (
- 'html' => '$v.desc',
- ),
- )
- )
- ->import('inc/foot')
- ->display();
|