view.php 1.2 KB

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