video.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?php
  2. $view
  3. ->set('name', 'video')
  4. ->set('title', '视频')
  5. ->import('inc/head')
  6. ->fetch('.videoposter img@src', 'main/content.home_video_first#pic')
  7. ->fetch('.videoplayer img@src', 'main/content.home_video_first#pic')
  8. ->fetch(array('.icon-play@data-vid=', 0), 'main/content.home_video_first#video_id')
  9. ->fetch(array('h3@html', 0), 'main/content.home_video_first#sname')
  10. ->fetch(array('p@html', 0), 'main/content.home_video_first#info')
  11. ->fetch(array('span@html', 0), 'main/content.home_video_first#pdate_string')
  12. ->fetch('.topic-video@style', 'main/content.home_video_first', 'none')
  13. ->loop
  14. (
  15. '.video-recs li',
  16. 'main/content.news|type=3',
  17. array
  18. (
  19. 'a|0' => array
  20. (
  21. 'href' => '$v.link',
  22. 'title' => '$v.name',
  23. 'img' => array
  24. (
  25. 'src' => '$v.pic',
  26. 'alt' => '$v.name',
  27. ),
  28. 'em' => array
  29. (
  30. 'class' => 'a iconfont icon-play',
  31. ),
  32. ),
  33. 'a|1' => array
  34. (
  35. 'href' => '$v.link',
  36. 'title' => '$v.name',
  37. 'html' => '$v.name',
  38. ),
  39. )
  40. )
  41. ->loop
  42. (
  43. '.video-module dl',
  44. 'main/content.news|type=3',
  45. array
  46. (
  47. 'a|1' => array
  48. (
  49. 'href' => '$v.link',
  50. 'title' => '$v.name',
  51. 'img' => array
  52. (
  53. 'src' => '$v.pic',
  54. 'alt' => '$v.name',
  55. ),
  56. 'em' => array
  57. (
  58. 'class' => 'a iconfont icon-play',
  59. ),
  60. ),
  61. 'a|0' => array
  62. (
  63. 'href' => '$v.link',
  64. 'title' => '$v.name',
  65. 'html' => '$v.name ."<br/>". $v.desc',
  66. ),
  67. 'p' => array
  68. (
  69. 'html' => '$v.info',
  70. ),
  71. 'span' => array
  72. (
  73. 'html' => '$v.pdate_string',
  74. ),
  75. )
  76. )
  77. ->fetch('.common-pagination', '<{Dever::pageInfo()["html"]}>')
  78. ->append('body', '<div id="page" dever-page-link="<{Dever::pageInfo()["link"]}>" dever-page-list=".dever-page"></div>')
  79. ->import('inc/foot')
  80. ->display();