list_text.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. $view
  3. ->fetch(array('link@href', 0), Dever::assets("global.css"))
  4. ->fetch(array('link@href', 1), Dever::assets('list1.css', "css"))
  5. ->fetch(array('script@src', 1), Dever::assets('global.js'))
  6. ->fetch(array('script@src', 2), Dever::assets('list1.js', 'js'))
  7. ->set('title', 'main/content.cate#name')
  8. ->import('inc/head')
  9. ->fetch(array('.common-tit .wrapper', 0), 'main/content.cate#ename')
  10. ->fetch(array('.common-tit span', 0), 'main/content.cate#name')
  11. ->fetch(array('.ico-row@href', 0), 'main/content.cate#cate_link_1')
  12. ->fetch(array('.ico-col@href', 0), 'main/content.cate#cate_link_2')
  13. ->fetch(array('.banner-ad', 0), '<{Dever::load("main/content.getAd", "列表页顶部广告位1200X300")}>')
  14. ->fetch(array('.ad', 0), '<{Dever::load("main/content.getAd", "列表页右侧广告位380X600")}>')
  15. # 精彩Top
  16. ->loop
  17. (
  18. '.top-module li',
  19. 'main/content.getPush|key=top&name=精彩TOP&num=7',
  20. array
  21. (
  22. 'em' => array
  23. (
  24. 'html' => '$k+1',
  25. ),
  26. 'a' => array
  27. (
  28. 'href' => '$v.link',
  29. 'title' => '$v.name',
  30. 'target' => '_blank',
  31. 'html' => '$v.name',
  32. ),
  33. )
  34. )
  35. # 列表
  36. ->loop
  37. (
  38. '.article-wrap dl',
  39. 'main/content.getAll',
  40. array
  41. (
  42. 'a|0' => array
  43. (
  44. 'href' => '$v.link',
  45. 'title' => '$v.name',
  46. ),
  47. 'a|1' => array
  48. (
  49. 'href' => '$v.link',
  50. 'title' => '$v.name',
  51. 'html' => '$v.name',
  52. ),
  53. 'img' => array
  54. (
  55. 'src' => '$v.pic',
  56. 'alt' => '$v.name',
  57. ),
  58. 'p' => array
  59. (
  60. 'html' => '$v.desc',
  61. ),
  62. )
  63. )
  64. ->fetch('.common-pagination', 'Dever::page("current")')
  65. ->import('inc/foot')
  66. ->display();