data.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. # 公用的载入主题列表功能,已废弃,整合至model.php类中。
  3. $id = '#dever_forum';
  4. $view
  5. ->loop
  6. (
  7. '#'.$id.' li',
  8. 'forum/posts.get',
  9. array
  10. (
  11. 'self' => array
  12. (
  13. 'class++' => '<{Dever::load("forum/posts.info#home", $v) ? " col-sm-6" : " col-sm-12"}>',
  14. ),
  15. '.dever_review' => array
  16. (
  17. 'href' => '<{Dever::load("forum/posts.info#link", $v)}>',
  18. 'span' => array
  19. (
  20. 'html' => '<{$v.num_review}>',
  21. )
  22. ),
  23. '.dever_user' => array
  24. (
  25. 'a' => array
  26. (
  27. 'href' => '<{Dever::load("forum/posts.info#user_link", $v)}>',
  28. 'title' => '<{Dever::load("forum/posts.info#user_name", $v)}>',
  29. ),
  30. 'img' => array
  31. (
  32. 'src' => '<{Dever::load("forum/posts.info#user_avatar", $v)}>',
  33. 'alt' => '<{Dever::load("forum/posts.info#user_name", $v)}>',
  34. ),
  35. ),
  36. '.dever_title' => array
  37. (
  38. 'href' => '<{Dever::load("forum/posts.info#link", $v)}>',
  39. 'title' => '<{Dever::load("forum/posts.info#name", $v)}>',
  40. 'html' => '<{Dever::load("forum/posts.info#name", $v)}>',
  41. ),
  42. '.dever_top' => array
  43. (
  44. 'style' => '<{Dever::load("forum/posts.info#top", $v)}>',
  45. ),
  46. '.dever_tui' => array
  47. (
  48. 'style' => '<{Dever::load("forum/posts.info#tui", $v)}>',
  49. ),
  50. '.dever_up' => array
  51. (
  52. 'href' => 'javascript:;',
  53. 'id' => 'dever_up_<{Dever::load("forum/posts.info#id", $v)}>',
  54. 'span' => array
  55. (
  56. 'html' => '<{Dever::load("forum/posts.info#num_up", $v)}>',
  57. )
  58. ),
  59. '.dever_cate_info' => array
  60. (
  61. 'href' => '<{Dever::load("forum/posts.info#cate_link", $v)}>',
  62. 'title' => '<{Dever::load("forum/posts.info#cate_name", $v)}>',
  63. 'html' => '<{Dever::load("forum/posts.info#cate_name", $v)}>',
  64. ),
  65. '.dever_username' => array
  66. (
  67. 'href' => '<{Dever::load("forum/posts.info#user_link", $v)}>',
  68. 'title' => '<{Dever::load("forum/posts.info#user_name", $v)}>',
  69. 'html' => '<{Dever::load("forum/posts.info#user_name", $v)}>',
  70. ),
  71. '.dever_time' => '<{Dever::load("forum/posts.info#time", $v)}>',
  72. )
  73. );