1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- $view
- ->fetch('title', '<{isset($title) ? $title . "_" . Dever::load("main/api.config#name") : Dever::load("main/api.config#name")}>')
- ->fetch(array('meta@content', 1), '<{Dever::load("main/api.config#keywords")}>')
- ->fetch(array('meta@content', 2), '<{Dever::load("main/api.config#info")}>')
- # 公共信息
- ->render('main/api.config', array
- (
- '.logo img@src' => '$v.logo',
- '.logo a@href' => '$v.home_link',
- '.copyright' => '$v.foot',
- '.contact_icon a@href|0' => '$v.qq_link',
- '.contact_icon a@href|1' => '$v.phone_link',
- '.contact_icon a@href|2' => '$v.email_link',
- '.icon_weixin img@src' => '$v.wechat',
- '.icon_weixin img@alt' => '$v.name',
- '.icon_weixin img@style' => 'width:140px',
- '#searchform@action' => '$v.search_link',
- '#keyboard@value' => '$v.search_value',
- '.guanzhu_img img@src|0' => '$v.wechat',
- '.guanzhu_img img@src|1' => '$v.wechat_service',
-
- ))
- ->loop
- (
- '.ad_top a',
- 'main/api.ad|key=ad_top&name=头部广告',
- array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'target' => '_blank',
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v,name',
- )
- )
- )
- ->fetch('.ad_top@style', 'main/api.ad?key=ad_top&name=头部广告', 'none')
- ->fetch('#starlist', 'main/api.menu')
- ->append('head', '<script><{Dever::script()}></script>');
- ;
|