common.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | common.php
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. # 设置head里的数据
  9. ->fetch('head', '<{Maze::view("inc/head")}>')
  10. # 设置头部返回信息
  11. ->fetch('.news-back@href', '<{Maze::url("index")}>')
  12. # 设置menu的数据
  13. ->fetch
  14. (
  15. '.nav li',
  16. 'main/data.menu',
  17. array
  18. (
  19. # 标题
  20. 'a' => array
  21. (
  22. 'href' => '<{$v.link ? $v.link : "javascript:;"}>',
  23. //'title' => '<{$v.name}>',
  24. 'target' => '<{$v.target}>',
  25. 'html' => '<{$v.name}>',
  26. ),
  27. 'self' => array
  28. (
  29. 'class' => '<{Maze::last("no-bg", $i, $t)}>',
  30. 'class++' => ' <{Maze::last(Maze::input("nav"), $i, $t)}>',
  31. ),
  32. )
  33. )
  34. ->fetch('.footer .txt', '<{Maze::load("/config-one#icp", 1)}> 联系电话:<{Maze::load("/config-one#tel", 1)}>')
  35. # 设置foot里的数据
  36. # 展示数据
  37. ->display();