1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <?php
- Dever::setInput('ad_title', '搜索页');
- Dever::setInput('ad_name', 'search');
- $view
- ->set('name', 'search')
- ->set('title', 'content/lib/search.getInfo#name')
- ->import('inc/head')
- ->fetch('strong','content/lib/search.getInfo#name')
- ->loop
- (
- '.blogs_search li',
- 'content/lib/search.getAll',
- array
- (
- 'a|0' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.info.name',
- 'target' => '',
- 'html' => '$v.info.name',
- ),
- 'p' => '$v.info.desc',
- 'a|1' => array
- (
- 'href' => '$v.cate_link',
- 'title' => '$v.cate_name',
- 'target' => '',
- 'html' => '$v.cate_name',
- ),
- '.color_green' => '<{$v.link}> - <{$v.cdate}>',
- )
- )
- ->fetch('.epages','<{Dever::page("current")}>')
- # 推荐
- ->loop
- (
- '.isgood_news li',
- 'main/api.push|key=home_tuijian&name=推荐阅读',
- array
- (
- 'a' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'target' => '',
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v.name',
- ),
- 'em' => array
- (
- 'html' => '<{$k+1}>',
- ),
- 'p' => array
- (
- 'html' => '$v.name',
- ),
- 'span' => array
- (
- 'class' => 'star5'
- )
- ),
- )
- )
- ->fetch('.isgood_news@style', 'main/api.push?key=home_tuijian&name=推荐阅读', 'none')
- ->fetch('.isgood_news .h_title', '推荐阅读')
- ->import('inc/foot')
- # display
- ->display();
-
|