photos.php 960 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. Dever::setInput('ad_title', '相册列表页');
  3. Dever::setInput('ad_name', 'album');
  4. $view
  5. ->set('name', 'album')
  6. ->set('title', 'content/lib/cate.getInfo#name')
  7. ->import('inc/head')
  8. ->fetch('.photos .h_title', 'content/lib/cate.getInfo#name')
  9. ->loop
  10. (
  11. '.photos li',
  12. 'content/lib/album.getAll',
  13. array
  14. (
  15. 'a' => array
  16. (
  17. 'href' => '$v.link',
  18. 'title' => '$v.name',
  19. 'target' => '',
  20. 'img' => array
  21. (
  22. 'src' => '$v.pic_cover',
  23. 'alt' => '$v.name',
  24. ),
  25. 'p' => array
  26. (
  27. 'html' => '$v.name',
  28. ),
  29. 'span' => array
  30. (
  31. 'html' => '<{$v.pic_num}> 图',
  32. ),
  33. ),
  34. )
  35. )
  36. ->fetch('.epages','<{Dever::page("current")}>')
  37. ->import('inc/foot')
  38. # display
  39. ->display();