help.php 764 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | home
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. ->set('name', 'help')
  9. ->set('title', '帮助中心')
  10. ->import('inc/head')
  11. # 定义名称
  12. ->fetch('body@t', '1')
  13. ->loop
  14. (
  15. '.main dl',
  16. 'main/api.help',
  17. array
  18. (
  19. 'a' => array
  20. (
  21. 'href' => '$v.link',
  22. ),
  23. 'h5' => '$v.name',
  24. 'dd' => '$v.desc',
  25. )
  26. )
  27. ->fetch('#page','<{Dever::page("current")}>')
  28. ->fetch(array('script@src', 1), Dever::assets('global.js'))
  29. ->fetch(array('script@src', 2), Dever::assets('<{(isset($name) ? $name : "index")}>.js', 'js'))
  30. # display
  31. ->display();