head.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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('meta@content', 1), '<{Dever::load("main/api.config#keywords")}>')
  5. ->fetch(array('meta@content', 2), '<{Dever::load("main/api.config#info")}>')
  6. # 公共信息
  7. ->render('main/api.config', array
  8. (
  9. '.logo img@src' => '$v.logo',
  10. '.logo a@href' => '$v.home_link',
  11. '.copyright' => '$v.foot',
  12. '.contact_icon a@href|0' => '$v.qq_link',
  13. '.contact_icon a@href|1' => '$v.phone_link',
  14. '.contact_icon a@href|2' => '$v.email_link',
  15. '.icon_weixin img@src' => '$v.wechat',
  16. '.icon_weixin img@alt' => '$v.name',
  17. '.icon_weixin img@style' => 'width:140px',
  18. '#searchform@action' => '$v.search_link',
  19. '#keyboard@value' => '$v.search_value',
  20. '.guanzhu_img img@src|0' => '$v.wechat',
  21. '.guanzhu_img img@src|1' => '$v.wechat_service',
  22. ))
  23. ->loop
  24. (
  25. '.ad_top a',
  26. 'main/api.ad|key=ad_top&name=头部广告',
  27. array
  28. (
  29. 'href' => '$v.link',
  30. 'title' => '$v.name',
  31. 'target' => '_blank',
  32. 'img' => array
  33. (
  34. 'src' => '$v.pic',
  35. 'alt' => '$v,name',
  36. )
  37. )
  38. )
  39. ->fetch('.ad_top@style', 'main/api.ad?key=ad_top&name=头部广告', 'none')
  40. ->fetch('#starlist', 'main/api.menu')
  41. ->append('head', '<script><{Dever::script()}></script>');
  42. ;