videos_info.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. Dever::setInput('ad_title', '视频详情页');
  3. Dever::setInput('ad_name', 'video_info');
  4. $view
  5. ->set('name', 'video_info')
  6. ->set('title', 'content/lib/video.getInfo#name')
  7. ->import('inc/head')
  8. ->render('content/lib/video.getInfo', array
  9. (
  10. '.play_info h1' => '$v.name',
  11. '.play_info p|0' => '热度:<{$v.num_view}>',
  12. '.play_info p|1' => '时间:<{$v.cdate}>',
  13. '.play_info p|2' => '简介:<{$v.desc}>',
  14. '.play_info .play_tags' => '$v.tag_html',
  15. '#diggnum' => '$v.num_up',
  16. '#diggnum @data-id' => '$v.id',
  17. '#diggnum @data-url' => '$v.up_url',
  18. 'source@src' => '$v.video',
  19. ))
  20. ->loop
  21. (
  22. '.all_videos li',
  23. 'content/lib/video.getRelation',
  24. array
  25. (
  26. 'a' => array
  27. (
  28. 'href' => '$v.link',
  29. 'title' => '$v.name',
  30. 'target' => '',
  31. 'img' => array
  32. (
  33. 'src' => '$v.pic_cover',
  34. 'alt' => '$v.name',
  35. ),
  36. 'p' => array
  37. (
  38. 'html' => '$v.name',
  39. ),
  40. 'span' => array
  41. (
  42. 'html' => '已有 <{$v.num_view}> 次观看',
  43. )
  44. ),
  45. )
  46. )
  47. ->fetch(array('.box@style', 2), 'content/lib/video.getRelation', 'none')
  48. ->import('inc/foot')
  49. # display
  50. ->display();