12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- Dever::setInput('ad_title', '相册详情页');
- Dever::setInput('ad_name', 'album_info');
- $view
- ->set('name', 'album_info')
- ->set('title', 'content/lib/album.getInfo#name')
- ->import('inc/head')
- ->render('content/lib/album.getInfo', array
- (
- '.album_info h1' => '<{$v.name}>',
- '.a_i_time' => '<em>时间</em><{$v.cdate}>',
- '#content' => '<em>描述</em><{$v.desc}>',
- '.album_info img@src|0' => '$v.pic_cover',
- '.visitor_area span|0' => '$v.pic_num',
- '.visitor_area span|1' => '$v.num_view',
- '.visitor_area span|2' => '$v.num_up',
- '#diggnum' => '$v.num_up',
- '#diggnum @data-id' => '$v.id',
- '#diggnum @data-url' => '$v.up_url',
- '.album_next li@style|0' => '<{$v.prev ? "" : "display:none"}>',
- '.album_next h3|0' => '$v.prev.name',
- '.album_next a@href|0' => '$v.prev.link',
- '.album_next p|0' => '$v.prev.cdate',
- '.album_next img@src|0' => '$v.prev.pic_cover',
- '.album_next li@style|1' => '<{$v.prev ? "" : "display:none"}>',
- '.album_next h3|1' => '$v.prev.name',
- '.album_next a@href|1' => '$v.prev.link',
- '.album_next p|1' => '$v.prev.cdate',
- '.album_next img@src|1' => '$v.prev.pic_cover',
- '.pics_content ul' => '$v.pic_html'
- ))
- ->import('inc/foot')
- # display
- ->display();
-
|