12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?php
- # 公用的载入主题列表功能,已废弃,整合至model.php类中。
- $id = '#dever_forum';
- $view
- ->loop
- (
- '#'.$id.' li',
- 'forum/posts.get',
- array
- (
- 'self' => array
- (
- 'class++' => '<{Dever::load("forum/posts.info#home", $v) ? " col-sm-6" : " col-sm-12"}>',
- ),
-
- '.dever_review' => array
- (
- 'href' => '<{Dever::load("forum/posts.info#link", $v)}>',
- 'span' => array
- (
- 'html' => '<{$v.num_review}>',
- )
- ),
-
- '.dever_user' => array
- (
- 'a' => array
- (
- 'href' => '<{Dever::load("forum/posts.info#user_link", $v)}>',
- 'title' => '<{Dever::load("forum/posts.info#user_name", $v)}>',
- ),
- 'img' => array
- (
- 'src' => '<{Dever::load("forum/posts.info#user_avatar", $v)}>',
- 'alt' => '<{Dever::load("forum/posts.info#user_name", $v)}>',
- ),
- ),
-
- '.dever_title' => array
- (
- 'href' => '<{Dever::load("forum/posts.info#link", $v)}>',
- 'title' => '<{Dever::load("forum/posts.info#name", $v)}>',
- 'html' => '<{Dever::load("forum/posts.info#name", $v)}>',
- ),
-
- '.dever_top' => array
- (
- 'style' => '<{Dever::load("forum/posts.info#top", $v)}>',
- ),
-
- '.dever_tui' => array
- (
- 'style' => '<{Dever::load("forum/posts.info#tui", $v)}>',
- ),
-
- '.dever_up' => array
- (
- 'href' => 'javascript:;',
- 'id' => 'dever_up_<{Dever::load("forum/posts.info#id", $v)}>',
-
- 'span' => array
- (
- 'html' => '<{Dever::load("forum/posts.info#num_up", $v)}>',
- )
- ),
-
- '.dever_cate_info' => array
- (
- 'href' => '<{Dever::load("forum/posts.info#cate_link", $v)}>',
- 'title' => '<{Dever::load("forum/posts.info#cate_name", $v)}>',
- 'html' => '<{Dever::load("forum/posts.info#cate_name", $v)}>',
- ),
-
- '.dever_username' => array
- (
- 'href' => '<{Dever::load("forum/posts.info#user_link", $v)}>',
- 'title' => '<{Dever::load("forum/posts.info#user_name", $v)}>',
- 'html' => '<{Dever::load("forum/posts.info#user_name", $v)}>',
- ),
-
- '.dever_time' => '<{Dever::load("forum/posts.info#time", $v)}>',
- )
- );
|