head.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. $view
  3. ->fetch('title', '<{isset($title) ? $title . "_" . Dever::load("main/api.config#name") : Dever::load("main/api.config#name")}>')
  4. ->fetch(array('link@href', 0), Dever::assets("global.css"))
  5. ->fetch(array('link@href', 1), Dever::assets('<{(isset($name) ? $name : "index")}>.css', "css"))
  6. # 公共信息
  7. ->render('main/api.config', array
  8. (
  9. '.logo img@src' => '$v.logo',
  10. '.icp' => '$v.foot',
  11. '.list a@href|0' => '$v.about_link',
  12. '.list a@href|1' => '$v.news_link',
  13. '.list a@href|2' => '$v.agreement_link',
  14. '.list a@href|3' => '$v.privacy_link',
  15. '.list a@href|4' => '$v.sell_link',
  16. '.list a|4' => '$v.sell_name',
  17. '.list img@src|0' => '$v.sell_applet',
  18. '.list a@href|5' => '$v.manage_link',
  19. '.list a|5' => '$v.manage_name',
  20. '.list img@src|1' => '$v.manage_applet',
  21. '.list a@href|6' => '$v.factory_link',
  22. '.list a|6' => '$v.factory_name',
  23. '.list dd@style|6' => 'display:none',
  24. '.list a@href|7' => '$v.help_link',
  25. '.list dd|7' => '$v.phone',
  26. '.list dd|8' => '$v.worktime',
  27. '.gzh img@src' => '$v.wechat',
  28. '.minip img@src|0' => '$v.sell_applet',
  29. '.minip dd|0' => '$v.sell_name',
  30. '.minip img@src|1' => '$v.lingshou_applet',
  31. '.minip dd|1' => '$v.lingshou_name',
  32. 'nav a@href|0' => '$v.home_link',
  33. 'nav a@href|1' => '$v.open_link',
  34. 'nav a@href|2' => '$v.news_link',
  35. 'nav a@href|3' => '$v.jd_link',
  36. 'nav a@href|4' => '$v.contact_link',
  37. ))
  38. ->append('head', '<script><{Dever::script()}></script>')
  39. ->append('footer', 'main/api.config#baidu')
  40. ;