3.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php
  2. include('title.php');
  3. $view
  4. ->loop
  5. (
  6. '.dever_model_list li',
  7. 'forum/model.posts|model=Dever::input("model")',
  8. array
  9. (
  10. 'self' => array
  11. (
  12. 'class++' => '<{Dever::load("forum/posts.info#home", $v) ? " col-sm-6" : " col-sm-12"}>',
  13. ),
  14. '.dever_review' => array
  15. (
  16. 'href' => '<{Dever::load("forum/posts.info#link", $v)}>',
  17. 'span' => array
  18. (
  19. 'html' => '<{$v.num_review}>',
  20. )
  21. ),
  22. '.dever_user' => array
  23. (
  24. 'a' => array
  25. (
  26. 'href' => '<{Dever::load("forum/posts.info#user_link", $v)}>',
  27. 'title' => '<{Dever::load("forum/posts.info#user_name", $v)}>',
  28. ),
  29. 'img' => array
  30. (
  31. 'src' => '<{Dever::load("forum/posts.info#user_avatar", $v)}>',
  32. 'alt' => '<{Dever::load("forum/posts.info#user_name", $v)}>',
  33. ),
  34. 'style' => '<{Dever::load("forum/posts.info#user_avatar", $v) ? "" : "display:none;"}>'
  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. 'dever-send' => '<{Dever::load("forum/vote._token", $v.id)}>',
  55. 'span' => array
  56. (
  57. 'html' => '<{Dever::load("forum/posts.info#num_up", $v)}>',
  58. )
  59. ),
  60. '.dever_cate_info' => array
  61. (
  62. 'href' => '<{Dever::load("forum/posts.info#cate_link", $v)}>',
  63. 'title' => '<{Dever::load("forum/posts.info#cate_name", $v)}>',
  64. 'html' => '<{Dever::load("forum/posts.info#cate_name", $v)}>',
  65. ),
  66. '.dever_username' => array
  67. (
  68. 'href' => '<{Dever::load("forum/posts.info#user_link", $v)}>',
  69. 'title' => '<{Dever::load("forum/posts.info#user_name", $v)}>',
  70. 'html' => '<{Dever::load("forum/posts.info#user_name", $v)}>',
  71. ),
  72. '.dever_username_show' => array
  73. (
  74. 'style' => '<{Dever::load("forum/posts.info#user_name", $v) ? "" : "display:none;"}>',
  75. ),
  76. '.dever_time' => array
  77. (
  78. 'html' => '<{Dever::load("forum/posts.info#time", $v)}>',
  79. 'title' => '<{Dever::load("forum/posts.info#cdate", $v)}>',
  80. ),
  81. )
  82. )
  83. ->fetch('.dever_more', '<{Dever::load("forum/model.info#more", Dever::input("model"))}>', 'none')
  84. # display
  85. ->display();