video.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. $view
  3. ->fetch(array('link@href', 0), Dever::assets("global.css"))
  4. ->fetch(array('link@href', 1), Dever::assets('video.css', "css"))
  5. ->fetch(array('script@src', 6), Dever::assets('global.js'))
  6. ->fetch(array('script@src', 7), Dever::assets('video.js', 'js'))
  7. ->fetch(array('script', 2), 'main/content.view#share')
  8. ->set('title', 'main/content.view#name')
  9. ->import('inc/head')
  10. ->fetch(array('.breadcrumb .wrapper a@href', 0), 'Dever::url("home")')
  11. ->fetch(array('.breadcrumb .wrapper a', 1), 'main/content.view#cate_name')
  12. ->fetch(array('.breadcrumb .wrapper a@href', 1), 'main/content.view#cate_link')
  13. ->fetch(array('.breadcrumb .wrapper span', 0), 'main/content.view#name')
  14. ->fetch('h1', 'main/content.view#name')
  15. ->fetch(array('.article-info p', 0), 'main/content.view#author_name')
  16. ->fetch(array('.article-info p', 1), 'main/content.view#date')
  17. ->fetch('.article-summary', 'main/content.view#desc')
  18. ->fetch('.rich-wrapper', 'main/content.view#content')
  19. ->fetch('#video-wrap@data-src', 'main/content.view#video')
  20. # 相关推荐
  21. ->loop
  22. (
  23. '.star-module dl',
  24. 'main/content.getRelation',
  25. array
  26. (
  27. 'a|0' => array
  28. (
  29. 'href' => '$v.link',
  30. 'title' => '$v.name',
  31. ),
  32. 'a|1' => array
  33. (
  34. 'href' => '$v.link',
  35. 'title' => '$v.name',
  36. 'html' => '$v.name',
  37. ),
  38. 'img' => array
  39. (
  40. 'src' => '$v.pic',
  41. 'alt' => '$v.name',
  42. ),
  43. 'p' => array
  44. (
  45. 'html' => '$v.desc',
  46. ),
  47. )
  48. )
  49. ->import('inc/foot')
  50. ->display();