1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?php
- $view
- ->set('name', 'news')
- ->import('inc/head')
- ->fetch(array('.banner p', 0), '<{Dever::load("main/content.getMenuName", "news")}>')
- ->fetch('.banner .en', '<{Dever::load("main/content.getMenuEName", "news")}>')
- ->loop
- (
- '.content',
- 'main/content.news?method=getPage',
- array
- (
- 'img' => array
- (
- 'src' => '$v.pic_cover',
- 'title' => '$v.name',
- 'alt' => '$v.name',
- 'width' => '280px',
- ),
- '.detail span' => array
- (
- 'html' => '$v.desc',
- ),
- 'a|0' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'alt' => '$v.name',
-
- ),
- 'a|2' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'alt' => '$v.name',
-
- ),
- 'a|1' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'alt' => '$v.name',
- 'html' => '$v.name',
- ),
- '.num' => array
- (
- 'style' => 'display:none;',
- ),
- '.time' => array
- (
- 'html' => '$v.date',
- ),
- )
- )
- ->fetch('#newsPage', 'Dever::page("current")')
- ->import('inc/foot')
- ->display();
|