123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <?php
- Dever::setInput('ad_title', '文章详情页');
- Dever::setInput('ad_name', 'article_info');
- $view
- ->set('name', 'blog_info')
- ->set('title', 'content/lib/article.getInfo#name')
- ->import('inc/head')
- ->render('content/lib/article.getInfo', array
- (
- 'article h1' => '$v.name',
- '.wz_info span|0' => '作者:<{$v.author.name}>',
- '.wz_info span|1' => '时间:<{$v.cdate}>',
- '.wz_info span|2' => '阅读:<{$v.num_view}>',
- '.content' => '$v.content',
- '.diggit@style' => 'display:none',
- '.share@style' => 'display:none',
- 'article .tags' => '$v.tag_html',
- '.info-pre-next p@style|0' => '<{$v.prev ? "" : "display:none"}>',
- '.info-pre-next a|0' => '$v.prev.name',
- '.info-pre-next a@href|0' => '$v.prev.link',
- '.info-pre-next p@style|1' => '<{$v.next ? "" : "display:none"}>',
- '.info-pre-next a|1' => '$v.next.name',
- '.info-pre-next a@href|1' => '$v.next.link',
- '.designer img@src|0' => '$v.author.avatar',
- '.designer img@style|1' => 'display:none',
- '.designer h3' => '$v.author.name',
- '.designer p' => '$v.author.desc',
- ))
- ->loop
- (
- '.wz_love li',
- 'content/lib/article.getRelation',
- array
- (
- 'a' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'target' => '',
- 'img' => array
- (
- 'src' => '$v.pic_cover',
- 'alt' => '$v.name',
- ),
- 'h2' => array
- (
- 'html' => '$v.name',
- ),
- 'span' => array
- (
- 'html' => '$v.cdate',
- )
- ),
- )
- )
- ->fetch(array('.wz_love@style', 0), 'content/lib/article.getRelation', 'none')
-
- ->loop
- (
- '.ad a',
- 'main/api.ad|key=ad_foot&name=底部广告',
- array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v,name',
- )
- )
- )
- ->fetch(array('.ad@style', 0), 'main/api.ad?key=ad_foot&name=底部广告', 'none')
- ->import('inc/right')
- ->import('inc/foot')
- # display
- ->display();
-
|