view.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | home
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. ->set('info', 'manage/doc.info')
  9. ->set('doc', 'manage/doc.doc')
  10. ->set('nav', 'manage/doc.nav')
  11. ->set('menu', 'manage/doc.menu')
  12. ->fetch('#top h1', 'info#name')
  13. ->fetch('#top p', 'doc')
  14. ->loop
  15. (
  16. '#dever_navbar li',
  17. 'nav',
  18. array
  19. (
  20. 'self' => array
  21. (
  22. 'class' => '<{$v.class}>',
  23. ),
  24. 'a' => array
  25. (
  26. 'href' => '<{$v.link}>',
  27. 'html' => '<{$v.name}>',
  28. ),
  29. )
  30. )
  31. ->loop
  32. (
  33. '.bs-docs-sidenav li',
  34. 'menu',
  35. array
  36. (
  37. 'a' => array
  38. (
  39. 'href' => '#show-<{$k}>',
  40. 'html' => '<{$v.name}>',
  41. ),
  42. )
  43. )
  44. ->loop
  45. (
  46. '.bs-docs-section',
  47. 'menu',
  48. array
  49. (
  50. 'h1' => array
  51. (
  52. 'id' => 'show-<{$k}>',
  53. 'span' => array
  54. (
  55. 'html' => '<{$v.name}>',
  56. )
  57. ),
  58. '.anchorjs-link|0' => array
  59. (
  60. 'href' => '#show-<{$k}>',
  61. ),
  62. 'div|0' => array
  63. (
  64. 'html' => '<{$v.content}>',
  65. ),
  66. )
  67. )
  68. # display
  69. ->display();