head.php 778 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. $view
  3. ->fetch('title', '<{isset($title) ? $title . "_" . Dever::load("main/content.config#name") : Dever::load("main/content.config#name")}>')
  4. ->fetch('.logo@src', 'main/content.config#logo')
  5. # 登录
  6. ->fetch('.menu', 'main/content.user')
  7. # 菜单
  8. ->loop
  9. (
  10. '.tnav li',
  11. 'main/content.menu',
  12. array
  13. (
  14. 'a' => array
  15. (
  16. 'href' => '$v.link',
  17. 'html' => '$v.name',
  18. 'class' => '$v.class',
  19. ),
  20. 'self' => array
  21. (
  22. 'class' => '$v.class',
  23. ),
  24. )
  25. )
  26. ->append('head', '<script><{Dever::script()}>config.uid=<{Dever::load("passport/user.data") ? Dever::load("passport/user.data#id") : -1}></script>');