photos_info.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. Dever::setInput('ad_title', '相册详情页');
  3. Dever::setInput('ad_name', 'album_info');
  4. $view
  5. ->set('name', 'album_info')
  6. ->set('title', 'content/lib/album.getInfo#name')
  7. ->import('inc/head')
  8. ->render('content/lib/album.getInfo', array
  9. (
  10. '.album_info h1' => '<{$v.name}>',
  11. '.a_i_time' => '<em>时间</em><{$v.cdate}>',
  12. '#content' => '<em>描述</em><{$v.desc}>',
  13. '.album_info img@src|0' => '$v.pic_cover',
  14. '.visitor_area span|0' => '$v.pic_num',
  15. '.visitor_area span|1' => '$v.num_view',
  16. '.visitor_area span|2' => '$v.num_up',
  17. '#diggnum' => '$v.num_up',
  18. '#diggnum @data-id' => '$v.id',
  19. '#diggnum @data-url' => '$v.up_url',
  20. '.album_next li@style|0' => '<{$v.prev ? "" : "display:none"}>',
  21. '.album_next h3|0' => '$v.prev.name',
  22. '.album_next a@href|0' => '$v.prev.link',
  23. '.album_next p|0' => '$v.prev.cdate',
  24. '.album_next img@src|0' => '$v.prev.pic_cover',
  25. '.album_next li@style|1' => '<{$v.prev ? "" : "display:none"}>',
  26. '.album_next h3|1' => '$v.prev.name',
  27. '.album_next a@href|1' => '$v.prev.link',
  28. '.album_next p|1' => '$v.prev.cdate',
  29. '.album_next img@src|1' => '$v.prev.pic_cover',
  30. '.pics_content ul' => '$v.pic_html'
  31. ))
  32. ->import('inc/foot')
  33. # display
  34. ->display();