123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <?php
- $view
- # 推荐
- ->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', '推荐阅读')
- ->loop
- (
- '.hot_news li',
- 'content/lib/article.getDataByNum',
- array
- (
- 'a' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'target' => '',
- 'p' => array
- (
- 'html' => '$v.name',
- ),
- ),
- 'span' => array
- (
- 'html' => '$v.num_view',
- ),
- )
- )
- ->fetch('.hot_news@style', 'content/lib/article.getDataByNum', 'none')
- ->loop
- (
- '.tagsclous a',
- 'main/api.getTagList',
- array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'html' => '$v.name',
- 'target' => '',
- )
- )
- ->fetch('.tagsclous@style', 'main/api.getTagList', 'none')
- ->fetch('.emial_box a@href', 'main/api.config#email_link')
- ->fetch('.emial_box a', 'main/api.config#email')
- ->loop
- (
- '.ad_r a|0',
- 'main/api.ad|key=ad_right_1&name=右侧广告1',
- array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'target' => '_blank',
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v,name',
- )
- )
- )
- ->fetch(array('.ad_r@style', 0), 'main/api.ad?key=ad_right_1&name=右侧广告1', 'none')
- ->loop
- (
- '.ad_r a|1',
- 'main/api.ad|key=ad_right_2&name=右侧广告2',
- array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'target' => '_blank',
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v,name',
- )
- )
- )
- ->fetch(array('.ad_r@style', 1), 'main/api.ad?key=ad_right_2&name=右侧广告2', 'none')
- ;
|